Lines Matching refs:clu
234 static int write_fat_entry(int fd, __le32 clu, in write_fat_entry() argument
240 nbyte = pwrite(fd, (__u8 *) &clu, sizeof(__le32), fat_entry_offset); in write_fat_entry()
243 offset, clu); in write_fat_entry()
251 unsigned int clu, unsigned int length) in write_fat_entries() argument
256 count = clu + round_up(length, ui->cluster_size) / ui->cluster_size; in write_fat_entries()
258 for (; clu < count - 1; clu++) { in write_fat_entries()
259 ret = write_fat_entry(fd, cpu_to_le32(clu + 1), clu); in write_fat_entries()
264 ret = write_fat_entry(fd, cpu_to_le32(EXFAT_EOF_CLUSTER), clu); in write_fat_entries()
268 return clu; in write_fat_entries()
274 int ret, clu; in exfat_create_fat_table() local
291 clu = write_fat_entries(ui, bd->dev_fd, EXFAT_FIRST_CLUSTER, in exfat_create_fat_table()
293 if (clu < 0) in exfat_create_fat_table()
297 clu = write_fat_entries(ui, bd->dev_fd, clu + 1, finfo.ut_byte_len); in exfat_create_fat_table()
298 if (clu < 0) in exfat_create_fat_table()
302 clu = write_fat_entries(ui, bd->dev_fd, clu + 1, finfo.root_byte_len); in exfat_create_fat_table()
303 if (clu < 0) in exfat_create_fat_table()
306 finfo.used_clu_cnt = clu + 1; in exfat_create_fat_table()