Lines Matching defs:clus
30 clus_t clus;
36 clus = start_clus;
37 while (clus < start_clus + count) {
38 exfat_bitmap_set(bitmap, clus);
39 clus++;
695 int exfat_get_next_clus(struct exfat *exfat, clus_t clus, clus_t *next)
701 if (!exfat_heap_clus(exfat, clus))
706 offset += sizeof(clus_t) * clus;
716 clus_t clus, clus_t *next)
721 if (!exfat_heap_clus(exfat, clus))
723 *next = clus + 1;
727 return exfat_get_next_clus(exfat, clus, next);
730 int exfat_set_fat(struct exfat *exfat, clus_t clus, clus_t next_clus)
736 offset += sizeof(clus_t) * clus;
749 off_t exfat_c2o(struct exfat *exfat, unsigned int clus)
751 if (clus < EXFAT_FIRST_CLUSTER)
755 ((off_t)(clus - EXFAT_FIRST_CLUSTER) <<
776 bool exfat_heap_clus(struct exfat *exfat, clus_t clus)
778 return clus >= EXFAT_FIRST_CLUSTER &&
779 (clus - EXFAT_FIRST_CLUSTER) < exfat->clus_count;
785 clus_t clus, next;
791 clus = node->first_clus;
793 if (exfat_bitmap_get(exfat->alloc_bitmap, clus))
796 exfat_bitmap_set(exfat->alloc_bitmap, clus);
798 if (exfat_get_inode_next_clus(exfat, node, clus, &next)) {
806 clus = next;
808 } while (clus != EXFAT_EOF_CLUSTER);