Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_ring.c123 st->chip_config.user_ctrl); in inv_reset_fifo()
128 d = st->chip_config.user_ctrl | INV_MPU6050_BIT_FIFO_RST; in inv_reset_fifo()
134 if (st->chip_config.accl_fifo_enable || in inv_reset_fifo()
135 st->chip_config.gyro_fifo_enable) { in inv_reset_fifo()
142 d = st->chip_config.user_ctrl | INV_MPU6050_BIT_FIFO_EN; in inv_reset_fifo()
148 if (st->chip_config.gyro_fifo_enable) in inv_reset_fifo()
150 if (st->chip_config.accl_fifo_enable) in inv_reset_fifo()
200 if (!(st->chip_config.accl_fifo_enable | in inv_mpu6050_read_fifo()
201 st->chip_config.gyro_fifo_enable)) in inv_mpu6050_read_fifo()
204 if (st->chip_config.accl_fifo_enable) in inv_mpu6050_read_fifo()
[all …]
Dinv_mpu_trigger.c20 st->chip_config.gyro_fifo_enable = in inv_scan_query()
28 st->chip_config.accl_fifo_enable = in inv_scan_query()
53 if (st->chip_config.gyro_fifo_enable) { in inv_mpu6050_set_enable()
61 if (st->chip_config.accl_fifo_enable) { in inv_mpu6050_set_enable()
80 st->chip_config.user_ctrl); in inv_mpu6050_set_enable()
102 if (st->chip_config.accl_fifo_enable) in inv_mpu6050_set_enable()
106 if (st->chip_config.gyro_fifo_enable) in inv_mpu6050_set_enable()
Dinv_mpu_spi.c34 st->chip_config.user_ctrl |= INV_MPU6050_BIT_I2C_IF_DIS; in inv_mpu_i2c_disable()
36 st->chip_config.user_ctrl); in inv_mpu_i2c_disable()
Dinv_mpu_core.c301 memcpy(&st->chip_config, hw_info[st->chip_type].config, in inv_mpu6050_init_config()
429 *val2 = gyro_scale_6050[st->chip_config.fsr]; in inv_mpu6050_read_raw()
436 *val2 = accel_scale[st->chip_config.accl_fs]; in inv_mpu6050_read_raw()
492 st->chip_config.fsr = i; in inv_mpu6050_write_gyro_scale()
530 st->chip_config.accl_fs = i; in inv_mpu6050_write_accel_scale()
632 st->chip_config.lpf = data; in inv_mpu6050_set_lpf()
666 if (d == st->chip_config.divider) { in inv_mpu6050_fifo_rate_store()
677 st->chip_config.divider = d; in inv_mpu6050_fifo_rate_store()
705 fifo_rate = INV_MPU6050_DIVIDER_TO_FIFO_RATE(st->chip_config.divider); in inv_fifo_rate_show()
Dinv_mpu_iio.h136 struct inv_mpu6050_chip_config chip_config; member
245 ((st)->chip_config.divider + 1)
/Linux-v4.19/drivers/media/pci/cx18/
Dcx18-cards.c85 .chip_config = 0x003,
132 .chip_config = 0x003,
179 .chip_config = 0x003,
232 .chip_config = 0x50003,
285 .chip_config = 0x303,
345 .chip_config = 0x303,
401 .chip_config = 0x50306,
449 .chip_config = 0x202,
498 .chip_config = 0x303,
551 .chip_config = 0x303,
Dcx18-cards.h108 u32 chip_config; member
Dcx18-firmware.c333 cx18_write_reg(cx, cx->card->ddr.chip_config, CX18_DDR_CHIP_CONFIG); in cx18_init_memory()
/Linux-v4.19/drivers/iio/adc/
Dad799x.c129 const struct ad799x_chip_config *chip_config; member
783 st->chip_config = &chip_info->irq_config; in ad799x_probe()
785 st->chip_config = &chip_info->noirq_config; in ad799x_probe()
809 indio_dev->info = st->chip_config->info; in ad799x_probe()
812 indio_dev->channels = st->chip_config->channel; in ad799x_probe()
815 ret = ad799x_write_config(st, st->chip_config->default_config); in ad799x_probe()
/Linux-v4.19/drivers/iio/pressure/
Dbmp280-core.c117 int (*chip_config)(struct bmp280_data *); member
492 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_humid()
509 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_temp()
526 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_press()
659 .chip_config = bmp280_chip_config,
692 .chip_config = bme280_chip_config,
934 .chip_config = bmp180_chip_config,
1076 ret = data->chip_info->chip_config(data); in bmp280_common_probe()
1186 return data->chip_info->chip_config(data); in bmp280_runtime_resume()
/Linux-v4.19/drivers/spi/
Dspi-mt65xx.c176 struct mtk_chip_config *chip_config = spi->controller_data; in mtk_spi_prepare_message() local
193 if (chip_config->tx_mlsb) in mtk_spi_prepare_message()
197 if (chip_config->rx_mlsb) in mtk_spi_prepare_message()
212 if (chip_config->cs_pol) in mtk_spi_prepare_message()
216 if (chip_config->sample_sel) in mtk_spi_prepare_message()
/Linux-v4.19/drivers/iio/accel/
Dbma180.c59 int (*chip_config)(struct bma180_data *data); member
725 ret = data->part_info->chip_config(data); in bma180_probe()