/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | suballoc.c | 85 u32 bits_wanted, u32 min_bits, 90 u32 bits_wanted, u32 min_bits, 95 u32 bits_wanted, 116 u32 bits_wanted, u64 max_block, 772 u32 bits_wanted = ac->ac_bits_wanted; in ocfs2_reserve_suballoc_bits() local 814 if (bits_wanted > free_bits) { in ocfs2_reserve_suballoc_bits() 817 trace_ocfs2_reserve_suballoc_bits_nospc(bits_wanted, in ocfs2_reserve_suballoc_bits() 825 slot, bits_wanted, free_bits); in ocfs2_reserve_suballoc_bits() 841 BUG_ON(bits_wanted > in ocfs2_reserve_suballoc_bits() 1144 u32 bits_wanted, u6 in ocfs2_reserve_clusters_with_limit() 1143 ocfs2_reserve_clusters_with_limit(struct ocfs2_super *osb, u32 bits_wanted, u64 max_block, int flags, struct ocfs2_alloc_context **ac) ocfs2_reserve_clusters_with_limit() argument 1221 ocfs2_reserve_clusters(struct ocfs2_super *osb, u32 bits_wanted, struct ocfs2_alloc_context **ac) ocfs2_reserve_clusters() argument 1277 ocfs2_block_group_find_clear_bits(struct ocfs2_super *osb, struct buffer_head *bg_bh, unsigned int bits_wanted, unsigned int total_bits, struct ocfs2_suballoc_result *res) ocfs2_block_group_find_clear_bits() argument 1476 ocfs2_cluster_group_search(struct inode *inode, struct buffer_head *group_bh, u32 bits_wanted, u32 min_bits, u64 max_block, struct ocfs2_suballoc_result *res) ocfs2_cluster_group_search() argument 1547 ocfs2_block_group_search(struct inode *inode, struct buffer_head *group_bh, u32 bits_wanted, u32 min_bits, u64 max_block, struct ocfs2_suballoc_result *res) ocfs2_block_group_search() argument 1670 ocfs2_search_one_group(struct ocfs2_alloc_context *ac, handle_t *handle, u32 bits_wanted, u32 min_bits, struct ocfs2_suballoc_result *res, u16 *bits_left) ocfs2_search_one_group() argument 1737 ocfs2_search_chain(struct ocfs2_alloc_context *ac, handle_t *handle, u32 bits_wanted, u32 min_bits, struct ocfs2_suballoc_result *res, u16 *bits_left) ocfs2_search_chain() argument 1878 ocfs2_claim_suballoc_bits(struct ocfs2_alloc_context *ac, handle_t *handle, u32 bits_wanted, u32 min_bits, struct ocfs2_suballoc_result *res) ocfs2_claim_suballoc_bits() argument 1989 ocfs2_claim_metadata(handle_t *handle, struct ocfs2_alloc_context *ac, u32 bits_wanted, u64 *suballoc_loc, u16 *suballoc_bit_start, unsigned int *num_bits, u64 *blkno_start) ocfs2_claim_metadata() argument 2306 unsigned int bits_wanted = max_clusters; __ocfs2_claim_clusters() local 2375 unsigned int bits_wanted = ac->ac_bits_wanted - ac->ac_bits_given; ocfs2_claim_clusters() local [all...] |
H A D | localalloc.h | 34 u32 bits_wanted, 40 u32 bits_wanted,
|
H A D | localalloc.c | 610 * make sure we've got at least bits_wanted contiguous bits in the 617 u32 bits_wanted, in ocfs2_reserve_local_alloc_bits() 645 (bits_wanted > osb->local_alloc_bits)) { in ocfs2_reserve_local_alloc_bits() 667 if (bits_wanted > free_bits) { in ocfs2_reserve_local_alloc_bits() 689 if (bits_wanted > free_bits) in ocfs2_reserve_local_alloc_bits() 708 bits_wanted, osb->slot_num, status); in ocfs2_reserve_local_alloc_bits() 718 u32 bits_wanted, in ocfs2_claim_local_alloc_bits() 734 start = ocfs2_local_alloc_find_clear_bits(osb, alloc, &bits_wanted, in ocfs2_claim_local_alloc_bits() 745 *num_bits = bits_wanted; in ocfs2_claim_local_alloc_bits() 757 bits_wanted); in ocfs2_claim_local_alloc_bits() 616 ocfs2_reserve_local_alloc_bits(struct ocfs2_super *osb, u32 bits_wanted, struct ocfs2_alloc_context *ac) ocfs2_reserve_local_alloc_bits() argument 715 ocfs2_claim_local_alloc_bits(struct ocfs2_super *osb, handle_t *handle, struct ocfs2_alloc_context *ac, u32 bits_wanted, u32 *bit_off, u32 *num_bits) ocfs2_claim_local_alloc_bits() argument [all...] |
H A D | suballoc.h | 18 u32, /* bits_wanted */ 72 u32 bits_wanted, 93 u32 bits_wanted,
|
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | suballoc.c | 83 u32 bits_wanted, u32 min_bits, 88 u32 bits_wanted, u32 min_bits, 93 u32 bits_wanted, 114 u32 bits_wanted, u64 max_block, 770 u32 bits_wanted = ac->ac_bits_wanted; in ocfs2_reserve_suballoc_bits() local 812 if (bits_wanted > free_bits) { in ocfs2_reserve_suballoc_bits() 815 trace_ocfs2_reserve_suballoc_bits_nospc(bits_wanted, in ocfs2_reserve_suballoc_bits() 823 slot, bits_wanted, free_bits); in ocfs2_reserve_suballoc_bits() 839 BUG_ON(bits_wanted > in ocfs2_reserve_suballoc_bits() 1142 u32 bits_wanted, u6 in ocfs2_reserve_clusters_with_limit() 1141 ocfs2_reserve_clusters_with_limit(struct ocfs2_super *osb, u32 bits_wanted, u64 max_block, int flags, struct ocfs2_alloc_context **ac) ocfs2_reserve_clusters_with_limit() argument 1219 ocfs2_reserve_clusters(struct ocfs2_super *osb, u32 bits_wanted, struct ocfs2_alloc_context **ac) ocfs2_reserve_clusters() argument 1275 ocfs2_block_group_find_clear_bits(struct ocfs2_super *osb, struct buffer_head *bg_bh, unsigned int bits_wanted, unsigned int total_bits, struct ocfs2_suballoc_result *res) ocfs2_block_group_find_clear_bits() argument 1474 ocfs2_cluster_group_search(struct inode *inode, struct buffer_head *group_bh, u32 bits_wanted, u32 min_bits, u64 max_block, struct ocfs2_suballoc_result *res) ocfs2_cluster_group_search() argument 1545 ocfs2_block_group_search(struct inode *inode, struct buffer_head *group_bh, u32 bits_wanted, u32 min_bits, u64 max_block, struct ocfs2_suballoc_result *res) ocfs2_block_group_search() argument 1668 ocfs2_search_one_group(struct ocfs2_alloc_context *ac, handle_t *handle, u32 bits_wanted, u32 min_bits, struct ocfs2_suballoc_result *res, u16 *bits_left) ocfs2_search_one_group() argument 1735 ocfs2_search_chain(struct ocfs2_alloc_context *ac, handle_t *handle, u32 bits_wanted, u32 min_bits, struct ocfs2_suballoc_result *res, u16 *bits_left) ocfs2_search_chain() argument 1876 ocfs2_claim_suballoc_bits(struct ocfs2_alloc_context *ac, handle_t *handle, u32 bits_wanted, u32 min_bits, struct ocfs2_suballoc_result *res) ocfs2_claim_suballoc_bits() argument 1987 ocfs2_claim_metadata(handle_t *handle, struct ocfs2_alloc_context *ac, u32 bits_wanted, u64 *suballoc_loc, u16 *suballoc_bit_start, unsigned int *num_bits, u64 *blkno_start) ocfs2_claim_metadata() argument 2304 unsigned int bits_wanted = max_clusters; __ocfs2_claim_clusters() local 2373 unsigned int bits_wanted = ac->ac_bits_wanted - ac->ac_bits_given; ocfs2_claim_clusters() local [all...] |
H A D | localalloc.h | 32 u32 bits_wanted, 38 u32 bits_wanted,
|
H A D | localalloc.c | 608 * make sure we've got at least bits_wanted contiguous bits in the 615 u32 bits_wanted, in ocfs2_reserve_local_alloc_bits() 643 (bits_wanted > osb->local_alloc_bits)) { in ocfs2_reserve_local_alloc_bits() 665 if (bits_wanted > free_bits) { in ocfs2_reserve_local_alloc_bits() 687 if (bits_wanted > free_bits) in ocfs2_reserve_local_alloc_bits() 706 bits_wanted, osb->slot_num, status); in ocfs2_reserve_local_alloc_bits() 716 u32 bits_wanted, in ocfs2_claim_local_alloc_bits() 732 start = ocfs2_local_alloc_find_clear_bits(osb, alloc, &bits_wanted, in ocfs2_claim_local_alloc_bits() 743 *num_bits = bits_wanted; in ocfs2_claim_local_alloc_bits() 755 bits_wanted); in ocfs2_claim_local_alloc_bits() 614 ocfs2_reserve_local_alloc_bits(struct ocfs2_super *osb, u32 bits_wanted, struct ocfs2_alloc_context *ac) ocfs2_reserve_local_alloc_bits() argument 713 ocfs2_claim_local_alloc_bits(struct ocfs2_super *osb, handle_t *handle, struct ocfs2_alloc_context *ac, u32 bits_wanted, u32 *bit_off, u32 *num_bits) ocfs2_claim_local_alloc_bits() argument [all...] |
H A D | suballoc.h | 16 u32, /* bits_wanted */ 70 u32 bits_wanted, 91 u32 bits_wanted,
|
/kernel/linux/linux-5.10/lib/ |
H A D | decompress_bunzip2.c | 116 static unsigned int INIT get_bits(struct bunzip_data *bd, char bits_wanted) in get_bits() argument 123 while (bd->inbufBitCount < bits_wanted) { in get_bits() 139 bits_wanted -= bd->inbufBitCount; in get_bits() 140 bits <<= bits_wanted; in get_bits() local 148 bd->inbufBitCount -= bits_wanted; in get_bits() 149 bits |= (bd->inbufBits >> bd->inbufBitCount)&((1 << bits_wanted)-1); in get_bits()
|
/kernel/linux/linux-6.6/lib/ |
H A D | decompress_bunzip2.c | 116 static unsigned int INIT get_bits(struct bunzip_data *bd, char bits_wanted) in get_bits() argument 123 while (bd->inbufBitCount < bits_wanted) { in get_bits() 139 bits_wanted -= bd->inbufBitCount; in get_bits() 140 bits <<= bits_wanted; in get_bits() local 148 bd->inbufBitCount -= bits_wanted; in get_bits() 149 bits |= (bd->inbufBits >> bd->inbufBitCount)&((1 << bits_wanted)-1); in get_bits()
|
/kernel/linux/linux-5.10/arch/ia64/hp/common/ |
H A D | sba_iommu.c | 467 * @bits_wanted: number of entries we need. 476 unsigned long bits_wanted, int use_hint) in sba_search_bitmap() 509 bits_wanted = 1UL << get_iovp_order(bits_wanted << iovp_shift); in sba_search_bitmap() 511 if (likely(bits_wanted == 1)) { in sba_search_bitmap() 518 ioc->res_bitshift = bitshiftcnt + bits_wanted; in sba_search_bitmap() 526 if (likely(bits_wanted <= BITS_PER_LONG/2)) { in sba_search_bitmap() 533 unsigned long o = 1 << get_iovp_order(bits_wanted << iovp_shift); in sba_search_bitmap() 537 base_mask = RESMAP_MASK(bits_wanted); in sba_search_bitmap() 547 ret = iommu_is_span_boundary(tpide, bits_wanted, in sba_search_bitmap() 475 sba_search_bitmap(struct ioc *ioc, struct device *dev, unsigned long bits_wanted, int use_hint) sba_search_bitmap() argument [all...] |
/kernel/linux/linux-6.6/arch/ia64/hp/common/ |
H A D | sba_iommu.c | 467 * @bits_wanted: number of entries we need. 476 unsigned long bits_wanted, int use_hint) in sba_search_bitmap() 509 bits_wanted = 1UL << get_iovp_order(bits_wanted << iovp_shift); in sba_search_bitmap() 511 if (likely(bits_wanted == 1)) { in sba_search_bitmap() 518 ioc->res_bitshift = bitshiftcnt + bits_wanted; in sba_search_bitmap() 526 if (likely(bits_wanted <= BITS_PER_LONG/2)) { in sba_search_bitmap() 533 unsigned long o = 1 << get_iovp_order(bits_wanted << iovp_shift); in sba_search_bitmap() 537 base_mask = RESMAP_MASK(bits_wanted); in sba_search_bitmap() 547 ret = iommu_is_span_boundary(tpide, bits_wanted, in sba_search_bitmap() 475 sba_search_bitmap(struct ioc *ioc, struct device *dev, unsigned long bits_wanted, int use_hint) sba_search_bitmap() argument [all...] |
/kernel/linux/linux-5.10/drivers/parisc/ |
H A D | sba_iommu.c | 329 * @bits_wanted: number of entries we need. 337 unsigned long bits_wanted) in sba_search_bitmap() 355 if (bits_wanted > (BITS_PER_LONG/2)) { in sba_search_bitmap() 359 ret = iommu_is_span_boundary(tpide, bits_wanted, in sba_search_bitmap() 363 *res_ptr = RESMAP_MASK(bits_wanted); in sba_search_bitmap() 378 unsigned long o = 1 << get_order(bits_wanted << PAGE_SHIFT); in sba_search_bitmap() 386 mask = RESMAP_MASK(bits_wanted) >> bitshiftcnt; in sba_search_bitmap() 394 ret = iommu_is_span_boundary(tpide, bits_wanted, in sba_search_bitmap() 405 mask = RESMAP_MASK(bits_wanted); in sba_search_bitmap() 411 ioc->res_bitshift = bitshiftcnt + bits_wanted; in sba_search_bitmap() 336 sba_search_bitmap(struct ioc *ioc, struct device *dev, unsigned long bits_wanted) sba_search_bitmap() argument [all...] |
/kernel/linux/linux-6.6/drivers/parisc/ |
H A D | sba_iommu.c | 334 * @bits_wanted: number of entries we need. 342 unsigned long bits_wanted) in sba_search_bitmap() 360 if (bits_wanted > (BITS_PER_LONG/2)) { in sba_search_bitmap() 364 ret = iommu_is_span_boundary(tpide, bits_wanted, in sba_search_bitmap() 368 *res_ptr = RESMAP_MASK(bits_wanted); in sba_search_bitmap() 383 unsigned long o = 1 << get_order(bits_wanted << PAGE_SHIFT); in sba_search_bitmap() 391 mask = RESMAP_MASK(bits_wanted) >> bitshiftcnt; in sba_search_bitmap() 399 ret = iommu_is_span_boundary(tpide, bits_wanted, in sba_search_bitmap() 410 mask = RESMAP_MASK(bits_wanted); in sba_search_bitmap() 416 ioc->res_bitshift = bitshiftcnt + bits_wanted; in sba_search_bitmap() 341 sba_search_bitmap(struct ioc *ioc, struct device *dev, unsigned long bits_wanted) sba_search_bitmap() argument [all...] |