/drivers/usb/phy/ |
D | phy.c | 38 struct usb_phy *phy; 42 static struct usb_phy *__usb_find_phy(struct list_head *list, in __usb_find_phy() 45 struct usb_phy *phy = NULL; in __usb_find_phy() 57 static struct usb_phy *__usb_find_phy_dev(struct device *dev, in __usb_find_phy_dev() 75 static struct usb_phy *__of_usb_find_phy(struct device_node *node) in __of_usb_find_phy() 77 struct usb_phy *phy; in __of_usb_find_phy() 92 static void usb_phy_set_default_current(struct usb_phy *usb_phy) in usb_phy_set_default_current() argument 94 usb_phy->chg_cur.sdp_min = DEFAULT_SDP_CUR_MIN; in usb_phy_set_default_current() 95 usb_phy->chg_cur.sdp_max = DEFAULT_SDP_CUR_MAX; in usb_phy_set_default_current() 96 usb_phy->chg_cur.dcp_min = DEFAULT_DCP_CUR_MIN; in usb_phy_set_default_current() [all …]
|
D | phy-ulpi.c | 55 static int ulpi_set_otg_flags(struct usb_phy *phy) in ulpi_set_otg_flags() 79 static int ulpi_set_fc_flags(struct usb_phy *phy) in ulpi_set_fc_flags() 121 static int ulpi_set_ic_flags(struct usb_phy *phy) in ulpi_set_ic_flags() 140 static int ulpi_set_flags(struct usb_phy *phy) in ulpi_set_flags() 155 static int ulpi_check_integrity(struct usb_phy *phy) in ulpi_check_integrity() 181 static int ulpi_init(struct usb_phy *phy) in ulpi_init() 214 struct usb_phy *phy = otg->usb_phy; in ulpi_set_host() 240 struct usb_phy *phy = otg->usb_phy; in ulpi_set_vbus() 256 struct usb_phy * 260 struct usb_phy *phy; in otg_ulpi_create() [all …]
|
D | phy-msm-usb.c | 178 struct usb_phy phy; 334 static int ulpi_read(struct usb_phy *phy, u32 reg) in ulpi_read() 359 static int ulpi_write(struct usb_phy *phy, u32 val, u32 reg) in ulpi_write() 405 static int msm_phy_notify_disconnect(struct usb_phy *phy, in msm_phy_notify_disconnect() 483 static int msm_otg_reset(struct usb_phy *phy) in msm_otg_reset() 536 static int msm_usb_reset(struct usb_phy *phy) in msm_usb_reset() 567 static int msm_phy_init(struct usb_phy *phy) in msm_phy_init() 649 struct usb_phy *phy = &motg->phy; in msm_otg_suspend() 746 struct usb_phy *phy = &motg->phy; in msm_otg_resume() 832 static void msm_otg_start_host(struct usb_phy *phy, int on) in msm_otg_start_host() [all …]
|
D | phy-qcom-8x16-usb.c | 64 struct usb_phy phy; 76 static int phy_8x16_notify_connect(struct usb_phy *phy, in phy_8x16_notify_connect() 92 static int phy_8x16_notify_disconnect(struct usb_phy *phy, in phy_8x16_notify_disconnect() 131 struct usb_phy *usb_phy = container_of(nb, struct usb_phy, vbus_nb); in phy_8x16_vbus_notify() local 132 struct phy_8x16 *qphy = container_of(usb_phy, struct phy_8x16, phy); in phy_8x16_vbus_notify() 142 static int phy_8x16_init(struct usb_phy *phy) in phy_8x16_init() 202 static void phy_8x16_shutdown(struct usb_phy *phy) in phy_8x16_shutdown() 263 struct usb_phy *phy; in phy_8x16_probe()
|
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 | 22 struct usb_phy phy; 59 static int isp1301_phy_init(struct usb_phy *phy) in isp1301_phy_init() 86 static int isp1301_phy_set_vbus(struct usb_phy *phy, int on) in isp1301_phy_set_vbus() 102 struct usb_phy *phy; in isp1301_probe()
|
D | phy-mxs-usb.c | 173 struct usb_phy phy; 337 static int mxs_phy_init(struct usb_phy *phy) in mxs_phy_init() 350 static void mxs_phy_shutdown(struct usb_phy *phy) in mxs_phy_shutdown() 396 static int mxs_phy_suspend(struct usb_phy *x, int suspend) in mxs_phy_suspend() 437 static int mxs_phy_set_wakeup(struct usb_phy *x, bool enabled) in mxs_phy_set_wakeup() 454 static int mxs_phy_on_connect(struct usb_phy *phy, in mxs_phy_on_connect() 467 static int mxs_phy_on_disconnect(struct usb_phy *phy, in mxs_phy_on_disconnect()
|
D | phy-gpio-vbus-usb.c | 35 struct usb_phy phy; 185 gpio_vbus = container_of(otg->usb_phy, struct gpio_vbus_data, phy); in gpio_vbus_set_peripheral() 217 static int gpio_vbus_set_power(struct usb_phy *phy, unsigned mA) in gpio_vbus_set_power() 229 static int gpio_vbus_set_suspend(struct usb_phy *phy, int suspend) in gpio_vbus_set_suspend() 276 gpio_vbus->phy.otg->usb_phy = &gpio_vbus->phy; in gpio_vbus_probe()
|
D | phy-generic.c | 60 static int nop_set_suspend(struct usb_phy *x, int suspend) in nop_set_suspend() 149 int usb_gen_phy_init(struct usb_phy *phy) in usb_gen_phy_init() 171 void usb_gen_phy_shutdown(struct usb_phy *phy) in usb_gen_phy_shutdown() 199 atomic_notifier_call_chain(&otg->usb_phy->notifier, in nop_set_peripheral() 303 nop->phy.otg->usb_phy = &nop->phy; in usb_phy_gen_create_phy()
|
D | phy-ulpi-viewport.c | 44 static int ulpi_viewport_read(struct usb_phy *otg, u32 reg) in ulpi_viewport_read() 62 static int ulpi_viewport_write(struct usb_phy *otg, u32 val, u32 reg) in ulpi_viewport_write()
|
D | phy-tahvo.c | 54 struct usb_phy phy; 182 static int tahvo_usb_set_suspend(struct usb_phy *dev, int suspend) in tahvo_usb_set_suspend() 202 struct tahvo_usb *tu = container_of(otg->usb_phy, struct tahvo_usb, in tahvo_usb_set_host() 232 struct tahvo_usb *tu = container_of(otg->usb_phy, struct tahvo_usb, in tahvo_usb_set_peripheral() 394 tu->phy.otg->usb_phy = &tu->phy; in tahvo_usb_probe()
|
D | otg-wakelock.c | 28 static struct usb_phy *otgwl_xceiv; 140 struct usb_phy *phy; in otg_wakelock_init()
|
D | phy-keystone.c | 53 static int keystone_usbphy_init(struct usb_phy *phy) in keystone_usbphy_init() 64 static void keystone_usbphy_shutdown(struct usb_phy *phy) in keystone_usbphy_shutdown()
|
/drivers/usb/renesas_usbhs/ |
D | rcar2.c | 35 struct usb_phy *usb_phy = usb_get_phy_dev(&pdev->dev, 0); in usbhs_rcar2_hardware_init() local 37 if (IS_ERR(usb_phy)) in usbhs_rcar2_hardware_init() 38 return PTR_ERR(usb_phy); in usbhs_rcar2_hardware_init() 40 priv->usb_phy = usb_phy; in usbhs_rcar2_hardware_init() 56 if (priv->usb_phy) { in usbhs_rcar2_hardware_exit() 57 usb_put_phy(priv->usb_phy); in usbhs_rcar2_hardware_exit() 58 priv->usb_phy = NULL; in usbhs_rcar2_hardware_exit() 83 if (priv->usb_phy) { in usbhs_rcar2_power_ctrl() 85 retval = usb_phy_init(priv->usb_phy); in usbhs_rcar2_power_ctrl() 88 retval = usb_phy_set_suspend(priv->usb_phy, 0); in usbhs_rcar2_power_ctrl() [all …]
|
/drivers/usb/host/ |
D | ohci-omap.c | 179 otg_start_hnp(hcd->usb_phy->otg); in start_hnp() 182 hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND; in start_hnp() 219 hcd->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2); in ohci_omap_reset() 220 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_omap_reset() 221 int status = otg_set_host(hcd->usb_phy->otg, in ohci_omap_reset() 224 hcd->usb_phy->label, status); in ohci_omap_reset() 226 usb_put_phy(hcd->usb_phy); in ohci_omap_reset() 398 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_hcd_omap_remove() 399 (void) otg_set_host(hcd->usb_phy->otg, 0); in ohci_hcd_omap_remove() 400 usb_put_phy(hcd->usb_phy); in ohci_hcd_omap_remove()
|
D | xhci-plat.c | 272 hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0); in xhci_plat_probe() 273 if (IS_ERR(hcd->usb_phy)) { in xhci_plat_probe() 274 ret = PTR_ERR(hcd->usb_phy); in xhci_plat_probe() 277 hcd->usb_phy = NULL; in xhci_plat_probe() 279 ret = usb_phy_init(hcd->usb_phy); in xhci_plat_probe() 311 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_probe() 341 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_remove()
|
D | ehci-msm.c | 77 struct usb_phy *phy; in ehci_msm_probe() 130 hcd->usb_phy = phy; in ehci_msm_probe() 168 if (hcd->usb_phy && hcd->usb_phy->otg) in ehci_msm_remove() 169 otg_set_host(hcd->usb_phy->otg, NULL); in ehci_msm_remove()
|
D | ehci-tegra.c | 219 tegra_usb_phy_postresume(hcd->usb_phy); in tegra_ehci_hub_control() 272 tegra_usb_phy_preresume(hcd->usb_phy); in tegra_ehci_hub_control() 417 struct usb_phy *u_phy; in tegra_ehci_probe() 473 hcd->usb_phy = u_phy; in tegra_ehci_probe() 490 err = usb_phy_init(hcd->usb_phy); in tegra_ehci_probe() 504 err = usb_phy_set_suspend(hcd->usb_phy, 0); in tegra_ehci_probe() 531 usb_phy_shutdown(hcd->usb_phy); in tegra_ehci_probe() 545 otg_set_host(hcd->usb_phy->otg, NULL); in tegra_ehci_remove() 547 usb_phy_shutdown(hcd->usb_phy); in tegra_ehci_remove()
|
D | ehci-fsl.c | 155 hcd->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2); in fsl_ehci_drv_probe() 157 hcd, ehci, hcd->usb_phy); in fsl_ehci_drv_probe() 159 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in fsl_ehci_drv_probe() 160 retval = otg_set_host(hcd->usb_phy->otg, in fsl_ehci_drv_probe() 163 usb_put_phy(hcd->usb_phy); in fsl_ehci_drv_probe() 664 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in fsl_ehci_drv_remove() 665 otg_set_host(hcd->usb_phy->otg, NULL); in fsl_ehci_drv_remove() 666 usb_put_phy(hcd->usb_phy); in fsl_ehci_drv_remove()
|
/drivers/usb/chipidea/ |
D | core.c | 353 ret = usb_phy_init(ci->usb_phy); in _ci_usb_phy_init() 373 usb_phy_shutdown(ci->usb_phy); in ci_usb_phy_exit() 938 } else if (ci->platdata->usb_phy) { in ci_hdrc_probe() 939 ci->usb_phy = ci->platdata->usb_phy; in ci_hdrc_probe() 941 ci->usb_phy = devm_usb_get_phy_by_phandle(dev->parent, "phys", in ci_hdrc_probe() 946 if (IS_ERR(ci->usb_phy) && in ci_hdrc_probe() 947 PTR_ERR(ci->usb_phy) != -EPROBE_DEFER) in ci_hdrc_probe() 948 ci->usb_phy = devm_usb_get_phy(dev->parent, in ci_hdrc_probe() 953 PTR_ERR(ci->usb_phy) == -ENXIO) { in ci_hdrc_probe() 958 if (IS_ERR(ci->phy) && IS_ERR(ci->usb_phy)) { in ci_hdrc_probe() [all …]
|
/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()
|
D | bq25890_charger.c | 94 struct usb_phy *usb_phy; member 873 bq->usb_phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); in bq25890_probe() 874 if (!IS_ERR_OR_NULL(bq->usb_phy)) { in bq25890_probe() 877 usb_register_notifier(bq->usb_phy, &bq->usb_nb); in bq25890_probe() 896 if (!IS_ERR_OR_NULL(bq->usb_phy)) in bq25890_probe() 897 usb_unregister_notifier(bq->usb_phy, &bq->usb_nb); in bq25890_probe() 908 if (!IS_ERR_OR_NULL(bq->usb_phy)) in bq25890_remove() 909 usb_unregister_notifier(bq->usb_phy, &bq->usb_nb); in bq25890_remove()
|
/drivers/usb/musb/ |
D | sunxi.c | 89 struct platform_device *usb_phy; member 90 struct usb_phy *xceiv; 779 glue->usb_phy = usb_phy_generic_register(); in sunxi_musb_probe() 780 if (IS_ERR(glue->usb_phy)) { in sunxi_musb_probe() 782 PTR_ERR(glue->usb_phy)); in sunxi_musb_probe() 783 return PTR_ERR(glue->usb_phy); in sunxi_musb_probe() 814 usb_phy_generic_unregister(glue->usb_phy); in sunxi_musb_probe() 821 struct platform_device *usb_phy = glue->usb_phy; in sunxi_musb_remove() local 824 usb_phy_generic_unregister(usb_phy); in sunxi_musb_remove()
|
/drivers/phy/ti/ |
D | phy-omap-usb2.c | 52 struct usb_phy *x = usb_get_phy(USB_PHY_TYPE_USB2); in omap_usb2_set_comparator() 65 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_set_vbus() 75 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_start_srp() 355 otg->usb_phy = &phy->phy; in omap_usb2_probe()
|