Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/iio/imu/inv_mpu6050/
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.magn_fifo_enable) in inv_compute_skip_samples()
[all …]
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()
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.user_ctrl = user_ctrl; in inv_mpu6050_switch_engine()
[all …]
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()
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()
Dinv_mpu_iio.h187 struct inv_mpu6050_chip_config chip_config; member
379 ((st)->chip_config.divider + 1)
/Linux-v6.6/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-v6.6/drivers/iio/pressure/
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(data); in bmp280_write_iir_filter_coeffs()
[all …]
Dbmp280.h449 int (*chip_config)(struct bmp280_data *); member
/Linux-v6.6/drivers/iio/adc/
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()
/Linux-v6.6/drivers/iio/accel/
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()
/Linux-v6.6/drivers/spi/
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()
/Linux-v6.6/drivers/net/phy/
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()
/Linux-v6.6/drivers/hwmon/
Dlm90.c688 u32 chip_config[2]; member
2796 info->config = data->chip_config; in lm90_probe()
2798 data->chip_config[0] = HWMON_C_REGISTER_TZ; in lm90_probe()
2800 data->chip_config[0] |= HWMON_C_ALARMS; in lm90_probe()
2802 data->chip_config[0] |= HWMON_C_UPDATE_INTERVAL; in lm90_probe()
2804 data->chip_config[0] |= HWMON_C_TEMP_SAMPLES; in lm90_probe()