Lines Matching refs:pctrl_dev
312 static int nsp_get_groups_count(struct pinctrl_dev *pctrl_dev) in nsp_get_groups_count() argument
314 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_get_groups_count()
319 static const char *nsp_get_group_name(struct pinctrl_dev *pctrl_dev, in nsp_get_group_name() argument
322 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_get_group_name()
327 static int nsp_get_group_pins(struct pinctrl_dev *pctrl_dev, in nsp_get_group_pins() argument
331 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_get_group_pins()
339 static void nsp_pin_dbg_show(struct pinctrl_dev *pctrl_dev, in nsp_pin_dbg_show() argument
342 seq_printf(s, " %s", dev_name(pctrl_dev->dev)); in nsp_pin_dbg_show()
354 static int nsp_get_functions_count(struct pinctrl_dev *pctrl_dev) in nsp_get_functions_count() argument
356 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_get_functions_count()
361 static const char *nsp_get_function_name(struct pinctrl_dev *pctrl_dev, in nsp_get_function_name() argument
364 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_get_function_name()
369 static int nsp_get_function_groups(struct pinctrl_dev *pctrl_dev, in nsp_get_function_groups() argument
374 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_get_function_groups()
450 static int nsp_pinmux_enable(struct pinctrl_dev *pctrl_dev, in nsp_pinmux_enable() argument
453 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_pinmux_enable()
464 dev_dbg(pctrl_dev->dev, "func:%u name:%s grp:%u name:%s\n", in nsp_pinmux_enable()
467 dev_dbg(pctrl_dev->dev, "shift:%u alt:%u\n", grp->mux.shift, in nsp_pinmux_enable()
474 static int nsp_gpio_request_enable(struct pinctrl_dev *pctrl_dev, in nsp_gpio_request_enable() argument
478 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_gpio_request_enable()
479 u32 *gpio_select = pctrl_dev->desc->pins[pin].drv_data; in nsp_gpio_request_enable()
495 static void nsp_gpio_disable_free(struct pinctrl_dev *pctrl_dev, in nsp_gpio_disable_free() argument
499 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_gpio_disable_free()
500 u32 *gpio_select = pctrl_dev->desc->pins[pin].drv_data; in nsp_gpio_disable_free()