Searched refs:fet_id (Results 1 – 2 of 2) sorted by relevance
/openbmc/u-boot/drivers/power/regulator/ |
H A D | tps65090_regulator.c | 28 int ret, fet_id; in tps65090_fet_get_enable() local 30 fet_id = dev->driver_data; in tps65090_fet_get_enable() 31 debug("%s: fet_id=%d\n", __func__, fet_id); in tps65090_fet_get_enable() 33 ret = pmic_reg_read(pmic, REG_FET_BASE + fet_id); in tps65090_fet_get_enable() 64 ret = pmic_reg_read(pmic, REG_FET_BASE + fet_id); in tps65090_fet_set() 81 fet_id, set, ret); in tps65090_fet_set() 88 int ret, fet_id; in tps65090_fet_set_enable() local 92 fet_id = dev->driver_data; in tps65090_fet_set_enable() 97 ret = tps65090_fet_set(pmic, fet_id, enable); in tps65090_fet_set_enable() 105 tps65090_fet_set(pmic, fet_id, false); in tps65090_fet_set_enable() [all …]
|
/openbmc/u-boot/drivers/i2c/ |
H A D | cros_ec_ldo.c | 23 int fet_id, ret; in cros_ec_ldo_xfer() local 34 fet_id = msg->buf[0] - REG_FET_BASE; in cros_ec_ldo_xfer() 35 if (fet_id < 1 || fet_id > MAX_FET_NUM) { in cros_ec_ldo_xfer() 36 debug("%s: Invalid FET %d\n", __func__, fet_id); in cros_ec_ldo_xfer() 43 ret = cros_ec_get_ldo(dev->parent, fet_id, &state); in cros_ec_ldo_xfer() 50 ret = cros_ec_set_ldo(dev->parent, fet_id, on); in cros_ec_ldo_xfer()
|