Home
last modified time | relevance | path

Searched refs:chip_config (Results 1 - 25 of 29) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_trigger.c14 st->chip_config.gyro_fifo_enable = in inv_scan_query_mpu6050()
22 st->chip_config.accl_fifo_enable = in inv_scan_query_mpu6050()
30 st->chip_config.temp_fifo_enable = in inv_scan_query_mpu6050()
34 if (st->chip_config.gyro_fifo_enable) in inv_scan_query_mpu6050()
36 if (st->chip_config.accl_fifo_enable) in inv_scan_query_mpu6050()
38 if (st->chip_config.temp_fifo_enable) in inv_scan_query_mpu6050()
55 st->chip_config.magn_fifo_enable = in inv_scan_query_mpu9x50()
62 if (st->chip_config.magn_fifo_enable) in inv_scan_query_mpu9x50()
89 if (st->chip_config.gyro_fifo_enable) in inv_compute_skip_samples()
93 if (st->chip_config in inv_compute_skip_samples()
[all...]
H A Dinv_mpu_core.c251 clock = st->chip_config.clk; in inv_mpu6050_pwr_mgmt_1_write()
253 temp_dis = !st->chip_config.temp_en; in inv_mpu6050_pwr_mgmt_1_write()
278 st->chip_config.clk = clock; in inv_mpu6050_clock_switch()
296 if (mask & INV_MPU6050_SENSOR_ACCL && en == st->chip_config.accl_en) in inv_mpu6050_switch_engine()
298 if (mask & INV_MPU6050_SENSOR_GYRO && en == st->chip_config.gyro_en) in inv_mpu6050_switch_engine()
300 if (mask & INV_MPU6050_SENSOR_TEMP && en == st->chip_config.temp_en) in inv_mpu6050_switch_engine()
302 if (mask & INV_MPU6050_SENSOR_MAGN && en == st->chip_config.magn_en) in inv_mpu6050_switch_engine()
312 st->chip_config.temp_en = en; in inv_mpu6050_switch_engine()
317 user_ctrl = st->chip_config.user_ctrl; in inv_mpu6050_switch_engine()
325 st->chip_config in inv_mpu6050_switch_engine()
[all...]
H A Dinv_mpu_ring.c140 if (!(st->chip_config.accl_fifo_enable | in inv_mpu6050_read_fifo()
141 st->chip_config.gyro_fifo_enable | in inv_mpu6050_read_fifo()
142 st->chip_config.magn_fifo_enable)) in inv_mpu6050_read_fifo()
145 if (st->chip_config.accl_fifo_enable) in inv_mpu6050_read_fifo()
148 if (st->chip_config.gyro_fifo_enable) in inv_mpu6050_read_fifo()
151 if (st->chip_config.temp_fifo_enable) in inv_mpu6050_read_fifo()
154 if (st->chip_config.magn_fifo_enable) in inv_mpu6050_read_fifo()
H A Dinv_mpu_aux.c34 user_ctrl = st->chip_config.user_ctrl | INV_MPU6050_BIT_I2C_MST_EN; in inv_mpu_i2c_master_xfer()
43 user_ctrl = st->chip_config.user_ctrl; in inv_mpu_i2c_master_xfer()
49 d = st->chip_config.divider; in inv_mpu_i2c_master_xfer()
57 regmap_write(st->map, st->reg->user_ctrl, st->chip_config.user_ctrl); in inv_mpu_i2c_master_xfer()
59 regmap_write(st->map, st->reg->sample_rate_div, st->chip_config.divider); in inv_mpu_i2c_master_xfer()
H A Dinv_mpu_spi.c28 st->chip_config.user_ctrl |= INV_MPU6050_BIT_I2C_IF_DIS; in inv_mpu_i2c_disable()
30 st->chip_config.user_ctrl); in inv_mpu_i2c_disable()
H A Dinv_mpu_iio.h157 * @chip_config: Cached attribute information.
180 struct inv_mpu6050_chip_config chip_config; member
364 ((st)->chip_config.divider + 1)
/kernel/linux/linux-6.6/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_trigger.c23 st->chip_config.temp_fifo_enable = true; in inv_scan_query_mpu6050()
27 st->chip_config.gyro_fifo_enable = in inv_scan_query_mpu6050()
35 st->chip_config.accl_fifo_enable = in inv_scan_query_mpu6050()
43 st->chip_config.temp_fifo_enable = in inv_scan_query_mpu6050()
47 if (st->chip_config.gyro_fifo_enable) in inv_scan_query_mpu6050()
49 if (st->chip_config.accl_fifo_enable) in inv_scan_query_mpu6050()
51 if (st->chip_config.temp_fifo_enable) in inv_scan_query_mpu6050()
68 st->chip_config.magn_fifo_enable = in inv_scan_query_mpu9x50()
75 if (st->chip_config.magn_fifo_enable) in inv_scan_query_mpu9x50()
100 if (st->chip_config in inv_compute_skip_samples()
[all...]
H A Dinv_mpu_ring.c71 if (!(st->chip_config.accl_fifo_enable | in inv_mpu6050_read_fifo()
72 st->chip_config.gyro_fifo_enable | in inv_mpu6050_read_fifo()
73 st->chip_config.magn_fifo_enable)) in inv_mpu6050_read_fifo()
76 if (st->chip_config.accl_fifo_enable) in inv_mpu6050_read_fifo()
79 if (st->chip_config.gyro_fifo_enable) in inv_mpu6050_read_fifo()
82 if (st->chip_config.temp_fifo_enable) in inv_mpu6050_read_fifo()
85 if (st->chip_config.magn_fifo_enable) in inv_mpu6050_read_fifo()
113 fifo_period = NSEC_PER_SEC / INV_MPU6050_DIVIDER_TO_FIFO_RATE(st->chip_config.divider); in inv_mpu6050_read_fifo()
H A Dinv_mpu_core.c294 clock = st->chip_config.clk; in inv_mpu6050_pwr_mgmt_1_write()
296 temp_dis = !st->chip_config.temp_en; in inv_mpu6050_pwr_mgmt_1_write()
321 st->chip_config.clk = clock; in inv_mpu6050_clock_switch()
339 if (mask & INV_MPU6050_SENSOR_ACCL && en == st->chip_config.accl_en) in inv_mpu6050_switch_engine()
341 if (mask & INV_MPU6050_SENSOR_GYRO && en == st->chip_config.gyro_en) in inv_mpu6050_switch_engine()
343 if (mask & INV_MPU6050_SENSOR_TEMP && en == st->chip_config.temp_en) in inv_mpu6050_switch_engine()
345 if (mask & INV_MPU6050_SENSOR_MAGN && en == st->chip_config.magn_en) in inv_mpu6050_switch_engine()
355 st->chip_config.temp_en = en; in inv_mpu6050_switch_engine()
360 user_ctrl = st->chip_config.user_ctrl; in inv_mpu6050_switch_engine()
368 st->chip_config in inv_mpu6050_switch_engine()
[all...]
H A Dinv_mpu_aux.c34 user_ctrl = st->chip_config.user_ctrl | INV_MPU6050_BIT_I2C_MST_EN; in inv_mpu_i2c_master_xfer()
43 user_ctrl = st->chip_config.user_ctrl; in inv_mpu_i2c_master_xfer()
49 d = st->chip_config.divider; in inv_mpu_i2c_master_xfer()
57 regmap_write(st->map, st->reg->user_ctrl, st->chip_config.user_ctrl); in inv_mpu_i2c_master_xfer()
59 regmap_write(st->map, st->reg->sample_rate_div, st->chip_config.divider); in inv_mpu_i2c_master_xfer()
H A Dinv_mpu_spi.c27 st->chip_config.user_ctrl |= INV_MPU6050_BIT_I2C_IF_DIS; in inv_mpu_i2c_disable()
29 st->chip_config.user_ctrl); in inv_mpu_i2c_disable()
H A Dinv_mpu_iio.h166 * @chip_config: Cached attribute information.
187 struct inv_mpu6050_chip_config chip_config; member
379 ((st)->chip_config.divider + 1)
/kernel/linux/linux-5.10/drivers/media/pci/cx18/
H A 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
[all...]
H A Dcx18-cards.h99 u32 chip_config; member
/kernel/linux/linux-6.6/drivers/media/pci/cx18/
H A 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
[all...]
H A Dcx18-cards.h99 u32 chip_config; member
/kernel/linux/linux-6.6/drivers/iio/pressure/
H A Dbmp280-core.c552 ret = data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_humid()
555 data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_humid()
577 ret = data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_temp()
580 data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_temp()
602 ret = data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_press()
605 data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_press()
627 ret = data->chip_info->chip_config(data); in bmp280_write_sampling_frequency()
630 data->chip_info->chip_config(data); in bmp280_write_sampling_frequency()
651 ret = data->chip_info->chip_config(data); in bmp280_write_iir_filter_coeffs()
654 data->chip_info->chip_config(dat in bmp280_write_iir_filter_coeffs()
[all...]
H A Dbmp280.h449 int (*chip_config)(struct bmp280_data *); member
/kernel/linux/linux-5.10/drivers/iio/pressure/
H A Dbmp280-core.c119 int (*chip_config)(struct bmp280_data *); member
501 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_humid()
518 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_temp()
535 return data->chip_info->chip_config(data); in bmp280_write_oversampling_ratio_press()
649 .chip_config = bmp280_chip_config,
682 .chip_config = bme280_chip_config,
924 .chip_config = bmp180_chip_config,
1083 ret = data->chip_info->chip_config(data); in bmp280_common_probe()
1160 return data->chip_info->chip_config(data); in bmp280_runtime_resume()
/kernel/linux/linux-5.10/drivers/iio/adc/
H A Dad799x.c125 const struct ad799x_chip_config *chip_config; member
794 st->chip_config = &chip_info->irq_config; in ad799x_probe()
796 st->chip_config = &chip_info->noirq_config; in ad799x_probe()
818 indio_dev->info = st->chip_config->info; in ad799x_probe()
821 indio_dev->channels = st->chip_config->channel; in ad799x_probe()
824 ret = ad799x_update_config(st, st->chip_config->default_config); in ad799x_probe()
/kernel/linux/linux-6.6/drivers/iio/adc/
H A Dad799x.c126 const struct ad799x_chip_config *chip_config; member
798 st->chip_config = &chip_info->irq_config; in ad799x_probe()
800 st->chip_config = &chip_info->noirq_config; in ad799x_probe()
844 indio_dev->info = st->chip_config->info; in ad799x_probe()
847 indio_dev->channels = st->chip_config->channel; in ad799x_probe()
850 ret = ad799x_update_config(st, st->chip_config->default_config | extra_config); in ad799x_probe()
/kernel/linux/linux-6.6/drivers/iio/accel/
H A Dbma180.c61 int (*chip_config)(struct bma180_data *data); member
781 .chip_config = bma023_chip_config,
809 .chip_config = bma023_chip_config,
836 .chip_config = bma180_chip_config,
864 .chip_config = bma250_chip_config,
979 ret = data->part_info->chip_config(data); in bma180_probe()
/kernel/linux/linux-5.10/drivers/iio/accel/
H A Dbma180.c65 int (*chip_config)(struct bma180_data *data); member
813 .chip_config = bma023_chip_config,
841 .chip_config = bma023_chip_config,
868 .chip_config = bma180_chip_config,
898 .chip_config = bma25x_chip_config,
928 .chip_config = bma25x_chip_config,
1041 ret = data->part_info->chip_config(data); in bma180_probe()
/kernel/linux/linux-6.6/drivers/spi/
H A Dspi-mt65xx.c355 struct mtk_chip_config *chip_config = spi->controller_data; in mtk_spi_hw_init() local
405 if (chip_config->sample_sel) in mtk_spi_hw_init()
432 reg_val |= ((chip_config->tick_delay & 0x7) in mtk_spi_hw_init()
438 reg_val |= ((chip_config->tick_delay & 0x7) in mtk_spi_hw_init()
445 reg_val |= ((chip_config->tick_delay & 0x3) in mtk_spi_hw_init()
/kernel/linux/linux-6.6/drivers/net/phy/
H A Dmotorcomm.c962 int chip_config; in yt8521_probe() local
973 chip_config = ytphy_read_ext_with_lock(phydev, YT8521_CHIP_CONFIG_REG); in yt8521_probe()
974 if (chip_config < 0) in yt8521_probe()
975 return chip_config; in yt8521_probe()
977 priv->strap_mode = chip_config & YT8521_CCR_MODE_SEL_MASK; in yt8521_probe()

Completed in 23 milliseconds

12