Lines Matching refs:_pin
561 static bool sh_pfc_pinconf_validate(struct sh_pfc *pfc, unsigned int _pin, in sh_pfc_pinconf_validate() argument
564 int idx = sh_pfc_get_pin_index(pfc, _pin); in sh_pfc_pinconf_validate()
588 static int sh_pfc_pinconf_get(struct pinctrl_dev *pctldev, unsigned _pin, in sh_pfc_pinconf_get() argument
597 if (!sh_pfc_pinconf_validate(pfc, _pin, param)) in sh_pfc_pinconf_get()
610 bias = pfc->info->ops->get_bias(pfc, _pin); in sh_pfc_pinconf_get()
623 ret = sh_pfc_pinconf_get_drive_strength(pfc, _pin); in sh_pfc_pinconf_get()
632 int idx = sh_pfc_get_pin_index(pfc, _pin); in sh_pfc_pinconf_get()
641 bit = pfc->info->ops->pin_to_pocctrl(_pin, &pocctrl); in sh_pfc_pinconf_get()
642 if (WARN(bit < 0, "invalid pin %#x", _pin)) in sh_pfc_pinconf_get()
662 static int sh_pfc_pinconf_set(struct pinctrl_dev *pctldev, unsigned _pin, in sh_pfc_pinconf_set() argument
674 if (!sh_pfc_pinconf_validate(pfc, _pin, param)) in sh_pfc_pinconf_set()
685 pfc->info->ops->set_bias(pfc, _pin, param); in sh_pfc_pinconf_set()
695 ret = sh_pfc_pinconf_set_drive_strength(pfc, _pin, arg); in sh_pfc_pinconf_set()
704 int idx = sh_pfc_get_pin_index(pfc, _pin); in sh_pfc_pinconf_set()
713 bit = pfc->info->ops->pin_to_pocctrl(_pin, &pocctrl); in sh_pfc_pinconf_set()
714 if (WARN(bit < 0, "invalid pin %#x", _pin)) in sh_pfc_pinconf_set()