Searched refs:bit_count (Results 1 – 11 of 11) sorted by relevance
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum2_kvdl.c | 56 unsigned int bit_count, in mlxsw_sp2_kvdl_part_find_zero_bits() argument 70 if (!wrap && bit + bit_count >= part->usage_bit_count) { in mlxsw_sp2_kvdl_part_find_zero_bits() 75 if (wrap && bit + bit_count >= start_bit) in mlxsw_sp2_kvdl_part_find_zero_bits() 77 for (i = 0; i < bit_count; i++) { in mlxsw_sp2_kvdl_part_find_zero_bits() 79 bit += bit_count; in mlxsw_sp2_kvdl_part_find_zero_bits() 91 unsigned int bit_count; in mlxsw_sp2_kvdl_part_alloc() local 96 bit_count = DIV_ROUND_UP(size, part->indexes_per_usage_bit); in mlxsw_sp2_kvdl_part_alloc() 97 err = mlxsw_sp2_kvdl_part_find_zero_bits(part, bit_count, &bit); in mlxsw_sp2_kvdl_part_alloc() 100 for (i = 0; i < bit_count; i++) in mlxsw_sp2_kvdl_part_alloc() 127 unsigned int bit_count; in mlxsw_sp2_kvdl_part_free() local [all …]
|
/drivers/acpi/acpica/ |
D | dsopcode.c | 84 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 …]
|
D | rsutils.c | 31 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()
|
/drivers/staging/vt6655/ |
D | baseband.c | 1767 u32 bit_count; in vnt_get_phy_field() local 1773 bit_count = frame_length * 8; in vnt_get_phy_field() 1778 count = bit_count; in vnt_get_phy_field() 1784 count = bit_count / 2; in vnt_get_phy_field() 1793 count = (bit_count * 10) / 55; in vnt_get_phy_field() 1796 if (tmp != bit_count) in vnt_get_phy_field() 1806 count = bit_count / 11; in vnt_get_phy_field() 1809 if (tmp != bit_count) { in vnt_get_phy_field() 1812 if ((bit_count - tmp) <= 3) in vnt_get_phy_field()
|
/drivers/staging/vt6656/ |
D | baseband.c | 190 u32 bit_count; in vnt_get_phy_field() local 196 bit_count = frame_length * 8; in vnt_get_phy_field() 201 count = bit_count; in vnt_get_phy_field() 207 count = bit_count / 2; in vnt_get_phy_field() 216 count = (bit_count * 10) / 55; in vnt_get_phy_field() 219 if (tmp != bit_count) in vnt_get_phy_field() 229 count = bit_count / 11; in vnt_get_phy_field() 232 if (tmp != bit_count) { in vnt_get_phy_field() 235 if ((bit_count - tmp) <= 3) in vnt_get_phy_field()
|
/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_abm.c | 140 uint8_t bit_count; in driver_set_backlight_level() local 156 bit_count = 16; in driver_set_backlight_level() 158 bit_count = pwm_period_bitcnt; in driver_set_backlight_level() 161 masked_pwm_period = masked_pwm_period & ((1 << bit_count) - 1); in driver_set_backlight_level() 173 backlight_16bit = active_duty_cycle >> bit_count; in driver_set_backlight_level() 175 backlight_16bit += (active_duty_cycle >> (bit_count - 1)) & 0x1; in driver_set_backlight_level()
|
/drivers/gpio/ |
D | gpio-syscon.c | 43 unsigned int bit_count; member 130 .bit_count = 3, 156 .bit_count = 1, 187 .bit_count = 28, 254 priv->chip.ngpio = priv->data->bit_count; in syscon_gpio_probe()
|
/drivers/media/dvb-frontends/ |
D | cxd2841er.c | 1404 u32 *bit_error, u32 *bit_count) in cxd2841er_read_ber_c() argument 1441 *bit_count = ((1 << period_exp) * 204 * 8); in cxd2841er_read_ber_c() 1447 u32 *bit_error, u32 *bit_count) in cxd2841er_read_ber_i() argument 1473 *bit_count = ((((u32)pktnum[0] << 8) | pktnum[1]) * 204 * 8); in cxd2841er_read_ber_i() 1475 __func__, *bit_error, *bit_count); in cxd2841er_read_ber_i() 1481 u32 *bit_error, u32 *bit_count) in cxd2841er_mon_read_ber_s() argument 1502 *bit_count = ((u32)(data[8] & 0x3F) << 16) | in cxd2841er_mon_read_ber_s() 1505 if ((*bit_count == 0) || (*bit_error > *bit_count)) { in cxd2841er_mon_read_ber_s() 1508 __func__, *bit_error, *bit_count); in cxd2841er_mon_read_ber_s() 1519 u32 *bit_error, u32 *bit_count) in cxd2841er_mon_read_ber_s2() argument [all …]
|
D | mb86a20s.c | 1575 u32 bit_error = 0, bit_count = 0; in mb86a20s_get_stats() local 1605 &bit_error, &bit_count); in mb86a20s_get_stats() 1610 c->pre_bit_count.stat[1 + layer].uvalue += bit_count; in mb86a20s_get_stats() 1627 &bit_error, &bit_count); in mb86a20s_get_stats() 1632 c->post_bit_count.stat[1 + layer].uvalue += bit_count; in mb86a20s_get_stats()
|
/drivers/soc/fsl/qbman/ |
D | qman_ccsr.c | 500 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()
|
/drivers/i2c/busses/ |
D | i2c-synquacer.c | 168 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()
|