Lines Matching defs:fp
72 #define FI_STARTCLUST(fp) (*(ushort_t *)(fp)->fi_buf)
73 #define FI_LENGTH(fp) (*(long *)((fp)->fi_buf + 4))
283 fileid_t *fp;
287 fp = find_fp(fd);
288 if (fp == NULL) {
294 off = fp->fi_offset;
295 blk = FI_STARTCLUST(fp);
299 off = fp->fi_offset;
300 blk = FI_STARTCLUST(fp);
303 if ((c = MIN(FI_LENGTH(fp) - off, c)) == 0)
348 fp->fi_offset += count;
418 uchar_t *fp;
436 if (!(fp = (uchar_t *)readblock(sectn, 2))) {
441 fp += (fat_index % SECSIZ);
444 blk = fp[0] | (fp[1] << 8);
447 blk = ((fp[0] >> 4) & 0xf) | (fp[1] << 4);
449 blk = ((fp[1] & 0xf) << 8) | fp[0];