Lines Matching full:lane
292 struct tegra_xusb_lane *lane; in tegra124_usb3_save_context() local
300 lane = port->base.lane; in tegra124_usb3_save_context()
302 if (lane->pad == padctl->pcie) in tegra124_usb3_save_context()
303 offset = XUSB_PADCTL_IOPHY_MISC_PAD_PX_CTL6(lane->index); in tegra124_usb3_save_context()
452 static void tegra124_usb2_lane_remove(struct tegra_xusb_lane *lane) in tegra124_usb2_lane_remove() argument
454 struct tegra_xusb_usb2_lane *usb2 = to_usb2_lane(lane); in tegra124_usb2_lane_remove()
466 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_usb2_phy_init() local
468 return tegra124_xusb_padctl_enable(lane->pad->padctl); in tegra124_usb2_phy_init()
473 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_usb2_phy_exit() local
475 return tegra124_xusb_padctl_disable(lane->pad->padctl); in tegra124_usb2_phy_exit()
480 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_usb2_phy_power_on() local
481 struct tegra_xusb_usb2_lane *usb2 = to_usb2_lane(lane); in tegra124_usb2_phy_power_on()
482 struct tegra_xusb_usb2_pad *pad = to_usb2_pad(lane->pad); in tegra124_usb2_phy_power_on()
483 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_usb2_phy_power_on()
486 unsigned int index = lane->index; in tegra124_usb2_phy_power_on()
492 dev_err(&phy->dev, "no port found for USB2 lane %u\n", index); in tegra124_usb2_phy_power_on()
569 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_usb2_phy_power_off() local
570 struct tegra_xusb_usb2_pad *pad = to_usb2_pad(lane->pad); in tegra124_usb2_phy_power_off()
571 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_usb2_phy_power_off()
575 port = tegra_xusb_find_usb2_port(padctl, lane->index); in tegra124_usb2_phy_power_off()
577 dev_err(&phy->dev, "no port found for USB2 lane %u\n", in tegra124_usb2_phy_power_off()
578 lane->index); in tegra124_usb2_phy_power_off()
701 static void tegra124_ulpi_lane_remove(struct tegra_xusb_lane *lane) in tegra124_ulpi_lane_remove() argument
703 struct tegra_xusb_ulpi_lane *ulpi = to_ulpi_lane(lane); in tegra124_ulpi_lane_remove()
715 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_ulpi_phy_init() local
717 return tegra124_xusb_padctl_enable(lane->pad->padctl); in tegra124_ulpi_phy_init()
722 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_ulpi_phy_exit() local
724 return tegra124_xusb_padctl_disable(lane->pad->padctl); in tegra124_ulpi_phy_exit()
837 static void tegra124_hsic_lane_remove(struct tegra_xusb_lane *lane) in tegra124_hsic_lane_remove() argument
839 struct tegra_xusb_hsic_lane *hsic = to_hsic_lane(lane); in tegra124_hsic_lane_remove()
851 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_hsic_phy_init() local
853 return tegra124_xusb_padctl_enable(lane->pad->padctl); in tegra124_hsic_phy_init()
858 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_hsic_phy_exit() local
860 return tegra124_xusb_padctl_disable(lane->pad->padctl); in tegra124_hsic_phy_exit()
865 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_hsic_phy_power_on() local
866 struct tegra_xusb_hsic_lane *hsic = to_hsic_lane(lane); in tegra124_hsic_phy_power_on()
867 struct tegra_xusb_hsic_pad *pad = to_hsic_pad(lane->pad); in tegra124_hsic_phy_power_on()
868 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_hsic_phy_power_on()
869 unsigned int index = lane->index; in tegra124_hsic_phy_power_on()
935 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_hsic_phy_power_off() local
936 struct tegra_xusb_hsic_pad *pad = to_hsic_pad(lane->pad); in tegra124_hsic_phy_power_off()
937 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_hsic_phy_power_off()
938 unsigned int index = lane->index; in tegra124_hsic_phy_power_off()
1057 static void tegra124_pcie_lane_remove(struct tegra_xusb_lane *lane) in tegra124_pcie_lane_remove() argument
1059 struct tegra_xusb_pcie_lane *pcie = to_pcie_lane(lane); in tegra124_pcie_lane_remove()
1071 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_pcie_phy_init() local
1073 return tegra124_xusb_padctl_enable(lane->pad->padctl); in tegra124_pcie_phy_init()
1078 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_pcie_phy_exit() local
1080 return tegra124_xusb_padctl_disable(lane->pad->padctl); in tegra124_pcie_phy_exit()
1085 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_pcie_phy_power_on() local
1086 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_pcie_phy_power_on()
1118 value |= XUSB_PADCTL_USB3_PAD_MUX_PCIE_IDDQ_DISABLE(lane->index); in tegra124_pcie_phy_power_on()
1126 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_pcie_phy_power_off() local
1127 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_pcie_phy_power_off()
1131 value &= ~XUSB_PADCTL_USB3_PAD_MUX_PCIE_IDDQ_DISABLE(lane->index); in tegra124_pcie_phy_power_off()
1235 static void tegra124_sata_lane_remove(struct tegra_xusb_lane *lane) in tegra124_sata_lane_remove() argument
1237 struct tegra_xusb_sata_lane *sata = to_sata_lane(lane); in tegra124_sata_lane_remove()
1249 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_sata_phy_init() local
1251 return tegra124_xusb_padctl_enable(lane->pad->padctl); in tegra124_sata_phy_init()
1256 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_sata_phy_exit() local
1258 return tegra124_xusb_padctl_disable(lane->pad->padctl); in tegra124_sata_phy_exit()
1263 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_sata_phy_power_on() local
1264 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_sata_phy_power_on()
1300 value |= XUSB_PADCTL_USB3_PAD_MUX_SATA_IDDQ_DISABLE(lane->index); in tegra124_sata_phy_power_on()
1308 struct tegra_xusb_lane *lane = phy_get_drvdata(phy); in tegra124_sata_phy_power_off() local
1309 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_sata_phy_power_off()
1313 value &= ~XUSB_PADCTL_USB3_PAD_MUX_SATA_IDDQ_DISABLE(lane->index); in tegra124_sata_phy_power_off()
1480 struct tegra_xusb_lane *lane = usb3->base.lane; in tegra124_usb3_port_enable() local
1542 if (lane->pad == padctl->pcie) in tegra124_usb3_port_enable()
1543 offset = XUSB_PADCTL_IOPHY_MISC_PAD_PX_CTL2(lane->index); in tegra124_usb3_port_enable()
1554 if (lane->pad == padctl->pcie) in tegra124_usb3_port_enable()
1555 offset = XUSB_PADCTL_IOPHY_MISC_PAD_PX_CTL5(lane->index); in tegra124_usb3_port_enable()
1563 /* Enable SATA PHY when SATA lane is used */ in tegra124_usb3_port_enable()
1564 if (lane->pad == padctl->sata) { in tegra124_usb3_port_enable()