/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/gpu/drm/amd/display/dc/dce/ |
D | dce_panel_cntl.c | 193 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()
|
/drivers/staging/vt6655/ |
D | baseband.c | 1763 u32 bit_count; in vnt_get_phy_field() local 1769 bit_count = frame_length * 8; in vnt_get_phy_field() 1774 count = bit_count; in vnt_get_phy_field() 1780 count = bit_count / 2; in vnt_get_phy_field() 1789 count = (bit_count * 10) / 55; in vnt_get_phy_field() 1792 if (tmp != bit_count) in vnt_get_phy_field() 1802 count = bit_count / 11; in vnt_get_phy_field() 1805 if (tmp != bit_count) { in vnt_get_phy_field() 1808 if ((bit_count - tmp) <= 3) in vnt_get_phy_field()
|
/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/staging/vt6656/ |
D | rxtx.c | 88 u32 bit_count; in vnt_get_phy_field() local 96 bit_count = frame_length * 8; in vnt_get_phy_field() 101 count = bit_count; in vnt_get_phy_field() 104 count = bit_count / 2; in vnt_get_phy_field() 107 count = DIV_ROUND_UP(bit_count * 10, 55); in vnt_get_phy_field() 110 count = bit_count / 11; in vnt_get_phy_field() 113 if (tmp != bit_count) { in vnt_get_phy_field() 116 if ((bit_count - tmp) <= 3) in vnt_get_phy_field()
|
/drivers/regulator/ |
D | rt6245-regulator.c | 148 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()
|
/drivers/media/dvb-frontends/ |
D | cxd2841er.c | 1405 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 …]
|
D | mb86a20s.c | 1567 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()
|
/drivers/net/ipa/ |
D | ipa_cmd.c | 280 u32 bit_count; in ipa_cmd_register_write_offset_valid() local 287 bit_count = BITS_PER_BYTE * sizeof(payload->offset); in ipa_cmd_register_write_offset_valid() 289 bit_count += hweight32(REGISTER_WRITE_FLAGS_OFFSET_HIGH_FMASK); in ipa_cmd_register_write_offset_valid() 290 BUILD_BUG_ON(bit_count > 32); in ipa_cmd_register_write_offset_valid() 291 offset_max = ~0U >> (32 - bit_count); in ipa_cmd_register_write_offset_valid()
|
/drivers/iio/adc/ |
D | ti-tsc2046.c | 211 unsigned int bit_count, sample_count; in tsc2046_adc_time_to_count() local 213 bit_count = DIV_ROUND_UP(time * NSEC_PER_USEC, priv->time_per_bit_ns); in tsc2046_adc_time_to_count() 214 sample_count = DIV_ROUND_UP(bit_count, TI_TSC2046_SAMPLE_BITS); in tsc2046_adc_time_to_count() 218 bit_count, sample_count); in tsc2046_adc_time_to_count()
|
/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()
|