• Home
  • Raw
  • Download

Lines Matching refs:nextcl

242 fat_set_fat12_next(struct fat_descriptor *fat, cl_t cl, cl_t nextcl)  in fat_set_fat12_next()  argument
247 nextcl &= CLUST12_MASK; in fat_set_fat12_next()
257 nextcl |= ((p[1] & 0xf0) << 8); in fat_set_fat12_next()
259 nextcl <<= 4; in fat_set_fat12_next()
260 nextcl |= (p[0] & 0x0f); in fat_set_fat12_next()
263 le16enc(p, (uint16_t)nextcl); in fat_set_fat12_next()
295 fat_set_fat16_next(struct fat_descriptor *fat, cl_t cl, cl_t nextcl) in fat_set_fat16_next() argument
300 nextcl &= CLUST16_MASK; in fat_set_fat16_next()
304 le16enc(p, (uint16_t)nextcl); in fat_set_fat16_next()
334 fat_set_fat32_next(struct fat_descriptor *fat, cl_t cl, cl_t nextcl) in fat_set_fat32_next() argument
339 nextcl &= CLUST32_MASK; in fat_set_fat32_next()
343 le32enc(p, (uint32_t)nextcl); in fat_set_fat32_next()
479 fat_set_fat32_cached_next(struct fat_descriptor *fat, cl_t cl, cl_t nextcl) in fat_set_fat32_cached_next() argument
484 nextcl &= CLUST32_MASK; in fat_set_fat32_cached_next()
488 le32enc(p, (uint32_t)nextcl); in fat_set_fat32_cached_next()
506 int fat_set_cl_next(struct fat_descriptor *fat, cl_t cl, cl_t nextcl) in fat_set_cl_next() argument
519 return (fat->set(fat, cl, nextcl)); in fat_set_cl_next()
812 cl_t cl, nextcl; in readfat() local
967 nextcl = fat_get_cl_next(fat, cl); in readfat()
970 if (nextcl == CLUST_FREE) { in readfat()
979 } else if (nextcl == CLUST_BAD) { in readfat()
984 } else if (!valid_cl(fat, nextcl) && nextcl < CLUST_RSRVD) { in readfat()
988 nextcl & boot->ClustMask); in readfat()
993 } else if (valid_cl(fat, nextcl)) { in readfat()
994 if (fat_is_cl_head(fat, nextcl)) { in readfat()
995 fat_clear_cl_head(fat, nextcl); in readfat()
998 cl, nextcl); in readfat()