Home
last modified time | relevance | path

Searched refs:usb_phy (Results 1 – 25 of 172) sorted by relevance

1234567

/linux/drivers/usb/phy/
A Dphy.c85 struct usb_phy *usb_phy; in __device_to_usb_phy() local
125 struct usb_phy *usb_phy = container_of(work, struct usb_phy, chg_work); in usb_phy_notify_charger_work() local
137 atomic_notifier_call_chain(&usb_phy->notifier, 0, usb_phy); in usb_phy_notify_charger_work()
150 const struct usb_phy *usb_phy; in usb_phy_uevent() local
159 if (!usb_phy) in usb_phy_uevent()
211 struct usb_phy *usb_phy = container_of(nb, struct usb_phy, type_nb); in usb_phy_get_charger_type() local
280 void usb_phy_get_charger_current(struct usb_phy *usb_phy, in usb_phy_get_charger_current() argument
317 void usb_phy_set_charger_state(struct usb_phy *usb_phy, in usb_phy_set_charger_state() argument
325 usb_phy->chg_type = usb_phy->charger_detect(usb_phy); in usb_phy_set_charger_state()
335 struct usb_phy *phy = *(struct usb_phy **)res; in devm_usb_phy_release()
[all …]
A Dphy-ulpi.c42 static int ulpi_set_otg_flags(struct usb_phy *phy) in ulpi_set_otg_flags()
66 static int ulpi_set_fc_flags(struct usb_phy *phy) in ulpi_set_fc_flags()
127 static int ulpi_set_flags(struct usb_phy *phy) in ulpi_set_flags()
168 static int ulpi_init(struct usb_phy *phy) in ulpi_init()
201 struct usb_phy *phy = otg->usb_phy; in ulpi_set_host()
227 struct usb_phy *phy = otg->usb_phy; in ulpi_set_vbus()
253 otg->usb_phy = phy; in otg_ulpi_init()
258 struct usb_phy *
262 struct usb_phy *phy; in otg_ulpi_create()
281 struct usb_phy *
[all …]
A Dphy-generic.h10 struct usb_phy phy;
22 int usb_gen_phy_init(struct usb_phy *phy);
23 void usb_gen_phy_shutdown(struct usb_phy *phy);
A Dphy-isp1301.c19 struct usb_phy phy;
56 static int isp1301_phy_init(struct usb_phy *phy) in isp1301_phy_init()
83 static int isp1301_phy_set_vbus(struct usb_phy *phy, int on) in isp1301_phy_set_vbus()
98 struct usb_phy *phy; in isp1301_probe()
A Dphy-generic.c46 static int nop_set_suspend(struct usb_phy *x, int suspend) in nop_set_suspend()
81 struct usb_phy_generic *nop = dev_get_drvdata(otg->usb_phy->dev); in nop_set_vbus()
130 int usb_gen_phy_init(struct usb_phy *phy) in usb_gen_phy_init()
152 void usb_gen_phy_shutdown(struct usb_phy *phy) in usb_gen_phy_shutdown()
180 atomic_notifier_call_chain(&otg->usb_phy->notifier, in nop_set_peripheral()
273 nop->phy.otg->usb_phy = &nop->phy; in usb_phy_gen_create_phy()
A Dphy-gpio-vbus-usb.c33 struct usb_phy phy;
172 gpio_vbus = container_of(otg->usb_phy, struct gpio_vbus_data, phy); in gpio_vbus_set_peripheral()
202 static int gpio_vbus_set_power(struct usb_phy *phy, unsigned mA) in gpio_vbus_set_power()
214 static int gpio_vbus_set_suspend(struct usb_phy *phy, int suspend) in gpio_vbus_set_suspend()
257 gpio_vbus->phy.otg->usb_phy = &gpio_vbus->phy; in gpio_vbus_probe()
/linux/include/linux/usb/
A Dphy.h66 struct usb_phy;
88 struct usb_phy { struct
126 int (*init)(struct usb_phy *x); argument
183 usb_phy_init(struct usb_phy *x) in usb_phy_init()
199 usb_phy_vbus_on(struct usb_phy *x) in usb_phy_vbus_on()
228 extern void usb_phy_set_charger_current(struct usb_phy *usb_phy,
230 extern void usb_phy_get_charger_current(struct usb_phy *usb_phy,
232 extern void usb_phy_set_charger_state(struct usb_phy *usb_phy,
270 static inline void usb_phy_set_charger_current(struct usb_phy *usb_phy, in usb_phy_set_charger_current() argument
275 static inline void usb_phy_get_charger_current(struct usb_phy *usb_phy, in usb_phy_get_charger_current() argument
[all …]
A Dtegra_usb_phy.h72 struct usb_phy *ulpi;
73 struct usb_phy u_phy;
83 void tegra_usb_phy_preresume(struct usb_phy *phy);
85 void tegra_usb_phy_postresume(struct usb_phy *phy);
87 void tegra_ehci_phy_restore_start(struct usb_phy *phy,
90 void tegra_ehci_phy_restore_end(struct usb_phy *phy);
A Dulpi.h52 struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops,
55 struct usb_phy *devm_otg_ulpi_create(struct device *dev,
59 static inline struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops, in otg_ulpi_create()
65 static inline struct usb_phy *devm_otg_ulpi_create(struct device *dev, in devm_otg_ulpi_create()
/linux/drivers/phy/broadcom/
A Dphy-brcm-usb-init-synopsys.c262 brcm_usb_writel(0, usb_phy + USB_PHY_IDDQ); in usb_init_common_7211b0()
263 reg = brcm_usb_readl(usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0()
265 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0()
274 reg = brcm_usb_readl(usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0()
276 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0()
286 reg = brcm_usb_readl(usb_phy + USB_PHY_STATUS); in usb_init_common_7211b0()
293 reg = brcm_usb_readl(usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0()
296 brcm_usb_writel(reg, usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0()
380 reg = brcm_usb_readl(usb_phy + USB_PHY_PLL_CTL); in usb_uninit_common_7211b0()
382 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_CTL); in usb_uninit_common_7211b0()
[all …]
/linux/drivers/usb/host/
A Dohci-omap.c77 otg_start_hnp(hcd->usb_phy->otg); in start_hnp()
80 hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND; in start_hnp()
111 hcd->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2); in ohci_omap_reset()
112 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_omap_reset()
113 int status = otg_set_host(hcd->usb_phy->otg, in ohci_omap_reset()
116 hcd->usb_phy->label, status); in ohci_omap_reset()
118 usb_put_phy(hcd->usb_phy); in ohci_omap_reset()
332 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_hcd_omap_remove()
333 (void) otg_set_host(hcd->usb_phy->otg, 0); in ohci_hcd_omap_remove()
334 usb_put_phy(hcd->usb_phy); in ohci_hcd_omap_remove()
A Dxhci-plat.c278 hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0); in xhci_plat_probe()
279 if (IS_ERR(hcd->usb_phy)) { in xhci_plat_probe()
280 ret = PTR_ERR(hcd->usb_phy); in xhci_plat_probe()
283 hcd->usb_phy = NULL; in xhci_plat_probe()
285 ret = usb_phy_init(hcd->usb_phy); in xhci_plat_probe()
312 xhci->shared_hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, in xhci_plat_probe()
314 if (IS_ERR(xhci->shared_hcd->usb_phy)) { in xhci_plat_probe()
315 xhci->shared_hcd->usb_phy = NULL; in xhci_plat_probe()
317 ret = usb_phy_init(xhci->shared_hcd->usb_phy); in xhci_plat_probe()
356 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_probe()
[all …]
/linux/drivers/power/supply/
A Dsc2731_charger.c57 struct usb_phy *usb_phy; member
446 if (info->usb_phy->chg_state != USB_CHARGER_PRESENT) in sc2731_charger_detect_status()
449 usb_phy_get_charger_current(info->usb_phy, &min, &max); in sc2731_charger_detect_status()
496 info->usb_phy = devm_usb_get_phy_by_phandle(&pdev->dev, "phys", 0); in sc2731_charger_probe()
497 if (IS_ERR(info->usb_phy)) { in sc2731_charger_probe()
499 return PTR_ERR(info->usb_phy); in sc2731_charger_probe()
503 ret = usb_register_notifier(info->usb_phy, &info->usb_notify); in sc2731_charger_probe()
518 usb_unregister_notifier(info->usb_phy, &info->usb_notify); in sc2731_charger_remove()
A Dda9150-charger.c31 struct usb_phy *usb_phy; member
567 charger->usb_phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); in da9150_charger_probe()
568 if (!IS_ERR_OR_NULL(charger->usb_phy)) { in da9150_charger_probe()
571 usb_register_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_probe()
605 if (!IS_ERR_OR_NULL(charger->usb_phy)) in da9150_charger_probe()
606 usb_unregister_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_probe()
629 if (!IS_ERR_OR_NULL(charger->usb_phy)) in da9150_charger_remove()
630 usb_unregister_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_remove()
A Dwm831x_power.c32 struct usb_phy *usb_phy; member
650 power->usb_phy = devm_usb_get_phy_by_phandle(&pdev->dev, "phys", 0); in wm831x_power_probe()
651 ret = PTR_ERR_OR_ZERO(power->usb_phy); in wm831x_power_probe()
656 ret = usb_register_notifier(power->usb_phy, &power->usb_notify); in wm831x_power_probe()
666 power->usb_phy = NULL; in wm831x_power_probe()
702 if (wm831x_power->usb_phy) { in wm831x_power_remove()
703 usb_unregister_notifier(wm831x_power->usb_phy, in wm831x_power_remove()
/linux/drivers/usb/chipidea/
A Dusbmisc_imx.c699 struct usb_phy *usb_phy = data->usb_phy; in imx7d_charger_secondary_detection() local
733 usb_phy->chg_type = DCP_TYPE; in imx7d_charger_secondary_detection()
736 usb_phy->chg_type = CDP_TYPE; in imx7d_charger_secondary_detection()
813 struct usb_phy *usb_phy = data->usb_phy; in imx7d_charger_primary_detection() local
833 usb_phy->chg_type = SDP_TYPE; in imx7d_charger_primary_detection()
850 struct usb_phy *usb_phy = data->usb_phy; in imx7d_charger_detection() local
882 if (!ret && usb_phy->chg_type != SDP_TYPE) in imx7d_charger_detection()
1136 struct usb_phy *usb_phy; in imx_usbmisc_charger_detection() local
1143 usb_phy = data->usb_phy; in imx_usbmisc_charger_detection()
1158 usb_phy->chg_state = USB_CHARGER_ABSENT; in imx_usbmisc_charger_detection()
[all …]
A Dci.h257 struct usb_phy *usb_phy; member
292 if (ci->usb_phy) { in ci_role_start()
294 usb_phy_set_event(ci->usb_phy, USB_EVENT_ID); in ci_role_start()
297 usb_phy_set_event(ci->usb_phy, USB_EVENT_NONE); in ci_role_start()
314 if (ci->usb_phy) in ci_role_stop()
315 usb_phy_set_event(ci->usb_phy, USB_EVENT_NONE); in ci_role_stop()
A Dcore.c333 ret = usb_phy_init(ci->usb_phy); in _ci_usb_phy_init()
353 usb_phy_shutdown(ci->usb_phy); in ci_usb_phy_exit()
1093 } else if (ci->platdata->usb_phy) { in ci_hdrc_probe()
1094 ci->usb_phy = ci->platdata->usb_phy; in ci_hdrc_probe()
1114 } else if (IS_ERR(ci->usb_phy)) { in ci_hdrc_probe()
1115 ci->usb_phy = NULL; in ci_hdrc_probe()
1120 if (!ci->phy && !ci->usb_phy) { in ci_hdrc_probe()
1127 } else if (IS_ERR(ci->usb_phy)) { in ci_hdrc_probe()
1128 ci->usb_phy = NULL; in ci_hdrc_probe()
1133 if (!ci->phy && !ci->usb_phy) { in ci_hdrc_probe()
[all …]
A Dci_hdrc_imx.h27 struct usb_phy *usb_phy; member
/linux/drivers/phy/qualcomm/
A Dphy-qcom-ipq806x-usb.c118 struct usb_phy { struct
142 static inline void usb_phy_write_readback(struct usb_phy *phy_dwc3, in usb_phy_write_readback() argument
175 static int usb_ss_write_phycreg(struct usb_phy *phy_dwc3, in usb_ss_write_phycreg()
213 static int usb_ss_read_phycreg(struct usb_phy *phy_dwc3, in usb_ss_read_phycreg()
254 struct usb_phy *phy_dwc3 = phy_get_drvdata(phy); in qcom_ipq806x_usb_hs_phy_init()
293 struct usb_phy *phy_dwc3 = phy_get_drvdata(phy); in qcom_ipq806x_usb_hs_phy_exit()
303 struct usb_phy *phy_dwc3 = phy_get_drvdata(phy); in qcom_ipq806x_usb_ss_phy_init()
434 struct usb_phy *phy_dwc3 = phy_get_drvdata(phy); in qcom_ipq806x_usb_ss_phy_exit()
486 struct usb_phy *phy_dwc3; in qcom_ipq806x_usb_phy_probe()
/linux/Documentation/devicetree/bindings/phy/
A Dphy-da8xx-usb.txt21 usb_phy: usb-phy {
30 phys = <&usb_phy 0>;
38 phys = <&usb_phy 1>;
A Dpistachio-usb-phy.txt10 - clock-names: Must include "usb_phy".
21 usb_phy: usb-phy {
24 clock-names = "usb_phy";
/linux/drivers/usb/musb/
A Dmediatek.c46 struct platform_device *usb_phy; member
48 struct usb_phy *xceiv;
459 glue->usb_phy = usb_phy_generic_register(); in mtk_musb_probe()
460 if (IS_ERR(glue->usb_phy)) in mtk_musb_probe()
461 return dev_err_probe(dev, PTR_ERR(glue->usb_phy), in mtk_musb_probe()
503 usb_phy_generic_unregister(glue->usb_phy); in mtk_musb_probe()
510 struct platform_device *usb_phy = glue->usb_phy; in mtk_musb_remove() local
513 usb_phy_generic_unregister(usb_phy); in mtk_musb_remove()
/linux/drivers/phy/tegra/
A Dxusb.c570 usb_remove_phy(&port->usb_phy); in tegra_xusb_port_unregister()
571 port->usb_phy.dev->driver = NULL; in tegra_xusb_port_unregister()
619 atomic_notifier_call_chain(&port->usb_phy.notifier, 0, &port->usb_phy); in tegra_xusb_usb_phy_work()
639 usb_phy); in tegra_xusb_set_peripheral()
651 usb_phy); in tegra_xusb_set_host()
698 if (!port->usb_phy.otg) in tegra_xusb_setup_usb_role_switch()
709 port->usb_phy.dev = &lane->pad->lanes[port->index]->dev; in tegra_xusb_setup_usb_role_switch()
710 port->usb_phy.dev->driver = port->dev.driver; in tegra_xusb_setup_usb_role_switch()
711 port->usb_phy.otg->usb_phy = &port->usb_phy; in tegra_xusb_setup_usb_role_switch()
713 port->usb_phy.otg->set_host = tegra_xusb_set_host; in tegra_xusb_setup_usb_role_switch()
[all …]
/linux/drivers/phy/
A Dphy-lgm-usb.c44 struct usb_phy phy;
68 static int phy_init(struct usb_phy *phy) in phy_init()
99 static void phy_shutdown(struct usb_phy *phy) in phy_shutdown()
118 static int phy_set_vbus(struct usb_phy *phy, int on) in phy_set_vbus()
191 struct usb_phy *phy; in phy_probe()

Completed in 50 milliseconds

1234567