Lines Matching refs:fet_id
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()
49 static int tps65090_fet_set(struct udevice *pmic, int fet_id, bool set) in tps65090_fet_set() argument
59 if (pmic_reg_write(pmic, REG_FET_BASE + fet_id, value)) in tps65090_fet_set()
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()
93 debug("%s: fet_id=%d, enable=%d\n", __func__, fet_id, enable); 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()
110 __func__, fet_id, get_timer(start), loops); in tps65090_fet_set_enable()
113 __func__, fet_id, get_timer(start), loops); in tps65090_fet_set_enable()