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