Lines Matching refs:param
97 static int reg_get_value(struct udevice *dev, const struct s5m8767_para *param) in reg_get_value() argument
102 ret = pmic_reg_read(dev->parent, param->vol_addr); in reg_get_value()
106 desc = param->vol; in reg_get_value()
107 val = (ret >> param->vol_bitpos) & param->vol_bitmask; in reg_get_value()
113 static int reg_set_value(struct udevice *dev, const struct s5m8767_para *param, in reg_set_value() argument
119 desc = param->vol; in reg_set_value()
123 val = (val & param->vol_bitmask) << param->vol_bitpos; in reg_set_value()
124 ret = pmic_clrsetbits(dev->parent, param->vol_addr, in reg_set_value()
125 param->vol_bitmask << param->vol_bitpos, in reg_set_value()
156 static int reg_get_enable(struct udevice *dev, const struct s5m8767_para *param) in reg_get_enable() argument
161 ret = pmic_reg_read(dev->parent, param->reg_enaddr); in reg_get_enable()
170 static int reg_set_enable(struct udevice *dev, const struct s5m8767_para *param, in reg_set_enable() argument
175 ret = pmic_reg_read(dev->parent, param->reg_enaddr); in reg_set_enable()
179 ret = pmic_clrsetbits(dev->parent, param->reg_enaddr, in reg_set_enable()
181 enable ? param->reg_enbiton << ENABLE_SHIFT : 0); in reg_set_enable()