Lines Matching refs:padctl

52 	for (i = 0; i < padctl.socdata->num_phys; i++) {  in tegra_xusb_phy_get()
53 phy = &padctl.socdata->phys[i]; in tegra_xusb_phy_get()
63 tegra_xusb_padctl_find_lane(struct tegra_xusb_padctl *padctl, const char *name) in tegra_xusb_padctl_find_lane() argument
67 for (i = 0; i < padctl->socdata->num_lanes; i++) in tegra_xusb_padctl_find_lane()
68 if (strcmp(name, padctl->socdata->lanes[i].name) == 0) in tegra_xusb_padctl_find_lane()
69 return &padctl->socdata->lanes[i]; in tegra_xusb_padctl_find_lane()
75 tegra_xusb_padctl_group_parse_dt(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_group_parse_dt() argument
115 static int tegra_xusb_padctl_find_function(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_find_function() argument
120 for (i = 0; i < padctl->socdata->num_functions; i++) in tegra_xusb_padctl_find_function()
121 if (strcmp(name, padctl->socdata->functions[i]) == 0) in tegra_xusb_padctl_find_function()
128 tegra_xusb_padctl_lane_find_function(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_lane_find_function() argument
135 func = tegra_xusb_padctl_find_function(padctl, name); in tegra_xusb_padctl_lane_find_function()
147 tegra_xusb_padctl_group_apply(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_group_apply() argument
157 lane = tegra_xusb_padctl_find_lane(padctl, group->pins[i]); in tegra_xusb_padctl_group_apply()
163 func = tegra_xusb_padctl_lane_find_function(padctl, lane, in tegra_xusb_padctl_group_apply()
171 value = padctl_readl(padctl, lane->offset); in tegra_xusb_padctl_group_apply()
188 padctl_writel(padctl, value, lane->offset); in tegra_xusb_padctl_group_apply()
195 tegra_xusb_padctl_config_apply(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_config_apply() argument
206 err = tegra_xusb_padctl_group_apply(padctl, group); in tegra_xusb_padctl_config_apply()
218 tegra_xusb_padctl_config_parse_dt(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_config_parse_dt() argument
232 err = tegra_xusb_padctl_group_parse_dt(padctl, group, subnode); in tegra_xusb_padctl_config_parse_dt()
244 static int tegra_xusb_padctl_parse_dt(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_parse_dt() argument
250 err = ofnode_read_resource(node, 0, &padctl->regs); in tegra_xusb_padctl_parse_dt()
257 struct tegra_xusb_padctl_config *config = &padctl->config; in tegra_xusb_padctl_parse_dt()
260 err = tegra_xusb_padctl_config_parse_dt(padctl, config, in tegra_xusb_padctl_parse_dt()
273 struct tegra_xusb_padctl padctl; variable
287 padctl.socdata = socdata; in tegra_xusb_process_nodes()
289 err = tegra_xusb_padctl_parse_dt(&padctl, nodes[i]); in tegra_xusb_process_nodes()
298 err = tegra_xusb_padctl_config_apply(&padctl, &padctl.config); in tegra_xusb_process_nodes()