Lines Matching full:rid
23 #define RT5120_OUTPG_MASK(rid) BIT(rid + 1) argument
24 #define RT5120_OUTUV_MASK(rid) BIT(rid + 9) argument
25 #define RT5120_OUTOV_MASK(rid) BIT(rid + 16) argument
27 #define RT5120_RIDEN_MASK(rid) BIT(rid + 1) argument
28 #define RT5120_RADEN_MASK(rid) BIT(rid) argument
29 #define RT5120_FPWM_MASK(rid) BIT(rid + 1) argument
61 int rid = rdev_get_id(rdev); in rt5120_buck_set_mode() local
62 unsigned int mask = RT5120_FPWM_MASK(rid), val; in rt5120_buck_set_mode()
69 val = RT5120_FPWM_MASK(rid); in rt5120_buck_set_mode()
81 int ret, rid = rdev_get_id(rdev); in rt5120_buck_get_mode() local
88 if (val & RT5120_FPWM_MASK(rid)) in rt5120_buck_get_mode()
99 int rid = rdev_get_id(rdev), ret; in rt5120_regulator_get_error_flags() local
113 if (!(stat & RT5120_OUTPG_MASK(rid))) { in rt5120_regulator_get_error_flags()
114 if (stat & RT5120_OUTUV_MASK(rid)) in rt5120_regulator_get_error_flags()
117 if (stat & RT5120_OUTOV_MASK(rid)) in rt5120_regulator_get_error_flags()
143 int rid = rdev_get_id(rdev); in rt5120_regulator_set_suspend_enable() local
144 unsigned int mask = RT5120_RIDEN_MASK(rid); in rt5120_regulator_set_suspend_enable()
152 int rid = rdev_get_id(rdev); in rt5120_regulator_set_suspend_disable() local
153 unsigned int mask = RT5120_RIDEN_MASK(rid); in rt5120_regulator_set_suspend_disable()
216 static void rt5120_fillin_regulator_desc(struct regulator_desc *desc, int rid) in rt5120_fillin_regulator_desc() argument
224 desc->name = name[rid]; in rt5120_fillin_regulator_desc()
225 desc->supply_name = sname[rid]; in rt5120_fillin_regulator_desc()
228 desc->id = rid; in rt5120_fillin_regulator_desc()
230 desc->enable_mask = RT5120_RIDEN_MASK(rid); in rt5120_fillin_regulator_desc()
232 desc->active_discharge_mask = RT5120_RADEN_MASK(rid); in rt5120_fillin_regulator_desc()
233 desc->active_discharge_on = RT5120_RADEN_MASK(rid); in rt5120_fillin_regulator_desc()
238 if (rid >= RT5120_REGULATOR_BUCK1 && rid <= RT5120_REGULATOR_BUCK4) in rt5120_fillin_regulator_desc()
241 /* RID specific property init */ in rt5120_fillin_regulator_desc()
242 switch (rid) { in rt5120_fillin_regulator_desc()
263 static int rt5120_of_parse_cb(struct rt5120_priv *priv, int rid, in rt5120_of_parse_cb() argument
266 struct regulator_desc *desc = priv->rdesc + rid; in rt5120_of_parse_cb()
269 if (!init_data || rid == RT5120_REGULATOR_BUCK1) in rt5120_of_parse_cb()