Home
last modified time | relevance | path

Searched refs:num_bits (Results 1 – 25 of 35) sorted by relevance

12

/kernel/linux/linux-5.10/include/rdma/
Diba.h56 #define _IBA_SET(field_struct, field_offset, field_mask, num_bits, ptr, value) \ argument
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) \ argument
72 #define _IBA_SET_MEM(field_struct, field_offset, type, num_bits, ptr, in, \ argument
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) \ argument
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, ptr, out, \ argument
[all …]
/kernel/linux/linux-5.10/tools/perf/bench/
Dfind-bit-bench.c55 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-5.10/fs/hfs/
Dbitmap.c139 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()
156 *num_bits = pos = 0; in hfs_vbm_search_free()
161 hfs_dbg(BITMAP, "alloc_bits: %u,%u\n", pos, *num_bits); in hfs_vbm_search_free()
162 HFS_SB(sb)->free_ablocks -= *num_bits; in hfs_vbm_search_free()
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/
Dtcm-sita.c52 size_t num_bits) in r2l_b2t_1d() argument
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()
89 unsigned long *map, size_t num_bits, size_t slot_stride) in l2r_t2b() argument
104 while (curr_bit < num_bits) { in l2r_t2b()
105 *pos = bitmap_find_next_zero_area(map, num_bits, curr_bit, w, in l2r_t2b()
123 if ((*pos + slot_stride * h) > num_bits) in l2r_t2b()
/kernel/linux/linux-5.10/lib/
Ddecompress_unlzma.c396 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 = LZMA_NUM_ALIGN_BITS; in process_bit1()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
Dsuballoc.h78 u32 num_bits,
82 u32 num_bits,
89 unsigned int num_bits);
96 u32 *num_bits,
Dresize.c92 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()
Dlocalalloc.h42 u32 *num_bits);
48 u32 num_bits);
Dsuballoc.c425 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() argument
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() argument
[all …]
Dlocalalloc.c720 u32 *num_bits) in ocfs2_claim_local_alloc_bits() argument
745 *num_bits = bits_wanted; in ocfs2_claim_local_alloc_bits()
762 le32_add_cpu(&alloc->id1.bitmap1.i_used, *num_bits); in ocfs2_claim_local_alloc_bits()
775 u32 num_bits) in ocfs2_free_local_alloc_bits() argument
792 clear_bits = num_bits; in ocfs2_free_local_alloc_bits()
806 le32_add_cpu(&alloc->id1.bitmap1.i_used, -num_bits); in ocfs2_free_local_alloc_bits()
/kernel/linux/linux-5.10/drivers/usb/dwc2/
Dhcd_queue.c233 int periods_in_map, int num_bits, in pmap_schedule() argument
241 if (num_bits > bits_per_period) in pmap_schedule()
267 while (start + num_bits <= first_end) { 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_end) in pmap_schedule()
324 bitmap_set(map, ith_start, num_bits); in pmap_schedule()
341 int periods_in_map, int num_bits, in pmap_unschedule() argument
357 bitmap_clear(map, ith_start, num_bits); in pmap_unschedule()
/kernel/linux/linux-5.10/drivers/usb/mtu3/
Dmtu3_core.c26 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_UNIT; in ep_fifo_alloc()
/kernel/linux/linux-5.10/drivers/input/keyboard/
Ddlink-dir685-touchkeys.c30 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()
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
Dcb_pcidda.c171 unsigned int num_bits) in cb_pcidda_serial_out() argument
176 for (i = 1; i <= num_bits; i++) { in cb_pcidda_serial_out()
178 if (value & (1 << (num_bits - i))) in cb_pcidda_serial_out()
/kernel/linux/linux-5.10/drivers/input/mouse/
Dalps.c370 point->num_bits = 0; in alps_get_bitmap_points()
373 point->num_bits++; in alps_get_bitmap_points()
417 i = (x_low.num_bits - 1) / 2; in alps_process_bitmap()
418 x_low.num_bits = x_low.num_bits - i; in alps_process_bitmap()
420 x_high.num_bits = max(i, 1); in alps_process_bitmap()
423 i = (y_low.num_bits - 1) / 2; in alps_process_bitmap()
424 y_low.num_bits = y_low.num_bits - i; in alps_process_bitmap()
426 y_high.num_bits = max(i, 1); in alps_process_bitmap()
431 (priv->x_max * (2 * x_low.start_bit + x_low.num_bits - 1)) / in alps_process_bitmap()
434 (priv->y_max * (2 * y_low.start_bit + y_low.num_bits - 1)) / in alps_process_bitmap()
[all …]
Dalps.h212 int num_bits; member
/kernel/linux/linux-5.10/drivers/fsi/
Dfsi-master-gpio.c113 uint8_t num_bits) in serial_in() argument
119 for (bit = 0; bit < num_bits; bit++) { in serial_in()
124 msg->bits += num_bits; in serial_in()
126 trace_fsi_master_gpio_in(master, num_bits, msg->msg); in serial_in()
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dcpsw_ale.c61 u8 num_bits; member
166 .num_bits = bits, \
173 .num_bits = 0, \
232 bits = entry_fld->num_bits; in cpsw_ale_entry_get_fld()
257 bits = entry_fld->num_bits; in cpsw_ale_entry_set_fld()
/kernel/linux/linux-5.10/drivers/net/ethernet/realtek/
Datp.c403 int num_bits = EE_CMD_SIZE; in eeprom_op() local
405 while (--num_bits >= 0) { in eeprom_op()
406 char outval = (cmd & (1<<num_bits)) ? EE_DATA_WRITE : 0; in eeprom_op()
/kernel/linux/linux-5.10/arch/sh/kernel/
Ddwarf.c184 int num_bits; in dwarf_read_leb128() local
203 num_bits = 8 * sizeof(result); in dwarf_read_leb128()
205 if ((shift < num_bits) && (byte & 0x40)) in dwarf_read_leb128()
/kernel/linux/linux-5.10/crypto/
Decc.c1154 int num_bits; in ecc_point_mult() local
1160 num_bits = sizeof(u64) * ndigits * 8 + 1; in ecc_point_mult()
1168 for (i = num_bits - 2; i > 0; i--) { in ecc_point_mult()
1238 unsigned int num_bits; in ecc_point_mult_shamir() local
1251 num_bits = max(vli_num_bits(u1, ndigits), in ecc_point_mult_shamir()
1253 i = num_bits - 1; in ecc_point_mult_shamir()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/
Dphy.c197 u8 offset, bank, num_bits, col, position; in ath5k_hw_rfb_op() local
221 num_bits = rfreg->field.len; in ath5k_hw_rfb_op()
232 if (!(col <= 3 && num_bits <= 32 && first_bit + num_bits <= 319)) { in ath5k_hw_rfb_op()
241 data = ath5k_hw_bitswap(val, num_bits); in ath5k_hw_rfb_op()
243 for (bits_shifted = 0, bits_left = num_bits; bits_left > 0; in ath5k_hw_rfb_op()
265 data = set ? 1 : ath5k_hw_bitswap(data, num_bits); in ath5k_hw_rfb_op()
/kernel/linux/linux-5.10/drivers/scsi/cxlflash/
Dvlun.c157 ulong *lam, num_bits; in find_free_range() local
162 num_bits = (sizeof(*lam) * BITS_PER_BYTE); in find_free_range()
163 bit_pos = find_first_bit(lam, num_bits); in find_free_range()
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
Dexynos_drm_dsi.c104 #define DSIM_MAIN_VRESOL(x, num_bits) (((x) & ((1 << (num_bits)) - 1)) << 16) argument
105 #define DSIM_MAIN_HRESOL(x, num_bits) (((x) & ((1 << (num_bits)) - 1)) << 0) argument
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/
Dpsb_intel_sdvo.c1788 unsigned int num_bits; in psb_intel_sdvo_guess_ddc_bus()
1811 num_bits = hweight16(mask); in psb_intel_sdvo_guess_ddc_bus()
1813 if (num_bits > 3) in psb_intel_sdvo_guess_ddc_bus()
1814 num_bits = 3; in psb_intel_sdvo_guess_ddc_bus()
1817 sdvo->ddc_bus = 1 << num_bits; in psb_intel_sdvo_guess_ddc_bus()

12