/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 | 505 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in get_dvi_devices() 511 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in get_dvi_devices() 517 if (viaparinfo->chip_info->gfx_chip_name == UNICHROME_CLE266) in get_dvi_devices() 581 (viaparinfo->chip_info->gfx_chip_name == in viafb_set_iga_path() 637 viaparinfo->chip_info-> in viafb_set_iga_path() 641 viaparinfo->chip_info-> in viafb_set_iga_path() 648 viaparinfo->chip_info-> in viafb_set_iga_path() 652 viaparinfo->chip_info-> in viafb_set_iga_path() 659 viaparinfo->chip_info-> in viafb_set_iga_path() 663 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 | 419 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 …]
|
/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 …]
|
/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 | 64 const struct bmp280_chip_info *chip_info; member 384 ret = data->chip_info->read_humid(data, val, val2); in bmp280_read_raw() 387 ret = data->chip_info->read_press(data, val, val2); in bmp280_read_raw() 390 ret = data->chip_info->read_temp(data, val); in bmp280_read_raw() 432 const int *avail = data->chip_info->oversampling_humid_avail; in bmp280_write_oversampling_ratio_humid() 433 const int n = data->chip_info->num_oversampling_humid_avail; in bmp280_write_oversampling_ratio_humid() 439 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_humid() 449 const int *avail = data->chip_info->oversampling_temp_avail; in bmp280_write_oversampling_ratio_temp() 450 const int n = data->chip_info->num_oversampling_temp_avail; in bmp280_write_oversampling_ratio_temp() 456 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_temp() [all …]
|
/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() 475 data->chip_info = &srf02_chip_info; in srf08_probe() 479 data->chip_info = &srf08_chip_info; in srf08_probe() 483 data->chip_info = &srf10_chip_info; in srf08_probe() [all …]
|
/drivers/iio/dac/ |
D | ad5449.c | 63 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() 304 indio_dev->channels = st->chip_info->channels; in ad5449_spi_probe() 305 indio_dev->num_channels = st->chip_info->num_channels; in ad5449_spi_probe() 307 if (st->chip_info->has_ctrl) { in ad5449_spi_probe() 327 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() 441 channels = kcalloc(st->chip_info->num_channels, in ad5360_alloc_channels() 447 for (i = 0; i < st->chip_info->num_channels; ++i) { in ad5360_alloc_channels() 448 channels[i] = st->chip_info->channel_template; in ad5360_alloc_channels() 475 st->chip_info = &ad5360_chip_info_tbl[type]; in ad5360_probe() 482 indio_dev->num_channels = st->chip_info->num_channels; in ad5360_probe() 490 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() 291 st->chip_info = &ad5764_chip_infos[type]; in ad5764_probe() 298 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()
|
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() 219 const struct ad5446_chip_info *chip_info) in ad5446_probe() argument 245 st->chip_info = chip_info; in ad5446_probe() 256 indio_dev->channels = &st->chip_info->channel; in ad5446_probe() 261 if (st->chip_info->int_vref_mv) in ad5446_probe() 262 st->vref_mv = st->chip_info->int_vref_mv; in ad5446_probe()
|
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() 780 return st->chip_info->shared_vref ? 1 : st->chip_info->num_channels; in ad5064_num_vref() 793 return st->chip_info->shared_vref ? "vref" : ad5064_vref_names[vref]; in ad5064_vref_name() 800 switch (st->chip_info->regmap_type) { in ad5064_set_config() 820 if (!st->chip_info->internal_vref) in ad5064_request_vref() 862 st->chip_info = &ad5064_chip_info_tbl[type]; in ad5064_probe() [all …]
|
D | ltc2632.c | 84 struct ltc2632_chip_info *chip_info; in ltc2632_read_raw() local 89 chip_info = (struct ltc2632_chip_info *)spi_dev_id->driver_data; in ltc2632_read_raw() 93 *val = chip_info->vref_mv; in ltc2632_read_raw() 235 struct ltc2632_chip_info *chip_info; in ltc2632_probe() local 247 chip_info = (struct ltc2632_chip_info *) in ltc2632_probe() 255 indio_dev->channels = chip_info->channels; in ltc2632_probe()
|
D | ad5380.c | 59 const struct ad5380_chip_info *chip_info; member 352 channels = kcalloc(st->chip_info->num_channels, in ad5380_alloc_channels() 358 for (i = 0; i < st->chip_info->num_channels; ++i) { in ad5380_alloc_channels() 359 channels[i] = st->chip_info->channel_template; in ad5380_alloc_channels() 386 st->chip_info = &ad5380_chip_info_tbl[type]; in ad5380_probe() 393 indio_dev->num_channels = st->chip_info->num_channels; in ad5380_probe() 401 if (st->chip_info->int_vref == 2500) in ad5380_probe() 419 st->vref = st->chip_info->int_vref; in ad5380_probe()
|
D | ad5761.c | 291 const struct ad5761_chip_info *chip_info) in ad5761_get_vref() argument 298 if (!chip_info->int_vref) { in ad5761_get_vref() 305 st->vref = chip_info->int_vref; in ad5761_get_vref() 352 const struct ad5761_chip_info *chip_info = in ad5761_probe() local 366 ret = ad5761_get_vref(st, chip_info); in ad5761_probe() 380 iio_dev->channels = &chip_info->channel; in ad5761_probe()
|
/drivers/iio/adc/ |
D | ad7476.c | 35 const struct ad7476_chip_info *chip_info; member 117 *val = (ret >> st->chip_info->channel[0].scan_type.shift) & in ad7476_read_raw() 118 GENMASK(st->chip_info->channel[0].scan_type.realbits - 1, 0); in ad7476_read_raw() 121 if (!st->chip_info->int_vref_uv) { in ad7476_read_raw() 126 scale_uv = st->chip_info->int_vref_uv; in ad7476_read_raw() 213 st->chip_info = in ad7476_probe() 233 indio_dev->channels = st->chip_info->channel; in ad7476_probe() 239 st->xfer.len = st->chip_info->channel[0].scan_type.storagebits / 8; in ad7476_probe() 249 if (st->chip_info->reset) in ad7476_probe() 250 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 …]
|
D | mcp320x.c | 69 const struct mcp320x_chip_info *chip_info; member 175 *val2 = adc->chip_info->resolution; in mcp320x_read_raw() 306 const struct mcp320x_chip_info *chip_info; in mcp320x_probe() local 323 chip_info = &mcp320x_chip_infos[spi_get_device_id(spi)->driver_data]; in mcp320x_probe() 324 indio_dev->channels = chip_info->channels; in mcp320x_probe() 325 indio_dev->num_channels = chip_info->num_channels; in mcp320x_probe() 327 adc->chip_info = chip_info; in mcp320x_probe()
|
/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 …]
|
/drivers/staging/iio/adc/ |
D | ad7780.c | 41 const struct ad7780_chip_info *chip_info; member 114 const struct ad7780_chip_info *chip_info = st->chip_info; in ad7780_postprocess_sample() local 117 ((raw_sample & chip_info->pattern_mask) != chip_info->pattern)) in ad7780_postprocess_sample() 191 st->chip_info = in ad7780_probe() 204 indio_dev->channels = &st->chip_info->channel; in ad7780_probe()
|
/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() 491 if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { in adv7180_set_power() 652 if (!(state->chip_info->flags & ADV7180_FLAG_I2P)) in adv7180_set_field_mode() 656 if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { in adv7180_set_field_mode() 670 if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { in adv7180_set_field_mode() 714 if (!(state->chip_info->flags & ADV7180_FLAG_I2P)) in adv7180_set_pad_format() 744 if (state->chip_info->flags & ADV7180_FLAG_MIPI_CSI2) { in adv7180_g_mbus_config() [all …]
|
/drivers/iio/accel/ |
D | mma8452.c | 107 const struct mma_chip_info *chip_info; member 351 return mma8452_show_int_plus_micros(buf, data->chip_info->mma_scales, in mma8452_show_scale_avail() 352 ARRAY_SIZE(data->chip_info->mma_scales)); in mma8452_show_scale_avail() 414 return mma8452_get_int_plus_micros_index(data->chip_info->mma_scales, in mma8452_get_scale_index() 415 ARRAY_SIZE(data->chip_info->mma_scales), val, val2); in mma8452_get_scale_index() 480 *val = data->chip_info->mma_scales[i][0]; in mma8452_read_raw() 481 *val2 = data->chip_info->mma_scales[i][1]; in mma8452_read_raw() 605 const struct mma_chip_info *chip = data->chip_info; in mma8452_freefall_mode_enabled() 617 const struct mma_chip_info *chip = data->chip_info; in mma8452_set_freefall_mode() 756 data->chip_info->ev_ths); in mma8452_read_thresh() [all …]
|
/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() 549 data->chip_info = &pca9532_chip_info_tbl[devid]; in pca9532_probe() [all …]
|