Lines Matching refs:pin
78 const char *group, *pin; in ltq_pinctrl_dt_subnode_to_map() local
118 of_property_for_each_string(np, "lantiq,pins", prop, pin) { in ltq_pinctrl_dt_subnode_to_map()
123 (*map)->name = pin; in ltq_pinctrl_dt_subnode_to_map()
124 (*map)->data.configs.group_or_pin = pin; in ltq_pinctrl_dt_subnode_to_map()
227 static int match_mfp(const struct ltq_pinmux_info *info, int pin) in match_mfp() argument
231 if (info->mfp[i].pin == pin) in match_mfp()
242 int i, pin, ret = 0; in match_group_mux() local
244 pin = match_mfp(info, grp->pins[i]); in match_group_mux()
245 if (pin < 0) { in match_group_mux()
250 ret = match_mux(&info->mfp[pin], mux); in match_group_mux()
253 mux, pin); in match_group_mux()
266 int i, pin, pin_func, ret; in ltq_pmx_set() local
275 pin = match_mfp(info, pin_grp->pins[i]); in ltq_pmx_set()
276 if (pin < 0) { in ltq_pmx_set()
281 pin_func = match_mux(&info->mfp[pin], pin_grp->mux); in ltq_pmx_set()
282 ret = info->apply_mux(pctrldev, pin, pin_func); in ltq_pmx_set()
286 pin_func, pin); in ltq_pmx_set()
295 unsigned pin) in ltq_pmx_gpio_request_enable() argument
298 int mfp = match_mfp(info, pin); in ltq_pmx_gpio_request_enable()
302 dev_err(info->dev, "could not find mfp for pin %d\n", pin); in ltq_pmx_gpio_request_enable()