Lines Matching refs:pmx
57 struct sh_pfc_pinctrl pmx; member
464 struct sh_pfc_pinctrl *pmx = &priv->pmx; in sh_pfc_config_mux_for_gpio() local
482 cfg = &pmx->configs[idx]; in sh_pfc_config_mux_for_gpio()
494 struct sh_pfc_pinctrl *pmx = &priv->pmx; in sh_pfc_pinctrl_pin_set() local
498 struct sh_pfc_pin_config *cfg = &pmx->configs[idx]; in sh_pfc_pinctrl_pin_set()
510 struct sh_pfc_pinctrl *pmx = &priv->pmx; in sh_pfc_pinctrl_group_set() local
518 struct sh_pfc_pin_config *cfg = &pmx->configs[idx]; in sh_pfc_pinctrl_group_set()
634 static int sh_pfc_pinconf_set(struct sh_pfc_pinctrl *pmx, unsigned _pin, in sh_pfc_pinconf_set() argument
637 struct sh_pfc *pfc = pmx->pfc; in sh_pfc_pinconf_set()
705 struct sh_pfc_pinctrl *pmx = &priv->pmx; in sh_pfc_pinconf_pin_set() local
709 sh_pfc_pinconf_set(pmx, pin->pin, param, arg); in sh_pfc_pinconf_pin_set()
719 struct sh_pfc_pinctrl *pmx = &priv->pmx; in sh_pfc_pinconf_group_set() local
725 sh_pfc_pinconf_set(pmx, grp->pins[i], param, arg); in sh_pfc_pinconf_group_set()
750 static int sh_pfc_map_pins(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx) in sh_pfc_map_pins() argument
755 pmx->configs = kzalloc(sizeof(*pmx->configs) * pfc->info->nr_pins, in sh_pfc_map_pins()
757 if (unlikely(!pmx->configs)) in sh_pfc_map_pins()
761 struct sh_pfc_pin_config *cfg = &pmx->configs[i]; in sh_pfc_map_pins()
824 priv->pmx.pfc = &priv->pfc; in sh_pfc_pinctrl_probe()
826 sh_pfc_map_pins(&priv->pfc, &priv->pmx); in sh_pfc_pinctrl_probe()