Lines Matching refs:pad
453 strcmp(map->type, lane->pad->soc->name) == 0) { in tegra210_usb3_lane_map()
454 dev_dbg(lane->pad->padctl->dev, "lane = %s map to port = usb3-%d\n", in tegra210_usb3_lane_map()
455 lane->pad->soc->lanes[lane->index].name, map->port); in tegra210_usb3_lane_map()
1061 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_usb3_enable_phy_sleepwalk()
1092 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_usb3_disable_phy_sleepwalk()
1121 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_usb3_enable_phy_wake()
1152 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_usb3_disable_phy_wake()
1183 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_usb3_phy_remote_wake_detected()
1199 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_utmi_enable_phy_wake()
1224 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_utmi_disable_phy_wake()
1249 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_utmi_phy_remote_wake_detected()
1263 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_hsic_enable_phy_wake()
1288 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_hsic_disable_phy_wake()
1313 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_hsic_phy_remote_wake_detected()
1338 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_pmc_utmi_enable_phy_sleepwalk()
1510 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_pmc_utmi_disable_phy_sleepwalk()
1559 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_pmc_hsic_enable_phy_sleepwalk()
1660 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_pmc_hsic_disable_phy_sleepwalk()
1708 if (lane->pad == padctl->pcie) in tegra210_usb3_set_lfps_detect()
1756 tegra210_usb2_lane_probe(struct tegra_xusb_pad *pad, struct device_node *np, in tegra210_usb2_lane_probe() argument
1767 usb2->base.soc = &pad->soc->lanes[index]; in tegra210_usb2_lane_probe()
1769 usb2->base.pad = pad; in tegra210_usb2_lane_probe()
1801 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_usb2_phy_init()
1836 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_usb2_phy_exit()
1917 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_usb2_phy_set_mode()
1956 struct tegra_xusb_usb2_pad *pad = to_usb2_pad(lane->pad); in tegra210_usb2_phy_power_on() local
1957 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_usb2_phy_power_on()
2067 if (pad->enable > 0) { in tegra210_usb2_phy_power_on()
2068 pad->enable++; in tegra210_usb2_phy_power_on()
2073 err = clk_prepare_enable(pad->clk); in tegra210_usb2_phy_power_on()
2100 clk_disable_unprepare(pad->clk); in tegra210_usb2_phy_power_on()
2102 pad->enable++; in tegra210_usb2_phy_power_on()
2115 struct tegra_xusb_usb2_pad *pad = to_usb2_pad(lane->pad); in tegra210_usb2_phy_power_off() local
2116 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_usb2_phy_power_off()
2155 if (WARN_ON(pad->enable == 0)) in tegra210_usb2_phy_power_off()
2158 if (--pad->enable > 0) in tegra210_usb2_phy_power_off()
2185 struct tegra_xusb_pad *pad; in tegra210_usb2_pad_probe() local
2192 pad = &usb2->base; in tegra210_usb2_pad_probe()
2193 pad->ops = &tegra210_usb2_lane_ops; in tegra210_usb2_pad_probe()
2194 pad->soc = soc; in tegra210_usb2_pad_probe()
2196 err = tegra_xusb_pad_init(pad, padctl, np); in tegra210_usb2_pad_probe()
2202 usb2->clk = devm_clk_get(&pad->dev, "trk"); in tegra210_usb2_pad_probe()
2205 dev_err(&pad->dev, "failed to get trk clock: %d\n", err); in tegra210_usb2_pad_probe()
2209 err = tegra_xusb_pad_register(pad, &tegra210_usb2_phy_ops); in tegra210_usb2_pad_probe()
2213 dev_set_drvdata(&pad->dev, pad); in tegra210_usb2_pad_probe()
2215 return pad; in tegra210_usb2_pad_probe()
2218 device_unregister(&pad->dev); in tegra210_usb2_pad_probe()
2223 static void tegra210_usb2_pad_remove(struct tegra_xusb_pad *pad) in tegra210_usb2_pad_remove() argument
2225 struct tegra_xusb_usb2_pad *usb2 = to_usb2_pad(pad); in tegra210_usb2_pad_remove()
2252 tegra210_hsic_lane_probe(struct tegra_xusb_pad *pad, struct device_node *np, in tegra210_hsic_lane_probe() argument
2263 hsic->base.soc = &pad->soc->lanes[index]; in tegra210_hsic_lane_probe()
2265 hsic->base.pad = pad; in tegra210_hsic_lane_probe()
2297 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_hsic_phy_init()
2319 struct tegra_xusb_hsic_pad *pad = to_hsic_pad(lane->pad); in tegra210_hsic_phy_power_on() local
2320 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_hsic_phy_power_on()
2325 err = regulator_enable(pad->supply); in tegra210_hsic_phy_power_on()
2368 err = clk_prepare_enable(pad->clk); in tegra210_hsic_phy_power_on()
2391 clk_disable_unprepare(pad->clk); in tegra210_hsic_phy_power_on()
2396 regulator_disable(pad->supply); in tegra210_hsic_phy_power_on()
2403 struct tegra_xusb_hsic_pad *pad = to_hsic_pad(lane->pad); in tegra210_hsic_phy_power_off() local
2404 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_hsic_phy_power_off()
2420 regulator_disable(pad->supply); in tegra210_hsic_phy_power_off()
2439 struct tegra_xusb_pad *pad; in tegra210_hsic_pad_probe() local
2446 pad = &hsic->base; in tegra210_hsic_pad_probe()
2447 pad->ops = &tegra210_hsic_lane_ops; in tegra210_hsic_pad_probe()
2448 pad->soc = soc; in tegra210_hsic_pad_probe()
2450 err = tegra_xusb_pad_init(pad, padctl, np); in tegra210_hsic_pad_probe()
2456 hsic->clk = devm_clk_get(&pad->dev, "trk"); in tegra210_hsic_pad_probe()
2459 dev_err(&pad->dev, "failed to get trk clock: %d\n", err); in tegra210_hsic_pad_probe()
2463 err = tegra_xusb_pad_register(pad, &tegra210_hsic_phy_ops); in tegra210_hsic_pad_probe()
2467 dev_set_drvdata(&pad->dev, pad); in tegra210_hsic_pad_probe()
2469 return pad; in tegra210_hsic_pad_probe()
2472 device_unregister(&pad->dev); in tegra210_hsic_pad_probe()
2477 static void tegra210_hsic_pad_remove(struct tegra_xusb_pad *pad) in tegra210_hsic_pad_remove() argument
2479 struct tegra_xusb_hsic_pad *hsic = to_hsic_pad(pad); in tegra210_hsic_pad_remove()
2498 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_uphy_lane_iddq_enable()
2517 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_uphy_lane_iddq_disable()
2567 if (!lane || !lane->pad || !lane->pad->padctl) in tegra210_lane_to_usb3_port()
2574 return tegra_xusb_find_usb3_port(lane->pad->padctl, port); in tegra210_lane_to_usb3_port()
2581 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_usb3_phy_power_on()
2654 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_usb3_phy_power_off()
2685 tegra210_pcie_lane_probe(struct tegra_xusb_pad *pad, struct device_node *np, in tegra210_pcie_lane_probe() argument
2696 pcie->base.soc = &pad->soc->lanes[index]; in tegra210_pcie_lane_probe()
2698 pcie->base.pad = pad; in tegra210_pcie_lane_probe()
2732 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_pcie_phy_init()
2746 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_pcie_phy_power_on()
2761 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_pcie_phy_power_off()
2786 struct tegra_xusb_pad *pad; in tegra210_pcie_pad_probe() local
2793 pad = &pcie->base; in tegra210_pcie_pad_probe()
2794 pad->ops = &tegra210_pcie_lane_ops; in tegra210_pcie_pad_probe()
2795 pad->soc = soc; in tegra210_pcie_pad_probe()
2797 err = tegra_xusb_pad_init(pad, padctl, np); in tegra210_pcie_pad_probe()
2803 pcie->pll = devm_clk_get(&pad->dev, "pll"); in tegra210_pcie_pad_probe()
2806 dev_err(&pad->dev, "failed to get PLL: %d\n", err); in tegra210_pcie_pad_probe()
2810 pcie->rst = devm_reset_control_get(&pad->dev, "phy"); in tegra210_pcie_pad_probe()
2813 dev_err(&pad->dev, "failed to get PCIe pad reset: %d\n", err); in tegra210_pcie_pad_probe()
2817 err = tegra_xusb_pad_register(pad, &tegra210_pcie_phy_ops); in tegra210_pcie_pad_probe()
2821 dev_set_drvdata(&pad->dev, pad); in tegra210_pcie_pad_probe()
2823 return pad; in tegra210_pcie_pad_probe()
2826 device_unregister(&pad->dev); in tegra210_pcie_pad_probe()
2831 static void tegra210_pcie_pad_remove(struct tegra_xusb_pad *pad) in tegra210_pcie_pad_remove() argument
2833 struct tegra_xusb_pcie_pad *pcie = to_pcie_pad(pad); in tegra210_pcie_pad_remove()
2855 tegra210_sata_lane_probe(struct tegra_xusb_pad *pad, struct device_node *np, in tegra210_sata_lane_probe() argument
2866 sata->base.soc = &pad->soc->lanes[index]; in tegra210_sata_lane_probe()
2868 sata->base.pad = pad; in tegra210_sata_lane_probe()
2902 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_sata_phy_init()
2915 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_sata_phy_power_on()
2930 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra210_sata_phy_power_off()
2955 struct tegra_xusb_pad *pad; in tegra210_sata_pad_probe() local
2962 pad = &sata->base; in tegra210_sata_pad_probe()
2963 pad->ops = &tegra210_sata_lane_ops; in tegra210_sata_pad_probe()
2964 pad->soc = soc; in tegra210_sata_pad_probe()
2966 err = tegra_xusb_pad_init(pad, padctl, np); in tegra210_sata_pad_probe()
2972 sata->rst = devm_reset_control_get(&pad->dev, "phy"); in tegra210_sata_pad_probe()
2975 dev_err(&pad->dev, "failed to get SATA pad reset: %d\n", err); in tegra210_sata_pad_probe()
2979 err = tegra_xusb_pad_register(pad, &tegra210_sata_phy_ops); in tegra210_sata_pad_probe()
2983 dev_set_drvdata(&pad->dev, pad); in tegra210_sata_pad_probe()
2985 return pad; in tegra210_sata_pad_probe()
2988 device_unregister(&pad->dev); in tegra210_sata_pad_probe()
2993 static void tegra210_sata_pad_remove(struct tegra_xusb_pad *pad) in tegra210_sata_pad_remove() argument
2995 struct tegra_xusb_sata_pad *sata = to_sata_pad(pad); in tegra210_sata_pad_remove()
3094 padctl = lane->pad->padctl; in tegra210_utmi_port_reset()
3215 if (lane->pad->ops->iddq_enable) in tegra210_xusb_padctl_restore()
3223 if (lane->pad->ops->iddq_disable) in tegra210_xusb_padctl_restore()