Lines Matching refs:group
50 unsigned group) in tegra_pinctrl_get_group_name() argument
54 return pmx->soc->groups[group].name; in tegra_pinctrl_get_group_name()
58 unsigned group, in tegra_pinctrl_get_group_pins() argument
64 *pins = pmx->soc->groups[group].pins; in tegra_pinctrl_get_group_pins()
65 *num_pins = pmx->soc->groups[group].npins; in tegra_pinctrl_get_group_pins()
116 const char *group; in tegra_pinctrl_dt_subnode_to_map() local
159 of_property_for_each_string(np, "nvidia,pins", prop, group) { in tegra_pinctrl_dt_subnode_to_map()
162 reserved_maps, num_maps, group, in tegra_pinctrl_dt_subnode_to_map()
170 reserved_maps, num_maps, group, in tegra_pinctrl_dt_subnode_to_map()
253 unsigned group) in tegra_pinctrl_set_mux() argument
260 g = &pmx->soc->groups[group]; in tegra_pinctrl_set_mux()
284 unsigned int group, num_pins, j; in tegra_pinctrl_get_group() local
288 for (group = 0; group < pmx->soc->ngroups; ++group) { in tegra_pinctrl_get_group()
289 ret = tegra_pinctrl_get_group_pins(pctldev, group, &pins, &num_pins); in tegra_pinctrl_get_group()
294 return &pmx->soc->groups[group]; in tegra_pinctrl_get_group()
307 const struct tegra_pingroup *group; in tegra_pinctrl_gpio_request_enable() local
313 group = tegra_pinctrl_get_group(pctldev, offset); in tegra_pinctrl_gpio_request_enable()
315 if (!group) in tegra_pinctrl_gpio_request_enable()
318 if (group->mux_reg < 0 || group->sfsel_bit < 0) in tegra_pinctrl_gpio_request_enable()
321 value = pmx_readl(pmx, group->mux_bank, group->mux_reg); in tegra_pinctrl_gpio_request_enable()
322 value &= ~BIT(group->sfsel_bit); in tegra_pinctrl_gpio_request_enable()
323 pmx_writel(pmx, value, group->mux_bank, group->mux_reg); in tegra_pinctrl_gpio_request_enable()
333 const struct tegra_pingroup *group; in tegra_pinctrl_gpio_disable_free() local
339 group = tegra_pinctrl_get_group(pctldev, offset); in tegra_pinctrl_gpio_disable_free()
341 if (!group) in tegra_pinctrl_gpio_disable_free()
344 if (group->mux_reg < 0 || group->sfsel_bit < 0) in tegra_pinctrl_gpio_disable_free()
347 value = pmx_readl(pmx, group->mux_bank, group->mux_reg); in tegra_pinctrl_gpio_disable_free()
348 value |= BIT(group->sfsel_bit); in tegra_pinctrl_gpio_disable_free()
349 pmx_writel(pmx, value, group->mux_bank, group->mux_reg); in tegra_pinctrl_gpio_disable_free()
516 unsigned group, unsigned long *config) in tegra_pinconf_group_get() argument
527 g = &pmx->soc->groups[group]; in tegra_pinconf_group_get()
544 unsigned group, unsigned long *configs, in tegra_pinconf_group_set() argument
556 g = &pmx->soc->groups[group]; in tegra_pinconf_group_set()
615 struct seq_file *s, unsigned group) in tegra_pinconf_group_dbg_show() argument
624 g = &pmx->soc->groups[group]; in tegra_pinconf_group_dbg_show()