Home
last modified time | relevance | path

Searched refs:chip_config (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.4/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_ring.c115 st->chip_config.user_ctrl); in inv_reset_fifo()
120 d = st->chip_config.user_ctrl | INV_MPU6050_BIT_FIFO_RST; in inv_reset_fifo()
126 if (st->chip_config.accl_fifo_enable || in inv_reset_fifo()
127 st->chip_config.gyro_fifo_enable) { in inv_reset_fifo()
134 d = st->chip_config.user_ctrl | INV_MPU6050_BIT_FIFO_EN; in inv_reset_fifo()
140 if (st->chip_config.gyro_fifo_enable) in inv_reset_fifo()
142 if (st->chip_config.accl_fifo_enable) in inv_reset_fifo()
189 if (!(st->chip_config.accl_fifo_enable | in inv_mpu6050_read_fifo()
190 st->chip_config.gyro_fifo_enable)) in inv_mpu6050_read_fifo()
193 if (st->chip_config.accl_fifo_enable) in inv_mpu6050_read_fifo()
[all …]
Dinv_mpu_trigger.c12 st->chip_config.gyro_fifo_enable = in inv_scan_query()
20 st->chip_config.accl_fifo_enable = in inv_scan_query()
45 if (st->chip_config.gyro_fifo_enable) { in inv_mpu6050_set_enable()
53 if (st->chip_config.accl_fifo_enable) { in inv_mpu6050_set_enable()
72 st->chip_config.user_ctrl); in inv_mpu6050_set_enable()
94 if (st->chip_config.accl_fifo_enable) in inv_mpu6050_set_enable()
98 if (st->chip_config.gyro_fifo_enable) in inv_mpu6050_set_enable()
Dinv_mpu_spi.c30 st->chip_config.user_ctrl |= INV_MPU6050_BIT_I2C_IF_DIS; in inv_mpu_i2c_disable()
32 st->chip_config.user_ctrl); in inv_mpu_i2c_disable()
Dinv_mpu_core.c334 memcpy(&st->chip_config, hw_info[st->chip_type].config, in inv_mpu6050_init_config()
462 *val2 = gyro_scale_6050[st->chip_config.fsr]; in inv_mpu6050_read_raw()
469 *val2 = accel_scale[st->chip_config.accl_fs]; in inv_mpu6050_read_raw()
531 st->chip_config.fsr = i; in inv_mpu6050_write_gyro_scale()
569 st->chip_config.accl_fs = i; in inv_mpu6050_write_accel_scale()
671 st->chip_config.lpf = data; in inv_mpu6050_set_lpf()
705 if (d == st->chip_config.divider) { in inv_mpu6050_fifo_rate_store()
716 st->chip_config.divider = d; in inv_mpu6050_fifo_rate_store()
744 fifo_rate = INV_MPU6050_DIVIDER_TO_FIFO_RATE(st->chip_config.divider); in inv_fifo_rate_show()
Dinv_mpu_iio.h134 struct inv_mpu6050_chip_config chip_config; member
254 ((st)->chip_config.divider + 1)
/Linux-v5.4/drivers/media/pci/cx18/
Dcx18-cards.c76 .chip_config = 0x003,
123 .chip_config = 0x003,
170 .chip_config = 0x003,
223 .chip_config = 0x50003,
276 .chip_config = 0x303,
336 .chip_config = 0x303,
392 .chip_config = 0x50306,
440 .chip_config = 0x202,
489 .chip_config = 0x303,
542 .chip_config = 0x303,
Dcx18-cards.h99 u32 chip_config; member
Dcx18-firmware.c324 cx18_write_reg(cx, cx->card->ddr.chip_config, CX18_DDR_CHIP_CONFIG); in cx18_init_memory()
/Linux-v5.4/drivers/iio/adc/
Dad799x.c125 const struct ad799x_chip_config *chip_config; member
779 st->chip_config = &chip_info->irq_config; in ad799x_probe()
781 st->chip_config = &chip_info->noirq_config; in ad799x_probe()
805 indio_dev->info = st->chip_config->info; in ad799x_probe()
808 indio_dev->channels = st->chip_config->channel; in ad799x_probe()
811 ret = ad799x_write_config(st, st->chip_config->default_config); in ad799x_probe()
/Linux-v5.4/drivers/iio/pressure/
Dbmp280-core.c114 int (*chip_config)(struct bmp280_data *); member
495 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_humid()
512 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_temp()
529 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_press()
662 .chip_config = bmp280_chip_config,
695 .chip_config = bme280_chip_config,
937 .chip_config = bmp180_chip_config,
1079 ret = data->chip_info->chip_config(data); in bmp280_common_probe()
1189 return data->chip_info->chip_config(data); in bmp280_runtime_resume()
/Linux-v5.4/drivers/spi/
Dspi-mt65xx.c198 struct mtk_chip_config *chip_config = spi->controller_data; in mtk_spi_prepare_message() local
233 if (chip_config->cs_pol) in mtk_spi_prepare_message()
237 if (chip_config->sample_sel) in mtk_spi_prepare_message()
/Linux-v5.4/drivers/iio/accel/
Dbma180.c56 int (*chip_config)(struct bma180_data *data); member
738 ret = data->part_info->chip_config(data); in bma180_probe()