/Linux-v4.19/drivers/usb/phy/ |
D | phy.c | 33 struct usb_phy *phy; 37 static struct usb_phy *__usb_find_phy(struct list_head *list, in __usb_find_phy() 40 struct usb_phy *phy = NULL; in __usb_find_phy() 52 static struct usb_phy *__of_usb_find_phy(struct device_node *node) in __of_usb_find_phy() 54 struct usb_phy *phy; in __of_usb_find_phy() 69 static void usb_phy_set_default_current(struct usb_phy *usb_phy) in usb_phy_set_default_current() argument 71 usb_phy->chg_cur.sdp_min = DEFAULT_SDP_CUR_MIN; in usb_phy_set_default_current() 72 usb_phy->chg_cur.sdp_max = DEFAULT_SDP_CUR_MAX; in usb_phy_set_default_current() 73 usb_phy->chg_cur.dcp_min = DEFAULT_DCP_CUR_MIN; in usb_phy_set_default_current() 74 usb_phy->chg_cur.dcp_max = DEFAULT_DCP_CUR_MAX; in usb_phy_set_default_current() [all …]
|
D | phy-ulpi.c | 42 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() 108 static int ulpi_set_ic_flags(struct usb_phy *phy) in ulpi_set_ic_flags() 127 static int ulpi_set_flags(struct usb_phy *phy) in ulpi_set_flags() 142 static int ulpi_check_integrity(struct usb_phy *phy) in ulpi_check_integrity() 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() 243 struct usb_phy * 247 struct usb_phy *phy; in otg_ulpi_create() [all …]
|
D | phy-generic.h | 10 struct usb_phy phy; 22 int usb_gen_phy_init(struct usb_phy *phy); 23 void usb_gen_phy_shutdown(struct usb_phy *phy);
|
D | phy-isp1301.c | 19 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() 99 struct usb_phy *phy; in isp1301_probe()
|
D | phy-generic.c | 47 static int nop_set_suspend(struct usb_phy *x, int suspend) in nop_set_suspend() 136 int usb_gen_phy_init(struct usb_phy *phy) in usb_gen_phy_init() 158 void usb_gen_phy_shutdown(struct usb_phy *phy) in usb_gen_phy_shutdown() 186 atomic_notifier_call_chain(&otg->usb_phy->notifier, in nop_set_peripheral() 293 nop->phy.otg->usb_phy = &nop->phy; in usb_phy_gen_create_phy()
|
D | phy-gpio-vbus-usb.c | 32 struct usb_phy phy; 182 gpio_vbus = container_of(otg->usb_phy, struct gpio_vbus_data, phy); in gpio_vbus_set_peripheral() 214 static int gpio_vbus_set_power(struct usb_phy *phy, unsigned mA) in gpio_vbus_set_power() 226 static int gpio_vbus_set_suspend(struct usb_phy *phy, int suspend) in gpio_vbus_set_suspend() 273 gpio_vbus->phy.otg->usb_phy = &gpio_vbus->phy; in gpio_vbus_probe()
|
D | phy-ulpi-viewport.c | 35 static int ulpi_viewport_read(struct usb_phy *otg, u32 reg) in ulpi_viewport_read() 53 static int ulpi_viewport_write(struct usb_phy *otg, u32 val, u32 reg) in ulpi_viewport_write()
|
D | phy-mxs-usb.c | 182 struct usb_phy phy; 346 static int mxs_phy_init(struct usb_phy *phy) in mxs_phy_init() 359 static void mxs_phy_shutdown(struct usb_phy *phy) in mxs_phy_shutdown() 405 static int mxs_phy_suspend(struct usb_phy *x, int suspend) in mxs_phy_suspend() 446 static int mxs_phy_set_wakeup(struct usb_phy *x, bool enabled) in mxs_phy_set_wakeup() 463 static int mxs_phy_on_connect(struct usb_phy *phy, in mxs_phy_on_connect() 476 static int mxs_phy_on_disconnect(struct usb_phy *phy, in mxs_phy_on_disconnect() 598 static enum usb_charger_type mxs_phy_charger_detect(struct usb_phy *phy) in mxs_phy_charger_detect()
|
/Linux-v4.19/include/linux/usb/ |
D | phy.h | 66 struct usb_phy; 73 int (*read)(struct usb_phy *x, u32 reg); 74 int (*write)(struct usb_phy *x, u32 val, u32 reg); 88 struct usb_phy { struct 126 int (*init)(struct usb_phy *x); argument 127 void (*shutdown)(struct usb_phy *x); argument 130 int (*set_vbus)(struct usb_phy *x, int on); argument 133 int (*set_power)(struct usb_phy *x, argument 137 int (*set_suspend)(struct usb_phy *x, argument 145 int (*set_wakeup)(struct usb_phy *x, bool enabled); argument [all …]
|
D | tegra_usb_phy.h | 75 struct usb_phy *ulpi; 76 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);
|
D | ulpi.h | 56 struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops, 59 static inline struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops, in otg_ulpi_create()
|
D | chipidea.h | 40 struct usb_phy *usb_phy; member
|
/Linux-v4.19/drivers/usb/host/ |
D | ohci-omap.c | 180 otg_start_hnp(hcd->usb_phy->otg); in start_hnp() 183 hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND; in start_hnp() 220 hcd->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2); in ohci_omap_reset() 221 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_omap_reset() 222 int status = otg_set_host(hcd->usb_phy->otg, in ohci_omap_reset() 225 hcd->usb_phy->label, status); in ohci_omap_reset() 227 usb_put_phy(hcd->usb_phy); in ohci_omap_reset() 400 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_hcd_omap_remove() 401 (void) otg_set_host(hcd->usb_phy->otg, 0); in ohci_hcd_omap_remove() 402 usb_put_phy(hcd->usb_phy); in ohci_hcd_omap_remove()
|
D | xhci-plat.c | 295 hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0); in xhci_plat_probe() 296 if (IS_ERR(hcd->usb_phy)) { in xhci_plat_probe() 297 ret = PTR_ERR(hcd->usb_phy); in xhci_plat_probe() 300 hcd->usb_phy = NULL; in xhci_plat_probe() 302 ret = usb_phy_init(hcd->usb_phy); in xhci_plat_probe() 335 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_probe() 366 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_remove()
|
D | ehci-tegra.c | 195 tegra_usb_phy_postresume(hcd->usb_phy); in tegra_ehci_hub_control() 248 tegra_usb_phy_preresume(hcd->usb_phy); in tegra_ehci_hub_control() 393 struct usb_phy *u_phy; in tegra_ehci_probe() 451 hcd->usb_phy = u_phy; in tegra_ehci_probe() 469 err = usb_phy_init(hcd->usb_phy); in tegra_ehci_probe() 483 err = usb_phy_set_suspend(hcd->usb_phy, 0); in tegra_ehci_probe() 510 usb_phy_shutdown(hcd->usb_phy); in tegra_ehci_probe() 524 otg_set_host(hcd->usb_phy->otg, NULL); in tegra_ehci_remove() 526 usb_phy_shutdown(hcd->usb_phy); in tegra_ehci_remove()
|
D | ehci-fsl.c | 142 hcd->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2); in fsl_ehci_drv_probe() 144 hcd, ehci, hcd->usb_phy); in fsl_ehci_drv_probe() 146 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in fsl_ehci_drv_probe() 147 retval = otg_set_host(hcd->usb_phy->otg, in fsl_ehci_drv_probe() 150 usb_put_phy(hcd->usb_phy); in fsl_ehci_drv_probe() 653 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in fsl_ehci_drv_remove() 654 otg_set_host(hcd->usb_phy->otg, NULL); in fsl_ehci_drv_remove() 655 usb_put_phy(hcd->usb_phy); in fsl_ehci_drv_remove()
|
/Linux-v4.19/Documentation/devicetree/bindings/phy/ |
D | pistachio-usb-phy.txt | 10 - clock-names: Must include "usb_phy". 21 usb_phy: usb-phy { 24 clock-names = "usb_phy";
|
D | phy-da8xx-usb.txt | 21 usb_phy: usb-phy { 30 phys = <&usb_phy 0>; 38 phys = <&usb_phy 1>;
|
D | keystone-usb-phy.txt | 14 usb_phy: usb_phy@2620738 {
|
/Linux-v4.19/arch/arm/mach-imx/ |
D | ulpi.h | 8 static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags) in imx_otg_ulpi_create() 13 static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags) in imx_otg_ulpi_create()
|
/Linux-v4.19/drivers/power/supply/ |
D | da9150-charger.c | 37 struct usb_phy *usb_phy; member 590 charger->usb_phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); in da9150_charger_probe() 591 if (!IS_ERR_OR_NULL(charger->usb_phy)) { in da9150_charger_probe() 594 usb_register_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_probe() 628 if (!IS_ERR_OR_NULL(charger->usb_phy)) in da9150_charger_probe() 629 usb_unregister_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_probe() 667 if (!IS_ERR_OR_NULL(charger->usb_phy)) in da9150_charger_remove() 668 usb_unregister_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_remove()
|
D | wm831x_power.c | 35 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() 707 if (wm831x_power->usb_phy) { in wm831x_power_remove() 708 usb_unregister_notifier(wm831x_power->usb_phy, in wm831x_power_remove()
|
/Linux-v4.19/drivers/usb/chipidea/ |
D | core.c | 350 ret = usb_phy_init(ci->usb_phy); in _ci_usb_phy_init() 370 usb_phy_shutdown(ci->usb_phy); in ci_usb_phy_exit() 935 } else if (ci->platdata->usb_phy) { in ci_hdrc_probe() 936 ci->usb_phy = ci->platdata->usb_phy; in ci_hdrc_probe() 939 ci->usb_phy = devm_usb_get_phy(dev->parent, USB_PHY_TYPE_USB2); in ci_hdrc_probe() 943 PTR_ERR(ci->usb_phy) == -ENXIO) { in ci_hdrc_probe() 948 if (IS_ERR(ci->phy) && IS_ERR(ci->usb_phy)) { in ci_hdrc_probe() 955 else if (IS_ERR(ci->usb_phy)) in ci_hdrc_probe() 956 ci->usb_phy = NULL; in ci_hdrc_probe() 1145 usb_phy_set_suspend(ci->usb_phy, 1); in ci_controller_suspend() [all …]
|
D | host.c | 127 if (ci->phy || ci->usb_phy) { in host_start() 129 if (ci->usb_phy) in host_start() 130 hcd->usb_phy = ci->usb_phy; in host_start()
|
/Linux-v4.19/drivers/usb/musb/ |
D | sunxi.c | 80 struct platform_device *usb_phy; member 81 struct usb_phy *xceiv; 764 glue->usb_phy = usb_phy_generic_register(); in sunxi_musb_probe() 765 if (IS_ERR(glue->usb_phy)) { in sunxi_musb_probe() 767 PTR_ERR(glue->usb_phy)); in sunxi_musb_probe() 768 return PTR_ERR(glue->usb_phy); in sunxi_musb_probe() 799 usb_phy_generic_unregister(glue->usb_phy); in sunxi_musb_probe() 806 struct platform_device *usb_phy = glue->usb_phy; in sunxi_musb_remove() local 809 usb_phy_generic_unregister(usb_phy); in sunxi_musb_remove()
|