| /Linux-v5.4/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 …]
|
| D | via_utility.c | 15 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-v5.4/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-v5.4/drivers/iio/pressure/ |
| D | ms5611_core.c | 89 i, &st->chip_info->prom[i]); in ms5611_read_prom() 97 if (!ms5611_prom_is_valid(st->chip_info->prom, MS5611_PROM_WORDS_NB)) { in ms5611_read_prom() 118 return st->chip_info->temp_and_pressure_compensate(st->chip_info, in ms5611_read_temp_and_pressure() 122 static int ms5611_temp_and_pressure_compensate(struct ms5611_chip_info *chip_info, in ms5611_temp_and_pressure_compensate() argument 128 dt = t - (chip_info->prom[5] << 8); in ms5611_temp_and_pressure_compensate() 129 off = ((s64)chip_info->prom[2] << 16) + ((chip_info->prom[4] * dt) >> 7); in ms5611_temp_and_pressure_compensate() 130 sens = ((s64)chip_info->prom[1] << 15) + ((chip_info->prom[3] * dt) >> 8); in ms5611_temp_and_pressure_compensate() 132 t = 2000 + ((chip_info->prom[6] * dt) >> 23); in ms5611_temp_and_pressure_compensate() 158 static int ms5607_temp_and_pressure_compensate(struct ms5611_chip_info *chip_info, in ms5607_temp_and_pressure_compensate() argument 164 dt = t - (chip_info->prom[5] << 8); in ms5607_temp_and_pressure_compensate() [all …]
|
| D | bmp280-core.c | 83 const struct bmp280_chip_info *chip_info; member 440 ret = data->chip_info->read_humid(data, val, val2); in bmp280_read_raw() 443 ret = data->chip_info->read_press(data, val, val2); in bmp280_read_raw() 446 ret = data->chip_info->read_temp(data, val); in bmp280_read_raw() 488 const int *avail = data->chip_info->oversampling_humid_avail; in bmp280_write_oversampling_ratio_humid() 489 const int n = data->chip_info->num_oversampling_humid_avail; in bmp280_write_oversampling_ratio_humid() 495 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_humid() 505 const int *avail = data->chip_info->oversampling_temp_avail; in bmp280_write_oversampling_ratio_temp() 506 const int n = data->chip_info->num_oversampling_temp_avail; in bmp280_write_oversampling_ratio_temp() 512 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_temp() [all …]
|
| /Linux-v5.4/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() 258 if (!st->chip_info->is_ad778x) in ad7780_init_gpios() 298 st->chip_info = in ad7780_probe() 306 indio_dev->channels = &st->chip_info->channel; in ad7780_probe()
|
| D | mcp320x.c | 92 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() 377 const struct mcp320x_chip_info *chip_info; in mcp320x_probe() local 395 chip_info = &mcp320x_chip_infos[device_index]; in mcp320x_probe() 396 indio_dev->channels = chip_info->channels; in mcp320x_probe() 397 indio_dev->num_channels = chip_info->num_channels; in mcp320x_probe() [all …]
|
| D | ad7476.c | 35 const struct ad7476_chip_info *chip_info; member 123 *val = (ret >> st->chip_info->channel[0].scan_type.shift) & in ad7476_read_raw() 124 GENMASK(st->chip_info->channel[0].scan_type.realbits - 1, 0); in ad7476_read_raw() 127 if (!st->chip_info->int_vref_uv) { in ad7476_read_raw() 132 scale_uv = st->chip_info->int_vref_uv; in ad7476_read_raw() 246 st->chip_info = in ad7476_probe() 266 indio_dev->channels = st->chip_info->channel; in ad7476_probe() 272 st->xfer.len = st->chip_info->channel[0].scan_type.storagebits / 8; in ad7476_probe() 282 if (st->chip_info->reset) in ad7476_probe() 283 st->chip_info->reset(st); in ad7476_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() 288 if (st->chip_info->flags & AD7793_FLAG_HAS_CLKSEL) in ad7793_setup() 290 if (st->chip_info->flags & AD7793_FLAG_HAS_REFSEL) in ad7793_setup() 292 if (st->chip_info->flags & AD7793_FLAG_HAS_VBIAS) in ad7793_setup() 294 if (pdata->buffered || !(st->chip_info->flags & AD7793_FLAG_HAS_BUFFER)) in ad7793_setup() [all …]
|
| D | ad7606.c | 88 unsigned int num = st->chip_info->num_channels; in ad7606_read_samples() 247 if (st->chip_info->os_req_reset) in ad7606_write_os_hw() 457 if (!st->chip_info->oversampling_num) in ad7606_request_gpios() 606 st->chip_info = &ad7606_chip_info_tbl[id]; in ad7606_probe() 608 if (st->chip_info->oversampling_num) { in ad7606_probe() 609 st->oversampling_avail = st->chip_info->oversampling_avail; in ad7606_probe() 610 st->num_os_ratios = st->chip_info->oversampling_num; in ad7606_probe() 631 indio_dev->channels = st->chip_info->channels; in ad7606_probe() 632 indio_dev->num_channels = st->chip_info->num_channels; in ad7606_probe() 641 if (st->chip_info->init_delay_ms) { in ad7606_probe() [all …]
|
| /Linux-v5.4/drivers/input/touchscreen/ |
| D | st1232.c | 50 const struct st_chip_info *chip_info; member 63 u8 start_reg = ts->chip_info->start_reg; in st1232_ts_read_data() 81 for (i = 0, y = 0; i < ts->chip_info->max_fingers; i++, y += 3) { in st1232_ts_read_data() 90 if (ts->chip_info->have_z) in st1232_ts_read_data() 111 for (i = 0; i < ts->chip_info->max_fingers; i++) { in st1232_ts_irq_handler() 115 if (ts->chip_info->have_z) in st1232_ts_irq_handler() 201 ts->chip_info = match; in st1232_ts_probe() 203 ts->chip_info->max_fingers, sizeof(*finger), in st1232_ts_probe() 209 ts->read_buf_len = ts->chip_info->max_fingers * 4; in st1232_ts_probe() 241 if (ts->chip_info->have_z) in st1232_ts_probe() [all …]
|
| /Linux-v5.4/drivers/iio/dac/ |
| D | ad5449.c | 62 const struct ad5449_chip_info *chip_info; member 258 if (st->chip_info->num_channels == 1) in ad5449_vref_name() 283 st->chip_info = &ad5449_chip_info[id->driver_data]; in ad5449_spi_probe() 286 for (i = 0; i < st->chip_info->num_channels; ++i) in ad5449_spi_probe() 289 ret = devm_regulator_bulk_get(&spi->dev, st->chip_info->num_channels, in ad5449_spi_probe() 294 ret = regulator_bulk_enable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe() 302 indio_dev->channels = st->chip_info->channels; in ad5449_spi_probe() 303 indio_dev->num_channels = st->chip_info->num_channels; in ad5449_spi_probe() 305 if (st->chip_info->has_ctrl) { in ad5449_spi_probe() 325 regulator_bulk_disable(st->chip_info->num_channels, st->vref_reg); in ad5449_spi_probe() [all …]
|
| D | ad5360.c | 75 const struct ad5360_chip_info *chip_info; member 175 i = channel / st->chip_info->channels_per_group; in ad5360_get_channel_vref_index() 176 if (i >= st->chip_info->num_vrefs) in ad5360_get_channel_vref_index() 177 i = st->chip_info->num_vrefs - 1; in ad5360_get_channel_vref_index() 439 channels = kcalloc(st->chip_info->num_channels, in ad5360_alloc_channels() 445 for (i = 0; i < st->chip_info->num_channels; ++i) { in ad5360_alloc_channels() 446 channels[i] = st->chip_info->channel_template; in ad5360_alloc_channels() 473 st->chip_info = &ad5360_chip_info_tbl[type]; in ad5360_probe() 480 indio_dev->num_channels = st->chip_info->num_channels; in ad5360_probe() 488 for (i = 0; i < st->chip_info->num_vrefs; ++i) in ad5360_probe() [all …]
|
| D | ad5764.c | 54 const struct ad5764_chip_info *chip_info; member 214 if (st->chip_info->int_vref) in ad5764_get_channel_vref() 215 return st->chip_info->int_vref; in ad5764_get_channel_vref() 289 st->chip_info = &ad5764_chip_infos[type]; in ad5764_probe() 296 indio_dev->channels = st->chip_info->channels; in ad5764_probe() 298 if (st->chip_info->int_vref == 0) { in ad5764_probe() 328 if (st->chip_info->int_vref == 0) in ad5764_probe() 340 if (st->chip_info->int_vref == 0) in ad5764_remove()
|
| D | ad5446.c | 38 const struct ad5446_chip_info *chip_info; member 123 ret = st->chip_info->write(st, val); in ad5446_write_dac_powerdown() 201 ret = st->chip_info->write(st, val); in ad5446_write_raw() 217 const struct ad5446_chip_info *chip_info) in ad5446_probe() argument 243 st->chip_info = chip_info; in ad5446_probe() 254 indio_dev->channels = &st->chip_info->channel; in ad5446_probe() 259 if (st->chip_info->int_vref_mv) in ad5446_probe() 260 st->vref_mv = st->chip_info->int_vref_mv; in ad5446_probe()
|
| /Linux-v5.4/drivers/iio/proximity/ |
| 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 && (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-v5.4/sound/soc/sof/ |
| D | sof-pci-dev.c | 40 .chip_info = &apl_chip_info, 58 .chip_info = &apl_chip_info, 86 .chip_info = &tng_chip_info, 104 .chip_info = &cnl_chip_info, 122 .chip_info = &cnl_chip_info, 142 .chip_info = &cnl_chip_info, 160 .chip_info = &icl_chip_info, 178 .chip_info = &skl_chip_info, 196 .chip_info = &skl_chip_info, 214 .chip_info = &tgl_chip_info, [all …]
|
| D | sof-acpi-dev.c | 39 .chip_info = &hsw_chip_info, 56 .chip_info = &bdw_chip_info, 75 .chip_info = &byt_chip_info, 90 .chip_info = &byt_chip_info, 105 .chip_info = &cht_chip_info,
|
| /Linux-v5.4/drivers/spi/ |
| D | spi-pl022.c | 1621 struct pl022_config_chip const *chip_info) in verify_controller_parameters() argument 1623 if ((chip_info->iface < SSP_INTERFACE_MOTOROLA_SPI) in verify_controller_parameters() 1624 || (chip_info->iface > SSP_INTERFACE_UNIDIRECTIONAL)) { in verify_controller_parameters() 1629 if ((chip_info->iface == SSP_INTERFACE_UNIDIRECTIONAL) && in verify_controller_parameters() 1636 if ((chip_info->hierarchy != SSP_MASTER) in verify_controller_parameters() 1637 && (chip_info->hierarchy != SSP_SLAVE)) { in verify_controller_parameters() 1642 if ((chip_info->com_mode != INTERRUPT_TRANSFER) in verify_controller_parameters() 1643 && (chip_info->com_mode != DMA_TRANSFER) in verify_controller_parameters() 1644 && (chip_info->com_mode != POLLING_TRANSFER)) { in verify_controller_parameters() 1649 switch (chip_info->rx_lev_trig) { in verify_controller_parameters() [all …]
|
| /Linux-v5.4/drivers/iio/imu/ |
| D | adis16460.c | 69 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() 417 st->chip_info = &adis16460_chip_info; in adis16460_probe() 420 indio_dev->channels = st->chip_info->channels; in adis16460_probe() 421 indio_dev->num_channels = st->chip_info->num_channels; in adis16460_probe()
|
| D | adis16480.c | 157 const struct adis16480_chip_info *chip_info; member 342 if (t > st->chip_info->max_dec_rate) in adis16480_set_freq() 343 t = st->chip_info->max_dec_rate; in adis16480_set_freq() 547 *freq = st->chip_info->filter_freqs[(val >> offset) & 0x3]; in adis16480_get_filter_freq() 574 best_diff = st->chip_info->filter_freqs[0]; in adis16480_set_filter_freq() 576 if (st->chip_info->filter_freqs[i] >= freq) { in adis16480_set_filter_freq() 577 diff = st->chip_info->filter_freqs[i] - freq; in adis16480_set_filter_freq() 605 *val = st->chip_info->gyro_max_scale; in adis16480_read_raw() 606 *val2 = st->chip_info->gyro_max_val; in adis16480_read_raw() 609 *val = st->chip_info->accel_max_scale; in adis16480_read_raw() [all …]
|
| /Linux-v5.4/drivers/leds/ |
| D | leds-pca9532.c | 46 const struct pca9532_chip_info *chip_info; member 119 for (i = 0; i < data->chip_info->num_leds; i++) { in pca9532_calcpwm() 143 u8 maxleds = data->chip_info->num_leds; in pca9532_setpwm() 159 u8 maxleds = data->chip_info->num_leds; in pca9532_setled() 245 u8 maxleds = data->chip_info->num_leds; in pca9532_input_work() 257 u8 maxleds = data->chip_info->num_leds; in pca9532_getled() 356 u8 maxleds = data->chip_info->num_leds; in pca9532_configure() 367 for (i = 0; i < data->chip_info->num_leds; i++) { in pca9532_configure() 441 data->gpio.ngpio = data->chip_info->num_leds; in pca9532_configure() 545 data->chip_info = &pca9532_chip_info_tbl[devid]; in pca9532_probe() [all …]
|
| /Linux-v5.4/drivers/media/i2c/ |
| D | adv7180.c | 217 const struct adv7180_chip_info *chip_info; member 259 return state->chip_info->set_std(state, std); in adv7180_set_video_standard() 388 if (input > 31 || !(BIT(input) & state->chip_info->valid_input_mask)) { in adv7180_s_routing() 393 ret = state->chip_info->select_input(state, input); in adv7180_s_routing() 501 if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { in adv7180_set_power() 665 if (!(state->chip_info->flags & ADV7180_FLAG_I2P)) in adv7180_set_field_mode() 669 if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { in adv7180_set_field_mode() 683 if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { in adv7180_set_field_mode() 727 if (state->chip_info->flags & ADV7180_FLAG_I2P) in adv7180_set_pad_format() 757 if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { in adv7180_g_mbus_config() [all …]
|