Home
last modified time | relevance | path

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

/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()
/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()
/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()
/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()
/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
Dcyapa_gen5.c1853 static s32 twos_complement_to_s32(s32 value, int num_bits) in twos_complement_to_s32() argument
1855 if (value >> (num_bits - 1)) in twos_complement_to_s32()
1856 value |= -1 << num_bits; in twos_complement_to_s32()
/drivers/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()
Dcb_pcidas64.c1646 unsigned int num_bits = 8; in i2c_write_byte() local
1648 for (bit = 1 << (num_bits - 1); bit; bit >>= 1) { in i2c_write_byte()
/drivers/gpu/drm/kmb/
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()
/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()
/drivers/iio/adc/
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()
/drivers/net/ethernet/ti/
Dcpsw_ale.c61 u8 num_bits; member
180 .num_bits = bits, \
187 .num_bits = 0, \
246 bits = entry_fld->num_bits; in cpsw_ale_entry_get_fld()
271 bits = entry_fld->num_bits; in cpsw_ale_entry_set_fld()
Dtlan.c2923 static void tlan_mii_send_data(u16 base_port, u32 data, unsigned num_bits) in tlan_mii_send_data() argument
2928 if (num_bits == 0) in tlan_mii_send_data()
2935 for (i = (0x1 << (num_bits - 1)); i; i >>= 1) { in tlan_mii_send_data()
/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()
/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()
/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()
/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()
/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
/drivers/gpu/drm/i915/display/
Dintel_sdvo.c2549 unsigned int num_bits; in intel_sdvo_guess_ddc_bus() local
2578 num_bits = hweight16(mask); in intel_sdvo_guess_ddc_bus()
2580 if (num_bits > 3) in intel_sdvo_guess_ddc_bus()
2581 num_bits = 3; in intel_sdvo_guess_ddc_bus()
2584 sdvo->ddc_bus = 1 << num_bits; in intel_sdvo_guess_ddc_bus()
/drivers/scsi/be2iscsi/
Dbe_cmds.h1084 u32 num_bits; member
/drivers/gpu/drm/radeon/
Dsi_dpm.c3876 u32 data, num_bits, num_levels; in si_validate_phase_shedding_tables() local
3883 num_bits = hweight32(data); in si_validate_phase_shedding_tables()
3885 if (num_bits == 0) in si_validate_phase_shedding_tables()
3888 num_levels = (1 << num_bits); in si_validate_phase_shedding_tables()
/drivers/gpu/drm/amd/pm/powerplay/
Dsi_dpm.c4338 u32 data, num_bits, num_levels; in si_validate_phase_shedding_tables() local
4345 num_bits = hweight32(data); in si_validate_phase_shedding_tables()
4347 if (num_bits == 0) in si_validate_phase_shedding_tables()
4350 num_levels = (1 << num_bits); in si_validate_phase_shedding_tables()