Home
last modified time | relevance | path

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

/linux/fs/exfat/
H A Dfatent.c153 unsigned int num_clusters = 0; in __exfat_free_cluster() local
197 num_clusters++; in __exfat_free_cluster()
198 } while (num_clusters < p_chain->size); in __exfat_free_cluster()
219 num_clusters++; in __exfat_free_cluster()
224 if (num_clusters >= sbi->num_clusters - EXFAT_FIRST_CLUSTER) { in __exfat_free_cluster()
236 sbi->used_clusters -= num_clusters; in __exfat_free_cluster()
360 if (hint_clu != sbi->num_clusters) in exfat_alloc_cluster()
416 if (hint_clu >= sbi->num_clusters) { in exfat_alloc_cluster()
455 for (i = EXFAT_FIRST_CLUSTER; i < sbi->num_clusters; i++) { in exfat_count_num_clusters()
H A Dfile.c22 unsigned int num_clusters, new_num_clusters, last_clu; in exfat_cont_expand() local
32 num_clusters = EXFAT_B_TO_CLU(exfat_ondisk_size(inode), sbi); in exfat_cont_expand()
35 if (new_num_clusters == num_clusters) in exfat_cont_expand()
38 if (num_clusters) { in exfat_cont_expand()
39 exfat_chain_set(&clu, ei->start_clu, num_clusters, ei->flags); in exfat_cont_expand()
53 ret = exfat_alloc_cluster(inode, new_num_clusters - num_clusters, in exfat_cont_expand()
59 if (num_clusters) { in exfat_cont_expand()
61 if (exfat_chain_cont_cluster(sb, ei->start_clu, num_clusters)) in exfat_cont_expand()
169 unsigned int num_clusters = in __exfat_truncate() local
177 clu.dir += num_clusters; in __exfat_truncate()
[all …]
H A Dballoc.c202 for (i = EXFAT_FIRST_CLUSTER; i < sbi->num_clusters; in exfat_find_free_bitmap()
212 if (clu_free < sbi->num_clusters) in exfat_find_free_bitmap()
219 clu_base >= sbi->num_clusters) { in exfat_find_free_bitmap()
274 if (clu_start >= sbi->num_clusters || range->len < sbi->cluster_size) in exfat_trim_fs()
277 if (clu_end >= sbi->num_clusters) in exfat_trim_fs()
278 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()
154 if (clu_offset == num_clusters) in exfat_map_cluster()
225 num_clusters); in exfat_map_cluster()
233 num_clusters += num_to_be_allocated; in exfat_map_cluster()
H A Dsuper.c81 buf->f_blocks = sbi->num_clusters - 2; /* clu 0 & 1 */ in exfat_statfs()
524 sbi->num_clusters = le32_to_cpu(p_boot->clu_count) + in exfat_read_boot_sector()
538 (u64)sbi->num_clusters * 4) { in exfat_read_boot_sector()
556 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.h252 unsigned int num_clusters; /* num of clusters in volume */ member
425 return clus >= EXFAT_FIRST_CLUSTER && clus < sbi->num_clusters; in is_valid_cluster()
H A Dcache.c242 unsigned int limit = sbi->num_clusters; in exfat_get_cluster()
H A Ddir.c90 (u64)EXFAT_CLU_TO_DEN(sbi->num_clusters, sbi)); in exfat_readdir()
/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()
536 if (num_clusters) in ocfs2_xattr_get_clusters()
537 *num_clusters = le16_to_cpu(rec->e_leaf_clusters) - coff; in ocfs2_xattr_get_clusters()
541 u32 *p_cluster, u32 *num_clusters, in ocfs2_xattr_get_clusters()
594 if (num_clusters)
595 *num_clusters = ocfs2_rec_clusters(el, rec) - coff; in ocfs2_get_clusters()
606 u32 *p_cluster, u32 *num_clusters, in ocfs2_get_clusters()
518 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
531 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
596 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 Drefcounttree.c58 u32 *num_clusters,
2821 * num_clusters in data_tree "et" and change the refcount for the old
2825 * 1. since we may split the old tree, so we at most will need num_clusters + 2
2831 u32 p_cluster, u32 num_clusters, in ocfs2_lock_refcount_allocators() argument
2848 if (num_free_extents < num_clusters + 2) in ocfs2_lock_refcount_allocators()
2855 p_cluster, num_clusters, in ocfs2_lock_refcount_allocators()
2871 ret = ocfs2_reserve_clusters(OCFS2_SB(sb), num_clusters, in ocfs2_lock_refcount_allocators()
3139 u32 cpos, u32 num_clusters)
3148 end = start + (num_clusters << OCFS2_SB(sb)->s_clustersize_bits) - 1; in ocfs2_cow_sync_writeback()
3159 u32 *num_clusters,
3142 ocfs2_cow_sync_writeback(struct super_block * sb,struct inode * inode,u32 cpos,u32 num_clusters) ocfs2_cow_sync_writeback() argument
3162 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
3172 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
3325 u32 p_cluster, num_clusters; ocfs2_replace_cow() local
3455 u32 p_cluster, num_clusters; ocfs2_refcount_cow() local
3487 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
3509 u32 p_cluster, num_clusters; ocfs2_refcounted_xattr_delete_need() local
3652 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
3770 u32 cpos, num_clusters, clusters, p_cluster; ocfs2_attach_refcount_tree() local
3865 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
3972 u32 p_cluster, num_clusters, clusters, cpos; ocfs2_duplicate_extent_list() local
4505 u32 p_cluster, num_clusters, slast, spos, tpos, remapped_clus = 0; ocfs2_reflink_remap_extent() local
[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 Dxattr.c1109 u32 cpos, p_cluster, num_clusters, bpc, clusters; in ocfs2_xattr_get_value_outside() local
1124 &num_clusters, el, NULL); in ocfs2_xattr_get_value_outside()
1132 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in ocfs2_xattr_get_value_outside()
1150 cpos += num_clusters; in ocfs2_xattr_get_value_outside()
1358 u32 p_cluster, num_clusters; in __ocfs2_xattr_set_value_outside() local
1370 &num_clusters, &xv->xr_list, in __ocfs2_xattr_set_value_outside()
1381 for (i = 0; i < num_clusters * bpc; i++, blkno++) { in __ocfs2_xattr_set_value_outside()
1417 cpos += num_clusters; in __ocfs2_xattr_set_value_outside()
2331 u32 p_cluster, num_clusters; in ocfs2_lock_xattr_remove_allocators() local
2336 &num_clusters, in ocfs2_lock_xattr_remove_allocators()
3691 ocfs2_xattr_get_rec(struct inode * inode,u32 name_hash,u64 * p_blkno,u32 * e_cpos,u32 * num_clusters,struct ocfs2_extent_list * el) ocfs2_xattr_get_rec() argument
3820 ocfs2_xattr_bucket_find(struct inode * inode,int name_index,const char * name,u32 name_hash,u64 p_blkno,u32 first_hash,u32 num_clusters,struct ocfs2_xattr_search * xs) ocfs2_xattr_bucket_find() argument
3937 u32 first_hash, num_clusters = 0; ocfs2_xattr_index_block_find() local
4092 u32 name_hash = UINT_MAX, e_cpos = 0, num_clusters = 0; ocfs2_iterate_xattr_index_block() local
4505 ocfs2_mv_xattr_bucket_cross_cluster(struct inode * inode,handle_t * handle,struct ocfs2_xattr_bucket * first,struct ocfs2_xattr_bucket * target,u64 new_blkno,u32 num_clusters,u32 * first_hash) ocfs2_mv_xattr_bucket_cross_cluster() argument
5092 ocfs2_add_new_xattr_cluster(struct inode * inode,struct buffer_head * root_bh,struct ocfs2_xattr_bucket * first,struct ocfs2_xattr_bucket * target,u32 * num_clusters,u32 prev_cpos,int * extend,struct ocfs2_xattr_set_ctxt * ctxt) ocfs2_add_new_xattr_cluster() argument
5190 ocfs2_extend_xattr_bucket(struct inode * inode,handle_t * handle,struct ocfs2_xattr_bucket * first,u64 target_blk,u32 num_clusters) ocfs2_extend_xattr_bucket() argument
5276 u32 e_cpos, num_clusters; ocfs2_add_new_xattr_bucket() local
5765 u32 p_cluster, num_clusters; ocfs2_prepare_refcount_xattr() local
5892 u32 cpos, p_cluster, num_clusters; ocfs2_xattr_value_attach_refcount() local
6348 u32 clusters, cpos, p_cluster, num_clusters; ocfs2_reflink_xattr_header() local
6917 u32 p_cluster, num_clusters, reflink_cpos = 0; ocfs2_reflink_xattr_buckets() local
[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 Dalloc.h173 unsigned int num_clusters);
H A Daops.c1372 unsigned int num_clusters = 0;
1384 if (num_clusters == 0) { in ocfs2_populate_write_desc()
1389 &num_clusters, &ext_flags); in ocfs2_populate_write_desc()
1447 num_clusters--; in ocfs2_populate_write_desc()
1386 unsigned int num_clusters = 0; ocfs2_populate_write_desc() local
H A Dlocalalloc.c213 unsigned int num_clusters) in ocfs2_local_alloc_seen_free_bits() argument
215 if (num_clusters >= osb->local_alloc_default_bits) { in ocfs2_local_alloc_seen_free_bits()
/linux/include/linux/soc/qcom/
H A Dsocinfo.h65 __le32 num_clusters; member
/linux/drivers/gpu/drm/imagination/
H A Dpvr_device_info.h101 u64 num_clusters; member
H A Dpvr_drv.c277 u32 num_clusters = 1; in rogue_get_num_phantoms() local
279 PVR_FEATURE_VALUE(pvr_dev, num_clusters, &num_clusters); in rogue_get_num_phantoms()
281 return ROGUE_REQ_NUM_PHANTOMS(num_clusters); in rogue_get_num_phantoms()
H A Dpvr_device_info.c157 FEATURE_MAPPING_VALUE(NUM_CLUSTERS, num_clusters),
H A Dpvr_fw.c442 WARN_ON(PVR_FEATURE_VALUE(pvr_dev, num_clusters, in fw_runtime_cfg_init()