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