/Linux-v4.19/drivers/video/fbdev/via/ |
D | dvi.c | 55 switch (viaparinfo->chip_info->gfx_chip_name) { in viafb_tmds_trasmitter_identify() 85 viaparinfo->chip_info->tmds_chip_info.tmds_chip_name = VT1632_TMDS; in viafb_tmds_trasmitter_identify() 86 viaparinfo->chip_info-> in viafb_tmds_trasmitter_identify() 88 viaparinfo->chip_info->tmds_chip_info.i2c_port = VIA_PORT_31; in viafb_tmds_trasmitter_identify() 97 viaparinfo->chip_info->tmds_chip_info.tmds_chip_name); in viafb_tmds_trasmitter_identify() 99 viaparinfo->chip_info->tmds_chip_info.i2c_port); in viafb_tmds_trasmitter_identify() 102 viaparinfo->chip_info->tmds_chip_info.i2c_port = VIA_PORT_2C; in viafb_tmds_trasmitter_identify() 107 viaparinfo->chip_info-> in viafb_tmds_trasmitter_identify() 110 viaparinfo->chip_info-> in viafb_tmds_trasmitter_identify() 116 viaparinfo->chip_info->tmds_chip_info.tmds_chip_name = INTEGRATED_TMDS; in viafb_tmds_trasmitter_identify() [all …]
|
D | lcd.c | 105 if (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() 111 viaparinfo->chip_info->lvds_chip_info.lvds_chip_name = in lvds_identify_integratedlvds() 118 viaparinfo->chip_info->lvds_chip_info.lvds_chip_name = in lvds_identify_integratedlvds() 120 viaparinfo->chip_info->lvds_chip_info2.lvds_chip_name = in lvds_identify_integratedlvds() 127 if (!viaparinfo->chip_info->lvds_chip_info.lvds_chip_name) { in lvds_identify_integratedlvds() 128 viaparinfo->chip_info->lvds_chip_info.lvds_chip_name = in lvds_identify_integratedlvds() 133 viaparinfo->chip_info->lvds_chip_info.lvds_chip_name = in lvds_identify_integratedlvds() 145 viaparinfo->chip_info->lvds_chip_info.i2c_port = VIA_PORT_31; in viafb_lvds_trasmitter_identify() 150 viaparinfo->chip_info->lvds_chip_info.i2c_port = in viafb_lvds_trasmitter_identify() [all …]
|
D | hw.c | 504 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in get_dvi_devices() 510 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in get_dvi_devices() 516 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in get_dvi_devices() 580 (viaparinfo->chip_info->gfx_chip_name == in viafb_set_iga_path() 636 viaparinfo->chip_info-> in viafb_set_iga_path() 640 viaparinfo->chip_info-> in viafb_set_iga_path() 647 viaparinfo->chip_info-> in viafb_set_iga_path() 651 viaparinfo->chip_info-> in viafb_set_iga_path() 658 viaparinfo->chip_info-> in viafb_set_iga_path() 662 viaparinfo->chip_info-> in viafb_set_iga_path() [all …]
|
D | via_utility.c | 29 if (viaparinfo->chip_info->tmds_chip_info.tmds_chip_name == VT1632_TMDS) in viafb_get_device_support_state() 32 if (viaparinfo->chip_info->lvds_chip_info.lvds_chip_name == VT1631_LVDS) in viafb_get_device_support_state() 149 switch (viaparinfo->chip_info->gfx_chip_name) { in viafb_set_gamma_table() 180 !((viaparinfo->chip_info->gfx_chip_name == in viafb_set_gamma_table() 182 (viaparinfo->chip_info->gfx_chip_revision < 15))) { in viafb_set_gamma_table() 204 switch (viaparinfo->chip_info->gfx_chip_name) { in viafb_get_gamma_table()
|
D | viafbdev.c | 418 if (copy_to_user(argp, viaparinfo->chip_info, in viafb_ioctl() 777 chip_name = viapar->shared->chip_info.gfx_chip_name; in viafb_cursor() 1095 parse_port(viafb_lcd_port, &viaparinfo->chip_info->lvds_chip_info. in parse_lcd_port() 1098 viaparinfo->chip_info->lvds_chip_info2.output_interface = in parse_lcd_port() 1102 viafb_lcd_port, viaparinfo->chip_info->lvds_chip_info. in parse_lcd_port() 1108 parse_port(viafb_dvi_port, &viaparinfo->chip_info->tmds_chip_info. in parse_dvi_port() 1112 viafb_dvi_port, viaparinfo->chip_info->tmds_chip_info. in parse_dvi_port() 1337 switch (viaparinfo->chip_info->lvds_chip_info.lvds_chip_name) { in viafb_vt1636_proc_show() 1341 &viaparinfo->chip_info->lvds_chip_info, 0x08) & 0x0f; in viafb_vt1636_proc_show() 1344 &viaparinfo->chip_info->lvds_chip_info, 0x09) & 0x1f; in viafb_vt1636_proc_show() [all …]
|
/Linux-v4.19/drivers/iio/light/ |
D | bh1750.c | 44 const struct bh1750_chip_info *chip_info; member 78 const struct bh1750_chip_info *chip_info = data->chip_info; in bh1750_change_int_time() local 80 if ((usec % chip_info->mtreg_to_usec) != 0) in bh1750_change_int_time() 83 val = usec / chip_info->mtreg_to_usec; in bh1750_change_int_time() 84 if (val < chip_info->mtreg_min || val > chip_info->mtreg_max) in bh1750_change_int_time() 91 regval = (val & chip_info->int_time_high_mask) >> 5; in bh1750_change_int_time() 97 regval = val & chip_info->int_time_low_mask; in bh1750_change_int_time() 112 const struct bh1750_chip_info *chip_info = data->chip_info; in bh1750_read() local 113 unsigned long delay = chip_info->mtreg_to_usec * data->mtreg; in bh1750_read() 140 const struct bh1750_chip_info *chip_info = data->chip_info; in bh1750_read_raw() local [all …]
|
/Linux-v4.19/drivers/iio/pressure/ |
D | ms5611_core.c | 92 i, &st->chip_info->prom[i]); in ms5611_read_prom() 100 if (!ms5611_prom_is_valid(st->chip_info->prom, MS5611_PROM_WORDS_NB)) { in ms5611_read_prom() 121 return st->chip_info->temp_and_pressure_compensate(st->chip_info, in ms5611_read_temp_and_pressure() 125 static int ms5611_temp_and_pressure_compensate(struct ms5611_chip_info *chip_info, in ms5611_temp_and_pressure_compensate() argument 131 dt = t - (chip_info->prom[5] << 8); in ms5611_temp_and_pressure_compensate() 132 off = ((s64)chip_info->prom[2] << 16) + ((chip_info->prom[4] * dt) >> 7); in ms5611_temp_and_pressure_compensate() 133 sens = ((s64)chip_info->prom[1] << 15) + ((chip_info->prom[3] * dt) >> 8); in ms5611_temp_and_pressure_compensate() 135 t = 2000 + ((chip_info->prom[6] * dt) >> 23); in ms5611_temp_and_pressure_compensate() 161 static int ms5607_temp_and_pressure_compensate(struct ms5611_chip_info *chip_info, in ms5607_temp_and_pressure_compensate() argument 167 dt = t - (chip_info->prom[5] << 8); in ms5607_temp_and_pressure_compensate() [all …]
|
D | bmp280-core.c | 86 const struct bmp280_chip_info *chip_info; member 437 ret = data->chip_info->read_humid(data, val, val2); in bmp280_read_raw() 440 ret = data->chip_info->read_press(data, val, val2); in bmp280_read_raw() 443 ret = data->chip_info->read_temp(data, val); in bmp280_read_raw() 485 const int *avail = data->chip_info->oversampling_humid_avail; in bmp280_write_oversampling_ratio_humid() 486 const int n = data->chip_info->num_oversampling_humid_avail; in bmp280_write_oversampling_ratio_humid() 492 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_humid() 502 const int *avail = data->chip_info->oversampling_temp_avail; in bmp280_write_oversampling_ratio_temp() 503 const int n = data->chip_info->num_oversampling_temp_avail; in bmp280_write_oversampling_ratio_temp() 509 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_temp() [all …]
|
/Linux-v4.19/drivers/iio/adc/ |
D | mcp320x.c | 95 const struct mcp320x_chip_info *chip_info; member 127 if (adc->chip_info->conv_time) { in mcp320x_adc_conversion() 132 usleep_range(adc->chip_info->conv_time, in mcp320x_adc_conversion() 133 adc->chip_info->conv_time + 100); in mcp320x_adc_conversion() 137 if (adc->chip_info->num_channels > 1) in mcp320x_adc_conversion() 225 *val2 = adc->chip_info->resolution; in mcp320x_read_raw() 380 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 | ad7476.c | 35 const struct ad7476_chip_info *chip_info; member 120 *val = (ret >> st->chip_info->channel[0].scan_type.shift) & in ad7476_read_raw() 121 GENMASK(st->chip_info->channel[0].scan_type.realbits - 1, 0); in ad7476_read_raw() 124 if (!st->chip_info->int_vref_uv) { in ad7476_read_raw() 129 scale_uv = st->chip_info->int_vref_uv; in ad7476_read_raw() 229 st->chip_info = in ad7476_probe() 249 indio_dev->channels = st->chip_info->channel; in ad7476_probe() 255 st->xfer.len = st->chip_info->channel[0].scan_type.storagebits / 8; in ad7476_probe() 265 if (st->chip_info->reset) in ad7476_probe() 266 st->chip_info->reset(st); in ad7476_probe()
|
D | ad7793.c | 155 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() 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-v4.19/drivers/iio/dac/ |
D | ad5449.c | 63 const struct ad5449_chip_info *chip_info; member 259 if (st->chip_info->num_channels == 1) in ad5449_vref_name() 284 st->chip_info = &ad5449_chip_info[id->driver_data]; in ad5449_spi_probe() 287 for (i = 0; i < st->chip_info->num_channels; ++i) in ad5449_spi_probe() 290 ret = devm_regulator_bulk_get(&spi->dev, st->chip_info->num_channels, in ad5449_spi_probe() 295 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() 306 if (st->chip_info->has_ctrl) { in ad5449_spi_probe() 326 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 176 i = channel / st->chip_info->channels_per_group; in ad5360_get_channel_vref_index() 177 if (i >= st->chip_info->num_vrefs) in ad5360_get_channel_vref_index() 178 i = st->chip_info->num_vrefs - 1; in ad5360_get_channel_vref_index() 440 channels = kcalloc(st->chip_info->num_channels, in ad5360_alloc_channels() 446 for (i = 0; i < st->chip_info->num_channels; ++i) { in ad5360_alloc_channels() 447 channels[i] = st->chip_info->channel_template; in ad5360_alloc_channels() 474 st->chip_info = &ad5360_chip_info_tbl[type]; in ad5360_probe() 481 indio_dev->num_channels = st->chip_info->num_channels; in ad5360_probe() 489 for (i = 0; i < st->chip_info->num_vrefs; ++i) in ad5360_probe() [all …]
|
D | ad5764.c | 55 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() 297 indio_dev->channels = st->chip_info->channels; in ad5764_probe() 299 if (st->chip_info->int_vref == 0) { in ad5764_probe() 329 if (st->chip_info->int_vref == 0) in ad5764_probe() 341 if (st->chip_info->int_vref == 0) in ad5764_remove()
|
D | ad5064.c | 107 const struct ad5064_chip_info *chip_info; member 206 if (st->chip_info->regmap_type == AD5064_REGMAP_LTC) { in ad5064_sync_powerdown_mode() 210 if (st->chip_info->regmap_type == AD5064_REGMAP_ADI2) in ad5064_sync_powerdown_mode() 308 return st->chip_info->internal_vref; in ad5064_get_vref() 310 i = st->chip_info->shared_vref ? 0 : chan->channel; in ad5064_get_vref() 779 return st->chip_info->shared_vref ? 1 : st->chip_info->num_channels; in ad5064_num_vref() 792 return st->chip_info->shared_vref ? "vref" : ad5064_vref_names[vref]; in ad5064_vref_name() 799 switch (st->chip_info->regmap_type) { in ad5064_set_config() 827 st->chip_info = &ad5064_chip_info_tbl[type]; in ad5064_probe() 837 if (!st->chip_info->internal_vref) in ad5064_probe() [all …]
|
D | ad5446.c | 39 const struct ad5446_chip_info *chip_info; member 124 ret = st->chip_info->write(st, val); in ad5446_write_dac_powerdown() 202 ret = st->chip_info->write(st, val); in ad5446_write_raw() 218 const struct ad5446_chip_info *chip_info) in ad5446_probe() argument 244 st->chip_info = chip_info; in ad5446_probe() 255 indio_dev->channels = &st->chip_info->channel; in ad5446_probe() 260 if (st->chip_info->int_vref_mv) in ad5446_probe() 261 st->vref_mv = st->chip_info->int_vref_mv; in ad5446_probe()
|
D | ad5380.c | 59 const struct ad5380_chip_info *chip_info; member 351 channels = kcalloc(st->chip_info->num_channels, in ad5380_alloc_channels() 357 for (i = 0; i < st->chip_info->num_channels; ++i) { in ad5380_alloc_channels() 358 channels[i] = st->chip_info->channel_template; in ad5380_alloc_channels() 385 st->chip_info = &ad5380_chip_info_tbl[type]; in ad5380_probe() 392 indio_dev->num_channels = st->chip_info->num_channels; in ad5380_probe() 400 if (st->chip_info->int_vref == 2500) in ad5380_probe() 418 st->vref = st->chip_info->int_vref; in ad5380_probe()
|
D | ad5761.c | 290 const struct ad5761_chip_info *chip_info) in ad5761_get_vref() argument 297 if (!chip_info->int_vref) { in ad5761_get_vref() 304 st->vref = chip_info->int_vref; in ad5761_get_vref() 351 const struct ad5761_chip_info *chip_info = in ad5761_probe() local 365 ret = ad5761_get_vref(st, chip_info); in ad5761_probe() 379 iio_dev->channels = &chip_info->channel; in ad5761_probe()
|
D | ad5686.c | 85 switch (st->chip_info->regmap_type) { in ad5686_write_dac_powerdown() 403 st->chip_info = &ad5686_chip_info_tbl[chip_type]; in ad5686_probe() 408 st->vref_mv = st->chip_info->int_vref_mv; in ad5686_probe() 411 for (i = 0; i < st->chip_info->num_channels; i++) in ad5686_probe() 418 indio_dev->channels = st->chip_info->channels; in ad5686_probe() 419 indio_dev->num_channels = st->chip_info->num_channels; in ad5686_probe() 421 switch (st->chip_info->regmap_type) { in ad5686_probe()
|
D | ad5686-spi.c | 21 switch (st->chip_info->regmap_type) { in ad5686_spi_write() 59 if (st->chip_info->regmap_type == AD5686_REGMAP) in ad5686_spi_read() 61 else if (st->chip_info->regmap_type == AD5683_REGMAP) in ad5686_spi_read()
|
/Linux-v4.19/drivers/iio/proximity/ |
D | srf08.c | 79 const struct srf08_chip_info *chip_info; member 324 for (i = 0; i < data->chip_info->num_sensitivity_avail; i++) in srf08_show_sensitivity_available() 325 if (data->chip_info->sensitivity_avail[i]) in srf08_show_sensitivity_available() 327 data->chip_info->sensitivity_avail[i]); in srf08_show_sensitivity_available() 359 for (i = 0; i < data->chip_info->num_sensitivity_avail; i++) in srf08_write_sensitivity() 360 if (val && (val == data->chip_info->sensitivity_avail[i])) { in srf08_write_sensitivity() 365 if (i >= data->chip_info->num_sensitivity_avail) in srf08_write_sensitivity() 473 data->chip_info = &srf02_chip_info; in srf08_probe() 477 data->chip_info = &srf08_chip_info; in srf08_probe() 481 data->chip_info = &srf10_chip_info; in srf08_probe() [all …]
|
/Linux-v4.19/drivers/staging/iio/adc/ |
D | ad7780.c | 41 const struct ad7780_chip_info *chip_info; member 110 const struct ad7780_chip_info *chip_info = st->chip_info; in ad7780_postprocess_sample() local 113 ((raw_sample & chip_info->pattern_mask) != chip_info->pattern)) in ad7780_postprocess_sample() 186 st->chip_info = in ad7780_probe() 199 indio_dev->channels = &st->chip_info->channel; in ad7780_probe()
|
/Linux-v4.19/drivers/spi/ |
D | spi-pl022.c | 1604 struct pl022_config_chip const *chip_info) in verify_controller_parameters() argument 1606 if ((chip_info->iface < SSP_INTERFACE_MOTOROLA_SPI) in verify_controller_parameters() 1607 || (chip_info->iface > SSP_INTERFACE_UNIDIRECTIONAL)) { in verify_controller_parameters() 1612 if ((chip_info->iface == SSP_INTERFACE_UNIDIRECTIONAL) && in verify_controller_parameters() 1619 if ((chip_info->hierarchy != SSP_MASTER) in verify_controller_parameters() 1620 && (chip_info->hierarchy != SSP_SLAVE)) { in verify_controller_parameters() 1625 if ((chip_info->com_mode != INTERRUPT_TRANSFER) in verify_controller_parameters() 1626 && (chip_info->com_mode != DMA_TRANSFER) in verify_controller_parameters() 1627 && (chip_info->com_mode != POLLING_TRANSFER)) { in verify_controller_parameters() 1632 switch (chip_info->rx_lev_trig) { in verify_controller_parameters() [all …]
|
/Linux-v4.19/drivers/leds/ |
D | leds-pca9532.c | 50 const struct pca9532_chip_info *chip_info; member 123 for (i = 0; i < data->chip_info->num_leds; i++) { in pca9532_calcpwm() 147 u8 maxleds = data->chip_info->num_leds; in pca9532_setpwm() 163 u8 maxleds = data->chip_info->num_leds; in pca9532_setled() 249 u8 maxleds = data->chip_info->num_leds; in pca9532_input_work() 261 u8 maxleds = data->chip_info->num_leds; in pca9532_getled() 360 u8 maxleds = data->chip_info->num_leds; in pca9532_configure() 371 for (i = 0; i < data->chip_info->num_leds; i++) { in pca9532_configure() 445 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-v4.19/drivers/media/i2c/ |
D | adv7180.c | 223 const struct adv7180_chip_info *chip_info; member 265 return state->chip_info->set_std(state, std); in adv7180_set_video_standard() 394 if (input > 31 || !(BIT(input) & state->chip_info->valid_input_mask)) { in adv7180_s_routing() 399 ret = state->chip_info->select_input(state, input); in adv7180_s_routing() 507 if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { in adv7180_set_power() 671 if (!(state->chip_info->flags & ADV7180_FLAG_I2P)) in adv7180_set_field_mode() 675 if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { in adv7180_set_field_mode() 689 if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { in adv7180_set_field_mode() 733 if (state->chip_info->flags & ADV7180_FLAG_I2P) in adv7180_set_pad_format() 763 if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { in adv7180_g_mbus_config() [all …]
|