Lines Matching refs:nextcl
240 fat_set_fat12_next(struct fat_descriptor *fat, cl_t cl, cl_t nextcl)
244 /* Truncate 'nextcl' value, if needed */
245 nextcl &= CLUST12_MASK;
252 * it to the nextcl value for encoding
255 nextcl |= ((p[1] & 0xf0) << 8);
257 nextcl <<= 4;
258 nextcl |= (p[0] & 0x0f);
261 le16enc(p, (uint16_t)nextcl);
293 fat_set_fat16_next(struct fat_descriptor *fat, cl_t cl, cl_t nextcl)
297 /* Truncate 'nextcl' value, if needed */
298 nextcl &= CLUST16_MASK;
302 le16enc(p, (uint16_t)nextcl);
332 fat_set_fat32_next(struct fat_descriptor *fat, cl_t cl, cl_t nextcl)
336 /* Truncate 'nextcl' value, if needed */
337 nextcl &= CLUST32_MASK;
341 le32enc(p, (uint32_t)nextcl);
477 fat_set_fat32_cached_next(struct fat_descriptor *fat, cl_t cl, cl_t nextcl)
481 /* Truncate 'nextcl' value, if needed */
482 nextcl &= CLUST32_MASK;
486 le32enc(p, (uint32_t)nextcl);
504 int fat_set_cl_next(struct fat_descriptor *fat, cl_t cl, cl_t nextcl)
517 return (fat->set(fat, cl, nextcl));
810 cl_t cl, nextcl;
947 * c) A valid cluster. It means that cluster (nextcl) is not a
965 nextcl = fat_get_cl_next(fat, cl);
968 if (nextcl == CLUST_FREE) {
977 } else if (nextcl == CLUST_BAD) {
982 } else if (!valid_cl(fat, nextcl) && nextcl < CLUST_RSRVD) {
986 nextcl & boot->ClustMask);
991 } else if (valid_cl(fat, nextcl)) {
992 if (fat_is_cl_head(fat, nextcl)) {
993 fat_clear_cl_head(fat, nextcl);
996 cl, nextcl);