Home
last modified time | relevance | path

Searched refs:modeval (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/regulator/
H A Drt4803.c41 unsigned int modeval; in rt4803_set_mode() local
45 modeval = RT4803_AUTO_MODE; in rt4803_set_mode()
48 modeval = RT4803_FPWM_MODE; in rt4803_set_mode()
54 modeval <<= ffs(RT4803_MODE_MASK) - 1; in rt4803_set_mode()
56 return regmap_update_bits(regmap, RT4803_REG_CONFIG, RT4803_MODE_MASK, modeval); in rt4803_set_mode()
62 unsigned int modeval; in rt4803_get_mode() local
65 ret = regmap_read(regmap, RT4803_REG_CONFIG, &modeval); in rt4803_get_mode()
69 modeval >>= ffs(RT4803_MODE_MASK) - 1; in rt4803_get_mode()
71 switch (modeval) { in rt4803_get_mode()
/openbmc/linux/drivers/net/bonding/
H A Dbond_options.c657 const struct bond_opt_value *modeval; in bond_opt_dep_print() local
661 modeval = bond_opt_get_val(BOND_OPT_MODE, params->mode); in bond_opt_dep_print()
664 opt->name, modeval->string, modeval->value); in bond_opt_dep_print()