Lines Matching refs:padctl

53 	for (i = 0; i < padctl.socdata->num_phys; i++) {  in tegra_xusb_phy_get()
54 phy = &padctl.socdata->phys[i]; in tegra_xusb_phy_get()
64 tegra_xusb_padctl_find_lane(struct tegra_xusb_padctl *padctl, const char *name) in tegra_xusb_padctl_find_lane() argument
68 for (i = 0; i < padctl->socdata->num_lanes; i++) in tegra_xusb_padctl_find_lane()
69 if (strcmp(name, padctl->socdata->lanes[i].name) == 0) in tegra_xusb_padctl_find_lane()
70 return &padctl->socdata->lanes[i]; in tegra_xusb_padctl_find_lane()
76 tegra_xusb_padctl_group_parse_dt(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_group_parse_dt() argument
116 static int tegra_xusb_padctl_find_function(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_find_function() argument
121 for (i = 0; i < padctl->socdata->num_functions; i++) in tegra_xusb_padctl_find_function()
122 if (strcmp(name, padctl->socdata->functions[i]) == 0) in tegra_xusb_padctl_find_function()
129 tegra_xusb_padctl_lane_find_function(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_lane_find_function() argument
136 func = tegra_xusb_padctl_find_function(padctl, name); in tegra_xusb_padctl_lane_find_function()
148 tegra_xusb_padctl_group_apply(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_group_apply() argument
158 lane = tegra_xusb_padctl_find_lane(padctl, group->pins[i]); in tegra_xusb_padctl_group_apply()
164 func = tegra_xusb_padctl_lane_find_function(padctl, lane, in tegra_xusb_padctl_group_apply()
172 value = padctl_readl(padctl, lane->offset); in tegra_xusb_padctl_group_apply()
189 padctl_writel(padctl, value, lane->offset); in tegra_xusb_padctl_group_apply()
196 tegra_xusb_padctl_config_apply(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_config_apply() argument
207 err = tegra_xusb_padctl_group_apply(padctl, group); in tegra_xusb_padctl_config_apply()
219 tegra_xusb_padctl_config_parse_dt(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_config_parse_dt() argument
233 err = tegra_xusb_padctl_group_parse_dt(padctl, group, subnode); in tegra_xusb_padctl_config_parse_dt()
245 static int tegra_xusb_padctl_parse_dt(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_parse_dt() argument
251 err = ofnode_read_resource(node, 0, &padctl->regs); in tegra_xusb_padctl_parse_dt()
258 struct tegra_xusb_padctl_config *config = &padctl->config; in tegra_xusb_padctl_parse_dt()
261 err = tegra_xusb_padctl_config_parse_dt(padctl, config, in tegra_xusb_padctl_parse_dt()
274 struct tegra_xusb_padctl padctl; variable
288 padctl.socdata = socdata; in tegra_xusb_process_nodes()
290 err = tegra_xusb_padctl_parse_dt(&padctl, nodes[i]); in tegra_xusb_process_nodes()
299 err = tegra_xusb_padctl_config_apply(&padctl, &padctl.config); in tegra_xusb_process_nodes()