Lines Matching refs:p

193 calcShortSum(u_char *p)  in calcShortSum()  argument
200 sum += p[i]; in calcShortSum()
268 struct dirTodoNode *p, *np; in finishDosDirSection() local
271 for (p = pendingDirectories; p; p = np) { in finishDosDirSection()
272 np = p->next; in finishDosDirSection()
273 freeDirTodo(p); in finishDosDirSection()
386 checksize(struct fat_descriptor *fat, u_char *p, struct dosDirEntry *dir) in checksize() argument
405 p[28] = p[29] = p[30] = p[31] = 0; in checksize()
406 p[26] = p[27] = 0; in checksize()
408 p[20] = p[21] = 0; in checksize()
440 p[28] = (u_char)physicalSize; in checksize()
441 p[29] = (u_char)(physicalSize >> 8); in checksize()
442 p[30] = (u_char)(physicalSize >> 16); in checksize()
443 p[31] = (u_char)(physicalSize >> 24); in checksize()
551 u_char *p, *vallfn, *invlfn, *empty; in readDosDirSection() local
618 for (p = buffer, i = 0; i < entries; i++, p += 32) { in readDosDirSection()
620 *p = SLOT_EMPTY; in readDosDirSection()
624 if (*p == SLOT_EMPTY || *p == SLOT_DELETED) { in readDosDirSection()
625 if (*p == SLOT_EMPTY) { in readDosDirSection()
627 empty = p; in readDosDirSection()
643 cl, p - buffer, 1) == FSFATAL) in readDosDirSection()
647 for (; q < p; q += 32) in readDosDirSection()
654 *p = SLOT_DELETED; in readDosDirSection()
662 if (p[11] == ATTR_WIN95) { in readDosDirSection()
663 if (*p & LRFIRST) { in readDosDirSection()
671 shortSum = p[13]; in readDosDirSection()
672 vallfn = p; in readDosDirSection()
674 } else if (shortSum != p[13] in readDosDirSection()
675 || lidx != (*p & LRNOMASK)) { in readDosDirSection()
681 invlfn = p; in readDosDirSection()
686 lidx = *p & LRNOMASK; in readDosDirSection()
699 if (!p[k] && !p[k + 1]) in readDosDirSection()
701 *t++ = p[k]; in readDosDirSection()
705 if (p[k + 1]) in readDosDirSection()
710 if (!p[k] && !p[k + 1]) in readDosDirSection()
712 *t++ = p[k]; in readDosDirSection()
713 if (p[k + 1]) in readDosDirSection()
718 if (!p[k] && !p[k + 1]) in readDosDirSection()
720 *t++ = p[k]; in readDosDirSection()
721 if (p[k + 1]) in readDosDirSection()
732 if (p[26] | (p[27] << 8)) { in readDosDirSection()
753 dirent.flags = p[11]; in readDosDirSection()
759 dirent.name[j] = p[j]; in readDosDirSection()
771 invlfn ? invlfn : vallfn, p, in readDosDirSection()
780 if (p[8] != ' ') in readDosDirSection()
783 dirent.name[k++] = p[j+8]; in readDosDirSection()
788 if (vallfn && shortSum != calcShortSum(p)) { in readDosDirSection()
795 dirent.head = p[26] | (p[27] << 8); in readDosDirSection()
797 dirent.head |= (p[20] << 16) | (p[21] << 24); in readDosDirSection()
798 dirent.size = p[28] | (p[29] << 8) | (p[30] << 16) | (p[31] << 24); in readDosDirSection()
811 invlfn, vallfn ? vallfn : p, in readDosDirSection()
818 : p != buffer) in readDosDirSection()
862 *p = SLOT_DELETED; in readDosDirSection()
869 p[28] = p[29] = p[30] = p[31] = 0; in readDosDirSection()
870 p[26] = p[27] = 0; in readDosDirSection()
872 p[20] = p[21] = 0; in readDosDirSection()
891 p[28] = p[29] = p[30] = p[31] = 0; in readDosDirSection()
906 p[26] = (u_char)dirent.head; in readDosDirSection()
907 p[27] = (u_char)(dirent.head >> 8); in readDosDirSection()
909 p[20] = (u_char)(dirent.head >> 16); in readDosDirSection()
910 p[21] = (u_char)(dirent.head >> 24); in readDosDirSection()
925 p[26] = p[27] = 0; in readDosDirSection()
927 p[20] = p[21] = 0; in readDosDirSection()
937 p[26] = (u_char)dirent.head; in readDosDirSection()
938 p[27] = (u_char)(dirent.head >> 8); in readDosDirSection()
940 p[20] = (u_char)(dirent.head >> 16); in readDosDirSection()
941 p[21] = (u_char)(dirent.head >> 24); in readDosDirSection()
958 *p = SLOT_DELETED; in readDosDirSection()
973 *p = SLOT_DELETED; in readDosDirSection()
999 mod |= k = checksize(fat, p, &dirent); in readDosDirSection()
1024 invlfn ? invlfn : vallfn, p, in readDosDirSection()
1091 u_char *p; in reconnect() local
1114 p = NULL; in reconnect()
1116 p = lfbuf; in reconnect()
1118 if (p) in reconnect()
1119 for (; p < lfbuf + boot->ClusterSize; p += 32) in reconnect()
1120 if (*p == SLOT_EMPTY in reconnect()
1121 || *p == SLOT_DELETED) in reconnect()
1123 if (p && p < lfbuf + boot->ClusterSize) in reconnect()
1125 lfcl = p ? fat_get_cl_next(fat, lfcl) : lostDir->head; in reconnect()
1140 p = lfbuf; in reconnect()
1152 memcpy(p, d.name, len); in reconnect()
1153 memset(p + len, ' ', 11 - len); in reconnect()
1154 memset(p + 11, 0, 32 - 11); in reconnect()
1155 p[26] = (u_char)d.head; in reconnect()
1156 p[27] = (u_char)(d.head >> 8); in reconnect()
1158 p[20] = (u_char)(d.head >> 16); in reconnect()
1159 p[21] = (u_char)(d.head >> 24); in reconnect()
1161 p[28] = (u_char)d.size; in reconnect()
1162 p[29] = (u_char)(d.size >> 8); in reconnect()
1163 p[30] = (u_char)(d.size >> 16); in reconnect()
1164 p[31] = (u_char)(d.size >> 24); in reconnect()