Lines Matching full:groups
46 * @groups: List of pin groups for this function
47 * @ngroups: Number of entries in @groups
55 const char * const *groups; member
62 * @groups: Pin groups
63 * @ngroups: Number of @groups
68 * information regarding pin control functions, groups and
73 const struct zynqmp_pctrl_group *groups; member
105 return pctrl->groups[selector].name; in zynqmp_pctrl_get_group_name()
115 *pins = pctrl->groups[selector].pins; in zynqmp_pctrl_get_group_pins()
116 *npins = pctrl->groups[selector].npins; in zynqmp_pctrl_get_group_pins()
159 * zynqmp_pmux_get_function_groups() - Get groups for the function
162 * @groups: Group names.
163 * @num_groups: Number of function groups.
171 const char * const **groups, in zynqmp_pmux_get_function_groups() argument
176 *groups = pctrl->funcs[selector].groups; in zynqmp_pmux_get_function_groups()
198 const struct zynqmp_pctrl_group *pgrp = &pctrl->groups[group]; in zynqmp_pinmux_set_mux()
460 const struct zynqmp_pctrl_group *pgrp = &pctrl->groups[selector]; in zynqmp_pinconf_group_set()
487 static int zynqmp_pinctrl_get_function_groups(u32 fid, u32 index, u16 *groups) in zynqmp_pinctrl_get_function_groups() argument
501 memcpy(groups, &payload[1], PINCTRL_GET_FUNC_GROUPS_RESP_LEN); in zynqmp_pinctrl_get_function_groups()
525 * zynqmp_pinctrl_prepare_func_groups() - prepare function and groups data
529 * @groups: Groups data.
538 * is x, groups[x] name will be stored as "eth0_0".
547 struct zynqmp_pctrl_group *groups) in zynqmp_pinctrl_prepare_func_groups() argument
576 groups[resp[i]].name = devm_kasprintf(dev, GFP_KERNEL, in zynqmp_pinctrl_prepare_func_groups()
580 if (!groups[resp[i]].name) in zynqmp_pinctrl_prepare_func_groups()
585 func->groups = fgroups; in zynqmp_pinctrl_prepare_func_groups()
624 static int zynqmp_pinctrl_get_pin_groups(u32 pin, u32 index, u16 *groups) in zynqmp_pinctrl_get_pin_groups() argument
638 memcpy(groups, &payload[1], PINCTRL_GET_PIN_GROUPS_RESP_LEN); in zynqmp_pinctrl_get_pin_groups()
650 * zynqmp_pinctrl_create_pin_groups() - assign pins to respective groups
652 * @groups: Groups data.
655 * Query firmware to get groups available for the given pin.
665 struct zynqmp_pctrl_group *groups, in zynqmp_pinctrl_create_pin_groups() argument
683 zynqmp_pinctrl_group_add_pin(&groups[resp[i]], pin); in zynqmp_pinctrl_create_pin_groups()
694 * @groups: Groups data.
695 * @ngroups: Number of groups.
702 struct zynqmp_pctrl_group *groups, in zynqmp_pinctrl_prepare_group_pins() argument
709 ret = zynqmp_pinctrl_create_pin_groups(dev, groups, pin); in zynqmp_pinctrl_prepare_group_pins()
722 * Query firmware for functions, groups and pin information and
725 * Query number of functions and number of function groups (number
726 * of groups in the given function) to allocate required memory buffers
727 * for functions and groups. Once buffers are allocated to store
728 * functions and groups data, query and store required information
729 * (number of groups and group names for each function, number of
738 struct zynqmp_pctrl_group *groups; in zynqmp_pinctrl_prepare_function_info() local
759 groups = devm_kzalloc(dev, sizeof(*groups) * pctrl->ngroups, GFP_KERNEL); in zynqmp_pinctrl_prepare_function_info()
760 if (!groups) in zynqmp_pinctrl_prepare_function_info()
765 groups); in zynqmp_pinctrl_prepare_function_info()
770 ret = zynqmp_pinctrl_prepare_group_pins(dev, groups, pctrl->ngroups); in zynqmp_pinctrl_prepare_function_info()
775 pctrl->groups = groups; in zynqmp_pinctrl_prepare_function_info()