Lines Matching refs:lanes
35 if (!pad->lanes[i]) in tegra_xusb_pad_of_xlate()
38 if (pad->lanes[i]->dev.of_node == args->np) { in tegra_xusb_pad_of_xlate()
39 phy = pad->lanes[i]; in tegra_xusb_pad_of_xlate()
91 struct device_node *np, *lanes; in tegra_xusb_pad_find_phy_node() local
93 lanes = of_get_child_by_name(pad->dev.of_node, "lanes"); in tegra_xusb_pad_find_phy_node()
94 if (!lanes) in tegra_xusb_pad_find_phy_node()
97 np = of_get_child_by_name(lanes, pad->soc->lanes[index].name); in tegra_xusb_pad_find_phy_node()
98 of_node_put(lanes); in tegra_xusb_pad_find_phy_node()
187 pad->lanes = devm_kcalloc(&pad->dev, pad->soc->num_lanes, sizeof(lane), in tegra_xusb_pad_register()
189 if (!pad->lanes) { in tegra_xusb_pad_register()
204 pad->lanes[i] = phy_create(&pad->dev, np, ops); in tegra_xusb_pad_register()
205 if (IS_ERR(pad->lanes[i])) { in tegra_xusb_pad_register()
206 err = PTR_ERR(pad->lanes[i]); in tegra_xusb_pad_register()
213 phy_destroy(pad->lanes[i]); in tegra_xusb_pad_register()
218 list_add_tail(&lane->list, &pad->padctl->lanes); in tegra_xusb_pad_register()
219 phy_set_drvdata(pad->lanes[i], lane); in tegra_xusb_pad_register()
233 tegra_xusb_lane_destroy(pad->lanes[i]); in tegra_xusb_pad_register()
247 tegra_xusb_lane_destroy(pad->lanes[i]); in tegra_xusb_pad_unregister()
332 if (pad->lanes[i]) { in tegra_xusb_pad_program()
333 lane = phy_get_drvdata(pad->lanes[i]); in tegra_xusb_pad_program()
392 list_for_each_entry(lane, &padctl->lanes, list) { in tegra_xusb_find_lane()
886 INIT_LIST_HEAD(&padctl->lanes); in tegra_xusb_padctl_probe()