Lines Matching refs:pctrl_dev

318 static int nsp_get_groups_count(struct pinctrl_dev *pctrl_dev)  in nsp_get_groups_count()  argument
320 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_get_groups_count()
325 static const char *nsp_get_group_name(struct pinctrl_dev *pctrl_dev, in nsp_get_group_name() argument
328 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_get_group_name()
333 static int nsp_get_group_pins(struct pinctrl_dev *pctrl_dev, in nsp_get_group_pins() argument
337 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_get_group_pins()
345 static void nsp_pin_dbg_show(struct pinctrl_dev *pctrl_dev, in nsp_pin_dbg_show() argument
348 seq_printf(s, " %s", dev_name(pctrl_dev->dev)); in nsp_pin_dbg_show()
360 static int nsp_get_functions_count(struct pinctrl_dev *pctrl_dev) in nsp_get_functions_count() argument
362 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_get_functions_count()
367 static const char *nsp_get_function_name(struct pinctrl_dev *pctrl_dev, in nsp_get_function_name() argument
370 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_get_function_name()
375 static int nsp_get_function_groups(struct pinctrl_dev *pctrl_dev, in nsp_get_function_groups() argument
380 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_get_function_groups()
456 static int nsp_pinmux_enable(struct pinctrl_dev *pctrl_dev, in nsp_pinmux_enable() argument
459 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_pinmux_enable()
470 dev_dbg(pctrl_dev->dev, "func:%u name:%s grp:%u name:%s\n", in nsp_pinmux_enable()
473 dev_dbg(pctrl_dev->dev, "shift:%u alt:%u\n", grp->mux.shift, in nsp_pinmux_enable()
480 static int nsp_gpio_request_enable(struct pinctrl_dev *pctrl_dev, in nsp_gpio_request_enable() argument
484 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_gpio_request_enable()
485 u32 *gpio_select = pctrl_dev->desc->pins[pin].drv_data; in nsp_gpio_request_enable()
501 static void nsp_gpio_disable_free(struct pinctrl_dev *pctrl_dev, in nsp_gpio_disable_free() argument
505 struct nsp_pinctrl *pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in nsp_gpio_disable_free()
506 u32 *gpio_select = pctrl_dev->desc->pins[pin].drv_data; in nsp_gpio_disable_free()