Lines Matching refs:cluster
1142 int err, cluster; in fat_alloc_new_dir() local
1144 err = fat_alloc_clusters(dir, &cluster, 1); in fat_alloc_new_dir()
1148 blknr = fat_clus_to_blknr(sbi, cluster); in fat_alloc_new_dir()
1177 fat_set_start(&de[0], cluster); in fat_alloc_new_dir()
1189 return cluster; in fat_alloc_new_dir()
1192 fat_free_clusters(dir, cluster); in fat_alloc_new_dir()
1207 int err, i, n, offset, cluster[2]; in fat_add_new_entries() local
1218 err = fat_alloc_clusters(dir, cluster, *nr_cluster); in fat_add_new_entries()
1229 start_blknr = blknr = fat_clus_to_blknr(sbi, cluster[i]); in fat_add_new_entries()
1267 return cluster[0]; in fat_add_new_entries()
1276 fat_free_clusters(dir, cluster[0]); in fat_add_new_entries()
1369 int cluster, nr_cluster; in fat_add_entries() local
1376 cluster = fat_add_new_entries(dir, slots, nr_slots, &nr_cluster, in fat_add_entries()
1378 if (cluster < 0) { in fat_add_entries()
1379 err = cluster; in fat_add_entries()
1382 err = fat_chain_add(dir, cluster, nr_cluster); in fat_add_entries()
1384 fat_free_clusters(dir, cluster); in fat_add_entries()