Home
last modified time | relevance | path

Searched refs:num_clusters (Results 1 – 25 of 29) sorted by relevance

12

/OK3568_Linux_fs/kernel/fs/exfat/
H A Dfatent.c148 unsigned int num_clusters = 0; in exfat_free_cluster() local
193 num_clusters++; in exfat_free_cluster()
194 } while (num_clusters < p_chain->size); in exfat_free_cluster()
215 num_clusters++; in exfat_free_cluster()
223 sbi->used_clusters -= num_clusters; in exfat_free_cluster()
308 unsigned int num_clusters = 0, total_cnt; in exfat_alloc_cluster() local
346 num_clusters)) in exfat_alloc_cluster()
359 num_clusters)) { in exfat_alloc_cluster()
372 num_clusters++; in exfat_alloc_cluster()
394 sbi->used_clusters += num_clusters; in exfat_alloc_cluster()
[all …]
H A Dfile.c121 unsigned int num_clusters = in __exfat_truncate() local
129 clu.dir += num_clusters; in __exfat_truncate()
130 clu.size -= num_clusters; in __exfat_truncate()
132 while (num_clusters > 0) { in __exfat_truncate()
137 num_clusters--; in __exfat_truncate()
H A Dinode.c115 unsigned int num_to_be_allocated = 0, num_clusters = 0; in exfat_map_cluster() local
118 num_clusters = in exfat_map_cluster()
121 if (clu_offset >= num_clusters) in exfat_map_cluster()
122 num_to_be_allocated = clu_offset - num_clusters + 1; in exfat_map_cluster()
135 if (clu_offset == num_clusters) in exfat_map_cluster()
207 num_clusters); in exfat_map_cluster()
216 num_clusters += num_to_be_allocated; in exfat_map_cluster()
H A Dballoc.c214 for (i = EXFAT_FIRST_CLUSTER; i < sbi->num_clusters; in exfat_find_free_bitmap()
223 if (clu_free < sbi->num_clusters) in exfat_find_free_bitmap()
229 clu_base >= sbi->num_clusters) { in exfat_find_free_bitmap()
H A Dsuper.c89 buf->f_blocks = sbi->num_clusters - 2; /* clu 0 & 1 */ in exfat_statfs()
485 sbi->num_clusters = le32_to_cpu(p_boot->clu_count) + in exfat_read_boot_sector()
499 (u64)sbi->num_clusters * 4) { in exfat_read_boot_sector()
517 sb->s_maxbytes = (u64)(sbi->num_clusters - EXFAT_RESERVED_CLUSTERS) << in exfat_read_boot_sector()
H A Dexfat_raw.h27 ((sbi)->num_clusters - EXFAT_RESERVED_CLUSTERS)
H A Dexfat_fs.h216 unsigned int num_clusters; /* num of clusters in volume */ member
386 if (clus < EXFAT_FIRST_CLUSTER || sbi->num_clusters <= clus) in is_valid_cluster()
H A Dcache.c242 unsigned int limit = sbi->num_clusters; in exfat_get_cluster()
/OK3568_Linux_fs/kernel/fs/ext4/
H A Dballoc.c90 unsigned num_clusters; in ext4_num_overhead_clusters() local
99 num_clusters = ext4_num_base_meta_clusters(sb, block_group); in ext4_num_overhead_clusters()
116 if (block_cluster < num_clusters) in ext4_num_overhead_clusters()
118 else if (block_cluster == num_clusters) { in ext4_num_overhead_clusters()
119 num_clusters++; in ext4_num_overhead_clusters()
127 if (inode_cluster < num_clusters) in ext4_num_overhead_clusters()
129 else if (inode_cluster == num_clusters) { in ext4_num_overhead_clusters()
130 num_clusters++; in ext4_num_overhead_clusters()
139 if ((c < num_clusters) || (c == inode_cluster) || in ext4_num_overhead_clusters()
142 if (c == num_clusters) { in ext4_num_overhead_clusters()
[all …]
/OK3568_Linux_fs/kernel/fs/ocfs2/
H A Dextent_map.c349 u32 *num_clusters) in ocfs2_figure_hole_clusters() argument
387 *num_clusters = UINT_MAX - v_cluster; in ocfs2_figure_hole_clusters()
389 *num_clusters = le32_to_cpu(el->l_recs[i].e_cpos) - v_cluster; in ocfs2_figure_hole_clusters()
520 u32 *p_cluster, u32 *num_clusters) in ocfs2_relative_extent_offsets() argument
528 if (num_clusters) in ocfs2_relative_extent_offsets()
529 *num_clusters = le16_to_cpu(rec->e_leaf_clusters) - coff; in ocfs2_relative_extent_offsets()
533 u32 *p_cluster, u32 *num_clusters, in ocfs2_xattr_get_clusters() argument
586 if (num_clusters) in ocfs2_xattr_get_clusters()
587 *num_clusters = ocfs2_rec_clusters(el, rec) - coff; in ocfs2_xattr_get_clusters()
598 u32 *p_cluster, u32 *num_clusters, in ocfs2_get_clusters() argument
[all …]
H A Drefcounttree.c59 u32 *num_clusters,
2839 u32 p_cluster, u32 num_clusters, in ocfs2_lock_refcount_allocators() argument
2856 if (num_free_extents < num_clusters + 2) in ocfs2_lock_refcount_allocators()
2863 p_cluster, num_clusters, in ocfs2_lock_refcount_allocators()
2879 ret = ocfs2_reserve_clusters(OCFS2_SB(sb), num_clusters, in ocfs2_lock_refcount_allocators()
3147 u32 cpos, u32 num_clusters) in ocfs2_cow_sync_writeback() argument
3158 end = offset + (num_clusters << OCFS2_SB(sb)->s_clustersize_bits); in ocfs2_cow_sync_writeback()
3197 u32 *num_clusters, in ocfs2_di_get_clusters() argument
3201 num_clusters, extent_flags); in ocfs2_di_get_clusters()
3207 u32 num_clusters, unsigned int e_flags) in ocfs2_make_clusters_writable() argument
[all …]
H A Dextent_map.h36 u32 *num_clusters, unsigned int *extent_flags);
49 u32 *p_cluster, u32 *num_clusters,
61 u32 *num_clusters);
H A Dsuballoc.h109 u32 *num_clusters);
119 u32 *num_clusters);
135 unsigned int num_clusters);
140 unsigned int num_clusters);
H A Dxattr.c1106 u32 cpos, p_cluster, num_clusters, bpc, clusters; in ocfs2_xattr_get_value_outside() local
1121 &num_clusters, el, NULL); in ocfs2_xattr_get_value_outside()
1129 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in ocfs2_xattr_get_value_outside()
1147 cpos += num_clusters; in ocfs2_xattr_get_value_outside()
1355 u32 p_cluster, num_clusters; in __ocfs2_xattr_set_value_outside() local
1367 &num_clusters, &xv->xr_list, in __ocfs2_xattr_set_value_outside()
1378 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in __ocfs2_xattr_set_value_outside()
1414 cpos += num_clusters; in __ocfs2_xattr_set_value_outside()
2329 u32 p_cluster, num_clusters; in ocfs2_lock_xattr_remove_allocators() local
2334 &num_clusters, in ocfs2_lock_xattr_remove_allocators()
[all …]
H A Drefcounttree.h89 u32 cpos, u32 num_clusters);
94 u32 cpos, u32 p_cluster, u32 num_clusters,
H A Dsuballoc.c2303 u32 *num_clusters) in __ocfs2_claim_clusters() argument
2323 num_clusters); in __ocfs2_claim_clusters()
2352 *num_clusters = res.sr_bits; in __ocfs2_claim_clusters()
2361 ac->ac_bits_given += *num_clusters; in __ocfs2_claim_clusters()
2373 u32 *num_clusters) in ocfs2_claim_clusters() argument
2378 bits_wanted, cluster_start, num_clusters); in ocfs2_claim_clusters()
2546 unsigned int num_clusters, in _ocfs2_free_clusters() argument
2569 bg_start_bit, num_clusters); in _ocfs2_free_clusters()
2573 num_clusters, undo_fn); in _ocfs2_free_clusters()
2580 num_clusters); in _ocfs2_free_clusters()
[all …]
H A Dlocalalloc.h51 unsigned int num_clusters);
H A Docfs1_fs_compat.h50 /*170*/ __u64 num_clusters; member
H A Dioctl.c441 unsigned int max_bits, num_clusters; in ocfs2_info_freefrag_scan_chain() local
486 num_clusters = max_bits - offset; in ocfs2_info_freefrag_scan_chain()
488 num_clusters = ffg->iff_chunksize; in ocfs2_info_freefrag_scan_chain()
491 for (cluster = 0; cluster < num_clusters; cluster++) { in ocfs2_info_freefrag_scan_chain()
H A Dfile.c343 unsigned int num_clusters = 0; in ocfs2_cow_file_pos() local
355 &num_clusters, &ext_flags); in ocfs2_cow_file_pos()
873 unsigned int num_clusters = 0; in ocfs2_zero_extend_get_range() local
878 &num_clusters, &ext_flags); in ocfs2_zero_extend_get_range()
885 zero_clusters = num_clusters; in ocfs2_zero_extend_get_range()
891 zero_cpos += num_clusters; in ocfs2_zero_extend_get_range()
900 &p_cpos, &num_clusters, in ocfs2_zero_extend_get_range()
911 zero_clusters += num_clusters; in ocfs2_zero_extend_get_range()
H A Dalloc.h175 unsigned int num_clusters);
/OK3568_Linux_fs/kernel/arch/mips/include/asm/
H A Dmips-cps.h115 unsigned int num_clusters; in mips_cps_numclusters() local
120 num_clusters = read_gcr_config() & CM_GCR_CONFIG_NUM_CLUSTERS; in mips_cps_numclusters()
121 num_clusters >>= __ffs(CM_GCR_CONFIG_NUM_CLUSTERS); in mips_cps_numclusters()
122 return num_clusters; in mips_cps_numclusters()
/OK3568_Linux_fs/kernel/drivers/cpufreq/
H A Dtegra186-cpufreq.c52 size_t num_clusters; member
61 for (i = 0; i < data->num_clusters; i++) { in tegra186_cpufreq_init()
112 for (i = 0; i < data->num_clusters; i++) { in tegra186_cpufreq_get()
242 data->num_clusters = ARRAY_SIZE(tegra186_clusters); in tegra186_cpufreq_probe()
254 for (i = 0; i < data->num_clusters; i++) { in tegra186_cpufreq_probe()
H A Dtegra194-cpufreq.c41 size_t num_clusters; member
196 if (cl >= data->num_clusters) in tegra194_cpufreq_init()
327 data->num_clusters = MAX_CLUSTERS; in tegra194_cpufreq_probe()
328 data->tables = devm_kcalloc(&pdev->dev, data->num_clusters, in tegra194_cpufreq_probe()
346 for (i = 0; i < data->num_clusters; i++) { in tegra194_cpufreq_probe()
/OK3568_Linux_fs/kernel/drivers/soc/qcom/
H A Dsocinfo.c129 __le32 num_clusters; member
150 u32 num_clusters; member
363 qcom_socinfo->info.num_clusters = __le32_to_cpu(info->num_clusters); in socinfo_debugfs_init()
369 &qcom_socinfo->info.num_clusters); in socinfo_debugfs_init()

12