Home
last modified time | relevance | path

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

1234

/drivers/video/fbdev/via/
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 …]
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 …]
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 …]
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()
/drivers/iio/light/
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 …]
/drivers/crypto/qat/qat_common/
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()
699 handle->chip_info->mmp_sram_size = 0; in qat_hal_chip_init()
700 handle->chip_info->nn = false; in qat_hal_chip_init()
701 handle->chip_info->lm2lm3 = true; in qat_hal_chip_init()
[all …]
/drivers/power/supply/
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 …]
Dbq256xx_charger.c239 const struct bq256xx_chip_info *chip_info; member
880 ret = bq->chip_info->bq256xx_set_iindpm(bq, val->intval); in bq256xx_set_charger_property()
889 ret = bq->chip_info->bq256xx_set_vbatreg(bq, val->intval); in bq256xx_set_charger_property()
895 ret = bq->chip_info->bq256xx_set_ichg(bq, val->intval); in bq256xx_set_charger_property()
901 ret = bq->chip_info->bq256xx_set_iprechg(bq, val->intval); in bq256xx_set_charger_property()
907 ret = bq->chip_info->bq256xx_set_iterm(bq, val->intval); in bq256xx_set_charger_property()
913 ret = bq->chip_info->bq256xx_set_vindpm(bq, val->intval); in bq256xx_set_charger_property()
1020 if (bq->chip_info->has_usb_detect) { in bq256xx_get_charger_property()
1085 ret = bq->chip_info->bq256xx_get_vindpm(bq); in bq256xx_get_charger_property()
1092 ret = bq->chip_info->bq256xx_get_iindpm(bq); in bq256xx_get_charger_property()
[all …]
/drivers/iio/adc/
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()
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 …]
Dad7476.c41 const struct ad7476_chip_info *chip_info; member
150 *val = (ret >> st->chip_info->channel[0].scan_type.shift) & in ad7476_read_raw()
151 GENMASK(st->chip_info->channel[0].scan_type.realbits - 1, 0); in ad7476_read_raw()
159 scale_uv = st->chip_info->int_vref_uv; in ad7476_read_raw()
316 st->chip_info = in ad7476_probe()
332 if (!st->chip_info->int_vref_uv) in ad7476_probe()
335 if (st->chip_info->has_vref) { in ad7476_probe()
338 if (st->chip_info->int_vref_uv) { in ad7476_probe()
371 if (st->chip_info->has_vdrive) { in ad7476_probe()
396 indio_dev->channels = st->chip_info->channel; in ad7476_probe()
[all …]
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 …]
Dad7091r5.c55 const struct ad7091r_chip_info *chip_info; in ad7091r5_i2c_probe() local
62 chip_info = &ad7091r5_chip_info_irq; in ad7091r5_i2c_probe()
64 chip_info = &ad7091r5_chip_info_noirq; in ad7091r5_i2c_probe()
66 return ad7091r_probe(&i2c->dev, id->name, chip_info, map, i2c->irq); in ad7091r5_i2c_probe()
Dad9467.c199 const struct adi_axi_adc_chip_info *info = conv->chip_info; in __ad9467_get_scale()
274 const struct adi_axi_adc_chip_info *info = conv->chip_info; in ad9467_get_scale()
301 const struct adi_axi_adc_chip_info *info = conv->chip_info; in ad9467_set_scale()
349 const struct adi_axi_adc_chip_info *info = conv->chip_info; in ad9467_write_raw()
375 const struct adi_axi_adc_chip_info *info = conv->chip_info; in ad9467_read_avail()
404 const struct adi_axi_adc_chip_info *info = conv->chip_info; in ad9467_scale_fill()
476 conv->chip_info = &info->axi_adc_info; in ad9467_probe()
483 if (id != conv->chip_info->id) { in ad9467_probe()
485 id, conv->chip_info->id); in ad9467_probe()
Dad7091r-base.c49 const struct ad7091r_chip_info *chip_info; member
177 *val = st->chip_info->vref_mV; in ad7091r_read_raw()
344 for (i = 0; i < st->chip_info->num_channels; i++) { in ad7091r_event_handler()
368 const struct ad7091r_chip_info *chip_info, in ad7091r_probe() argument
381 st->chip_info = chip_info; in ad7091r_probe()
388 iio_dev->num_channels = chip_info->num_channels; in ad7091r_probe()
389 iio_dev->channels = chip_info->channels; in ad7091r_probe()
/drivers/iio/amplifiers/
Dhmc425a.c39 struct hmc425a_chip_info *chip_info; member
94 struct hmc425a_chip_info *inf = st->chip_info; in hmc425a_write_raw()
197 st->chip_info = &hmc425a_chip_info_tbl[st->type]; in hmc425a_probe()
198 indio_dev->num_channels = st->chip_info->num_channels; in hmc425a_probe()
199 indio_dev->channels = st->chip_info->channels; in hmc425a_probe()
200 indio_dev->name = st->chip_info->name; in hmc425a_probe()
201 st->gain = st->chip_info->default_gain; in hmc425a_probe()
208 if (st->gpios->ndescs != st->chip_info->num_gpios) { in hmc425a_probe()
210 st->chip_info->num_gpios); in hmc425a_probe()
/drivers/iio/proximity/
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 && (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 …]
/drivers/iio/dac/
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 …]
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 …]
Dad5764.c54 const struct ad5764_chip_info *chip_info; member
215 if (st->chip_info->int_vref) in ad5764_get_channel_vref()
216 return st->chip_info->int_vref; in ad5764_get_channel_vref()
290 st->chip_info = &ad5764_chip_infos[type]; in ad5764_probe()
296 indio_dev->channels = st->chip_info->channels; in ad5764_probe()
300 if (st->chip_info->int_vref == 0) { in ad5764_probe()
330 if (st->chip_info->int_vref == 0) in ad5764_probe()
342 if (st->chip_info->int_vref == 0) in ad5764_remove()
/drivers/spi/
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 …]
/drivers/iio/pressure/
Dbmp280-core.c89 const struct bmp280_chip_info *chip_info; member
446 ret = data->chip_info->read_humid(data, val, val2); in bmp280_read_raw()
449 ret = data->chip_info->read_press(data, val, val2); in bmp280_read_raw()
452 ret = data->chip_info->read_temp(data, val); in bmp280_read_raw()
494 const int *avail = data->chip_info->oversampling_humid_avail; in bmp280_write_oversampling_ratio_humid()
495 const int n = data->chip_info->num_oversampling_humid_avail; in bmp280_write_oversampling_ratio_humid()
501 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_humid()
511 const int *avail = data->chip_info->oversampling_temp_avail; in bmp280_write_oversampling_ratio_temp()
512 const int n = data->chip_info->num_oversampling_temp_avail; in bmp280_write_oversampling_ratio_temp()
518 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_temp()
[all …]
/drivers/iio/imu/
Dadis16480.c165 const struct adis16480_chip_info *chip_info; member
361 if (scaled_rate > st->chip_info->int_clk) in adis16480_set_freq()
362 scaled_rate = st->chip_info->int_clk / st->clk_freq * st->clk_freq; in adis16480_set_freq()
364 scaled_rate = st->chip_info->int_clk / scaled_rate * scaled_rate; in adis16480_set_freq()
391 if (t > st->chip_info->max_dec_rate) in adis16480_set_freq()
392 t = st->chip_info->max_dec_rate; in adis16480_set_freq()
599 *freq = st->chip_info->filter_freqs[(val >> offset) & 0x3]; in adis16480_get_filter_freq()
628 best_diff = st->chip_info->filter_freqs[0]; in adis16480_set_filter_freq()
630 if (st->chip_info->filter_freqs[i] >= freq) { in adis16480_set_filter_freq()
631 diff = st->chip_info->filter_freqs[i] - freq; in adis16480_set_filter_freq()
[all …]
Dadis16460.c68 const struct adis16460_chip_info *chip_info; member
200 *val = st->chip_info->gyro_max_scale; in adis16460_read_raw()
201 *val2 = st->chip_info->gyro_max_val; in adis16460_read_raw()
204 *val = st->chip_info->accel_max_scale; in adis16460_read_raw()
205 *val2 = st->chip_info->accel_max_val; in adis16460_read_raw()
392 st->chip_info = &adis16460_chip_info; in adis16460_probe()
394 indio_dev->channels = st->chip_info->channels; in adis16460_probe()
395 indio_dev->num_channels = st->chip_info->num_channels; in adis16460_probe()
/drivers/input/touchscreen/
Dst1232.c59 const struct st_chip_info *chip_info; member
139 for (i = 0; i < ts->chip_info->max_fingers; i++) { in st1232_ts_parse_and_report()
150 if (ts->chip_info->have_z) in st1232_ts_parse_and_report()
163 if (ts->chip_info->have_z) in st1232_ts_parse_and_report()
254 ts->chip_info = match; in st1232_ts_probe()
257 ts->read_buf_len = ts->chip_info->max_fingers * 4; in st1232_ts_probe()
303 if (ts->chip_info->have_z) in st1232_ts_probe()
305 ts->chip_info->max_area, 0, 0); in st1232_ts_probe()
314 error = input_mt_init_slots(input_dev, ts->chip_info->max_fingers, in st1232_ts_probe()

1234