Home
last modified time | relevance | path

Searched refs:chip_info (Results 1 – 25 of 105) sorted by relevance

12345

/linux/drivers/video/fbdev/via/
H A Ddvi.c41 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 …]
H A Dhw.c490 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 …]
H A Dvia_utility.c15 if (viaparinfo->chip_info->tmds_chip_info.tmds_chip_name == VT1632_TMDS) in viafb_get_device_support_state()
18 if (viaparinfo->chip_info->lvds_chip_info.lvds_chip_name == VT1631_LVDS) in viafb_get_device_support_state()
135 switch (viaparinfo->chip_info->gfx_chip_name) { in viafb_set_gamma_table()
166 !((viaparinfo->chip_info->gfx_chip_name == in viafb_set_gamma_table()
168 (viaparinfo->chip_info->gfx_chip_revision < 15))) { in viafb_set_gamma_table()
190 switch (viaparinfo->chip_info->gfx_chip_name) { in viafb_get_gamma_table()
/linux/drivers/iio/temperature/
H A Dmlx90614.c99 const struct mlx_chip_info *chip_info; /* Chip hardware details */ member
150 const struct mlx_chip_info *chip_info = data->chip_info; in mlx90614_iir_search() local
154 for (i = chip_info->iir_valid_offset; in mlx90614_iir_search()
155 i < ARRAY_SIZE(chip_info->iir_values); in mlx90614_iir_search()
157 if (value == chip_info->iir_values[i]) in mlx90614_iir_search()
161 if (i == ARRAY_SIZE(chip_info->iir_values)) in mlx90614_iir_search()
169 ret = i2c_smbus_read_word_data(client, chip_info->op_eeprom_config1); in mlx90614_iir_search()
174 if (chip_info->fir_config_mask) { in mlx90614_iir_search()
175 ret &= ~chip_info->fir_config_mask; in mlx90614_iir_search()
176 ret |= field_prep(chip_info->fir_config_mask, MLX90614_CONST_FIR); in mlx90614_iir_search()
[all …]
/linux/drivers/iio/dac/
H A Dltc2664.c103 const struct ltc2664_chip_info *chip_info; member
134 const int (*span_helper)[2] = st->chip_info->span_helper; in ltc2664_scale_get()
172 if (st->chip_info->span_helper[span][0] < 0) in ltc2664_offset_get()
254 *val = st->chip_info->offset_get(st, chan->channel); in ltc2664_read_raw()
258 *val = st->chip_info->scale_get(st, chan->channel); in ltc2664_read_raw()
494 const struct ltc2664_chip_info *chip_info = st->chip_info; in ltc2664_set_span() local
495 const int (*span_helper)[2] = chip_info->span_helper; in ltc2664_set_span()
498 for (span = 0; span < chip_info->num_span; span++) { in ltc2664_set_span()
503 if (span == chip_info->num_span) in ltc2664_set_span()
515 const struct ltc2664_chip_info *chip_info = st->chip_info; in ltc2664_channel_config() local
[all …]
H A Dad5446.c91 ret = st->chip_info->write(st, val); in ad5446_write_dac_powerdown()
147 return st->chip_info->write(st, val); in ad5446_write_dac_raw()
168 const struct ad5446_chip_info *chip_info) in ad5446_probe() argument
179 st->chip_info = chip_info; in ad5446_probe()
186 indio_dev->channels = &st->chip_info->channel; in ad5446_probe()
199 if (!chip_info->int_vref_mv) in ad5446_probe()
203 st->vref_mv = chip_info->int_vref_mv; in ad5446_probe()
H A Dad3530r.c110 const struct ad3530r_chip_info *chip_info; member
315 ret = regmap_bulk_write(st->regmap, st->chip_info->input_ch_reg(chan), in ad3530r_dac_write()
323 return regmap_set_bits(st->regmap, st->chip_info->sw_ldac_trig_reg(chan), in ad3530r_dac_write()
338 st->chip_info->input_ch_reg(chan->channel), in ad3530r_read_raw()
656 const struct ad3530r_chip_info *chip_info = st->chip_info; in ad3530r_setup() local
673 ret = ad3530r_set_reg_bank_bits(st, chip_info->interface_config_a, in ad3530r_setup()
674 chip_info->num_banks, in ad3530r_setup()
684 ret = ad3530r_set_reg_bank_bits(st, chip_info->output_control, in ad3530r_setup()
685 chip_info->num_banks, in ad3530r_setup()
696 ret = ad3530r_set_reg_bank_bits(st, chip_info->reference_control, in ad3530r_setup()
[all …]
H A Dad5446-i2c.c34 const struct ad5446_chip_info *chip_info; in ad5446_i2c_probe() local
36 chip_info = i2c_get_match_data(i2c); in ad5446_i2c_probe()
37 if (!chip_info) in ad5446_i2c_probe()
40 return ad5446_probe(&i2c->dev, id->name, chip_info); in ad5446_i2c_probe()
/linux/drivers/iio/amplifiers/
H A Dhmc425a.c61 const struct hmc425a_chip_info *chip_info; member
69 const struct hmc425a_chip_info *inf = st->chip_info; in gain_dB_to_code()
82 return st->chip_info->gain_dB_to_code(gain, code); in gain_dB_to_code()
117 return st->chip_info->code_to_gain_dB(st->gain, val, val2); in code_to_gain_dB()
363 st->chip_info = device_get_match_data(&pdev->dev); in hmc425a_probe()
364 indio_dev->num_channels = st->chip_info->num_channels; in hmc425a_probe()
365 indio_dev->channels = st->chip_info->channels; in hmc425a_probe()
366 indio_dev->name = st->chip_info->name; in hmc425a_probe()
367 st->gain = st->chip_info->default_gain; in hmc425a_probe()
374 if (st->gpios->ndescs != st->chip_info->num_gpios) { in hmc425a_probe()
[all …]
/linux/drivers/iio/adc/
H A Dmcp320x.c92 const struct mcp320x_chip_info *chip_info; member
124 if (adc->chip_info->conv_time) { in mcp320x_adc_conversion()
129 usleep_range(adc->chip_info->conv_time, in mcp320x_adc_conversion()
130 adc->chip_info->conv_time + 100); in mcp320x_adc_conversion()
134 if (adc->chip_info->num_channels > 1) in mcp320x_adc_conversion()
222 *val2 = adc->chip_info->resolution; in mcp320x_read_raw()
382 const struct mcp320x_chip_info *chip_info; in mcp320x_probe() local
397 chip_info = &mcp320x_chip_infos[device_index]; in mcp320x_probe()
398 indio_dev->channels = chip_info->channels; in mcp320x_probe()
399 indio_dev->num_channels = chip_info->num_channels; in mcp320x_probe()
[all …]
H A Dltc2497.c67 - BIT(ddata->chip_info->resolution + 1); in ltc2497_result_and_measure()
70 - BIT(ddata->chip_info->resolution + 1); in ltc2497_result_and_measure()
97 const struct ltc2497_chip_info *chip_info; in ltc2497_probe() local
116 chip_info = i2c_get_match_data(client); in ltc2497_probe()
117 st->common_ddata.chip_info = chip_info; in ltc2497_probe()
119 resolution = chip_info->resolution; in ltc2497_probe()
H A Dti-ads1018.c93 const struct ads1018_chip_info *chip_info; member
250 u8 max_drate_mode = ads1018->chip_info->num_data_rate_mode_to_hz - 1; in ads1018_single_shot()
251 u32 drate = ads1018->chip_info->data_rate_mode_to_hz[max_drate_mode]; in ads1018_single_shot()
296 const struct ads1018_chip_info *chip_info = ads1018->chip_info; in ads1018_read_raw_direct_mode() local
317 *val = chip_info->pga_mode_to_gain[pga_mode][0]; in ads1018_read_raw_direct_mode()
318 *val2 = chip_info->pga_mode_to_gain[pga_mode][1]; in ads1018_read_raw_direct_mode()
322 *val = chip_info->temp_scale[0]; in ads1018_read_raw_direct_mode()
323 *val2 = chip_info->temp_scale[1]; in ads1018_read_raw_direct_mode()
332 *val = chip_info->data_rate_mode_to_hz[drate_mode]; in ads1018_read_raw_direct_mode()
363 *vals = (const int *)ads1018->chip_info->pga_mode_to_gain; in ads1018_read_avail()
[all …]
H A Dad7091r-base.c74 if (st->chip_info->reg_result_chan_id(val) != channel) in ad7091r_read_one()
112 *val = st->chip_info->vref_mV; in ad7091r_read_raw()
274 for (i = 0; i < st->chip_info->num_channels; i++) { in ad7091r_event_handler()
325 st->chip_info = init_info->info_irq; in ad7091r_probe()
335 st->chip_info->name, iio_dev); in ad7091r_probe()
339 st->chip_info = init_info->info_no_irq; in ad7091r_probe()
342 iio_dev->name = st->chip_info->name; in ad7091r_probe()
343 iio_dev->num_channels = st->chip_info->num_channels; in ad7091r_probe()
344 iio_dev->channels = st->chip_info->channels; in ad7091r_probe()
368 ret = st->chip_info->set_mode(st, AD7091R_MODE_COMMAND); in ad7091r_probe()
H A Dmt6359-auxadc.c112 const struct mtk_pmic_auxadc_info *chip_info; member
454 const struct mtk_pmic_auxadc_info *cinfo = adc_dev->chip_info; in mt6358_stop_imp_conv()
465 const struct mtk_pmic_auxadc_info *cinfo = adc_dev->chip_info; in mt6358_start_imp_conv()
488 const struct mtk_pmic_auxadc_info *cinfo = adc_dev->chip_info; in mt6358_read_imp()
515 const struct mtk_pmic_auxadc_info *cinfo = adc_dev->chip_info; in mt6359_read_imp()
608 const struct mtk_pmic_auxadc_info *cinfo = adc_dev->chip_info; in mt6359_auxadc_reset()
649 const struct mtk_pmic_auxadc_info *cinfo = adc_dev->chip_info; in mt6359_auxadc_sample_adc_val()
700 const struct mtk_pmic_auxadc_info *cinfo = adc_dev->chip_info; in mt6359_auxadc_read_adc()
767 const struct mtk_pmic_auxadc_info *cinfo = adc_dev->chip_info; in mt6359_auxadc_read_raw()
785 if (!adc_dev->chip_info->read_imp) in mt6359_auxadc_read_raw()
[all …]
H A Dhx711.c101 const struct hx711_chip_info *chip_info; member
505 const struct hx711_chip_info *chip_info; in hx711_probe() local
521 chip_info = device_get_match_data(dev); in hx711_probe()
522 if (!chip_info) in hx711_probe()
525 hx711_data->chip_info = chip_info; in hx711_probe()
588 indio_dev->name = chip_info->name; in hx711_probe()
589 indio_dev->info = chip_info->iio_info; in hx711_probe()
591 indio_dev->channels = chip_info->channels; in hx711_probe()
592 indio_dev->num_channels = chip_info->num_channels; in hx711_probe()
/linux/drivers/iio/accel/
H A Dkionix-kx022a-spi.c18 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()
H A Dkionix-kx022a-i2c.c18 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()
/linux/drivers/iio/imu/bmi270/
H A Dbmi270_i2c.c20 const struct bmi270_chip_info *chip_info; in bmi270_i2c_probe() local
22 chip_info = i2c_get_match_data(client); in bmi270_i2c_probe()
23 if (!chip_info) in bmi270_i2c_probe()
31 return bmi270_core_probe(dev, regmap, chip_info); in bmi270_i2c_probe()
H A Dbmi270_spi.c52 const struct bmi270_chip_info *chip_info; in bmi270_spi_probe() local
54 chip_info = spi_get_device_match_data(spi); in bmi270_spi_probe()
55 if (!chip_info) in bmi270_spi_probe()
64 return bmi270_core_probe(dev, regmap, chip_info); in bmi270_spi_probe()
/linux/drivers/iio/imu/inv_icm45600/
H A Dinv_icm45600_i2c.c19 const struct inv_icm45600_chip_info *chip_info; in inv_icm45600_probe() local
25 chip_info = i2c_get_match_data(client); in inv_icm45600_probe()
26 if (!chip_info) in inv_icm45600_probe()
33 return inv_icm45600_core_probe(regmap, chip_info, true, NULL); in inv_icm45600_probe()
H A Dinv_icm45600_spi.c30 const struct inv_icm45600_chip_info *chip_info; in inv_icm45600_probe() local
33 chip_info = spi_get_device_match_data(spi); in inv_icm45600_probe()
34 if (!chip_info) in inv_icm45600_probe()
42 return inv_icm45600_core_probe(regmap, chip_info, true, in inv_icm45600_probe()
/linux/sound/soc/sof/imx/
H A Dimx-common.c280 const struct imx_chip_info *chip_info; in imx_region_name_to_blk_type()
286 chip_info = get_chip_info(sdev); in imx_parse_ioremap_memory()
288 for (i = 0; chip_info->memory[i].name; i++) { in imx_parse_ioremap_memory()
289 blk_type = imx_region_name_to_blk_type(chip_info->memory[i].name); in imx_parse_ioremap_memory()
293 chip_info->memory[i].name); in imx_parse_ioremap_memory()
295 if (!chip_info->memory[i].reserved) { in imx_parse_ioremap_memory()
297 chip_info->memory[i].name); in imx_parse_ioremap_memory()
301 chip_info->memory[i].name); in imx_parse_ioremap_memory()
305 chip_info->memory[i].name, in imx_parse_ioremap_memory()
310 chip_info in imx_parse_ioremap_memory()
284 const struct imx_chip_info *chip_info; imx_parse_ioremap_memory() local
[all...]
/linux/drivers/iio/light/
H A Dopt3001.c116 const struct opt3001_chip_info *chip_info; member
235 for (unsigned int i = 0; i < ARRAY_SIZE(*opt->chip_info->scales); i++) { in opt3001_find_scale()
236 const struct opt3001_scale *scale = &(*opt->chip_info->scales)[i]; in opt3001_find_scale()
254 int whole = opt->chip_info->factor_whole; in opt3001_to_iio_ret()
255 int integer = opt->chip_info->factor_integer; in opt3001_to_iio_ret()
256 int decimal = opt->chip_info->factor_decimal; in opt3001_to_iio_ret()
512 if (chan->type != opt->chip_info->chan_type) in opt3001_read_raw()
537 if (chan->type != opt->chip_info->chan_type) in opt3001_write_raw()
608 whole = opt->chip_info->factor_whole; in opt3001_write_event_value()
609 integer = opt->chip_info->factor_integer; in opt3001_write_event_value()
[all …]
/linux/drivers/clk/
H A Dclk-renesas-pcie.c65 const struct rs9_chip_info *chip_info; member
165 return BIT(idx + rs9->chip_info->outshift); in rs9_calc_dif()
262 for (i = 0; i < rs9->chip_info->num_clks; i++) { in rs9_update_config()
296 rs9->chip_info = i2c_get_match_data(client); in rs9_probe()
297 if (!rs9->chip_info) in rs9_probe()
306 for (i = 0; i < rs9->chip_info->num_clks; i++) { in rs9_probe()
332 if (vid != RS9_REG_VID_IDT || did != rs9->chip_info->did) in rs9_probe()
336 rs9->chip_info->did); in rs9_probe()
339 for (i = 0; i < rs9->chip_info->num_clks; i++) { in rs9_probe()
/linux/drivers/iio/imu/
H A Dadis16480.c172 const struct adis16480_chip_info *chip_info; member
359 if (scaled_rate > st->chip_info->int_clk) in adis16480_set_freq()
360 scaled_rate = st->chip_info->int_clk / st->clk_freq * st->clk_freq; in adis16480_set_freq()
362 scaled_rate = st->chip_info->int_clk / scaled_rate * scaled_rate; in adis16480_set_freq()
389 if (t > st->chip_info->max_dec_rate) in adis16480_set_freq()
390 t = st->chip_info->max_dec_rate; in adis16480_set_freq()
595 *freq = st->chip_info->filter_freqs[(val >> offset) & 0x3]; in adis16480_get_filter_freq()
624 best_diff = st->chip_info->filter_freqs[0]; in adis16480_set_filter_freq()
626 if (st->chip_info->filter_freqs[i] >= freq) { in adis16480_set_filter_freq()
627 diff = st->chip_info->filter_freqs[i] - freq; in adis16480_set_filter_freq()
[all …]

12345