Lines Matching full:mfp
213 static int match_mux(const struct ltq_mfp_pin *mfp, unsigned mux) in match_mux() argument
217 if (mfp->func[i] == mux) in match_mux()
225 /* don't assume .mfp is linearly mapped. find the mfp with the correct .pin */
230 if (info->mfp[i].pin == pin) in match_mfp()
245 dev_err(info->dev, "could not find mfp for pin %d\n", in match_group_mux()
249 ret = match_mux(&info->mfp[pin], mux); in match_group_mux()
276 dev_err(info->dev, "could not find mfp for pin %d\n", in ltq_pmx_set()
280 pin_func = match_mux(&info->mfp[pin], pin_grp->mux); in ltq_pmx_set()
297 int mfp = match_mfp(info, pin); in ltq_pmx_gpio_request_enable() local
300 if (mfp < 0) { in ltq_pmx_gpio_request_enable()
301 dev_err(info->dev, "could not find mfp for pin %d\n", pin); in ltq_pmx_gpio_request_enable()
305 pin_func = match_mux(&info->mfp[mfp], 0); in ltq_pmx_gpio_request_enable()
307 dev_err(info->dev, "No GPIO function on pin%d\n", mfp); in ltq_pmx_gpio_request_enable()
311 return info->apply_mux(pctrldev, mfp, pin_func); in ltq_pmx_gpio_request_enable()