Lines Matching full:mfp
212 static int match_mux(const struct ltq_mfp_pin *mfp, unsigned mux) in match_mux() argument
216 if (mfp->func[i] == mux) in match_mux()
224 /* don't assume .mfp is linearly mapped. find the mfp with the correct .pin */
229 if (info->mfp[i].pin == pin) in match_mfp()
244 dev_err(info->dev, "could not find mfp for pin %d\n", in match_group_mux()
248 ret = match_mux(&info->mfp[pin], mux); in match_group_mux()
275 dev_err(info->dev, "could not find mfp for pin %d\n", in ltq_pmx_set()
279 pin_func = match_mux(&info->mfp[pin], pin_grp->mux); in ltq_pmx_set()
296 int mfp = match_mfp(info, pin); in ltq_pmx_gpio_request_enable() local
299 if (mfp < 0) { in ltq_pmx_gpio_request_enable()
300 dev_err(info->dev, "could not find mfp for pin %d\n", pin); in ltq_pmx_gpio_request_enable()
304 pin_func = match_mux(&info->mfp[mfp], 0); in ltq_pmx_gpio_request_enable()
306 dev_err(info->dev, "No GPIO function on pin%d\n", mfp); in ltq_pmx_gpio_request_enable()
310 return info->apply_mux(pctrldev, mfp, pin_func); in ltq_pmx_gpio_request_enable()