Searched refs:bits_wanted (Results 1 - 7 of 7) sorted by relevance

/linux-4.1.27/fs/ocfs2/
H A Dlocalalloc.h48 u32 bits_wanted,
54 u32 bits_wanted,
H A Dsuballoc.c101 u32 bits_wanted, u32 min_bits,
106 u32 bits_wanted, u32 min_bits,
111 u32 bits_wanted,
132 u32 bits_wanted, u64 max_block,
804 u32 bits_wanted = ac->ac_bits_wanted; ocfs2_reserve_suballoc_bits() local
846 if (bits_wanted > free_bits) { ocfs2_reserve_suballoc_bits()
849 trace_ocfs2_reserve_suballoc_bits_nospc(bits_wanted, ocfs2_reserve_suballoc_bits()
857 slot, bits_wanted, free_bits); ocfs2_reserve_suballoc_bits()
873 BUG_ON(bits_wanted > ocfs2_reserve_suballoc_bits()
1179 u32 bits_wanted, u64 max_block, ocfs2_reserve_clusters_with_limit()
1192 (*ac)->ac_bits_wanted = bits_wanted; ocfs2_reserve_clusters_with_limit()
1197 ocfs2_alloc_should_use_local(osb, bits_wanted)) { ocfs2_reserve_clusters_with_limit()
1199 bits_wanted, ocfs2_reserve_clusters_with_limit()
1229 u32 bits_wanted, ocfs2_reserve_clusters()
1232 return ocfs2_reserve_clusters_with_limit(osb, bits_wanted, 0, ocfs2_reserve_clusters()
1283 unsigned int bits_wanted, ocfs2_block_group_find_clear_bits()
1323 if (found == bits_wanted) { ocfs2_block_group_find_clear_bits()
1483 u32 bits_wanted, u32 min_bits, ocfs2_cluster_group_search()
1517 group_bh, bits_wanted, ocfs2_cluster_group_search()
1554 u32 bits_wanted, u32 min_bits, ocfs2_block_group_search()
1567 group_bh, bits_wanted, ocfs2_block_group_search()
1677 u32 bits_wanted, ocfs2_search_one_group()
1696 ret = ac->ac_group_search(alloc_inode, group_bh, bits_wanted, min_bits, ocfs2_search_one_group()
1744 u32 bits_wanted, ocfs2_search_chain()
1762 bits_wanted, chain); ocfs2_search_chain()
1777 bits_wanted, min_bits, ocfs2_search_chain()
1882 /* will give out up to bits_wanted contiguous bits. */ ocfs2_claim_suballoc_bits()
1885 u32 bits_wanted, ocfs2_claim_suballoc_bits()
1897 BUG_ON(bits_wanted > (ac->ac_bits_wanted - ac->ac_bits_given)); ocfs2_claim_suballoc_bits()
1924 status = ocfs2_search_one_group(ac, handle, bits_wanted, ocfs2_claim_suballoc_bits()
1939 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, ocfs2_claim_suballoc_bits()
1964 status = ocfs2_search_chain(ac, handle, bits_wanted, min_bits, ocfs2_claim_suballoc_bits()
1995 u32 bits_wanted, ocfs2_claim_metadata()
2005 BUG_ON(ac->ac_bits_wanted < (ac->ac_bits_given + bits_wanted)); ocfs2_claim_metadata()
2010 bits_wanted, ocfs2_claim_metadata()
2310 unsigned int bits_wanted = max_clusters; __ocfs2_claim_clusters() local
2325 bits_wanted, __ocfs2_claim_clusters()
2341 if (bits_wanted > (osb->bitmap_cpg - 1)) __ocfs2_claim_clusters()
2342 bits_wanted = osb->bitmap_cpg - 1; __ocfs2_claim_clusters()
2346 bits_wanted, __ocfs2_claim_clusters()
2379 unsigned int bits_wanted = ac->ac_bits_wanted - ac->ac_bits_given; ocfs2_claim_clusters() local
2382 bits_wanted, cluster_start, num_clusters); ocfs2_claim_clusters()
1178 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
1228 ocfs2_reserve_clusters(struct ocfs2_super *osb, u32 bits_wanted, struct ocfs2_alloc_context **ac) ocfs2_reserve_clusters() argument
1281 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
1481 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
1552 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
1675 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
1742 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
1883 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
1993 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
H A Dsuballoc.h32 u32, /* bits_wanted */
86 u32 bits_wanted,
107 u32 bits_wanted,
H A Dlocalalloc.c621 * make sure we've got at least bits_wanted contiguous bits in the
628 u32 bits_wanted, ocfs2_reserve_local_alloc_bits()
656 (bits_wanted > osb->local_alloc_bits)) { ocfs2_reserve_local_alloc_bits()
680 if (bits_wanted > free_bits) { ocfs2_reserve_local_alloc_bits()
702 if (bits_wanted > free_bits) ocfs2_reserve_local_alloc_bits()
721 bits_wanted, osb->slot_num, status); ocfs2_reserve_local_alloc_bits()
731 u32 bits_wanted, ocfs2_claim_local_alloc_bits()
747 start = ocfs2_local_alloc_find_clear_bits(osb, alloc, &bits_wanted, ocfs2_claim_local_alloc_bits()
758 *num_bits = bits_wanted; ocfs2_claim_local_alloc_bits()
770 bits_wanted); ocfs2_claim_local_alloc_bits()
772 while(bits_wanted--) ocfs2_claim_local_alloc_bits()
627 ocfs2_reserve_local_alloc_bits(struct ocfs2_super *osb, u32 bits_wanted, struct ocfs2_alloc_context *ac) ocfs2_reserve_local_alloc_bits() argument
728 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
/linux-4.1.27/arch/ia64/hp/common/
H A Dsba_iommu.c475 * @bits_wanted: number of entries we need.
484 unsigned long bits_wanted, int use_hint) sba_search_bitmap()
518 bits_wanted = 1UL << get_iovp_order(bits_wanted << iovp_shift); sba_search_bitmap()
520 if (likely(bits_wanted == 1)) { sba_search_bitmap()
527 ioc->res_bitshift = bitshiftcnt + bits_wanted; sba_search_bitmap()
535 if (likely(bits_wanted <= BITS_PER_LONG/2)) { sba_search_bitmap()
542 unsigned long o = 1 << get_iovp_order(bits_wanted << iovp_shift); sba_search_bitmap()
546 base_mask = RESMAP_MASK(bits_wanted); sba_search_bitmap()
556 ret = iommu_is_span_boundary(tpide, bits_wanted, sba_search_bitmap()
562 ioc->res_bitshift = bitshiftcnt + bits_wanted; sba_search_bitmap()
576 qwords = bits_wanted >> 6; /* /64 */ sba_search_bitmap()
577 bits = bits_wanted - (qwords * BITS_PER_LONG); sba_search_bitmap()
583 ret = iommu_is_span_boundary(tpide, bits_wanted, sba_search_bitmap()
483 sba_search_bitmap(struct ioc *ioc, struct device *dev, unsigned long bits_wanted, int use_hint) sba_search_bitmap() argument
/linux-4.1.27/lib/
H A Ddecompress_bunzip2.c115 static unsigned int INIT get_bits(struct bunzip_data *bd, char bits_wanted) get_bits() argument
122 while (bd->inbufBitCount < bits_wanted) { get_bits()
138 bits_wanted -= bd->inbufBitCount; get_bits()
139 bits <<= bits_wanted; get_bits() local
147 bd->inbufBitCount -= bits_wanted; get_bits()
148 bits |= (bd->inbufBits >> bd->inbufBitCount)&((1 << bits_wanted)-1); get_bits()
/linux-4.1.27/drivers/parisc/
H A Dsba_iommu.c329 * @bits_wanted: number of entries we need.
337 unsigned long bits_wanted) sba_search_bitmap()
356 if (bits_wanted > (BITS_PER_LONG/2)) { sba_search_bitmap()
360 ret = iommu_is_span_boundary(tpide, bits_wanted, sba_search_bitmap()
364 *res_ptr = RESMAP_MASK(bits_wanted); sba_search_bitmap()
379 unsigned long o = 1 << get_order(bits_wanted << PAGE_SHIFT); sba_search_bitmap()
387 mask = RESMAP_MASK(bits_wanted) >> bitshiftcnt; sba_search_bitmap()
395 ret = iommu_is_span_boundary(tpide, bits_wanted, sba_search_bitmap()
406 mask = RESMAP_MASK(bits_wanted); sba_search_bitmap()
412 ioc->res_bitshift = bitshiftcnt + bits_wanted; sba_search_bitmap()
336 sba_search_bitmap(struct ioc *ioc, struct device *dev, unsigned long bits_wanted) sba_search_bitmap() argument

Completed in 555 milliseconds