Home
last modified time | relevance | path

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

123456

/openbmc/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 Dlcd.c91 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 …]
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()
/openbmc/linux/drivers/iio/temperature/
H A Dmlx90614.c103 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 …]
/openbmc/linux/drivers/iio/light/
H A Dbh1750.c41 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 …]
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_hal.c304 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()
700 handle->chip_info->mmp_sram_size = 0; in qat_hal_chip_init()
701 handle->chip_info->nn = false; in qat_hal_chip_init()
702 handle->chip_info->lm2lm3 = true; in qat_hal_chip_init()
[all …]
/openbmc/linux/drivers/iio/proximity/
H A Dsx_common.c83 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_update_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()
116 irq << data->chip_info->irq_msk_offset); in sx_common_enable_irq()
123 return regmap_update_bits(data->regmap, data->chip_info->reg_irq_msk, in sx_common_disable_irq()
124 irq << data->chip_info->irq_msk_offset, 0); in sx_common_disable_irq()
136 data->chip_info->reg_enable_chan, in sx_common_update_chan_en()
137 data->chip_info->mask_enable_chan, in sx_common_update_chan_en()
[all …]
H A Dsrf08.c76 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 …]
/openbmc/linux/drivers/power/supply/
H A Dbq25980_charger.c102 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 …]
H A Dbq256xx_charger.c247 const struct bq256xx_chip_info *chip_info; member
919 ret = bq->chip_info->bq256xx_set_iindpm(bq, val->intval); in bq256xx_set_charger_property()
928 ret = bq->chip_info->bq256xx_set_vbatreg(bq, val->intval); in bq256xx_set_charger_property()
934 ret = bq->chip_info->bq256xx_set_ichg(bq, val->intval); in bq256xx_set_charger_property()
940 ret = bq->chip_info->bq256xx_set_iprechg(bq, val->intval); in bq256xx_set_charger_property()
946 ret = bq->chip_info->bq256xx_set_iterm(bq, val->intval); in bq256xx_set_charger_property()
952 ret = bq->chip_info->bq256xx_set_vindpm(bq, val->intval); in bq256xx_set_charger_property()
958 ret = bq->chip_info->bq256xx_set_charge_type(bq, val->intval); in bq256xx_set_charger_property()
1065 if (bq->chip_info->has_usb_detect) { in bq256xx_get_charger_property()
1130 ret = bq->chip_info->bq256xx_get_vindpm(bq); in bq256xx_get_charger_property()
[all …]
/openbmc/linux/drivers/iio/adc/
H A Dltc2497.c68 - BIT(ddata->chip_info->resolution + 1); in ltc2497_result_and_measure()
71 - BIT(ddata->chip_info->resolution + 1); in ltc2497_result_and_measure()
99 const struct ltc2497_chip_info *chip_info; in ltc2497_probe() local
118 chip_info = device_get_match_data(dev); in ltc2497_probe()
119 if (!chip_info) in ltc2497_probe()
120 chip_info = (const struct ltc2497_chip_info *)id->driver_data; in ltc2497_probe()
121 st->common_ddata.chip_info = chip_info; in ltc2497_probe()
123 resolution = chip_info->resolution; in ltc2497_probe()
H A Dad7780.c60 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()
H A Dad7476.c41 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 …]
H A Dmcp320x.c93 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()
378 const struct mcp320x_chip_info *chip_info; in mcp320x_probe() local
394 chip_info = &mcp320x_chip_infos[device_index]; in mcp320x_probe()
395 indio_dev->channels = chip_info->channels; in mcp320x_probe()
396 indio_dev->num_channels = chip_info->num_channels; in mcp320x_probe()
[all …]
H A Dmax11205.c33 const struct max11205_chip_info *chip_info; member
61 *val = st->chip_info->out_data_rate; in max11205_read_raw()
119 st->chip_info = device_get_match_data(&spi->dev); in max11205_probe()
120 if (!st->chip_info) in max11205_probe()
121 st->chip_info = in max11205_probe()
124 indio_dev->name = st->chip_info->name; in max11205_probe()
H A Dad7793.c154 const struct ad7793_chip_info *chip_info; member
236 if (!(st->chip_info->flags & AD7793_FLAG_HAS_CLKSEL) && in ad7793_check_platform_data()
240 if (!(st->chip_info->flags & AD7793_FLAG_HAS_REFSEL) && in ad7793_check_platform_data()
244 if (!(st->chip_info->flags & AD7793_FLAG_HAS_VBIAS) && in ad7793_check_platform_data()
248 if (!(st->chip_info->flags & AD7793_HAS_EXITATION_CURRENT) && in ad7793_check_platform_data()
281 if (id != st->chip_info->id) { in ad7793_setup()
290 if (st->chip_info->flags & AD7793_FLAG_HAS_CLKSEL) in ad7793_setup()
292 if (st->chip_info->flags & AD7793_FLAG_HAS_REFSEL) in ad7793_setup()
294 if (st->chip_info->flags & AD7793_FLAG_HAS_VBIAS) in ad7793_setup()
296 if (pdata->buffered || !(st->chip_info->flags & AD7793_FLAG_HAS_BUFFER)) in ad7793_setup()
[all …]
/openbmc/linux/drivers/iio/pressure/
H A Dbmp280-i2c.c11 const struct bmp280_chip_info *chip_info; in bmp280_i2c_probe() local
14 chip_info = device_get_match_data(&client->dev); in bmp280_i2c_probe()
15 if (!chip_info) in bmp280_i2c_probe()
16 chip_info = (const struct bmp280_chip_info *) id->driver_data; in bmp280_i2c_probe()
18 regmap = devm_regmap_init_i2c(client, chip_info->regmap_config); in bmp280_i2c_probe()
26 chip_info, in bmp280_i2c_probe()
H A Dbmp280-core.c477 ret = data->chip_info->read_humid(data, val, val2); in bmp280_read_raw()
480 ret = data->chip_info->read_press(data, val, val2); in bmp280_read_raw()
483 ret = data->chip_info->read_temp(data, val, val2); in bmp280_read_raw()
510 if (!data->chip_info->sampling_freq_avail) { in bmp280_read_raw()
515 *val = data->chip_info->sampling_freq_avail[data->sampling_freq][0]; in bmp280_read_raw()
516 *val2 = data->chip_info->sampling_freq_avail[data->sampling_freq][1]; in bmp280_read_raw()
520 if (!data->chip_info->iir_filter_coeffs_avail) { in bmp280_read_raw()
543 const int *avail = data->chip_info->oversampling_humid_avail; in bme280_write_oversampling_ratio_humid()
544 const int n = data->chip_info->num_oversampling_humid_avail; in bme280_write_oversampling_ratio_humid()
553 ret = data->chip_info->chip_config(data); in bme280_write_oversampling_ratio_humid()
[all …]
H A Dbmp280-spi.c50 const struct bmp280_chip_info *chip_info; in bmp280_spi_probe() local
61 chip_info = device_get_match_data(&spi->dev); in bmp280_spi_probe()
62 if (!chip_info) in bmp280_spi_probe()
63 chip_info = (const struct bmp280_chip_info *) id->driver_data; in bmp280_spi_probe()
68 chip_info->regmap_config); in bmp280_spi_probe()
76 chip_info, in bmp280_spi_probe()
/openbmc/linux/drivers/iio/amplifiers/
H A Dhmc425a.c38 struct hmc425a_chip_info *chip_info; member
93 struct hmc425a_chip_info *inf = st->chip_info; in hmc425a_write_raw()
189 st->chip_info = &hmc425a_chip_info_tbl[st->type]; in hmc425a_probe()
190 indio_dev->num_channels = st->chip_info->num_channels; in hmc425a_probe()
191 indio_dev->channels = st->chip_info->channels; in hmc425a_probe()
192 indio_dev->name = st->chip_info->name; in hmc425a_probe()
193 st->gain = st->chip_info->default_gain; in hmc425a_probe()
200 if (st->gpios->ndescs != st->chip_info->num_gpios) { in hmc425a_probe()
202 st->chip_info->num_gpios); in hmc425a_probe()
/openbmc/linux/drivers/iio/dac/
H A Dad5449.c63 const struct ad5449_chip_info *chip_info; member
260 if (st->chip_info->num_channels == 1) in ad5449_vref_name()
285 st->chip_info = &ad5449_chip_info[id->driver_data]; in ad5449_spi_probe()
288 for (i = 0; i < st->chip_info->num_channels; ++i) in ad5449_spi_probe()
291 ret = devm_regulator_bulk_get(&spi->dev, st->chip_info->num_channels, in ad5449_spi_probe()
296 ret = regulator_bulk_enable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe()
303 indio_dev->channels = st->chip_info->channels; in ad5449_spi_probe()
304 indio_dev->num_channels = st->chip_info->num_channels; in ad5449_spi_probe()
308 if (st->chip_info->has_ctrl) { in ad5449_spi_probe()
328 regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe()
[all …]
H A Dad5360.c76 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 …]
/openbmc/linux/sound/soc/sof/intel/
H A Dpci-tgl.c30 .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,
/openbmc/linux/drivers/spi/
H A Dspi-pl022.c1617 struct pl022_config_chip const *chip_info) in verify_controller_parameters() argument
1619 if ((chip_info->iface < SSP_INTERFACE_MOTOROLA_SPI) in verify_controller_parameters()
1620 || (chip_info->iface > SSP_INTERFACE_UNIDIRECTIONAL)) { in verify_controller_parameters()
1625 if ((chip_info->iface == SSP_INTERFACE_UNIDIRECTIONAL) && in verify_controller_parameters()
1632 if ((chip_info->hierarchy != SSP_MASTER) in verify_controller_parameters()
1633 && (chip_info->hierarchy != SSP_SLAVE)) { in verify_controller_parameters()
1638 if ((chip_info->com_mode != INTERRUPT_TRANSFER) in verify_controller_parameters()
1639 && (chip_info->com_mode != DMA_TRANSFER) in verify_controller_parameters()
1640 && (chip_info->com_mode != POLLING_TRANSFER)) { in verify_controller_parameters()
1645 switch (chip_info->rx_lev_trig) { in verify_controller_parameters()
[all …]

123456