Lines Matching refs:group
551 struct group_desc *group; in pinctrl_generic_get_group_name() local
553 group = radix_tree_lookup(&pctldev->pin_group_tree, in pinctrl_generic_get_group_name()
555 if (!group) in pinctrl_generic_get_group_name()
558 return group->name; in pinctrl_generic_get_group_name()
574 struct group_desc *group; in pinctrl_generic_get_group_pins() local
576 group = radix_tree_lookup(&pctldev->pin_group_tree, in pinctrl_generic_get_group_pins()
578 if (!group) { in pinctrl_generic_get_group_pins()
584 *pins = group->pins; in pinctrl_generic_get_group_pins()
585 *num_pins = group->num_pins; in pinctrl_generic_get_group_pins()
599 struct group_desc *group; in pinctrl_generic_get_group() local
601 group = radix_tree_lookup(&pctldev->pin_group_tree, in pinctrl_generic_get_group()
603 if (!group) in pinctrl_generic_get_group()
606 return group; in pinctrl_generic_get_group()
643 struct group_desc *group; in pinctrl_generic_add_group() local
655 group = devm_kzalloc(pctldev->dev, sizeof(*group), GFP_KERNEL); in pinctrl_generic_add_group()
656 if (!group) in pinctrl_generic_add_group()
659 group->name = name; in pinctrl_generic_add_group()
660 group->pins = pins; in pinctrl_generic_add_group()
661 group->num_pins = num_pins; in pinctrl_generic_add_group()
662 group->data = data; in pinctrl_generic_add_group()
664 error = radix_tree_insert(&pctldev->pin_group_tree, selector, group); in pinctrl_generic_add_group()
684 struct group_desc *group; in pinctrl_generic_remove_group() local
686 group = radix_tree_lookup(&pctldev->pin_group_tree, in pinctrl_generic_remove_group()
688 if (!group) in pinctrl_generic_remove_group()
692 devm_kfree(pctldev->dev, group); in pinctrl_generic_remove_group()