Lines Matching refs:pctl
493 struct pinctrl_dev *pctl; member
527 static int tb10x_get_groups_count(struct pinctrl_dev *pctl) in tb10x_get_groups_count() argument
529 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_get_groups_count()
533 static const char *tb10x_get_group_name(struct pinctrl_dev *pctl, unsigned n) in tb10x_get_group_name() argument
535 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_get_group_name()
539 static int tb10x_get_group_pins(struct pinctrl_dev *pctl, unsigned n, in tb10x_get_group_pins() argument
543 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_get_group_pins()
551 static int tb10x_dt_node_to_map(struct pinctrl_dev *pctl, in tb10x_dt_node_to_map() argument
568 ret = pinctrl_utils_reserve_map(pctl, map, &reserved_maps, in tb10x_dt_node_to_map()
573 ret = pinctrl_utils_add_map_mux(pctl, map, &reserved_maps, in tb10x_dt_node_to_map()
588 static int tb10x_get_functions_count(struct pinctrl_dev *pctl) in tb10x_get_functions_count() argument
590 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_get_functions_count()
594 static const char *tb10x_get_function_name(struct pinctrl_dev *pctl, in tb10x_get_function_name() argument
597 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_get_function_name()
601 static int tb10x_get_function_groups(struct pinctrl_dev *pctl, in tb10x_get_function_groups() argument
605 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_get_function_groups()
613 static int tb10x_gpio_request_enable(struct pinctrl_dev *pctl, in tb10x_gpio_request_enable() argument
617 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_gpio_request_enable()
687 static void tb10x_gpio_disable_free(struct pinctrl_dev *pctl, in tb10x_gpio_disable_free() argument
691 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_gpio_disable_free()
700 static int tb10x_pctl_set_mux(struct pinctrl_dev *pctl, in tb10x_pctl_set_mux() argument
703 struct tb10x_pinctrl *state = pinctrl_dev_get_drvdata(pctl); in tb10x_pctl_set_mux()
809 state->pctl = pinctrl_register(&tb10x_pindesc, dev, state); in tb10x_pinctrl_probe()
810 if (IS_ERR(state->pctl)) { in tb10x_pinctrl_probe()
812 ret = PTR_ERR(state->pctl); in tb10x_pinctrl_probe()
827 pinctrl_unregister(state->pctl); in tb10x_pinctrl_remove()