Lines Matching refs:refp
176 struct mx25_gcq_priv *priv, u32 refp) in mx25_gcq_ext_regulator_setup() argument
181 if (priv->vref[refp]) in mx25_gcq_ext_regulator_setup()
185 mx25_gcq_refp_names[refp]); in mx25_gcq_ext_regulator_setup()
189 priv->vref[refp] = devm_regulator_get_optional(dev, reg_name); in mx25_gcq_ext_regulator_setup()
190 if (IS_ERR(priv->vref[refp])) in mx25_gcq_ext_regulator_setup()
191 return dev_err_probe(dev, PTR_ERR(priv->vref[refp]), in mx25_gcq_ext_regulator_setup()
221 u32 refp = MX25_ADCQ_CFG_REFP_INT; in mx25_gcq_setup_cfgs() local
238 of_property_read_u32(child, "fsl,adc-refp", &refp); in mx25_gcq_setup_cfgs()
241 switch (refp) { in mx25_gcq_setup_cfgs()
245 ret = mx25_gcq_ext_regulator_setup(&pdev->dev, priv, refp); in mx25_gcq_setup_cfgs()
251 regulator_get_voltage(priv->vref[refp]); in mx25_gcq_setup_cfgs()
259 dev_err(dev, "Invalid positive reference %d\n", refp); in mx25_gcq_setup_cfgs()
268 refp = MX25_ADCQ_CFG_REFP(refp); in mx25_gcq_setup_cfgs()
271 if ((refp & MX25_ADCQ_CFG_REFP_MASK) != refp) { in mx25_gcq_setup_cfgs()
285 refp | refn); in mx25_gcq_setup_cfgs()