Home
last modified time | relevance | path

Searched refs:raw_reg (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/drivers/regulator/
Dregulator_pca9420.c275 uint8_t raw_reg; in regulator_pca9420_get_voltage() local
279 &raw_reg); in regulator_pca9420_get_voltage()
284 raw_reg = (raw_reg & config->desc->vsel_mask) >> config->desc->vsel_pos; in regulator_pca9420_get_voltage()
287 config->desc->num_ranges, raw_reg, in regulator_pca9420_get_voltage()
323 uint8_t raw_reg; in regulator_pca9420_get_active_discharge() local
326 ret = i2c_reg_read_byte_dt(&cconfig->i2c, PCA9420_ACT_DISCHARGE_CNTL, &raw_reg); in regulator_pca9420_get_active_discharge()
331 *active_discharge = !((raw_reg & config->desc->ad_mask) >> config->desc->ad_pos); in regulator_pca9420_get_active_discharge()
Dregulator_adp5360.c126 uint8_t raw_reg; in regulator_adp5360_get_voltage() local
128 ret = i2c_reg_read_byte_dt(&config->i2c, config->desc->out_reg, &raw_reg); in regulator_adp5360_get_voltage()
133 raw_reg = (raw_reg & ADP5360_BUCK_OUTPUT_VOUT_MSK) >> ADP5360_BUCK_OUTPUT_VOUT_POS; in regulator_adp5360_get_voltage()
135 return linear_range_group_get_value(config->desc->ranges, config->desc->nranges, raw_reg, in regulator_adp5360_get_voltage()
Dregulator_axp192.c269 uint8_t raw_reg; in axp192_get_voltage() local
272 ret = i2c_reg_read_byte_dt(&config->i2c, config->desc->vsel_reg, &raw_reg); in axp192_get_voltage()
277 raw_reg = (raw_reg & config->desc->vsel_mask) >> config->desc->vsel_bitpos; in axp192_get_voltage()
279 ret = linear_range_group_get_value(config->desc->ranges, config->desc->num_ranges, raw_reg, in axp192_get_voltage()
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/
Dedtlib.py1682 for raw_reg in _slice(node, "reg", 4*(address_cells + size_cells),
1688 addr = _translate(to_num(raw_reg[:4*address_cells]), node)
1692 size = to_num(raw_reg[4*address_cells:])