Lines Matching full:usb2

154 	struct tegra_xusb_usb2_lane *usb2;  in tegra186_usb2_lane_probe()  local
157 usb2 = kzalloc(sizeof(*usb2), GFP_KERNEL); in tegra186_usb2_lane_probe()
158 if (!usb2) in tegra186_usb2_lane_probe()
161 INIT_LIST_HEAD(&usb2->base.list); in tegra186_usb2_lane_probe()
162 usb2->base.soc = &pad->soc->lanes[index]; in tegra186_usb2_lane_probe()
163 usb2->base.index = index; in tegra186_usb2_lane_probe()
164 usb2->base.pad = pad; in tegra186_usb2_lane_probe()
165 usb2->base.np = np; in tegra186_usb2_lane_probe()
167 err = tegra_xusb_lane_parse_dt(&usb2->base, np); in tegra186_usb2_lane_probe()
169 kfree(usb2); in tegra186_usb2_lane_probe()
173 return &usb2->base; in tegra186_usb2_lane_probe()
178 struct tegra_xusb_usb2_lane *usb2 = to_usb2_lane(lane); in tegra186_usb2_lane_remove() local
180 kfree(usb2); in tegra186_usb2_lane_remove()
204 dev_warn(dev, "failed to enable USB2 trk clock: %d\n", err); in tegra186_utmi_bias_pad_power_on()
268 dev_err(dev, "no port found for USB2 lane %u\n", index); in tegra_phy_xusb_utmi_pad_power_on()
402 struct tegra_xusb_usb2_lane *usb2 = to_usb2_lane(lane); in tegra186_utmi_phy_power_on() local
412 dev_err(dev, "no port found for USB2 lane %u\n", index); in tegra186_utmi_phy_power_on()
440 if (usb2->hs_curr_level_offset) { in tegra186_utmi_phy_power_on()
444 usb2->hs_curr_level_offset; in tegra186_utmi_phy_power_on()
489 dev_err(dev, "no port found for USB2 lane %u\n", index); in tegra186_utmi_phy_init()
516 dev_err(dev, "no port found for USB2 lane %u\n", index); in tegra186_utmi_phy_exit()
547 struct tegra_xusb_usb2_pad *usb2; in tegra186_usb2_pad_probe() local
551 usb2 = kzalloc(sizeof(*usb2), GFP_KERNEL); in tegra186_usb2_pad_probe()
552 if (!usb2) in tegra186_usb2_pad_probe()
555 pad = &usb2->base; in tegra186_usb2_pad_probe()
561 kfree(usb2); in tegra186_usb2_pad_probe()
568 dev_dbg(&pad->dev, "failed to get usb2 trk clock: %d\n", err); in tegra186_usb2_pad_probe()
588 struct tegra_xusb_usb2_pad *usb2 = to_usb2_pad(pad); in tegra186_usb2_pad_remove() local
590 kfree(usb2); in tegra186_usb2_pad_remove()
614 return tegra_xusb_find_lane(port->padctl, "usb2", port->index); in tegra186_usb2_port_map()
691 struct tegra_xusb_usb2_port *usb2; in tegra186_usb3_phy_power_on() local
702 usb2 = tegra_xusb_find_usb2_port(padctl, port->port); in tegra186_usb3_phy_power_on()
703 if (!usb2) { in tegra186_usb3_phy_power_on()
714 if (usb2->mode == USB_DR_MODE_UNKNOWN) in tegra186_usb3_phy_power_on()
716 else if (usb2->mode == USB_DR_MODE_PERIPHERAL) in tegra186_usb3_phy_power_on()
718 else if (usb2->mode == USB_DR_MODE_HOST) in tegra186_usb3_phy_power_on()
720 else if (usb2->mode == USB_DR_MODE_OTG) in tegra186_usb3_phy_power_on()
850 struct tegra_xusb_usb2_pad *usb2 = to_usb2_pad(pad); in tegra186_usb3_pad_remove() local
852 kfree(usb2); in tegra186_usb3_pad_remove()
872 count = padctl->base.soc->ports.usb2.count; in tegra186_xusb_read_fuse_calibration()
952 TEGRA186_LANE("usb2-0", 0, 0, 0, usb2),
953 TEGRA186_LANE("usb2-1", 0, 0, 0, usb2),
954 TEGRA186_LANE("usb2-2", 0, 0, 0, usb2),
958 .name = "usb2",
989 .usb2 = {
1018 TEGRA186_LANE("usb2-0", 0, 0, 0, usb2),
1019 TEGRA186_LANE("usb2-1", 0, 0, 0, usb2),
1020 TEGRA186_LANE("usb2-2", 0, 0, 0, usb2),
1021 TEGRA186_LANE("usb2-3", 0, 0, 0, usb2),
1025 .name = "usb2",
1054 .usb2 = {