Lines Matching refs:pctldev
341 static int rk805_pinctrl_get_groups_count(struct pinctrl_dev *pctldev) in rk805_pinctrl_get_groups_count() argument
343 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_groups_count()
348 static const char *rk805_pinctrl_get_group_name(struct pinctrl_dev *pctldev, in rk805_pinctrl_get_group_name() argument
351 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_group_name()
356 static int rk805_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, in rk805_pinctrl_get_group_pins() argument
361 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_group_pins()
377 static int rk805_pinctrl_get_funcs_count(struct pinctrl_dev *pctldev) in rk805_pinctrl_get_funcs_count() argument
379 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_funcs_count()
384 static const char *rk805_pinctrl_get_func_name(struct pinctrl_dev *pctldev, in rk805_pinctrl_get_func_name() argument
387 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_func_name()
392 static int rk805_pinctrl_get_func_groups(struct pinctrl_dev *pctldev, in rk805_pinctrl_get_func_groups() argument
397 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_get_func_groups()
405 static int _rk805_pinctrl_set_mux(struct pinctrl_dev *pctldev, in _rk805_pinctrl_set_mux() argument
409 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in _rk805_pinctrl_set_mux()
426 static int rk805_pinctrl_set_mux(struct pinctrl_dev *pctldev, in rk805_pinctrl_set_mux() argument
430 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_set_mux()
434 return _rk805_pinctrl_set_mux(pctldev, offset, mux); in rk805_pinctrl_set_mux()
437 static int rk805_pinctrl_gpio_request_enable(struct pinctrl_dev *pctldev, in rk805_pinctrl_gpio_request_enable() argument
441 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinctrl_gpio_request_enable()
445 return _rk805_pinctrl_set_mux(pctldev, offset, RK805_PINMUX_GPIO); in rk805_pinctrl_gpio_request_enable()
447 return _rk805_pinctrl_set_mux(pctldev, offset, RK806_PINMUX_FUN5); in rk805_pinctrl_gpio_request_enable()
453 static int rk805_pmx_gpio_set_direction(struct pinctrl_dev *pctldev, in rk805_pmx_gpio_set_direction() argument
457 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pmx_gpio_set_direction()
485 static int rk805_pinconf_get(struct pinctrl_dev *pctldev, in rk805_pinconf_get() argument
488 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinconf_get()
507 static int rk805_pinconf_set(struct pinctrl_dev *pctldev, in rk805_pinconf_set() argument
511 struct rk805_pctrl_info *pci = pinctrl_dev_get_drvdata(pctldev); in rk805_pinconf_set()
522 rk805_pmx_gpio_set_direction(pctldev, NULL, pin, false); in rk805_pinconf_set()
526 rk805_pmx_gpio_set_direction(pctldev, NULL, pin, true); in rk805_pinconf_set()