Home
last modified time | relevance | path

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

12

/linux/include/rdma/
A Diba.h59 _iba_set##num_bits((void *)_ptr + (field_offset), field_mask, \
76 WARN_ON(bytes * 8 > num_bits); \
79 type, num_bits, ptr), \
87 (u##num_bits) FIELD_GET( \
88 field_mask, _iba_get##num_bits((const void *)_ptr + \
97 WARN_ON(bytes * 8 > num_bits); \
101 type, num_bits, ptr), \
123 IBA_FIELD_BLOC(field_struct, byte_offset, 0, num_bits)
128 15 - (((byte_offset) % 2) * 8) - (num_bits - 1)), \
134 31 - (((byte_offset) % 4) * 8) - (num_bits - 1)), \
[all …]
/linux/fs/ntfs3/lib/
A Ddecompress_common.h88 u32 num_bits) in bitstream_ensure_bits() argument
90 if (is->bitsleft < num_bits) { in bitstream_ensure_bits()
117 is->bitbuf <<= num_bits; in bitstream_remove_bits()
118 is->bitsleft -= num_bits; in bitstream_remove_bits()
126 bitstream_pop_bits(struct input_bitstream *is, u32 num_bits) in bitstream_pop_bits() argument
128 u32 bits = bitstream_peek_bits(is, num_bits); in bitstream_pop_bits()
130 bitstream_remove_bits(is, num_bits); in bitstream_pop_bits()
136 bitstream_read_bits(struct input_bitstream *is, u32 num_bits) in bitstream_read_bits() argument
138 bitstream_ensure_bits(is, num_bits); in bitstream_read_bits()
139 return bitstream_pop_bits(is, num_bits); in bitstream_read_bits()
[all …]
/linux/tools/perf/bench/
A 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_zalloc(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()
/linux/fs/hfs/
A 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()
/linux/drivers/gpu/drm/omapdrm/
A 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()
/linux/arch/arm64/kvm/
A Dtrng.c27 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()
/linux/lib/
A 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 …]
/linux/fs/ocfs2/
A Dresize.c90 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()
A Dsuballoc.h76 u32 num_bits,
80 u32 num_bits,
87 unsigned int num_bits);
94 u32 *num_bits,
A Dsuballoc.c423 u32 bit_off, num_bits; in ocfs2_block_group_alloc_contig() local
430 &num_bits); in ocfs2_block_group_alloc_contig()
580 u32 bit_off, num_bits; in ocfs2_block_group_alloc_discontig() local
615 min_bits = num_bits; in ocfs2_block_group_alloc_discontig()
1374 num_bits); in ocfs2_block_group_set_bits()
1376 while(num_bits--) in ocfs2_block_group_set_bits()
1583 u32 num_bits, in ocfs2_alloc_dinode_update_counts() argument
1609 u32 num_bits, in ocfs2_rollback_alloc_dinode_counts() argument
2020 *num_bits = res.sr_bits; in ocfs2_claim_metadata()
2420 tmp = num_bits; in ocfs2_block_group_clear_bits()
[all …]
A Dlocalalloc.h40 u32 *num_bits);
46 u32 num_bits);
A Dlocalalloc.c718 u32 *num_bits) in ocfs2_claim_local_alloc_bits() argument
743 *num_bits = bits_wanted; in ocfs2_claim_local_alloc_bits()
760 le32_add_cpu(&alloc->id1.bitmap1.i_used, *num_bits); in ocfs2_claim_local_alloc_bits()
773 u32 num_bits) in ocfs2_free_local_alloc_bits() argument
790 clear_bits = num_bits; in ocfs2_free_local_alloc_bits()
804 le32_add_cpu(&alloc->id1.bitmap1.i_used, -num_bits); in ocfs2_free_local_alloc_bits()
/linux/drivers/usb/dwc2/
A 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()
/linux/drivers/usb/mtu3/
A 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()
/linux/drivers/input/keyboard/
A 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()
/linux/drivers/input/mouse/
A 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 …]
A Dalps.h212 int num_bits; member
/linux/drivers/comedi/drivers/
A 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()
/linux/drivers/gpu/drm/kmb/
A Dkmb_dsi.h351 u32 num_bits, u32 value) in kmb_write_bits_mipi() argument
354 u32 mask = (1 << num_bits) - 1; in kmb_write_bits_mipi()
/linux/drivers/fsi/
A 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()
/linux/drivers/iio/adc/
A Dti-ads131e08.c483 u8 num_bits, *src; in ads131e08_read_direct() local
493 num_bits = ADS131E08_NUM_DATA_BITS(st->data_rate); in ads131e08_read_direct()
494 *value = sign_extend32(get_unaligned_be32(src) >> (32 - num_bits), num_bits - 1); in ads131e08_read_direct()
/linux/drivers/net/ethernet/ti/
A 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()
/linux/drivers/net/ethernet/realtek/
A Datp.c405 int num_bits = EE_CMD_SIZE; in eeprom_op() local
407 while (--num_bits >= 0) { in eeprom_op()
408 char outval = (cmd & (1<<num_bits)) ? EE_DATA_WRITE : 0; in eeprom_op()
/linux/arch/sh/kernel/
A 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()
/linux/crypto/
A Decc.c1292 int num_bits; in ecc_point_mult() local
1298 num_bits = sizeof(u64) * ndigits * 8 + 1; in ecc_point_mult()
1305 for (i = num_bits - 2; i > 0; i--) { in ecc_point_mult()
1372 unsigned int num_bits; in ecc_point_mult_shamir() local
1385 num_bits = max(vli_num_bits(u1, ndigits), vli_num_bits(u2, ndigits)); in ecc_point_mult_shamir()
1386 i = num_bits - 1; in ecc_point_mult_shamir()

Completed in 84 milliseconds

12