/kernel/linux/linux-5.10/include/rdma/ |
H A D | iba.h | 56 #define _IBA_SET(field_struct, field_offset, field_mask, num_bits, ptr, value) \ 59 _iba_set##num_bits((void *)_ptr + (field_offset), field_mask, \ 64 #define _IBA_GET_MEM_PTR(field_struct, field_offset, type, num_bits, ptr) \ 72 #define _IBA_SET_MEM(field_struct, field_offset, type, num_bits, ptr, in, \ 76 WARN_ON(bytes * 8 > num_bits); \ 79 type, num_bits, ptr), \ 84 #define _IBA_GET(field_struct, field_offset, field_mask, num_bits, ptr) \ 87 (u##num_bits) FIELD_GET( \ 88 field_mask, _iba_get##num_bits((const void *)_ptr + \ 93 #define _IBA_GET_MEM(field_struct, field_offset, type, num_bits, pt [all...] |
/kernel/linux/linux-6.6/include/rdma/ |
H A D | iba.h | 56 #define _IBA_SET(field_struct, field_offset, field_mask, num_bits, ptr, value) \ 59 _iba_set##num_bits((void *)_ptr + (field_offset), field_mask, \ 64 #define _IBA_GET_MEM_PTR(field_struct, field_offset, type, num_bits, ptr) \ 72 #define _IBA_SET_MEM(field_struct, field_offset, type, num_bits, ptr, in, \ 76 WARN_ON(bytes * 8 > num_bits); \ 79 type, num_bits, ptr), \ 84 #define _IBA_GET(field_struct, field_offset, field_mask, num_bits, ptr) \ 87 (u##num_bits) FIELD_GET( \ 88 field_mask, _iba_get##num_bits((const void *)_ptr + \ 93 #define _IBA_GET_MEM(field_struct, field_offset, type, num_bits, pt [all...] |
/kernel/linux/linux-6.6/fs/ntfs3/lib/ |
H A D | decompress_common.h | 82 /* Ensure the bit buffer variable for the bitstream contains at least @num_bits 84 * may be called on the bitstream to peek or remove up to @num_bits bits. Note 85 * that @num_bits must be <= 16. 88 u32 num_bits) in bitstream_ensure_bits() 90 if (is->bitsleft < num_bits) { in bitstream_ensure_bits() 100 /* Return the next @num_bits bits from the bitstream, without removing them. 101 * There must be at least @num_bits remaining in the buffer variable, from a 105 bitstream_peek_bits(const struct input_bitstream *is, const u32 num_bits) in bitstream_peek_bits() argument 107 return (is->bitbuf >> 1) >> (sizeof(is->bitbuf) * 8 - num_bits - 1); in bitstream_peek_bits() 110 /* Remove @num_bits fro 87 bitstream_ensure_bits(struct input_bitstream *is, u32 num_bits) bitstream_ensure_bits() argument 115 bitstream_remove_bits(struct input_bitstream *is, u32 num_bits) bitstream_remove_bits() argument 126 bitstream_pop_bits(struct input_bitstream *is, u32 num_bits) bitstream_pop_bits() argument 136 bitstream_read_bits(struct input_bitstream *is, u32 num_bits) bitstream_read_bits() argument [all...] |
/kernel/linux/linux-5.10/tools/perf/bench/ |
H A D | find-bit-bench.c | 55 static int do_for_each_set_bit(unsigned int num_bits) in do_for_each_set_bit() argument 57 unsigned long *to_test = bitmap_alloc(num_bits); in do_for_each_set_bit() 69 for (set_bits = 1; set_bits <= num_bits; set_bits <<= 1) { in do_for_each_set_bit() 70 bitmap_zero(to_test, num_bits); in do_for_each_set_bit() 71 skip = num_bits / set_bits; in do_for_each_set_bit() 72 for (i = 0; i < num_bits; i += skip) in do_for_each_set_bit() 79 for_each_set_bit(bit, to_test, num_bits) in do_for_each_set_bit() 91 for (bit = 0; bit < num_bits; bit++) { in do_for_each_set_bit() 104 inner_iterations, set_bits, num_bits); in do_for_each_set_bit()
|
/kernel/linux/linux-6.6/tools/perf/bench/ |
H A D | find-bit-bench.c | 55 static int do_for_each_set_bit(unsigned int num_bits) in do_for_each_set_bit() argument 57 unsigned long *to_test = bitmap_zalloc(num_bits); in do_for_each_set_bit() 68 for (set_bits = 1; set_bits <= num_bits; set_bits <<= 1) { in do_for_each_set_bit() 69 bitmap_zero(to_test, num_bits); in do_for_each_set_bit() 70 skip = num_bits / set_bits; in do_for_each_set_bit() 71 for (i = 0; i < num_bits; i += skip) in do_for_each_set_bit() 81 for_each_set_bit(bit, to_test, num_bits) in do_for_each_set_bit() 95 for (bit = 0; bit < num_bits; bit++) { in do_for_each_set_bit() 108 inner_iterations, set_bits, num_bits); in do_for_each_set_bit()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/ |
H A D | tcm-sita.c | 49 * num_bits number of bits in bitmap 52 size_t num_bits) in r2l_b2t_1d() 58 *pos = num_bits - w; in r2l_b2t_1d() 60 while (search_count < num_bits) { in r2l_b2t_1d() 61 bit = find_next_bit(map, num_bits, *pos); in r2l_b2t_1d() 70 search_count = num_bits - bit + w; in r2l_b2t_1d() 84 * num_bits = size of bitmap 89 unsigned long *map, size_t num_bits, size_t slot_stride) in l2r_t2b() 104 while (curr_bit < num_bits) { in l2r_t2b() 105 *pos = bitmap_find_next_zero_area(map, num_bits, curr_bi in l2r_t2b() 51 r2l_b2t_1d(u16 w, unsigned long *pos, unsigned long *map, size_t num_bits) r2l_b2t_1d() argument 87 l2r_t2b(u16 w, u16 h, u16 a, s16 offset, unsigned long *pos, unsigned long slot_bytes, unsigned long *map, size_t num_bits, size_t slot_stride) l2r_t2b() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/omapdrm/ |
H A D | tcm-sita.c | 41 * num_bits number of bits in bitmap 44 size_t num_bits) in r2l_b2t_1d() 50 *pos = num_bits - w; in r2l_b2t_1d() 52 while (search_count < num_bits) { in r2l_b2t_1d() 53 bit = find_next_bit(map, num_bits, *pos); in r2l_b2t_1d() 62 search_count = num_bits - bit + w; in r2l_b2t_1d() 76 * num_bits = size of bitmap 81 unsigned long *map, size_t num_bits, size_t slot_stride) in l2r_t2b() 96 while (curr_bit < num_bits) { in l2r_t2b() 97 *pos = bitmap_find_next_zero_area(map, num_bits, curr_bi in l2r_t2b() 43 r2l_b2t_1d(u16 w, unsigned long *pos, unsigned long *map, size_t num_bits) r2l_b2t_1d() argument 79 l2r_t2b(u16 w, u16 h, u16 a, s16 offset, unsigned long *pos, unsigned long slot_bytes, unsigned long *map, size_t num_bits, size_t slot_stride) l2r_t2b() argument [all...] |
/kernel/linux/linux-6.6/arch/arm64/kvm/ |
H A D | trng.c | 27 u32 num_bits = smccc_get_arg1(vcpu); in kvm_trng_do_rnd() local 30 if (num_bits > 3 * size) { in kvm_trng_do_rnd() 36 for (i = 0; i < DIV_ROUND_UP(num_bits, BITS_PER_LONG); i++) in kvm_trng_do_rnd() 39 bitmap_clear(bits, num_bits, TRNG_MAX_BITS64 - num_bits); in kvm_trng_do_rnd()
|
/kernel/linux/linux-5.10/fs/hfs/ |
H A D | bitmap.c | 116 * Search for 'num_bits' consecutive cleared bits in the bitmap blocks of 123 * u16 *num_bits: Pointer to the number of cleared bits 126 * u16 *num_bits: The number of consecutive clear bits of the 131 * found. When 'num_bits' is zero, this is invalid! 134 * 'num_bits' points to a variable of type (u16), which contains 137 * 'num_bits' is set to the length of the found sequence. 139 u32 hfs_vbm_search_free(struct super_block *sb, u32 goal, u32 *num_bits) in hfs_vbm_search_free() argument 145 if (!*num_bits) in hfs_vbm_search_free() 151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); in hfs_vbm_search_free() 154 pos = hfs_find_set_zero_bits(bitmap, goal, 0, num_bits); in hfs_vbm_search_free() [all...] |
/kernel/linux/linux-6.6/fs/hfs/ |
H A D | bitmap.c | 116 * Search for 'num_bits' consecutive cleared bits in the bitmap blocks of 123 * u16 *num_bits: Pointer to the number of cleared bits 126 * u16 *num_bits: The number of consecutive clear bits of the 131 * found. When 'num_bits' is zero, this is invalid! 134 * 'num_bits' points to a variable of type (u16), which contains 137 * 'num_bits' is set to the length of the found sequence. 139 u32 hfs_vbm_search_free(struct super_block *sb, u32 goal, u32 *num_bits) in hfs_vbm_search_free() argument 145 if (!*num_bits) in hfs_vbm_search_free() 151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); in hfs_vbm_search_free() 154 pos = hfs_find_set_zero_bits(bitmap, goal, 0, num_bits); in hfs_vbm_search_free() [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | decompress_unlzma.c | 396 int num_bits; in process_bit1() local 461 num_bits = LZMA_LEN_NUM_LOW_BITS; in process_bit1() 471 num_bits = LZMA_LEN_NUM_MID_BITS; in process_bit1() 477 num_bits = LZMA_LEN_NUM_HIGH_BITS; in process_bit1() 481 rc_bit_tree_decode(rc, prob_len, num_bits, &len); in process_bit1() 499 num_bits = (pos_slot >> 1) - 1; in process_bit1() 502 cst->rep0 <<= num_bits; in process_bit1() 506 num_bits -= LZMA_NUM_ALIGN_BITS; in process_bit1() 507 while (num_bits--) in process_bit1() 512 num_bits in process_bit1() [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | decompress_unlzma.c | 396 int num_bits; in process_bit1() local 461 num_bits = LZMA_LEN_NUM_LOW_BITS; in process_bit1() 471 num_bits = LZMA_LEN_NUM_MID_BITS; in process_bit1() 477 num_bits = LZMA_LEN_NUM_HIGH_BITS; in process_bit1() 481 rc_bit_tree_decode(rc, prob_len, num_bits, &len); in process_bit1() 499 num_bits = (pos_slot >> 1) - 1; in process_bit1() 502 cst->rep0 <<= num_bits; in process_bit1() 506 num_bits -= LZMA_NUM_ALIGN_BITS; in process_bit1() 507 while (num_bits--) in process_bit1() 512 num_bits in process_bit1() [all...] |
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | suballoc.h | 78 u32 num_bits, 82 u32 num_bits, 89 unsigned int num_bits); 96 u32 *num_bits,
|
H A D | localalloc.h | 42 u32 *num_bits); 48 u32 num_bits);
|
H A D | resize.c | 92 u16 chain, num_bits, backups = 0; in ocfs2_update_last_group_and_inode() local 111 num_bits = new_clusters * cl_bpc; in ocfs2_update_last_group_and_inode() 112 le16_add_cpu(&group->bg_bits, num_bits); in ocfs2_update_last_group_and_inode() 113 le16_add_cpu(&group->bg_free_bits_count, num_bits); in ocfs2_update_last_group_and_inode() 139 le32_add_cpu(&cr->c_total, num_bits); in ocfs2_update_last_group_and_inode() 140 le32_add_cpu(&cr->c_free, num_bits); in ocfs2_update_last_group_and_inode() 141 le32_add_cpu(&fe->id1.bitmap1.i_total, num_bits); in ocfs2_update_last_group_and_inode() 163 le16_add_cpu(&group->bg_bits, -1 * num_bits); in ocfs2_update_last_group_and_inode() 164 le16_add_cpu(&group->bg_free_bits_count, -1 * num_bits); in ocfs2_update_last_group_and_inode()
|
H A D | suballoc.c | 425 u32 bit_off, num_bits; in ocfs2_block_group_alloc_contig() local 432 &num_bits); in ocfs2_block_group_alloc_contig() 453 bg_blkno, num_bits, alloc_rec, cl); in ocfs2_block_group_alloc_contig() 467 u32 *bit_off, u32 *num_bits) in ocfs2_block_group_claim_bits() 473 bit_off, num_bits); in ocfs2_block_group_claim_bits() 582 u32 bit_off, num_bits; in ocfs2_block_group_alloc_discontig() local 611 &bit_off, &num_bits); in ocfs2_block_group_alloc_discontig() 617 min_bits = num_bits; in ocfs2_block_group_alloc_discontig() 633 bg_blkno, num_bits, alloc_rec, cl); in ocfs2_block_group_alloc_discontig() 1342 unsigned int num_bits) in ocfs2_block_group_set_bits() 463 ocfs2_block_group_claim_bits(struct ocfs2_super *osb, handle_t *handle, struct ocfs2_alloc_context *ac, unsigned int min_bits, u32 *bit_off, u32 *num_bits) ocfs2_block_group_claim_bits() argument 1337 ocfs2_block_group_set_bits(handle_t *handle, struct inode *alloc_inode, struct ocfs2_group_desc *bg, struct buffer_head *group_bh, unsigned int bit_off, unsigned int num_bits) ocfs2_block_group_set_bits() argument 1579 ocfs2_alloc_dinode_update_counts(struct inode *inode, handle_t *handle, struct buffer_head *di_bh, u32 num_bits, u16 chain) ocfs2_alloc_dinode_update_counts() argument 1606 ocfs2_rollback_alloc_dinode_counts(struct inode *inode, struct buffer_head *di_bh, u32 num_bits, u16 chain) ocfs2_rollback_alloc_dinode_counts() 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 2381 ocfs2_block_group_clear_bits(handle_t *handle, struct inode *alloc_inode, struct ocfs2_group_desc *bg, struct buffer_head *group_bh, unsigned int bit_off, unsigned int num_bits, void (*undo_fn)(unsigned int bit, unsigned long *bmap)) ocfs2_block_group_clear_bits() argument [all...] |
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | suballoc.h | 76 u32 num_bits, 80 u32 num_bits, 87 unsigned int num_bits); 94 u32 *num_bits,
|
H A D | localalloc.h | 40 u32 *num_bits); 46 u32 num_bits);
|
H A D | resize.c | 90 u16 chain, num_bits, backups = 0; in ocfs2_update_last_group_and_inode() local 109 num_bits = new_clusters * cl_bpc; in ocfs2_update_last_group_and_inode() 110 le16_add_cpu(&group->bg_bits, num_bits); in ocfs2_update_last_group_and_inode() 111 le16_add_cpu(&group->bg_free_bits_count, num_bits); in ocfs2_update_last_group_and_inode() 137 le32_add_cpu(&cr->c_total, num_bits); in ocfs2_update_last_group_and_inode() 138 le32_add_cpu(&cr->c_free, num_bits); in ocfs2_update_last_group_and_inode() 139 le32_add_cpu(&fe->id1.bitmap1.i_total, num_bits); in ocfs2_update_last_group_and_inode() 161 le16_add_cpu(&group->bg_bits, -1 * num_bits); in ocfs2_update_last_group_and_inode() 162 le16_add_cpu(&group->bg_free_bits_count, -1 * num_bits); in ocfs2_update_last_group_and_inode()
|
H A D | suballoc.c | 423 u32 bit_off, num_bits; in ocfs2_block_group_alloc_contig() local 430 &num_bits); in ocfs2_block_group_alloc_contig() 451 bg_blkno, num_bits, alloc_rec, cl); in ocfs2_block_group_alloc_contig() 465 u32 *bit_off, u32 *num_bits) in ocfs2_block_group_claim_bits() 471 bit_off, num_bits); in ocfs2_block_group_claim_bits() 580 u32 bit_off, num_bits; in ocfs2_block_group_alloc_discontig() local 609 &bit_off, &num_bits); in ocfs2_block_group_alloc_discontig() 615 min_bits = num_bits; in ocfs2_block_group_alloc_discontig() 631 bg_blkno, num_bits, alloc_rec, cl); in ocfs2_block_group_alloc_discontig() 1340 unsigned int num_bits) in ocfs2_block_group_set_bits() 461 ocfs2_block_group_claim_bits(struct ocfs2_super *osb, handle_t *handle, struct ocfs2_alloc_context *ac, unsigned int min_bits, u32 *bit_off, u32 *num_bits) ocfs2_block_group_claim_bits() argument 1335 ocfs2_block_group_set_bits(handle_t *handle, struct inode *alloc_inode, struct ocfs2_group_desc *bg, struct buffer_head *group_bh, unsigned int bit_off, unsigned int num_bits) ocfs2_block_group_set_bits() argument 1577 ocfs2_alloc_dinode_update_counts(struct inode *inode, handle_t *handle, struct buffer_head *di_bh, u32 num_bits, u16 chain) ocfs2_alloc_dinode_update_counts() argument 1604 ocfs2_rollback_alloc_dinode_counts(struct inode *inode, struct buffer_head *di_bh, u32 num_bits, u16 chain) ocfs2_rollback_alloc_dinode_counts() 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 2379 ocfs2_block_group_clear_bits(handle_t *handle, struct inode *alloc_inode, struct ocfs2_group_desc *bg, struct buffer_head *group_bh, unsigned int bit_off, unsigned int num_bits, void (*undo_fn)(unsigned int bit, unsigned long *bmap)) ocfs2_block_group_clear_bits() argument [all...] |
/kernel/linux/linux-5.10/drivers/usb/mtu3/ |
H A D | mtu3_core.c | 26 u32 num_bits = DIV_ROUND_UP(seg_size, MTU3_EP_FIFO_UNIT); in ep_fifo_alloc() local 30 num_bits = roundup_pow_of_two(num_bits); in ep_fifo_alloc() 31 if (num_bits > fifo->limit) in ep_fifo_alloc() 34 mep->fifo_seg_size = num_bits * MTU3_EP_FIFO_UNIT; in ep_fifo_alloc() 35 num_bits = num_bits * (mep->slot + 1); in ep_fifo_alloc() 37 fifo->limit, 0, num_bits, 0); in ep_fifo_alloc() 41 bitmap_set(fifo->bitmap, start_bit, num_bits); in ep_fifo_alloc() 42 mep->fifo_size = num_bits * MTU3_EP_FIFO_UNI in ep_fifo_alloc() [all...] |
/kernel/linux/linux-5.10/drivers/usb/dwc2/ |
H A D | hcd_queue.c | 150 * @num_bits: The number of bits we need per period we want to reserve 233 int periods_in_map, int num_bits, in pmap_schedule() 241 if (num_bits > bits_per_period) in pmap_schedule() 267 while (start + num_bits <= first_end) { in pmap_schedule() 273 /* Look for num_bits us in this microframe starting at start */ in pmap_schedule() 274 start = bitmap_find_next_zero_area(map, end, start, num_bits, in pmap_schedule() 295 map, ith_start + num_bits, ith_start, num_bits, in pmap_schedule() 304 map, ith_end, ith_start, num_bits, 0); in pmap_schedule() 318 if (start + num_bits > first_en in pmap_schedule() 232 pmap_schedule(unsigned long *map, int bits_per_period, int periods_in_map, int num_bits, int interval, int start, bool only_one_period) pmap_schedule() argument 340 pmap_unschedule(unsigned long *map, int bits_per_period, int periods_in_map, int num_bits, int interval, int start) pmap_unschedule() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/dwc2/ |
H A D | hcd_queue.c | 120 * @num_bits: The number of bits we need per period we want to reserve 203 int periods_in_map, int num_bits, in pmap_schedule() 211 if (num_bits > bits_per_period) in pmap_schedule() 237 while (start + num_bits <= first_end) { in pmap_schedule() 243 /* Look for num_bits us in this microframe starting at start */ in pmap_schedule() 244 start = bitmap_find_next_zero_area(map, end, start, num_bits, in pmap_schedule() 265 map, ith_start + num_bits, ith_start, num_bits, in pmap_schedule() 274 map, ith_end, ith_start, num_bits, 0); in pmap_schedule() 288 if (start + num_bits > first_en in pmap_schedule() 202 pmap_schedule(unsigned long *map, int bits_per_period, int periods_in_map, int num_bits, int interval, int start, bool only_one_period) pmap_schedule() argument 310 pmap_unschedule(unsigned long *map, int bits_per_period, int periods_in_map, int num_bits, int interval, int start) pmap_unschedule() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/mtu3/ |
H A D | mtu3_core.c | 26 u32 num_bits = DIV_ROUND_UP(seg_size, MTU3_EP_FIFO_UNIT); in ep_fifo_alloc() local 30 num_bits = roundup_pow_of_two(num_bits); in ep_fifo_alloc() 31 if (num_bits > fifo->limit) in ep_fifo_alloc() 34 mep->fifo_seg_size = num_bits * MTU3_EP_FIFO_UNIT; in ep_fifo_alloc() 35 num_bits = num_bits * (mep->slot + 1); in ep_fifo_alloc() 37 fifo->limit, 0, num_bits, 0); in ep_fifo_alloc() 41 bitmap_set(fifo->bitmap, start_bit, num_bits); in ep_fifo_alloc() 42 mep->fifo_size = num_bits * MTU3_EP_FIFO_UNI in ep_fifo_alloc() [all...] |
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
H A D | dlink-dir685-touchkeys.c | 30 const int num_bits = min_t(int, ARRAY_SIZE(tk->codes), 16); in dir685_tk_irq_thread() local 49 for_each_set_bit(i, &changed, num_bits) { in dir685_tk_irq_thread()
|