Lines Matching refs:conf
42 struct bmp581_config *conf = (struct bmp581_config *)dev->config; in set_power_mode() local
64 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, &odr); in set_power_mode()
70 ret = i2c_reg_write_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, odr); in set_power_mode()
95 ret = i2c_reg_write_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, odr); in set_power_mode()
108 struct bmp581_config *conf = (struct bmp581_config *)dev->config; in get_power_mode() local
118 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, ®); in get_power_mode()
189 struct bmp581_config *conf = (struct bmp581_config *)dev->config; in get_interrupt_status() local
195 return i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_INT_STATUS, int_status); in get_interrupt_status()
200 struct bmp581_config *conf = (struct bmp581_config *)dev->config; in get_nvm_status() local
206 return i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_STATUS, nvm_status); in get_nvm_status()
234 struct bmp581_config *conf = (struct bmp581_config *)dev->config; in get_osr_odr_press_config() local
247 rslt = i2c_burst_read_dt(&conf->i2c, BMP5_REG_OSR_CONFIG, reg_data, 2); in get_osr_odr_press_config()
267 struct bmp581_config *conf = (struct bmp581_config *)dev->config; in set_osr_config() local
274 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_OSR_CONFIG, &osr_val); in set_osr_config()
295 ret = i2c_reg_write_byte_dt(&conf->i2c, BMP5_REG_OSR_CONFIG, osr_val); in set_osr_config()
310 struct bmp581_config *conf = (struct bmp581_config *)dev->config; in set_odr_config() local
314 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, &odr_val); in set_odr_config()
319 ret = i2c_reg_write_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, odr_val); in set_odr_config()
327 struct bmp581_config *conf = (struct bmp581_config *)dev->config; in soft_reset() local
336 ret = i2c_reg_write_byte_dt(&conf->i2c, BMP5_REG_CMD, reset_cmd); in soft_reset()
366 struct bmp581_config *conf = (struct bmp581_config *)dev->config; in bmp581_sample_fetch() local
370 ret = i2c_burst_read_dt(&conf->i2c, BMP5_REG_TEMP_DATA_XLSB, data, 6); in bmp581_sample_fetch()
421 struct bmp581_config *conf = (struct bmp581_config *)dev->config; in set_iir_config() local
442 ret = i2c_burst_read_dt(&conf->i2c, BMP5_REG_DSP_CONFIG, dsp_config, 2); in set_iir_config()
456 ret = i2c_burst_write_dt(&conf->i2c, BMP5_REG_DSP_CONFIG, dsp_config, 2); in set_iir_config()
510 struct bmp581_config *conf = (struct bmp581_config *)dev->config; in bmp581_init() local
520 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_CHIP_ID, &drv->chip_id); in bmp581_init()