Lines Matching refs:pad
302 if (lane->pad == padctl->pcie) in tegra124_usb3_save_context()
427 tegra124_usb2_lane_probe(struct tegra_xusb_pad *pad, struct device_node *np, in tegra124_usb2_lane_probe() argument
438 usb2->base.soc = &pad->soc->lanes[index]; in tegra124_usb2_lane_probe()
440 usb2->base.pad = pad; in tegra124_usb2_lane_probe()
468 return tegra124_xusb_padctl_enable(lane->pad->padctl); in tegra124_usb2_phy_init()
475 return tegra124_xusb_padctl_disable(lane->pad->padctl); in tegra124_usb2_phy_exit()
482 struct tegra_xusb_usb2_pad *pad = to_usb2_pad(lane->pad); in tegra124_usb2_phy_power_on() local
483 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_usb2_phy_power_on()
553 mutex_lock(&pad->lock); in tegra124_usb2_phy_power_on()
555 if (pad->enable++ > 0) in tegra124_usb2_phy_power_on()
563 mutex_unlock(&pad->lock); in tegra124_usb2_phy_power_on()
570 struct tegra_xusb_usb2_pad *pad = to_usb2_pad(lane->pad); in tegra124_usb2_phy_power_off() local
571 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_usb2_phy_power_off()
582 mutex_lock(&pad->lock); in tegra124_usb2_phy_power_off()
584 if (WARN_ON(pad->enable == 0)) in tegra124_usb2_phy_power_off()
587 if (--pad->enable > 0) in tegra124_usb2_phy_power_off()
596 mutex_unlock(&pad->lock); in tegra124_usb2_phy_power_off()
614 struct tegra_xusb_pad *pad; in tegra124_usb2_pad_probe() local
623 pad = &usb2->base; in tegra124_usb2_pad_probe()
624 pad->ops = &tegra124_usb2_lane_ops; in tegra124_usb2_pad_probe()
625 pad->soc = soc; in tegra124_usb2_pad_probe()
627 err = tegra_xusb_pad_init(pad, padctl, np); in tegra124_usb2_pad_probe()
633 err = tegra_xusb_pad_register(pad, &tegra124_usb2_phy_ops); in tegra124_usb2_pad_probe()
637 dev_set_drvdata(&pad->dev, pad); in tegra124_usb2_pad_probe()
639 return pad; in tegra124_usb2_pad_probe()
642 device_unregister(&pad->dev); in tegra124_usb2_pad_probe()
647 static void tegra124_usb2_pad_remove(struct tegra_xusb_pad *pad) in tegra124_usb2_pad_remove() argument
649 struct tegra_xusb_usb2_pad *usb2 = to_usb2_pad(pad); in tegra124_usb2_pad_remove()
676 tegra124_ulpi_lane_probe(struct tegra_xusb_pad *pad, struct device_node *np, in tegra124_ulpi_lane_probe() argument
687 ulpi->base.soc = &pad->soc->lanes[index]; in tegra124_ulpi_lane_probe()
689 ulpi->base.pad = pad; in tegra124_ulpi_lane_probe()
717 return tegra124_xusb_padctl_enable(lane->pad->padctl); in tegra124_ulpi_phy_init()
724 return tegra124_xusb_padctl_disable(lane->pad->padctl); in tegra124_ulpi_phy_exit()
751 struct tegra_xusb_pad *pad; in tegra124_ulpi_pad_probe() local
758 pad = &ulpi->base; in tegra124_ulpi_pad_probe()
759 pad->ops = &tegra124_ulpi_lane_ops; in tegra124_ulpi_pad_probe()
760 pad->soc = soc; in tegra124_ulpi_pad_probe()
762 err = tegra_xusb_pad_init(pad, padctl, np); in tegra124_ulpi_pad_probe()
768 err = tegra_xusb_pad_register(pad, &tegra124_ulpi_phy_ops); in tegra124_ulpi_pad_probe()
772 dev_set_drvdata(&pad->dev, pad); in tegra124_ulpi_pad_probe()
774 return pad; in tegra124_ulpi_pad_probe()
777 device_unregister(&pad->dev); in tegra124_ulpi_pad_probe()
782 static void tegra124_ulpi_pad_remove(struct tegra_xusb_pad *pad) in tegra124_ulpi_pad_remove() argument
784 struct tegra_xusb_ulpi_pad *ulpi = to_ulpi_pad(pad); in tegra124_ulpi_pad_remove()
812 tegra124_hsic_lane_probe(struct tegra_xusb_pad *pad, struct device_node *np, in tegra124_hsic_lane_probe() argument
823 hsic->base.soc = &pad->soc->lanes[index]; in tegra124_hsic_lane_probe()
825 hsic->base.pad = pad; in tegra124_hsic_lane_probe()
853 return tegra124_xusb_padctl_enable(lane->pad->padctl); in tegra124_hsic_phy_init()
860 return tegra124_xusb_padctl_disable(lane->pad->padctl); in tegra124_hsic_phy_exit()
867 struct tegra_xusb_hsic_pad *pad = to_hsic_pad(lane->pad); in tegra124_hsic_phy_power_on() local
868 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_hsic_phy_power_on()
873 err = regulator_enable(pad->supply); in tegra124_hsic_phy_power_on()
936 struct tegra_xusb_hsic_pad *pad = to_hsic_pad(lane->pad); in tegra124_hsic_phy_power_off() local
937 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_hsic_phy_power_off()
948 regulator_disable(pad->supply); in tegra124_hsic_phy_power_off()
967 struct tegra_xusb_pad *pad; in tegra124_hsic_pad_probe() local
974 pad = &hsic->base; in tegra124_hsic_pad_probe()
975 pad->ops = &tegra124_hsic_lane_ops; in tegra124_hsic_pad_probe()
976 pad->soc = soc; in tegra124_hsic_pad_probe()
978 err = tegra_xusb_pad_init(pad, padctl, np); in tegra124_hsic_pad_probe()
984 err = tegra_xusb_pad_register(pad, &tegra124_hsic_phy_ops); in tegra124_hsic_pad_probe()
988 dev_set_drvdata(&pad->dev, pad); in tegra124_hsic_pad_probe()
990 return pad; in tegra124_hsic_pad_probe()
993 device_unregister(&pad->dev); in tegra124_hsic_pad_probe()
998 static void tegra124_hsic_pad_remove(struct tegra_xusb_pad *pad) in tegra124_hsic_pad_remove() argument
1000 struct tegra_xusb_hsic_pad *hsic = to_hsic_pad(pad); in tegra124_hsic_pad_remove()
1032 tegra124_pcie_lane_probe(struct tegra_xusb_pad *pad, struct device_node *np, in tegra124_pcie_lane_probe() argument
1043 pcie->base.soc = &pad->soc->lanes[index]; in tegra124_pcie_lane_probe()
1045 pcie->base.pad = pad; in tegra124_pcie_lane_probe()
1073 return tegra124_xusb_padctl_enable(lane->pad->padctl); in tegra124_pcie_phy_init()
1080 return tegra124_xusb_padctl_disable(lane->pad->padctl); in tegra124_pcie_phy_exit()
1086 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_pcie_phy_power_on()
1127 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_pcie_phy_power_off()
1155 struct tegra_xusb_pad *pad; in tegra124_pcie_pad_probe() local
1162 pad = &pcie->base; in tegra124_pcie_pad_probe()
1163 pad->ops = &tegra124_pcie_lane_ops; in tegra124_pcie_pad_probe()
1164 pad->soc = soc; in tegra124_pcie_pad_probe()
1166 err = tegra_xusb_pad_init(pad, padctl, np); in tegra124_pcie_pad_probe()
1172 err = tegra_xusb_pad_register(pad, &tegra124_pcie_phy_ops); in tegra124_pcie_pad_probe()
1176 dev_set_drvdata(&pad->dev, pad); in tegra124_pcie_pad_probe()
1178 return pad; in tegra124_pcie_pad_probe()
1181 device_unregister(&pad->dev); in tegra124_pcie_pad_probe()
1186 static void tegra124_pcie_pad_remove(struct tegra_xusb_pad *pad) in tegra124_pcie_pad_remove() argument
1188 struct tegra_xusb_pcie_pad *pcie = to_pcie_pad(pad); in tegra124_pcie_pad_remove()
1210 tegra124_sata_lane_probe(struct tegra_xusb_pad *pad, struct device_node *np, in tegra124_sata_lane_probe() argument
1221 sata->base.soc = &pad->soc->lanes[index]; in tegra124_sata_lane_probe()
1223 sata->base.pad = pad; in tegra124_sata_lane_probe()
1251 return tegra124_xusb_padctl_enable(lane->pad->padctl); in tegra124_sata_phy_init()
1258 return tegra124_xusb_padctl_disable(lane->pad->padctl); in tegra124_sata_phy_exit()
1264 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_sata_phy_power_on()
1309 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra124_sata_phy_power_off()
1351 struct tegra_xusb_pad *pad; in tegra124_sata_pad_probe() local
1358 pad = &sata->base; in tegra124_sata_pad_probe()
1359 pad->ops = &tegra124_sata_lane_ops; in tegra124_sata_pad_probe()
1360 pad->soc = soc; in tegra124_sata_pad_probe()
1362 err = tegra_xusb_pad_init(pad, padctl, np); in tegra124_sata_pad_probe()
1368 err = tegra_xusb_pad_register(pad, &tegra124_sata_phy_ops); in tegra124_sata_pad_probe()
1372 dev_set_drvdata(&pad->dev, pad); in tegra124_sata_pad_probe()
1374 return pad; in tegra124_sata_pad_probe()
1377 device_unregister(&pad->dev); in tegra124_sata_pad_probe()
1382 static void tegra124_sata_pad_remove(struct tegra_xusb_pad *pad) in tegra124_sata_pad_remove() argument
1384 struct tegra_xusb_sata_pad *sata = to_sata_pad(pad); in tegra124_sata_pad_remove()
1542 if (lane->pad == padctl->pcie) in tegra124_usb3_port_enable()
1554 if (lane->pad == padctl->pcie) in tegra124_usb3_port_enable()
1564 if (lane->pad == padctl->sata) { in tegra124_usb3_port_enable()