Lines Matching full:rid
29 #define RT5190A_RID_BITMASK(rid) BIT(rid + 1) argument
62 int rid = rdev_get_id(rdev); in rt5190a_get_error_flags() local
70 if (!(pgood_stat & RT5190A_RID_BITMASK(rid))) in rt5190a_get_error_flags()
82 int rid = rdev_get_id(rdev); in rt5190a_fixed_buck_set_mode() local
83 unsigned int mask = RT5190A_RID_BITMASK(rid), val; in rt5190a_fixed_buck_set_mode()
102 int rid = rdev_get_id(rdev); in rt5190a_fixed_buck_get_mode() local
112 if (val & RT5190A_RID_BITMASK(rid)) in rt5190a_fixed_buck_get_mode()
218 static int rt5190a_of_parse_cb(struct rt5190a_priv *priv, int rid, in rt5190a_of_parse_cb() argument
221 struct regulator_desc *desc = priv->rdesc + rid; in rt5190a_of_parse_cb()
225 unsigned int mask = RT5190A_RID_BITMASK(rid), val; in rt5190a_of_parse_cb()
230 switch (rid) { in rt5190a_of_parse_cb()
257 static void rt5190a_fillin_regulator_desc(struct regulator_desc *desc, int rid) in rt5190a_fillin_regulator_desc() argument
265 desc->name = regu_name[rid]; in rt5190a_fillin_regulator_desc()
266 desc->supply_name = supply[rid]; in rt5190a_fillin_regulator_desc()
269 desc->id = rid; in rt5190a_fillin_regulator_desc()
271 desc->enable_mask = RT5190A_RID_BITMASK(rid); in rt5190a_fillin_regulator_desc()
273 desc->active_discharge_mask = RT5190A_RID_BITMASK(rid); in rt5190a_fillin_regulator_desc()
274 desc->active_discharge_on = RT5190A_RID_BITMASK(rid); in rt5190a_fillin_regulator_desc()
276 switch (rid) { in rt5190a_fillin_regulator_desc()