/linux-6.12.1/drivers/video/fbdev/via/ |
D | dvi.c | 41 switch (viaparinfo->chip_info->gfx_chip_name) { in viafb_tmds_trasmitter_identify() 71 viaparinfo->chip_info->tmds_chip_info.tmds_chip_name = VT1632_TMDS; in viafb_tmds_trasmitter_identify() 72 viaparinfo->chip_info-> in viafb_tmds_trasmitter_identify() 74 viaparinfo->chip_info->tmds_chip_info.i2c_port = VIA_PORT_31; in viafb_tmds_trasmitter_identify() 83 viaparinfo->chip_info->tmds_chip_info.tmds_chip_name); in viafb_tmds_trasmitter_identify() 85 viaparinfo->chip_info->tmds_chip_info.i2c_port); in viafb_tmds_trasmitter_identify() 88 viaparinfo->chip_info->tmds_chip_info.i2c_port = VIA_PORT_2C; in viafb_tmds_trasmitter_identify() 93 viaparinfo->chip_info-> in viafb_tmds_trasmitter_identify() 96 viaparinfo->chip_info-> in viafb_tmds_trasmitter_identify() 102 viaparinfo->chip_info->tmds_chip_info.tmds_chip_name = INTEGRATED_TMDS; in viafb_tmds_trasmitter_identify() [all …]
|
D | lcd.c | 91 if (viaparinfo->chip_info->lvds_chip_info.lvds_chip_name) { in lvds_identify_integratedlvds() 92 viaparinfo->chip_info->lvds_chip_info2.lvds_chip_name = in lvds_identify_integratedlvds() 97 viaparinfo->chip_info->lvds_chip_info.lvds_chip_name = in lvds_identify_integratedlvds() 104 viaparinfo->chip_info->lvds_chip_info.lvds_chip_name = in lvds_identify_integratedlvds() 106 viaparinfo->chip_info->lvds_chip_info2.lvds_chip_name = in lvds_identify_integratedlvds() 113 if (!viaparinfo->chip_info->lvds_chip_info.lvds_chip_name) { in lvds_identify_integratedlvds() 114 viaparinfo->chip_info->lvds_chip_info.lvds_chip_name = in lvds_identify_integratedlvds() 119 viaparinfo->chip_info->lvds_chip_info.lvds_chip_name = in lvds_identify_integratedlvds() 131 viaparinfo->chip_info->lvds_chip_info.i2c_port = VIA_PORT_31; in viafb_lvds_trasmitter_identify() 136 viaparinfo->chip_info->lvds_chip_info.i2c_port = in viafb_lvds_trasmitter_identify() [all …]
|
D | hw.c | 490 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in get_dvi_devices() 496 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in get_dvi_devices() 502 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in get_dvi_devices() 566 (viaparinfo->chip_info->gfx_chip_name == in viafb_set_iga_path() 622 viaparinfo->chip_info-> in viafb_set_iga_path() 626 viaparinfo->chip_info-> in viafb_set_iga_path() 633 viaparinfo->chip_info-> in viafb_set_iga_path() 637 viaparinfo->chip_info-> in viafb_set_iga_path() 644 viaparinfo->chip_info-> in viafb_set_iga_path() 648 viaparinfo->chip_info-> in viafb_set_iga_path() [all …]
|
/linux-6.12.1/drivers/iio/temperature/ |
D | mlx90614.c | 103 const struct mlx_chip_info *chip_info; /* Chip hardware details */ member 154 const struct mlx_chip_info *chip_info = data->chip_info; in mlx90614_iir_search() local 158 for (i = chip_info->iir_valid_offset; in mlx90614_iir_search() 159 i < ARRAY_SIZE(chip_info->iir_values); in mlx90614_iir_search() 161 if (value == chip_info->iir_values[i]) in mlx90614_iir_search() 165 if (i == ARRAY_SIZE(chip_info->iir_values)) in mlx90614_iir_search() 173 ret = i2c_smbus_read_word_data(client, chip_info->op_eeprom_config1); in mlx90614_iir_search() 178 if (chip_info->fir_config_mask) { in mlx90614_iir_search() 179 ret &= ~chip_info->fir_config_mask; in mlx90614_iir_search() 180 ret |= field_prep(chip_info->fir_config_mask, MLX90614_CONST_FIR); in mlx90614_iir_search() [all …]
|
/linux-6.12.1/drivers/iio/light/ |
D | bh1750.c | 41 const struct bh1750_chip_info *chip_info; member 75 const struct bh1750_chip_info *chip_info = data->chip_info; in bh1750_change_int_time() local 77 if ((usec % chip_info->mtreg_to_usec) != 0) in bh1750_change_int_time() 80 val = usec / chip_info->mtreg_to_usec; in bh1750_change_int_time() 81 if (val < chip_info->mtreg_min || val > chip_info->mtreg_max) in bh1750_change_int_time() 88 regval = (val & chip_info->int_time_high_mask) >> 5; in bh1750_change_int_time() 94 regval = val & chip_info->int_time_low_mask; in bh1750_change_int_time() 109 const struct bh1750_chip_info *chip_info = data->chip_info; in bh1750_read() local 110 unsigned long delay = chip_info->mtreg_to_usec * data->mtreg; in bh1750_read() 137 const struct bh1750_chip_info *chip_info = data->chip_info; in bh1750_read_raw() local [all …]
|
/linux-6.12.1/drivers/crypto/intel/qat/qat_common/ |
D | qat_hal.c | 304 unsigned int reset_mask = handle->chip_info->icp_rst_mask; in qat_hal_reset() 305 unsigned int reset_csr = handle->chip_info->icp_rst_csr; in qat_hal_reset() 423 misc_ctl_csr = handle->chip_info->misc_ctl_csr; in qat_hal_reset_timestamp() 475 unsigned int clk_csr = handle->chip_info->glb_clk_enable_csr; in qat_hal_clr_reset() 476 unsigned int reset_mask = handle->chip_info->icp_rst_mask; in qat_hal_clr_reset() 477 unsigned int reset_csr = handle->chip_info->icp_rst_csr; in qat_hal_clr_reset() 637 if (handle->chip_info->nn) in qat_hal_clear_gpr() 701 handle->chip_info->mmp_sram_size = 0; in qat_hal_chip_init() 702 handle->chip_info->nn = false; in qat_hal_chip_init() 703 handle->chip_info->lm2lm3 = true; in qat_hal_chip_init() [all …]
|
/linux-6.12.1/drivers/iio/proximity/ |
D | sx_common.c | 83 ret = regmap_read(data->regmap, data->chip_info->reg_stat, &val); in sx_common_push_events() 89 val >>= data->chip_info->stat_offset; in sx_common_push_events() 97 for_each_set_bit(chan, &prox_changed, data->chip_info->num_channels) { in sx_common_push_events() 114 return regmap_set_bits(data->regmap, data->chip_info->reg_irq_msk, in sx_common_enable_irq() 115 irq << data->chip_info->irq_msk_offset); in sx_common_enable_irq() 122 return regmap_clear_bits(data->regmap, data->chip_info->reg_irq_msk, in sx_common_disable_irq() 123 irq << data->chip_info->irq_msk_offset); in sx_common_disable_irq() 135 data->chip_info->reg_enable_chan, in sx_common_update_chan_en() 136 data->chip_info->mask_enable_chan, in sx_common_update_chan_en() 201 ret = data->chip_info->ops.wait_for_sample(data); in sx_common_read_proximity() [all …]
|
D | srf08.c | 76 const struct srf08_chip_info *chip_info; member 321 for (i = 0; i < data->chip_info->num_sensitivity_avail; i++) in srf08_show_sensitivity_available() 322 if (data->chip_info->sensitivity_avail[i]) in srf08_show_sensitivity_available() 324 data->chip_info->sensitivity_avail[i]); in srf08_show_sensitivity_available() 356 for (i = 0; i < data->chip_info->num_sensitivity_avail; i++) in srf08_write_sensitivity() 357 if (val == data->chip_info->sensitivity_avail[i]) { in srf08_write_sensitivity() 362 if (i >= data->chip_info->num_sensitivity_avail) in srf08_write_sensitivity() 470 data->chip_info = &srf02_chip_info; in srf08_probe() 474 data->chip_info = &srf08_chip_info; in srf08_probe() 478 data->chip_info = &srf10_chip_info; in srf08_probe() [all …]
|
/linux-6.12.1/drivers/iio/dac/ |
D | ltc2664.c | 104 const struct ltc2664_chip_info *chip_info; member 135 const int (*span_helper)[2] = st->chip_info->span_helper; in ltc2664_scale_get() 173 if (st->chip_info->span_helper[span][0] < 0) in ltc2664_offset_get() 255 *val = st->chip_info->offset_get(st, chan->channel); in ltc2664_read_raw() 259 *val = st->chip_info->scale_get(st, chan->channel); in ltc2664_read_raw() 495 const struct ltc2664_chip_info *chip_info = st->chip_info; in ltc2664_set_span() local 496 const int (*span_helper)[2] = chip_info->span_helper; in ltc2664_set_span() 499 for (span = 0; span < chip_info->num_span; span++) { in ltc2664_set_span() 504 if (span == chip_info->num_span) in ltc2664_set_span() 516 const struct ltc2664_chip_info *chip_info = st->chip_info; in ltc2664_channel_config() local [all …]
|
D | ad5449.c | 61 const struct ad5449_chip_info *chip_info; member 258 if (st->chip_info->num_channels == 1) in ad5449_vref_name() 282 st->chip_info = &ad5449_chip_info[id->driver_data]; in ad5449_spi_probe() 285 for (i = 0; i < st->chip_info->num_channels; ++i) in ad5449_spi_probe() 288 ret = devm_regulator_bulk_get(&spi->dev, st->chip_info->num_channels, in ad5449_spi_probe() 293 ret = regulator_bulk_enable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe() 300 indio_dev->channels = st->chip_info->channels; in ad5449_spi_probe() 301 indio_dev->num_channels = st->chip_info->num_channels; in ad5449_spi_probe() 305 if (st->chip_info->has_ctrl) { in ad5449_spi_probe() 317 regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe() [all …]
|
D | ad5360.c | 76 const struct ad5360_chip_info *chip_info; member 177 i = channel / st->chip_info->channels_per_group; in ad5360_get_channel_vref_index() 178 if (i >= st->chip_info->num_vrefs) in ad5360_get_channel_vref_index() 179 i = st->chip_info->num_vrefs - 1; in ad5360_get_channel_vref_index() 442 channels = kcalloc(st->chip_info->num_channels, in ad5360_alloc_channels() 448 for (i = 0; i < st->chip_info->num_channels; ++i) { in ad5360_alloc_channels() 449 channels[i] = st->chip_info->channel_template; in ad5360_alloc_channels() 476 st->chip_info = &ad5360_chip_info_tbl[type]; in ad5360_probe() 482 indio_dev->num_channels = st->chip_info->num_channels; in ad5360_probe() 492 for (i = 0; i < st->chip_info->num_vrefs; ++i) in ad5360_probe() [all …]
|
/linux-6.12.1/drivers/power/supply/ |
D | bq25980_charger.c | 102 const struct bq25980_chip_info *chip_info; member 307 busocp = min(busocp, bq->chip_info->busocp_sc_max); in bq25980_set_input_curr_lim() 309 busocp = min(busocp, bq->chip_info->busocp_byp_max); in bq25980_set_input_curr_lim() 329 busovp_step = bq->chip_info->busovp_byp_step; in bq25980_get_input_volt_lim() 330 busovp_offset = bq->chip_info->busovp_byp_offset; in bq25980_get_input_volt_lim() 332 busovp_step = bq->chip_info->busovp_sc_step; in bq25980_get_input_volt_lim() 333 busovp_offset = bq->chip_info->busovp_sc_offset; in bq25980_get_input_volt_lim() 351 busovp_step = bq->chip_info->busovp_byp_step; in bq25980_set_input_volt_lim() 352 busovp_offset = bq->chip_info->busovp_byp_offset; in bq25980_set_input_volt_lim() 353 if (busovp > bq->chip_info->busovp_byp_max) in bq25980_set_input_volt_lim() [all …]
|
D | bq256xx_charger.c | 247 const struct bq256xx_chip_info *chip_info; member 911 ret = bq->chip_info->bq256xx_set_iindpm(bq, val->intval); in bq256xx_set_charger_property() 920 ret = bq->chip_info->bq256xx_set_vbatreg(bq, val->intval); in bq256xx_set_charger_property() 926 ret = bq->chip_info->bq256xx_set_ichg(bq, val->intval); in bq256xx_set_charger_property() 932 ret = bq->chip_info->bq256xx_set_iprechg(bq, val->intval); in bq256xx_set_charger_property() 938 ret = bq->chip_info->bq256xx_set_iterm(bq, val->intval); in bq256xx_set_charger_property() 944 ret = bq->chip_info->bq256xx_set_vindpm(bq, val->intval); in bq256xx_set_charger_property() 950 ret = bq->chip_info->bq256xx_set_charge_type(bq, val->intval); in bq256xx_set_charger_property() 1057 if (bq->chip_info->has_usb_detect) { in bq256xx_get_charger_property() 1122 ret = bq->chip_info->bq256xx_get_vindpm(bq); in bq256xx_get_charger_property() [all …]
|
/linux-6.12.1/drivers/iio/accel/ |
D | kionix-kx022a.c | 266 const struct kx022a_chip_info *chip_info; member 455 ret = regmap_set_bits(data->regmap, data->chip_info->cntl, in kx022a_turn_on_off_unlocked() 458 ret = regmap_clear_bits(data->regmap, data->chip_info->cntl, in kx022a_turn_on_off_unlocked() 539 data->chip_info->odcntl, in kx022a_write_raw() 560 ret = regmap_update_bits(data->regmap, data->chip_info->cntl, in kx022a_write_raw() 582 return regmap_update_bits(data->regmap, data->chip_info->buf_cntl1, in kx022a_fifo_set_wmi() 625 ret = regmap_read(data->regmap, data->chip_info->odcntl, ®val); in kx022a_read_raw() 640 ret = regmap_read(data->regmap, data->chip_info->cntl, ®val); in kx022a_read_raw() 656 val = min(data->chip_info->fifo_length, val); in kx022a_set_watermark() 717 return regmap_write(data->regmap, data->chip_info->buf_clear, 0x0); in kx022a_drop_fifo_contents() [all …]
|
D | kionix-kx022a-i2c.c | 18 const struct kx022a_chip_info *chip_info; in kx022a_i2c_probe() local 26 chip_info = i2c_get_match_data(i2c); in kx022a_i2c_probe() 27 if (!chip_info) in kx022a_i2c_probe() 30 regmap = devm_regmap_init_i2c(i2c, chip_info->regmap_config); in kx022a_i2c_probe() 35 return kx022a_probe_internal(dev, chip_info); in kx022a_i2c_probe()
|
D | kionix-kx022a-spi.c | 18 const struct kx022a_chip_info *chip_info; in kx022a_spi_probe() local 26 chip_info = spi_get_device_match_data(spi); in kx022a_spi_probe() 27 if (!chip_info) in kx022a_spi_probe() 30 regmap = devm_regmap_init_spi(spi, chip_info->regmap_config); in kx022a_spi_probe() 35 return kx022a_probe_internal(dev, chip_info); in kx022a_spi_probe()
|
/linux-6.12.1/drivers/iio/pressure/ |
D | bmp280-core.c | 640 ret = data->chip_info->read_humid(data, &chan_value); in bmp280_read_raw_impl() 644 *val = data->chip_info->humid_coeffs[0] * chan_value; in bmp280_read_raw_impl() 645 *val2 = data->chip_info->humid_coeffs[1]; in bmp280_read_raw_impl() 646 return data->chip_info->humid_coeffs_type; in bmp280_read_raw_impl() 648 ret = data->chip_info->read_press(data, &chan_value); in bmp280_read_raw_impl() 652 *val = data->chip_info->press_coeffs[0] * chan_value; in bmp280_read_raw_impl() 653 *val2 = data->chip_info->press_coeffs[1]; in bmp280_read_raw_impl() 654 return data->chip_info->press_coeffs_type; in bmp280_read_raw_impl() 656 ret = data->chip_info->read_temp(data, &chan_value); in bmp280_read_raw_impl() 660 *val = data->chip_info->temp_coeffs[0] * chan_value; in bmp280_read_raw_impl() [all …]
|
/linux-6.12.1/drivers/iio/adc/ |
D | ad7780.c | 60 const struct ad7780_chip_info *chip_info; member 146 const struct ad7780_chip_info *chip_info = st->chip_info; in ad7780_write_raw() local 150 if (!chip_info->is_ad778x) in ad7780_write_raw() 159 full_scale = 1 << (chip_info->channel.scan_type.realbits - 1); in ad7780_write_raw() 188 const struct ad7780_chip_info *chip_info = st->chip_info; in ad7780_postprocess_sample() local 191 ((raw_sample & chip_info->pattern_mask) != chip_info->pattern)) in ad7780_postprocess_sample() 194 if (chip_info->is_ad778x) { in ad7780_postprocess_sample() 278 if (!st->chip_info->is_ad778x) in ad7780_init_gpios() 323 st->chip_info = in ad7780_probe() 328 indio_dev->channels = &st->chip_info->channel; in ad7780_probe()
|
D | ad7476.c | 41 const struct ad7476_chip_info *chip_info; member 149 *val = (ret >> st->chip_info->channel[0].scan_type.shift) & in ad7476_read_raw() 150 GENMASK(st->chip_info->channel[0].scan_type.realbits - 1, 0); in ad7476_read_raw() 158 scale_uv = st->chip_info->int_vref_uv; in ad7476_read_raw() 315 st->chip_info = in ad7476_probe() 331 if (!st->chip_info->int_vref_uv) in ad7476_probe() 334 if (st->chip_info->has_vref) { in ad7476_probe() 337 if (st->chip_info->int_vref_uv) { in ad7476_probe() 370 if (st->chip_info->has_vdrive) { in ad7476_probe() 386 indio_dev->channels = st->chip_info->channel; in ad7476_probe() [all …]
|
D | mcp320x.c | 93 const struct mcp320x_chip_info *chip_info; member 125 if (adc->chip_info->conv_time) { in mcp320x_adc_conversion() 130 usleep_range(adc->chip_info->conv_time, in mcp320x_adc_conversion() 131 adc->chip_info->conv_time + 100); in mcp320x_adc_conversion() 135 if (adc->chip_info->num_channels > 1) in mcp320x_adc_conversion() 223 *val2 = adc->chip_info->resolution; in mcp320x_read_raw() 383 const struct mcp320x_chip_info *chip_info; in mcp320x_probe() local 398 chip_info = &mcp320x_chip_infos[device_index]; in mcp320x_probe() 399 indio_dev->channels = chip_info->channels; in mcp320x_probe() 400 indio_dev->num_channels = chip_info->num_channels; in mcp320x_probe() [all …]
|
D | ltc2497.c | 68 - BIT(ddata->chip_info->resolution + 1); in ltc2497_result_and_measure() 71 - BIT(ddata->chip_info->resolution + 1); in ltc2497_result_and_measure() 98 const struct ltc2497_chip_info *chip_info; in ltc2497_probe() local 117 chip_info = i2c_get_match_data(client); in ltc2497_probe() 118 st->common_ddata.chip_info = chip_info; in ltc2497_probe() 120 resolution = chip_info->resolution; in ltc2497_probe()
|
D | ad7793.c | 154 const struct ad7793_chip_info *chip_info; member 235 if (!(st->chip_info->flags & AD7793_FLAG_HAS_CLKSEL) && in ad7793_check_platform_data() 239 if (!(st->chip_info->flags & AD7793_FLAG_HAS_REFSEL) && in ad7793_check_platform_data() 243 if (!(st->chip_info->flags & AD7793_FLAG_HAS_VBIAS) && in ad7793_check_platform_data() 247 if (!(st->chip_info->flags & AD7793_HAS_EXITATION_CURRENT) && in ad7793_check_platform_data() 280 if (id != st->chip_info->id) { in ad7793_setup() 289 if (st->chip_info->flags & AD7793_FLAG_HAS_CLKSEL) in ad7793_setup() 291 if (st->chip_info->flags & AD7793_FLAG_HAS_REFSEL) in ad7793_setup() 293 if (st->chip_info->flags & AD7793_FLAG_HAS_VBIAS) in ad7793_setup() 295 if (pdata->buffered || !(st->chip_info->flags & AD7793_FLAG_HAS_BUFFER)) in ad7793_setup() [all …]
|
/linux-6.12.1/drivers/iio/amplifiers/ |
D | hmc425a.c | 62 const struct hmc425a_chip_info *chip_info; member 70 const struct hmc425a_chip_info *inf = st->chip_info; in gain_dB_to_code() 83 return st->chip_info->gain_dB_to_code(gain, code); in gain_dB_to_code() 118 return st->chip_info->code_to_gain_dB(st->gain, val, val2); in code_to_gain_dB() 365 st->chip_info = device_get_match_data(&pdev->dev); in hmc425a_probe() 366 indio_dev->num_channels = st->chip_info->num_channels; in hmc425a_probe() 367 indio_dev->channels = st->chip_info->channels; in hmc425a_probe() 368 indio_dev->name = st->chip_info->name; in hmc425a_probe() 369 st->gain = st->chip_info->default_gain; in hmc425a_probe() 376 if (st->gpios->ndescs != st->chip_info->num_gpios) { in hmc425a_probe() [all …]
|
/linux-6.12.1/drivers/spi/ |
D | spi-pl022.c | 1370 struct pl022_config_chip const *chip_info) in verify_controller_parameters() argument 1372 if ((chip_info->iface < SSP_INTERFACE_MOTOROLA_SPI) in verify_controller_parameters() 1373 || (chip_info->iface > SSP_INTERFACE_UNIDIRECTIONAL)) { in verify_controller_parameters() 1378 if ((chip_info->iface == SSP_INTERFACE_UNIDIRECTIONAL) && in verify_controller_parameters() 1385 if ((chip_info->hierarchy != SSP_MASTER) in verify_controller_parameters() 1386 && (chip_info->hierarchy != SSP_SLAVE)) { in verify_controller_parameters() 1391 if ((chip_info->com_mode != INTERRUPT_TRANSFER) in verify_controller_parameters() 1392 && (chip_info->com_mode != DMA_TRANSFER) in verify_controller_parameters() 1393 && (chip_info->com_mode != POLLING_TRANSFER)) { in verify_controller_parameters() 1398 switch (chip_info->rx_lev_trig) { in verify_controller_parameters() [all …]
|
/linux-6.12.1/sound/soc/sof/intel/ |
D | pci-tgl.c | 30 .chip_info = &tgl_chip_info, 63 .chip_info = &tglh_chip_info, 95 .chip_info = &ehl_chip_info, 128 .chip_info = &adls_chip_info, 161 .chip_info = &tgl_chip_info, 194 .chip_info = &tgl_chip_info, 227 .chip_info = &adls_chip_info, 260 .chip_info = &tgl_chip_info,
|