/Zephyr-latest/drivers/charger/ |
D | charger_bq24190.c | 54 ret = i2c_reg_read_byte_dt(&config->i2c, BQ24190_REG_POC, &val); in bq24190_register_reset() 78 ret = i2c_reg_read_byte_dt(&config->i2c, BQ24190_REG_POC, &v); in bq24190_charger_get_charge_type() 88 ret = i2c_reg_read_byte_dt(&config->i2c, BQ24190_REG_CCC, &v); in bq24190_charger_get_charge_type() 111 ret = i2c_reg_read_byte_dt(&config->i2c, BQ24190_REG_F, &v); in bq24190_charger_get_health() 175 ret = i2c_reg_read_byte_dt(&config->i2c, BQ24190_REG_SS, &pg_stat); in bq24190_charger_get_online() 182 ret = i2c_reg_read_byte_dt(&config->i2c, BQ24190_REG_MOC, &batfet_disable); in bq24190_charger_get_online() 204 ret = i2c_reg_read_byte_dt(&config->i2c, BQ24190_REG_F, &chrg_fault); in bq24190_charger_get_status() 211 ret = i2c_reg_read_byte_dt(&config->i2c, BQ24190_REG_SS, &ss_reg); in bq24190_charger_get_status() 255 ret = i2c_reg_read_byte_dt(&config->i2c, BQ24190_REG_CCC, &v); in bq24190_charger_get_constant_charge_current() 280 ret = i2c_reg_read_byte_dt(&config->i2c, BQ24190_REG_CCC, &v); in bq24190_charger_get_precharge_current() [all …]
|
D | charger_bq25180.c | 169 ret = i2c_reg_read_byte_dt(&cfg->i2c, BQ25180_ICHG_CTRL, &val); in bq25180_get_charge_current() 204 ret = i2c_reg_read_byte_dt(&cfg->i2c, BQ25180_VBAT_CTRL, &val); in bq25180_get_charge_voltage() 221 ret = i2c_reg_read_byte_dt(&cfg->i2c, BQ25180_STAT0, &val); in bq25180_get_online() 243 ret = i2c_reg_read_byte_dt(&cfg->i2c, BQ25180_STAT0, &stat0); in bq25180_get_status() 253 ret = i2c_reg_read_byte_dt(&cfg->i2c, BQ25180_ICHG_CTRL, &ichg_ctrl); in bq25180_get_status() 321 ret = i2c_reg_read_byte_dt(&cfg->i2c, BQ25180_MASK_ID, &val); in bq25180_init()
|
/Zephyr-latest/drivers/sensor/ti/lm95234/ |
D | lm95234.c | 94 ret = i2c_reg_read_byte_dt(&cfg->i2c, in lm95234_fetch_temp() 100 ret = i2c_reg_read_byte_dt(&cfg->i2c, in lm95234_fetch_temp() 115 ret = i2c_reg_read_byte_dt(&cfg->i2c, in lm95234_fetch_temp() 121 ret = i2c_reg_read_byte_dt(&cfg->i2c, in lm95234_fetch_temp() 223 ret = i2c_reg_read_byte_dt(&cfg->i2c, LM95234_REG_MANUF_ID, &value); in lm95234_init() 232 ret = i2c_reg_read_byte_dt(&cfg->i2c, LM95234_REG_REV_ID, &value); in lm95234_init() 241 ret = i2c_reg_read_byte_dt(&cfg->i2c, LM95234_REG_CONFIG, &value); in lm95234_init() 254 ret = i2c_reg_read_byte_dt(&cfg->i2c, LM95234_REG_DIODE_MODEL_SELECT, &model_select); in lm95234_init() 259 ret = i2c_reg_read_byte_dt(&cfg->i2c, LM95234_REG_DIODE_MODEL_STATUS, &model_status); in lm95234_init()
|
/Zephyr-latest/drivers/sensor/st/lsm9ds0_mfd/ |
D | lsm9ds0_mfd.c | 217 if (i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_MFD_REG_OUT_X_L_A, &out_l) < 0 || in lsm9ds0_mfd_sample_fetch_accel() 218 i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_MFD_REG_OUT_X_H_A, &out_h) < 0) { in lsm9ds0_mfd_sample_fetch_accel() 228 if (i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_MFD_REG_OUT_Y_L_A, &out_l) < 0 || in lsm9ds0_mfd_sample_fetch_accel() 229 i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_MFD_REG_OUT_Y_H_A, &out_h) < 0) { in lsm9ds0_mfd_sample_fetch_accel() 239 if (i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_MFD_REG_OUT_Z_L_A, &out_l) < 0 || in lsm9ds0_mfd_sample_fetch_accel() 240 i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_MFD_REG_OUT_Z_H_A, &out_h) < 0) { in lsm9ds0_mfd_sample_fetch_accel() 264 if (i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_MFD_REG_OUT_X_L_M, &out_l) < 0 || in lsm9ds0_mfd_sample_fetch_magn() 265 i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_MFD_REG_OUT_X_H_M, &out_h) < 0) { in lsm9ds0_mfd_sample_fetch_magn() 273 if (i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_MFD_REG_OUT_Y_L_M, &out_l) < 0 || in lsm9ds0_mfd_sample_fetch_magn() 274 i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_MFD_REG_OUT_Y_H_M, &out_h) < 0) { in lsm9ds0_mfd_sample_fetch_magn() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm9ds0_gyro/ |
D | lsm9ds0_gyro.c | 126 if (i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_GYRO_REG_OUT_X_L_G, in lsm9ds0_gyro_sample_fetch() 128 i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_GYRO_REG_OUT_X_H_G, in lsm9ds0_gyro_sample_fetch() 130 i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_GYRO_REG_OUT_Y_L_G, in lsm9ds0_gyro_sample_fetch() 132 i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_GYRO_REG_OUT_Y_H_G, in lsm9ds0_gyro_sample_fetch() 134 i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_GYRO_REG_OUT_Z_L_G, in lsm9ds0_gyro_sample_fetch() 136 i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_GYRO_REG_OUT_Z_H_G, in lsm9ds0_gyro_sample_fetch() 272 if (i2c_reg_read_byte_dt(&config->i2c, LSM9DS0_GYRO_REG_WHO_AM_I_G, in lsm9ds0_gyro_init_chip()
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_nct38xx_port.c | 146 ret = i2c_reg_read_byte_dt(data->i2c_dev, NCT38XX_REG_MUX_CONTROL, ®); in gpio_nct38xx_pin_get_config() 157 ret = i2c_reg_read_byte_dt(data->i2c_dev, NCT38XX_REG_GPIO_DIR(config->gpio_port), ®); in gpio_nct38xx_pin_get_config() 167 ret = i2c_reg_read_byte_dt(data->i2c_dev, in gpio_nct38xx_pin_get_config() 178 ret = i2c_reg_read_byte_dt(data->i2c_dev, in gpio_nct38xx_pin_get_config() 208 ret = i2c_reg_read_byte_dt(data->i2c_dev, NCT38XX_REG_GPIO_DATA_IN(config->gpio_port), in gpio_nct38xx_port_get_raw() 273 ret = i2c_reg_read_byte_dt(data->i2c_dev, NCT38XX_REG_GPIO_DATA_OUT(config->gpio_port), in gpio_nct38xx_port_toggle_bits() 404 ret = i2c_reg_read_byte_dt(data->i2c_dev, NCT38XX_REG_MUX_CONTROL, &enabled_gpios); in gpio_nct38xx_port_get_direction() 413 ret = i2c_reg_read_byte_dt(data->i2c_dev, NCT38XX_REG_GPIO_DIR(config->gpio_port), in gpio_nct38xx_port_get_direction() 442 ret = i2c_reg_read_byte_dt( in gpio_nct38xx_dispatch_port_isr() 449 ret = i2c_reg_read_byte_dt(data->i2c_dev, in gpio_nct38xx_dispatch_port_isr()
|
D | gpio_ite_it8801.c | 74 ret = i2c_reg_read_byte_dt(&config->i2c_dev, reg_gpcr, &control); in gpio_it8801_configure() 148 ret = i2c_reg_read_byte_dt(&config->i2c_dev, reg_gpcr, &control); in gpio_it8801_get_config() 163 ret = i2c_reg_read_byte_dt(&config->i2c_dev, config->reg_ipsr, &value); in gpio_it8801_get_config() 199 ret = i2c_reg_read_byte_dt(&config->i2c_dev, config->reg_ipsr, &val); in gpio_it8801_port_get_raw() 261 ret = i2c_reg_read_byte_dt(&config->i2c_dev, config->reg_sovr, &val); in gpio_it8801_port_toggle_bits() 296 ret = i2c_reg_read_byte_dt(&config->i2c_dev, config->reg_gpisr, &isr_val); in it8801_gpio_alert_handler() 302 ret = i2c_reg_read_byte_dt(&config->i2c_dev, config->reg_gpier, &ier_val); in it8801_gpio_alert_handler() 359 ret = i2c_reg_read_byte_dt(&config->i2c_dev, reg_gpcr, &control); in gpio_it8801_pin_interrupt_configure()
|
/Zephyr-latest/drivers/regulator/ |
D | regulator_cp9314.c | 240 ret = i2c_reg_read_byte_dt(&config->i2c, CP9314_REG_FLT_FLAG, &val[0]); in regulator_cp9314_get_error_flags() 249 ret = i2c_reg_read_byte_dt(&config->i2c, CP9314_REG_COMP_FLAG0, &val[1]); in regulator_cp9314_get_error_flags() 258 ret = i2c_reg_read_byte_dt(&config->i2c, CP9314_REG_COMP_FLAG1, &val[2]); in regulator_cp9314_get_error_flags() 303 ret = i2c_reg_read_byte_dt(&config->i2c, CP9314_REG_LION_CFG_3, &value); in regulator_cp9314_write_lock_init() 310 ret = i2c_reg_read_byte_dt(&config->i2c, CP9314_REG_BACKDOOR_CTRL, &data->backdoor_key); in regulator_cp9314_write_lock_init() 357 ret = i2c_reg_read_byte_dt(&config->i2c, CP9314_REG_CONVERTER, &value); in regulator_cp9314_enable() 401 ret = i2c_reg_read_byte_dt(&config->i2c, CP9314_REG_CONVERTER, &value); in regulator_cp9314_enable() 500 ret = i2c_reg_read_byte_dt(&config->i2c, CP9314_REG_PTE_REG_2, &value); in regulator_cp9314_otp_init() 539 ret = i2c_reg_read_byte_dt(&config->i2c, CP9314_REG_DEVICE_ID, &value); in regulator_cp9314_init() 598 ret = i2c_reg_read_byte_dt(&config->i2c, CP9314_REG_BC_STS_C, &value); in regulator_cp9314_init() [all …]
|
D | regulator_npm2100.c | 211 ret = i2c_reg_read_byte_dt(&config->i2c, BOOST_VOUTSEL, &idx); in regulator_npm2100_get_voltage() 218 ret = i2c_reg_read_byte_dt(&config->i2c, BOOST_VOUT, &idx); in regulator_npm2100_get_voltage() 227 ret = i2c_reg_read_byte_dt(&config->i2c, BOOST_STATUS1, &idx); in regulator_npm2100_get_voltage() 234 ret = i2c_reg_read_byte_dt(&config->i2c, BOOST_VSET0, &idx); in regulator_npm2100_get_voltage() 243 ret = i2c_reg_read_byte_dt(&config->i2c, BOOST_VSET1, &idx); in regulator_npm2100_get_voltage() 252 ret = i2c_reg_read_byte_dt(&config->i2c, LDOSW_VOUT, &idx); in regulator_npm2100_get_voltage() 424 ret = i2c_reg_read_byte_dt(&config->i2c, BOOST_STATUS0, ®); in get_boost_mode() 461 ret = i2c_reg_read_byte_dt(&config->i2c, LDOSW_STATUS, ®); in get_ldosw_mode() 734 ret = i2c_reg_read_byte_dt(&config->i2c, LDOSW_ENABLE, &enabled); in regulator_npm2100_init()
|
D | regulator_npm6001.c | 128 ret = i2c_reg_read_byte_dt(&config->i2c, conf_reg, &conf); in regulator_npm6001_buck012_set_voltage() 181 ret = i2c_reg_read_byte_dt(&config->i2c, NPM6001_BUCK3CONFPWMMODE, &conf); in regulator_npm6001_buck3_set_voltage() 239 ret = i2c_reg_read_byte_dt(&config->i2c, vout_reg, &idx); in regulator_npm6001_buck0123_get_voltage() 253 ret = i2c_reg_read_byte_dt(&config->i2c, NPM6001_LDO0VOUT, &val); in regulator_npm6001_ldo0_get_voltage() 436 ret = i2c_reg_read_byte_dt(&config->i2c, conf_reg, &conf); in regulator_npm6001_get_mode() 503 ret = i2c_reg_read_byte_dt(&config->i2c, NPM6001_EVENTS_THWARN, &val); in regulator_npm6001_get_error_flags() 536 ret = i2c_reg_read_byte_dt(&config->i2c, oc_reg, &val); in regulator_npm6001_get_error_flags()
|
D | regulator_adp5360.c | 128 ret = i2c_reg_read_byte_dt(&config->i2c, config->desc->out_reg, &raw_reg); in regulator_adp5360_get_voltage() 162 ret = i2c_reg_read_byte_dt(&config->i2c, config->desc->cfg_reg, &val); in regulator_adp5360_get_mode() 204 ret = i2c_reg_read_byte_dt(&config->i2c, config->desc->out_reg, &val); in regulator_adp5360_init() 227 ret = i2c_reg_read_byte_dt(&config->i2c, config->desc->cfg_reg, &val); in regulator_adp5360_init()
|
/Zephyr-latest/drivers/bbram/ |
D | bbram_microchip_mcp7940n.c | 48 rc = i2c_reg_read_byte_dt(&config->i2c, in microchip_mcp7940n_bbram_init() 76 rc = i2c_reg_read_byte_dt(&config->i2c, in microchip_mcp7940n_bbram_is_invalid() 117 rc = i2c_reg_read_byte_dt(&config->i2c, in microchip_mcp7940n_bbram_check_standby_power() 164 rc = i2c_reg_read_byte_dt(&config->i2c, in microchip_mcp7940n_bbram_read()
|
/Zephyr-latest/drivers/sensor/apds9306/ |
D | apds9306.c | 110 if (i2c_reg_read_byte_dt(&config->i2c, APDS9306_REGISTER_MAIN_STATUS, &buffer[0])) { in apds9306_worker() 196 if (i2c_reg_read_byte_dt(&config->i2c, reg, &temp)) { in apds9306_attr_get() 225 if (i2c_reg_read_byte_dt(&config->i2c, APDS9306_REGISTER_ALS_MEAS_RATE, &buffer)) { in apds9306_sample_fetch() 274 if (i2c_reg_read_byte_dt(&config->i2c, APDS9306_REGISTER_MAIN_STATUS, &temp)) { in apds9306_sensor_setup() 288 if (i2c_reg_read_byte_dt(&config->i2c, APDS9306_REGISTER_PART_ID, &temp)) { in apds9306_sensor_setup() 314 if (i2c_reg_read_byte_dt(&config->i2c, APDS9306_REGISTER_PART_ID, &temp)) { in apds9306_sensor_setup()
|
/Zephyr-latest/drivers/sensor/amd_sb_tsi/ |
D | sb_tsi.c | 49 res = i2c_reg_read_byte_dt(&config->i2c, SB_TSI_TEMP_INT, &data->sample_int); in sb_tsi_sample_fetch() 54 res = i2c_reg_read_byte_dt(&config->i2c, SB_TSI_TEMP_DEC, &data->sample_dec); in sb_tsi_sample_fetch()
|
/Zephyr-latest/drivers/sensor/sx9500/ |
D | sx9500.c | 56 return i2c_reg_read_byte_dt(&cfg->i2c, SX9500_REG_STAT, &data->prox_stat); in sx9500_sample_fetch() 105 if (i2c_reg_read_byte_dt(&cfg->i2c, SX9500_REG_IRQ_SRC, &val) < 0) { in sx9500_init_chip()
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_axp192.c | 158 ret = i2c_reg_read_byte_dt(&config->i2c, AXP192_REG_CHIP_ID, &chip_id); in mfd_axp192_init() 193 ret = i2c_reg_read_byte_dt(&(config->i2c), gpio_reg_desc[gpio].reg, ®_fnc); in mfd_axp192_gpio_func_get() 454 ret = i2c_reg_read_byte_dt(&(config->i2c), AXP192_GPIO012_PULLDOWN_REG, &gpio_val); in mfd_axp192_gpio_pd_get() 525 ret = i2c_reg_read_byte_dt(&(config->i2c), AXP192_GPIO012_PINVAL_REG, &gpio012_val); in mfd_axp192_gpio_read_port() 531 ret = i2c_reg_read_byte_dt(&(config->i2c), AXP192_GPIO34_PINVAL_REG, &gpio34_val); in mfd_axp192_gpio_read_port() 537 ret = i2c_reg_read_byte_dt(&(config->i2c), AXP192_EXTEN_DCDC2_CONTROL_REG, &gpio5_val); in mfd_axp192_gpio_read_port()
|
D | mfd_max20335.c | 30 ret = i2c_reg_read_byte_dt(&config->bus, MAX20335_REG_CHIP_ID, &val); in mfd_max20335_init()
|
D | mfd_aw9523b.c | 35 ret = i2c_reg_read_byte_dt(&config->i2c, AW9523B_REG_ID, ®); in mfd_aw9523b_init()
|
/Zephyr-latest/drivers/sensor/ltrf216a/ |
D | ltrf216a.c | 95 result = i2c_reg_read_byte_dt(&config->i2c, LTRF216A_MAIN_STATUS, &status); in ltrf216a_sample_fetch() 153 if (i2c_reg_read_byte_dt(&config->i2c, LTRF216A_PART_ID, &value) != 0) { in ltrf216a_chip_init()
|
/Zephyr-latest/drivers/sensor/bosch/bmp581/ |
D | bmp581.c | 64 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, &odr); in set_power_mode() 118 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, ®); in get_power_mode() 195 return i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_INT_STATUS, int_status); in get_interrupt_status() 206 return i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_STATUS, nvm_status); in get_nvm_status() 274 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_OSR_CONFIG, &osr_val); in set_osr_config() 314 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, &odr_val); in set_odr_config() 520 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_CHIP_ID, &drv->chip_id); in bmp581_init()
|
/Zephyr-latest/drivers/sensor/renesas/isl29035/ |
D | isl29035.c | 31 if (i2c_reg_read_byte_dt(&config->i2c, in isl29035_sample_fetch() 36 if (i2c_reg_read_byte_dt(&config->i2c, ISL29035_DATA_LSB_REG, in isl29035_sample_fetch()
|
/Zephyr-latest/drivers/sensor/th02/ |
D | th02.c | 26 if (i2c_reg_read_byte_dt(i2c, d, &buf) < 0) { in read8() 37 if (i2c_reg_read_byte_dt(i2c, TH02_REG_STATUS, &status) < 0) { in is_ready()
|
/Zephyr-latest/drivers/sensor/ams/tmd2620/ |
D | tmd2620.c | 115 ret = i2c_reg_read_byte_dt(&config->i2c, TMD2620_STATUS_REG, &tmp); in tmd2620_sample_fetch() 125 ret = i2c_reg_read_byte_dt(&config->i2c, TMD2620_PDATA_REG, &data->pdata); in tmd2620_sample_fetch() 178 (void)i2c_reg_read_byte_dt(&config->i2c, TMD2620_ID_REG, &chip_id); in tmd2620_sensor_setup() 180 ret = i2c_reg_read_byte_dt(&config->i2c, TMD2620_ID_REG, &chip_id); in tmd2620_sensor_setup()
|
/Zephyr-latest/drivers/sensor/f75303/ |
D | f75303.c | 31 res = i2c_reg_read_byte_dt(i2c, off_h, &val_h); in f75303_fetch() 36 res = i2c_reg_read_byte_dt(i2c, off_l, &val_l); in f75303_fetch()
|
/Zephyr-latest/drivers/sensor/st/lps25hb/ |
D | lps25hb.c | 52 if (i2c_reg_read_byte_dt(&config->i2c, in lps25hb_sample_fetch() 130 if (i2c_reg_read_byte_dt(&config->i2c, LPS25HB_REG_WHO_AM_I, in lps25hb_init_chip()
|