Home
last modified time | relevance | path

Searched refs:bit_count (Results 1 – 18 of 18) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum2_kvdl.c57 unsigned int bit_count, in mlxsw_sp2_kvdl_part_find_zero_bits() argument
71 if (!wrap && bit + bit_count >= part->usage_bit_count) { in mlxsw_sp2_kvdl_part_find_zero_bits()
76 if (wrap && bit + bit_count >= start_bit) in mlxsw_sp2_kvdl_part_find_zero_bits()
78 for (i = 0; i < bit_count; i++) { in mlxsw_sp2_kvdl_part_find_zero_bits()
80 bit += bit_count; in mlxsw_sp2_kvdl_part_find_zero_bits()
92 unsigned int bit_count; in mlxsw_sp2_kvdl_part_alloc() local
97 bit_count = DIV_ROUND_UP(size, part->indexes_per_usage_bit); in mlxsw_sp2_kvdl_part_alloc()
98 err = mlxsw_sp2_kvdl_part_find_zero_bits(part, bit_count, &bit); in mlxsw_sp2_kvdl_part_alloc()
101 for (i = 0; i < bit_count; i++) in mlxsw_sp2_kvdl_part_alloc()
128 unsigned int bit_count; in mlxsw_sp2_kvdl_part_free() local
[all …]
/linux-6.1.9/drivers/acpi/acpica/
Ddsopcode.c84 u32 bit_count; in acpi_ds_init_buffer_field() local
128 bit_count = (u32) length_desc->integer.value; in acpi_ds_init_buffer_field()
132 if (bit_count == 0) { in acpi_ds_init_buffer_field()
145 bit_count = 1; in acpi_ds_init_buffer_field()
154 bit_count = 8; in acpi_ds_init_buffer_field()
163 bit_count = 16; in acpi_ds_init_buffer_field()
172 bit_count = 32; in acpi_ds_init_buffer_field()
181 bit_count = 64; in acpi_ds_init_buffer_field()
196 if ((bit_offset + bit_count) > (8 * (u32)buffer_desc->buffer.length)) { in acpi_ds_init_buffer_field()
202 bit_offset, bit_count, in acpi_ds_init_buffer_field()
[all …]
Drsutils.c31 u8 bit_count; in acpi_rs_decode_bitmask() local
37 for (i = 0, bit_count = 0; mask; i++) { in acpi_rs_decode_bitmask()
39 list[bit_count] = i; in acpi_rs_decode_bitmask()
40 bit_count++; in acpi_rs_decode_bitmask()
46 return (bit_count); in acpi_rs_decode_bitmask()
/linux-6.1.9/drivers/staging/vt6655/
Dbaseband.c1762 u32 bit_count; in vnt_get_phy_field() local
1768 bit_count = frame_length * 8; in vnt_get_phy_field()
1773 count = bit_count; in vnt_get_phy_field()
1779 count = bit_count / 2; in vnt_get_phy_field()
1788 count = (bit_count * 10) / 55; in vnt_get_phy_field()
1791 if (tmp != bit_count) in vnt_get_phy_field()
1801 count = bit_count / 11; in vnt_get_phy_field()
1804 if (tmp != bit_count) { in vnt_get_phy_field()
1807 if ((bit_count - tmp) <= 3) in vnt_get_phy_field()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce/
Ddce_panel_cntl.c193 uint8_t bit_count; in dce_driver_set_backlight() local
210 bit_count = 16; in dce_driver_set_backlight()
212 bit_count = pwm_period_bitcnt; in dce_driver_set_backlight()
215 masked_pwm_period = masked_pwm_period & ((1 << bit_count) - 1); in dce_driver_set_backlight()
227 backlight_16bit = active_duty_cycle >> bit_count; in dce_driver_set_backlight()
229 backlight_16bit += (active_duty_cycle >> (bit_count - 1)) & 0x1; in dce_driver_set_backlight()
/linux-6.1.9/drivers/gpio/
Dgpio-syscon.c42 unsigned int bit_count; member
128 .bit_count = 3,
154 .bit_count = 1,
184 .bit_count = 28,
243 priv->chip.ngpio = priv->data->bit_count; in syscon_gpio_probe()
/linux-6.1.9/drivers/regulator/
Drt6245-regulator.c148 unsigned int code, bit_count; in rt6245_reg_write() local
154 bit_count = hweight8(code & RT6245_CODE_MASK); in rt6245_reg_write()
155 if (bit_count % 2) in rt6245_reg_write()
/linux-6.1.9/drivers/staging/vt6656/
Drxtx.c86 u32 bit_count; in vnt_get_phy_field() local
94 bit_count = frame_length * 8; in vnt_get_phy_field()
99 count = bit_count; in vnt_get_phy_field()
102 count = bit_count / 2; in vnt_get_phy_field()
105 count = DIV_ROUND_UP(bit_count * 10, 55); in vnt_get_phy_field()
108 count = bit_count / 11; in vnt_get_phy_field()
111 if (tmp != bit_count) { in vnt_get_phy_field()
114 if ((bit_count - tmp) <= 3) in vnt_get_phy_field()
/linux-6.1.9/drivers/net/ipa/
Dipa_cmd.c279 u32 bit_count; in ipa_cmd_register_write_offset_valid() local
286 bit_count = BITS_PER_BYTE * sizeof(payload->offset); in ipa_cmd_register_write_offset_valid()
288 bit_count += hweight32(REGISTER_WRITE_FLAGS_OFFSET_HIGH_FMASK); in ipa_cmd_register_write_offset_valid()
289 BUILD_BUG_ON(bit_count > 32); in ipa_cmd_register_write_offset_valid()
290 offset_max = ~0U >> (32 - bit_count); in ipa_cmd_register_write_offset_valid()
/linux-6.1.9/drivers/media/dvb-frontends/
Dcxd2841er.c1405 u32 *bit_error, u32 *bit_count) in cxd2841er_read_ber_c() argument
1442 *bit_count = ((1 << period_exp) * 204 * 8); in cxd2841er_read_ber_c()
1448 u32 *bit_error, u32 *bit_count) in cxd2841er_read_ber_i() argument
1474 *bit_count = ((((u32)pktnum[0] << 8) | pktnum[1]) * 204 * 8); in cxd2841er_read_ber_i()
1476 __func__, *bit_error, *bit_count); in cxd2841er_read_ber_i()
1482 u32 *bit_error, u32 *bit_count) in cxd2841er_mon_read_ber_s() argument
1503 *bit_count = ((u32)(data[8] & 0x3F) << 16) | in cxd2841er_mon_read_ber_s()
1506 if ((*bit_count == 0) || (*bit_error > *bit_count)) { in cxd2841er_mon_read_ber_s()
1509 __func__, *bit_error, *bit_count); in cxd2841er_mon_read_ber_s()
1520 u32 *bit_error, u32 *bit_count) in cxd2841er_mon_read_ber_s2() argument
[all …]
Dmb86a20s.c1567 u32 bit_error = 0, bit_count = 0; in mb86a20s_get_stats() local
1597 &bit_error, &bit_count); in mb86a20s_get_stats()
1602 c->pre_bit_count.stat[1 + layer].uvalue += bit_count; in mb86a20s_get_stats()
1619 &bit_error, &bit_count); in mb86a20s_get_stats()
1624 c->post_bit_count.stat[1 + layer].uvalue += bit_count; in mb86a20s_get_stats()
/linux-6.1.9/sound/soc/tegra/
Dtegra210_i2s.c544 unsigned int val, bit_count, bclk_rate, num_bclk = sample_size; in tegra210_i2s_set_timing_params() local
574 bit_count = (bclk_rate / (srate * 2)) - 1; in tegra210_i2s_set_timing_params()
577 bit_count = (bclk_rate / srate) - 1; in tegra210_i2s_set_timing_params()
587 if (bit_count > I2S_TIMING_CH_BIT_CNT_MASK) { in tegra210_i2s_set_timing_params()
588 dev_err(dev, "invalid I2S channel bit count %u\n", bit_count); in tegra210_i2s_set_timing_params()
593 bit_count << I2S_TIMING_CH_BIT_CNT_SHIFT); in tegra210_i2s_set_timing_params()
/linux-6.1.9/drivers/soc/fsl/qbman/
Dqman_ccsr.c500 static void log_edata_bits(struct device *dev, u32 bit_count) in log_edata_bits() argument
505 i = bit_count / 32; in log_edata_bits()
506 if (bit_count % 32) { in log_edata_bits()
508 mask = ~(mask << bit_count % 32); in log_edata_bits()
/linux-6.1.9/drivers/iio/adc/
Dti-tsc2046.c228 unsigned int bit_count, sample_count; in tsc2046_adc_time_to_count() local
230 bit_count = DIV_ROUND_UP(time * NSEC_PER_USEC, priv->time_per_bit_ns); in tsc2046_adc_time_to_count()
231 sample_count = DIV_ROUND_UP(bit_count, TI_TSC2046_SAMPLE_BITS); in tsc2046_adc_time_to_count()
235 bit_count, sample_count); in tsc2046_adc_time_to_count()
/linux-6.1.9/drivers/i2c/busses/
Di2c-synquacer.c168 unsigned long bit_count = 0; in calc_timeout_ms() local
172 bit_count += msgs->len; in calc_timeout_ms()
174 return DIV_ROUND_UP((bit_count * 9 + num * 10) * 3, 200) + 10; in calc_timeout_ms()
/linux-6.1.9/sound/pci/cs46xx/
Dcs46xx_dsp_scb_types.h854 bit_count
/linux-6.1.9/include/uapi/linux/
Dv4l2-controls.h1820 __u8 bit_count; member
/linux-6.1.9/Documentation/userspace-api/media/v4l/
Dext-ctrls-codec-stateless.rst1084 - ``bit_count``