/kernel/linux/linux-5.10/fs/exfat/ |
H A D | fatent.c | 148 unsigned int num_clusters = 0; in exfat_free_cluster() local 176 num_clusters++; in exfat_free_cluster() 177 } while (num_clusters < p_chain->size); in exfat_free_cluster() 185 num_clusters++; in exfat_free_cluster() 190 sbi->used_clusters -= num_clusters; in exfat_free_cluster() 275 unsigned int num_clusters = 0, total_cnt; in exfat_alloc_cluster() local 313 num_clusters)) in exfat_alloc_cluster() 326 num_clusters)) { in exfat_alloc_cluster() 339 num_clusters++; in exfat_alloc_cluster() 361 sbi->used_clusters += num_clusters; in exfat_alloc_cluster() [all...] |
H A D | inode.c | 115 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() 206 num_clusters); in exfat_map_cluster() 215 num_clusters += num_to_be_allocated; in exfat_map_cluster()
|
H A D | balloc.c | 214 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 D | file.c | 118 * Truncate FAT chain num_clusters after the first cluster in __exfat_truncate() 119 * num_clusters = min(new, phys); in __exfat_truncate() 121 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()
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | extent_map.c | 349 u32 *num_clusters) in ocfs2_figure_hole_clusters() 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() 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() 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() 345 ocfs2_figure_hole_clusters(struct ocfs2_caching_info *ci, struct ocfs2_extent_list *el, struct buffer_head *eb_bh, u32 v_cluster, u32 *num_clusters) ocfs2_figure_hole_clusters() argument 517 ocfs2_relative_extent_offsets(struct super_block *sb, u32 v_cluster, struct ocfs2_extent_rec *rec, u32 *p_cluster, u32 *num_clusters) ocfs2_relative_extent_offsets() argument 532 ocfs2_xattr_get_clusters(struct inode *inode, u32 v_cluster, u32 *p_cluster, u32 *num_clusters, struct ocfs2_extent_list *el, unsigned int *extent_flags) ocfs2_xattr_get_clusters() argument 597 ocfs2_get_clusters(struct inode *inode, u32 v_cluster, u32 *p_cluster, u32 *num_clusters, unsigned int *extent_flags) ocfs2_get_clusters() argument 665 u32 cpos, num_clusters, p_cluster; ocfs2_extent_map_get_blocks() local [all...] |
H A D | extent_map.h | 36 u32 *num_clusters, unsigned int *extent_flags); 49 u32 *p_cluster, u32 *num_clusters, 61 u32 *num_clusters);
|
H A D | suballoc.h | 109 u32 *num_clusters); 119 u32 *num_clusters); 135 unsigned int num_clusters); 140 unsigned int num_clusters);
|
H A D | refcounttree.c | 59 u32 *num_clusters, 2829 * num_clusters in data_tree "et" and change the refcount for the old 2833 * 1. since we may split the old tree, so we at most will need num_clusters + 2 2839 u32 p_cluster, u32 num_clusters, in ocfs2_lock_refcount_allocators() 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() 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() 2838 ocfs2_lock_refcount_allocators(struct super_block *sb, u32 p_cluster, u32 num_clusters, struct ocfs2_extent_tree *et, struct ocfs2_caching_info *ref_ci, struct buffer_head *ref_root_bh, struct ocfs2_alloc_context **meta_ac, struct ocfs2_alloc_context **data_ac, int *credits) ocfs2_lock_refcount_allocators() argument 3145 ocfs2_cow_sync_writeback(struct super_block *sb, struct inode *inode, u32 cpos, u32 num_clusters) ocfs2_cow_sync_writeback() argument 3195 ocfs2_di_get_clusters(struct ocfs2_cow_context *context, u32 v_cluster, u32 *p_cluster, u32 *num_clusters, unsigned int *extent_flags) ocfs2_di_get_clusters() argument 3204 ocfs2_make_clusters_writable(struct super_block *sb, struct ocfs2_cow_context *context, u32 cpos, u32 p_cluster, u32 num_clusters, unsigned int e_flags) ocfs2_make_clusters_writable() argument 3360 u32 p_cluster, num_clusters; ocfs2_replace_cow() local 3490 u32 p_cluster, num_clusters; ocfs2_refcount_cow() local 3520 ocfs2_xattr_value_get_clusters(struct ocfs2_cow_context *context, u32 v_cluster, u32 *p_cluster, u32 *num_clusters, unsigned int *extent_flags) ocfs2_xattr_value_get_clusters() argument 3544 u32 p_cluster, num_clusters; ocfs2_refcounted_xattr_delete_need() local 3683 ocfs2_add_refcount_flag(struct inode *inode, struct ocfs2_extent_tree *data_et, struct ocfs2_caching_info *ref_ci, struct buffer_head *ref_root_bh, u32 cpos, u32 p_cluster, u32 num_clusters, struct ocfs2_cached_dealloc_ctxt *dealloc, struct ocfs2_post_refcount *post) ocfs2_add_refcount_flag() argument 3805 u32 cpos, num_clusters, clusters, p_cluster; ocfs2_attach_refcount_tree() local 3896 ocfs2_add_refcounted_extent(struct inode *inode, struct ocfs2_extent_tree *et, struct ocfs2_caching_info *ref_ci, struct buffer_head *ref_root_bh, u32 cpos, u32 p_cluster, u32 num_clusters, unsigned int ext_flags, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_add_refcounted_extent() argument 4007 u32 p_cluster, num_clusters, clusters, cpos; ocfs2_duplicate_extent_list() local 4519 u32 p_cluster, num_clusters, slast, spos, tpos, remapped_clus = 0; ocfs2_reflink_remap_extent() local [all...] |
H A D | refcounttree.h | 89 u32 cpos, u32 num_clusters); 94 u32 cpos, u32 p_cluster, u32 num_clusters,
|
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | extent_map.c | 347 u32 *num_clusters) in ocfs2_figure_hole_clusters() 385 *num_clusters = UINT_MAX - v_cluster; in ocfs2_figure_hole_clusters() 387 *num_clusters = le32_to_cpu(el->l_recs[i].e_cpos) - v_cluster; in ocfs2_figure_hole_clusters() 518 u32 *p_cluster, u32 *num_clusters) in ocfs2_relative_extent_offsets() 526 if (num_clusters) in ocfs2_relative_extent_offsets() 527 *num_clusters = le16_to_cpu(rec->e_leaf_clusters) - coff; in ocfs2_relative_extent_offsets() 531 u32 *p_cluster, u32 *num_clusters, in ocfs2_xattr_get_clusters() 584 if (num_clusters) in ocfs2_xattr_get_clusters() 585 *num_clusters = ocfs2_rec_clusters(el, rec) - coff; in ocfs2_xattr_get_clusters() 596 u32 *p_cluster, u32 *num_clusters, in ocfs2_get_clusters() 343 ocfs2_figure_hole_clusters(struct ocfs2_caching_info *ci, struct ocfs2_extent_list *el, struct buffer_head *eb_bh, u32 v_cluster, u32 *num_clusters) ocfs2_figure_hole_clusters() argument 515 ocfs2_relative_extent_offsets(struct super_block *sb, u32 v_cluster, struct ocfs2_extent_rec *rec, u32 *p_cluster, u32 *num_clusters) ocfs2_relative_extent_offsets() argument 530 ocfs2_xattr_get_clusters(struct inode *inode, u32 v_cluster, u32 *p_cluster, u32 *num_clusters, struct ocfs2_extent_list *el, unsigned int *extent_flags) ocfs2_xattr_get_clusters() argument 595 ocfs2_get_clusters(struct inode *inode, u32 v_cluster, u32 *p_cluster, u32 *num_clusters, unsigned int *extent_flags) ocfs2_get_clusters() argument 663 u32 cpos, num_clusters, p_cluster; ocfs2_extent_map_get_blocks() local [all...] |
H A D | extent_map.h | 34 u32 *num_clusters, unsigned int *extent_flags); 47 u32 *p_cluster, u32 *num_clusters, 59 u32 *num_clusters);
|
H A D | suballoc.h | 107 u32 *num_clusters); 117 u32 *num_clusters); 133 unsigned int num_clusters); 138 unsigned int num_clusters);
|
H A D | refcounttree.c | 57 u32 *num_clusters, 2827 * num_clusters in data_tree "et" and change the refcount for the old 2831 * 1. since we may split the old tree, so we at most will need num_clusters + 2 2837 u32 p_cluster, u32 num_clusters, in ocfs2_lock_refcount_allocators() 2854 if (num_free_extents < num_clusters + 2) in ocfs2_lock_refcount_allocators() 2861 p_cluster, num_clusters, in ocfs2_lock_refcount_allocators() 2877 ret = ocfs2_reserve_clusters(OCFS2_SB(sb), num_clusters, in ocfs2_lock_refcount_allocators() 3148 u32 cpos, u32 num_clusters) in ocfs2_cow_sync_writeback() 3157 end = start + (num_clusters << OCFS2_SB(sb)->s_clustersize_bits) - 1; in ocfs2_cow_sync_writeback() 3168 u32 *num_clusters, in ocfs2_di_get_clusters() 2836 ocfs2_lock_refcount_allocators(struct super_block *sb, u32 p_cluster, u32 num_clusters, struct ocfs2_extent_tree *et, struct ocfs2_caching_info *ref_ci, struct buffer_head *ref_root_bh, struct ocfs2_alloc_context **meta_ac, struct ocfs2_alloc_context **data_ac, int *credits) ocfs2_lock_refcount_allocators() argument 3146 ocfs2_cow_sync_writeback(struct super_block *sb, struct inode *inode, u32 cpos, u32 num_clusters) ocfs2_cow_sync_writeback() argument 3166 ocfs2_di_get_clusters(struct ocfs2_cow_context *context, u32 v_cluster, u32 *p_cluster, u32 *num_clusters, unsigned int *extent_flags) ocfs2_di_get_clusters() argument 3175 ocfs2_make_clusters_writable(struct super_block *sb, struct ocfs2_cow_context *context, u32 cpos, u32 p_cluster, u32 num_clusters, unsigned int e_flags) ocfs2_make_clusters_writable() argument 3331 u32 p_cluster, num_clusters; ocfs2_replace_cow() local 3461 u32 p_cluster, num_clusters; ocfs2_refcount_cow() local 3491 ocfs2_xattr_value_get_clusters(struct ocfs2_cow_context *context, u32 v_cluster, u32 *p_cluster, u32 *num_clusters, unsigned int *extent_flags) ocfs2_xattr_value_get_clusters() argument 3515 u32 p_cluster, num_clusters; ocfs2_refcounted_xattr_delete_need() local 3654 ocfs2_add_refcount_flag(struct inode *inode, struct ocfs2_extent_tree *data_et, struct ocfs2_caching_info *ref_ci, struct buffer_head *ref_root_bh, u32 cpos, u32 p_cluster, u32 num_clusters, struct ocfs2_cached_dealloc_ctxt *dealloc, struct ocfs2_post_refcount *post) ocfs2_add_refcount_flag() argument 3776 u32 cpos, num_clusters, clusters, p_cluster; ocfs2_attach_refcount_tree() local 3867 ocfs2_add_refcounted_extent(struct inode *inode, struct ocfs2_extent_tree *et, struct ocfs2_caching_info *ref_ci, struct buffer_head *ref_root_bh, u32 cpos, u32 p_cluster, u32 num_clusters, unsigned int ext_flags, struct ocfs2_cached_dealloc_ctxt *dealloc) ocfs2_add_refcounted_extent() argument 3978 u32 p_cluster, num_clusters, clusters, cpos; ocfs2_duplicate_extent_list() local 4490 u32 p_cluster, num_clusters, slast, spos, tpos, remapped_clus = 0; ocfs2_reflink_remap_extent() local [all...] |
H A D | refcounttree.h | 87 u32 cpos, u32 num_clusters); 92 u32 cpos, u32 p_cluster, u32 num_clusters,
|
/kernel/linux/linux-5.10/fs/ext4/ |
H A D | balloc.c | 90 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...] |
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
H A D | mips-cps.h | 115 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()
|
/kernel/linux/linux-6.6/fs/exfat/ |
H A D | balloc.c | 214 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() 285 if (clu_start >= sbi->num_clusters || range->len < sbi->cluster_size) in exfat_trim_fs() 288 if (clu_end >= sbi->num_clusters) in exfat_trim_fs() 289 clu_end = sbi->num_clusters - 1; in exfat_trim_fs()
|
H A D | fatent.c | 153 unsigned int num_clusters = 0; in __exfat_free_cluster() local 194 num_clusters++; in __exfat_free_cluster() 195 } 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() 347 if (hint_clu != sbi->num_clusters) in exfat_alloc_cluster() 403 if (hint_clu >= sbi->num_clusters) { in exfat_alloc_cluster() 442 for (i = EXFAT_FIRST_CLUSTER; i < sbi->num_clusters; i++) { in exfat_count_num_clusters()
|
H A D | file.c | 118 * Truncate FAT chain num_clusters after the first cluster in __exfat_truncate() 119 * num_clusters = min(new, phys); in __exfat_truncate() 121 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 D | inode.c | 121 unsigned int num_to_be_allocated = 0, num_clusters = 0; in exfat_map_cluster() local 124 num_clusters = in exfat_map_cluster() 127 if (clu_offset >= num_clusters) in exfat_map_cluster() 128 num_to_be_allocated = clu_offset - num_clusters + 1; in exfat_map_cluster() 141 if (clu_offset == num_clusters) in exfat_map_cluster() 212 num_clusters); in exfat_map_cluster() 220 num_clusters += num_to_be_allocated; in exfat_map_cluster()
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | tegra194-cpufreq.c | 41 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()
|
H A D | tegra186-cpufreq.c | 52 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()
|
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | tegra194-cpufreq.c | 63 unsigned int num_clusters; member 186 .num_clusters = 3, 193 .num_clusters = 1, 485 if (clusterid >= data->soc->num_clusters || !data->bpmp_luts[clusterid]) in tegra194_cpufreq_init() 582 .num_clusters = 4, 676 if (soc->ops && soc->maxcpus_per_cluster && soc->num_clusters) { in tegra194_cpufreq_probe() 683 data->bpmp_luts = devm_kcalloc(&pdev->dev, data->soc->num_clusters, in tegra194_cpufreq_probe() 708 for (i = 0; i < data->soc->num_clusters; i++) { in tegra194_cpufreq_probe()
|
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
H A D | socinfo.c | 129 __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() 368 debugfs_create_u32("num_clusters", 0400, qcom_socinfo->dbg_root, in socinfo_debugfs_init() 369 &qcom_socinfo->info.num_clusters); in socinfo_debugfs_init()
|
/kernel/linux/linux-6.6/fs/ext4/ |
H A D | balloc.c | 91 unsigned base_clusters, num_clusters; in ext4_num_overhead_clusters() local 103 num_clusters = base_clusters; in ext4_num_overhead_clusters() 122 num_clusters += itbl_cluster_end - itbl_cluster_start + 1; in ext4_num_overhead_clusters() 125 num_clusters--; in ext4_num_overhead_clusters() 143 num_clusters++; in ext4_num_overhead_clusters() 157 num_clusters++; in ext4_num_overhead_clusters() 160 return num_clusters; in ext4_num_overhead_clusters()
|