Home
last modified time | relevance | path

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

12

/linux/fs/exfat/
H A Dfatent.c164 unsigned int clu, unsigned int num_clusters) in exfat_discard_cluster() argument
170 sbi->sect_per_clus * num_clusters, GFP_NOFS, 0); in exfat_discard_cluster()
183 unsigned int num_clusters = 0; in __exfat_free_cluster() local
228 num_clusters++; in __exfat_free_cluster()
229 } while (num_clusters < p_chain->size); in __exfat_free_cluster()
265 num_clusters++; in __exfat_free_cluster()
270 if (num_clusters >= sbi->num_clusters - EXFAT_FIRST_CLUSTER) { in __exfat_free_cluster()
282 sbi->used_clusters -= num_clusters; in __exfat_free_cluster()
408 if (hint_clu != sbi->num_clusters) in exfat_alloc_cluster()
464 if (hint_clu >= sbi->num_clusters) { in exfat_alloc_cluster()
[all …]
H A Dfile.c23 unsigned int num_clusters, new_num_clusters, last_clu; in exfat_cont_expand() local
35 num_clusters = EXFAT_B_TO_CLU(exfat_ondisk_size(inode), sbi); in exfat_cont_expand()
38 if (new_num_clusters == num_clusters) in exfat_cont_expand()
41 if (num_clusters) { in exfat_cont_expand()
42 exfat_chain_set(&clu, ei->start_clu, num_clusters, ei->flags); in exfat_cont_expand()
56 ret = exfat_alloc_cluster(inode, new_num_clusters - num_clusters, in exfat_cont_expand()
62 if (num_clusters) { in exfat_cont_expand()
64 if (exfat_chain_cont_cluster(sb, ei->start_clu, num_clusters)) in exfat_cont_expand()
172 unsigned int num_clusters = in __exfat_truncate() local
180 clu.dir += num_clusters; in __exfat_truncate()
[all …]
H A Dballoc.c268 for (i = EXFAT_FIRST_CLUSTER; i < sbi->num_clusters; in exfat_find_free_bitmap()
278 if (clu_free < sbi->num_clusters) in exfat_find_free_bitmap()
285 clu_base >= sbi->num_clusters) { in exfat_find_free_bitmap()
340 if (clu_start >= sbi->num_clusters || range->len < sbi->cluster_size) in exfat_trim_fs()
343 if (clu_end >= sbi->num_clusters) in exfat_trim_fs()
344 clu_end = sbi->num_clusters - 1; in exfat_trim_fs()
H A Dinode.c136 unsigned int num_to_be_allocated = 0, num_clusters; in exfat_map_cluster() local
138 num_clusters = EXFAT_B_TO_CLU(exfat_ondisk_size(inode), sbi); in exfat_map_cluster()
140 if (clu_offset >= num_clusters) in exfat_map_cluster()
141 num_to_be_allocated = clu_offset - num_clusters + 1; in exfat_map_cluster()
153 last_clu += num_clusters - 1; in exfat_map_cluster()
154 if (clu_offset < num_clusters) { in exfat_map_cluster()
156 *count = min(num_clusters - clu_offset, *count); in exfat_map_cluster()
208 num_clusters); in exfat_map_cluster()
216 num_clusters += num_to_be_allocated; in exfat_map_cluster()
H A Dsuper.c63 buf->f_blocks = sbi->num_clusters - 2; /* clu 0 & 1 */ in exfat_statfs()
504 sbi->num_clusters = le32_to_cpu(p_boot->clu_count) + in exfat_read_boot_sector()
517 (u64)sbi->num_clusters * 4) { in exfat_read_boot_sector()
535 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.h249 unsigned int num_clusters; /* num of clusters in volume */ member
422 return clus >= EXFAT_FIRST_CLUSTER && clus < sbi->num_clusters; in is_valid_cluster()
/linux/fs/ocfs2/
H A Dextent_map.c347 u32 *num_clusters) in ocfs2_figure_hole_clusters() argument
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()
528 u32 *p_cluster, u32 *num_clusters) in ocfs2_relative_extent_offsets() argument
536 if (num_clusters) in ocfs2_relative_extent_offsets()
537 *num_clusters = le16_to_cpu(rec->e_leaf_clusters) - coff; in ocfs2_relative_extent_offsets()
541 u32 *p_cluster, u32 *num_clusters, in ocfs2_xattr_get_clusters() argument
594 if (num_clusters) in ocfs2_xattr_get_clusters()
595 *num_clusters = ocfs2_rec_clusters(el, rec) - coff; in ocfs2_xattr_get_clusters()
606 u32 *p_cluster, u32 *num_clusters, in ocfs2_get_clusters() argument
[all …]
H A Drefcounttree.c59 u32 *num_clusters,
2832 u32 p_cluster, u32 num_clusters, in ocfs2_lock_refcount_allocators() argument
2849 if (num_free_extents < num_clusters + 2) in ocfs2_lock_refcount_allocators()
2856 p_cluster, num_clusters, in ocfs2_lock_refcount_allocators()
2872 ret = ocfs2_reserve_clusters(OCFS2_SB(sb), num_clusters, in ocfs2_lock_refcount_allocators()
3140 u32 cpos, u32 num_clusters) in ocfs2_cow_sync_writeback() argument
3149 end = start + (num_clusters << OCFS2_SB(sb)->s_clustersize_bits) - 1; in ocfs2_cow_sync_writeback()
3160 u32 *num_clusters, in ocfs2_di_get_clusters() argument
3164 num_clusters, extent_flags); in ocfs2_di_get_clusters()
3170 u32 num_clusters, unsigned int e_flags) in ocfs2_make_clusters_writable() argument
[all …]
H A Dextent_map.h34 u32 *num_clusters, unsigned int *extent_flags);
47 u32 *p_cluster, u32 *num_clusters,
59 u32 *num_clusters);
H A Dsuballoc.h112 u32 *num_clusters);
122 u32 *num_clusters);
138 unsigned int num_clusters);
143 unsigned int num_clusters);
H A Dxattr.c1139 u32 cpos, p_cluster, num_clusters, bpc, clusters; in ocfs2_xattr_get_value_outside() local
1154 &num_clusters, el, NULL); in ocfs2_xattr_get_value_outside()
1162 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in ocfs2_xattr_get_value_outside()
1180 cpos += num_clusters; in ocfs2_xattr_get_value_outside()
1388 u32 p_cluster, num_clusters; in __ocfs2_xattr_set_value_outside() local
1400 &num_clusters, &xv->xr_list, in __ocfs2_xattr_set_value_outside()
1411 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in __ocfs2_xattr_set_value_outside()
1447 cpos += num_clusters; in __ocfs2_xattr_set_value_outside()
2362 u32 p_cluster, num_clusters; in ocfs2_lock_xattr_remove_allocators() local
2367 &num_clusters, in ocfs2_lock_xattr_remove_allocators()
[all …]
H A Drefcounttree.h87 u32 cpos, u32 num_clusters);
92 u32 cpos, u32 p_cluster, u32 num_clusters,
H A Dlocalalloc.h49 unsigned int num_clusters);
H A Docfs1_fs_compat.h48 /*170*/ __u64 num_clusters; member
H A Dsuballoc.c2477 u32 *num_clusters) in __ocfs2_claim_clusters() argument
2498 num_clusters); in __ocfs2_claim_clusters()
2527 *num_clusters = res.sr_bits; in __ocfs2_claim_clusters()
2536 ac->ac_bits_given += *num_clusters; in __ocfs2_claim_clusters()
2548 u32 *num_clusters) in ocfs2_claim_clusters() argument
2553 bits_wanted, cluster_start, num_clusters); in ocfs2_claim_clusters()
2948 unsigned int num_clusters, in _ocfs2_free_clusters() argument
2971 bg_start_bit, num_clusters); in _ocfs2_free_clusters()
2975 num_clusters, undo_fn); in _ocfs2_free_clusters()
2982 num_clusters); in _ocfs2_free_clusters()
[all …]
H A Dioctl.c444 unsigned int max_bits, num_clusters; in ocfs2_info_freefrag_scan_chain() local
489 num_clusters = max_bits - offset; in ocfs2_info_freefrag_scan_chain()
491 num_clusters = ffg->iff_chunksize; in ocfs2_info_freefrag_scan_chain()
494 for (cluster = 0; cluster < num_clusters; cluster++) { in ocfs2_info_freefrag_scan_chain()
H A Dfile.c346 unsigned int num_clusters = 0; in ocfs2_cow_file_pos() local
358 &num_clusters, &ext_flags); in ocfs2_cow_file_pos()
869 unsigned int num_clusters = 0; in ocfs2_zero_extend_get_range() local
874 &num_clusters, &ext_flags); in ocfs2_zero_extend_get_range()
881 zero_clusters = num_clusters; in ocfs2_zero_extend_get_range()
887 zero_cpos += num_clusters; in ocfs2_zero_extend_get_range()
896 &p_cpos, &num_clusters, in ocfs2_zero_extend_get_range()
907 zero_clusters += num_clusters; in ocfs2_zero_extend_get_range()
/linux/drivers/cpufreq/
H A Dtegra194-cpufreq.c69 unsigned int num_clusters; member
195 .num_clusters = 3,
203 .num_clusters = 1,
510 if (clusterid >= data->soc->num_clusters || !data->bpmp_luts[clusterid]) in tegra194_cpufreq_init()
604 .num_clusters = 4,
687 int num_cpus = data->soc->maxcpus_per_cluster * data->soc->num_clusters; in tegra194_cpufreq_store_physids()
722 if (soc->ops && soc->maxcpus_per_cluster && soc->num_clusters && soc->refclk_delta_min) { in tegra194_cpufreq_probe()
729 data->bpmp_luts = devm_kcalloc(&pdev->dev, data->soc->num_clusters, in tegra194_cpufreq_probe()
741 data->cpu_data = devm_kcalloc(&pdev->dev, data->soc->num_clusters * in tegra194_cpufreq_probe()
761 for (i = 0; i < data->soc->num_clusters; i++) { in tegra194_cpufreq_probe()
/linux/fs/ext4/
H A Dballoc.c92 unsigned base_clusters, num_clusters; in ext4_num_overhead_clusters() local
104 num_clusters = base_clusters; in ext4_num_overhead_clusters()
121 num_clusters += itbl_cluster_end - itbl_cluster_start + 1; in ext4_num_overhead_clusters()
124 num_clusters--; in ext4_num_overhead_clusters()
142 num_clusters++; in ext4_num_overhead_clusters()
156 num_clusters++; in ext4_num_overhead_clusters()
159 return num_clusters; in ext4_num_overhead_clusters()
/linux/sound/soc/sdca/
H A Dsdca_functions.c2006 int num_clusters; in find_sdca_clusters() local
2009 num_clusters = fwnode_property_count_u32(function_node, "mipi-sdca-cluster-id-list"); in find_sdca_clusters()
2010 if (!num_clusters || num_clusters == -EINVAL) { in find_sdca_clusters()
2012 } else if (num_clusters < 0) { in find_sdca_clusters()
2014 function_node, num_clusters); in find_sdca_clusters()
2015 return num_clusters; in find_sdca_clusters()
2016 } else if (num_clusters > SDCA_MAX_CLUSTER_COUNT) { in find_sdca_clusters()
2021 clusters = devm_kcalloc(dev, num_clusters, sizeof(*clusters), GFP_KERNEL); in find_sdca_clusters()
2025 u32 *cluster_list __free(kfree) = kcalloc(num_clusters, sizeof(*cluster_list), in find_sdca_clusters()
2031 cluster_list, num_clusters); in find_sdca_clusters()
[all …]
/linux/include/linux/soc/qcom/
H A Dsocinfo.h65 __le32 num_clusters; member
/linux/drivers/soc/qcom/
H A Dsocinfo.c205 u32 num_clusters; member
721 qcom_socinfo->info.num_clusters = __le32_to_cpu(info->num_clusters); in socinfo_debugfs_init()
728 &qcom_socinfo->info.num_clusters); in socinfo_debugfs_init()
/linux/drivers/gpu/drm/imagination/
H A Dpvr_drv.c278 u32 num_clusters = 1; in rogue_get_num_phantoms() local
280 PVR_FEATURE_VALUE(pvr_dev, num_clusters, &num_clusters); in rogue_get_num_phantoms()
282 return ROGUE_REQ_NUM_PHANTOMS(num_clusters); in rogue_get_num_phantoms()
H A Dpvr_device_info.h101 u64 num_clusters; member

12