/drivers/usb/phy/ |
D | phy.c | 33 struct usb_phy *phy; 51 static struct usb_phy *__usb_find_phy(struct list_head *list, in __usb_find_phy() 54 struct usb_phy *phy = NULL; in __usb_find_phy() 66 static struct usb_phy *__of_usb_find_phy(struct device_node *node) in __of_usb_find_phy() 68 struct usb_phy *phy; in __of_usb_find_phy() 83 static struct usb_phy *__device_to_usb_phy(struct device *dev) in __device_to_usb_phy() 85 struct usb_phy *usb_phy; in __device_to_usb_phy() local 87 list_for_each_entry(usb_phy, &phy_list, head) { in __device_to_usb_phy() 88 if (usb_phy->dev == dev) in __device_to_usb_phy() 89 return usb_phy; in __device_to_usb_phy() [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 static void otg_ulpi_init(struct usb_phy *phy, struct usb_otg *otg, in otg_ulpi_init() 253 otg->usb_phy = phy; in otg_ulpi_init() [all …]
|
D | phy-jz4770.c | 100 void (*usb_phy_init)(struct usb_phy *phy); 106 struct usb_phy phy; 119 static inline struct jz4770_phy *phy_to_jz4770_phy(struct usb_phy *phy) in phy_to_jz4770_phy() 157 static int ingenic_usb_phy_init(struct usb_phy *phy) in ingenic_usb_phy_init() 186 static void ingenic_usb_phy_shutdown(struct usb_phy *phy) in ingenic_usb_phy_shutdown() 199 static void jz4770_usb_phy_init(struct usb_phy *phy) in jz4770_usb_phy_init() 211 static void jz4780_usb_phy_init(struct usb_phy *phy) in jz4780_usb_phy_init() 224 static void x1000_usb_phy_init(struct usb_phy *phy) in x1000_usb_phy_init() 238 static void x1830_usb_phy_init(struct usb_phy *phy) in x1830_usb_phy_init() 313 priv->otg.usb_phy = &priv->phy; in jz4770_phy_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 | 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-gpio-vbus-usb.c | 33 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()
|
D | phy-generic.c | 46 static int nop_set_suspend(struct usb_phy *x, int suspend) in nop_set_suspend() 135 int usb_gen_phy_init(struct usb_phy *phy) in usb_gen_phy_init() 157 void usb_gen_phy_shutdown(struct usb_phy *phy) in usb_gen_phy_shutdown() 185 atomic_notifier_call_chain(&otg->usb_phy->notifier, in nop_set_peripheral() 282 nop->phy.otg->usb_phy = &nop->phy; in usb_phy_gen_create_phy()
|
D | phy-mxs-usb.c | 200 struct usb_phy phy; 415 static int mxs_phy_init(struct usb_phy *phy) in mxs_phy_init() 428 static void mxs_phy_shutdown(struct usb_phy *phy) in mxs_phy_shutdown() 477 static int mxs_phy_suspend(struct usb_phy *x, int suspend) in mxs_phy_suspend() 518 static int mxs_phy_set_wakeup(struct usb_phy *x, bool enabled) in mxs_phy_set_wakeup() 535 static int mxs_phy_on_connect(struct usb_phy *phy, in mxs_phy_on_connect() 548 static int mxs_phy_on_disconnect(struct usb_phy *phy, in mxs_phy_on_disconnect() 670 static enum usb_charger_type mxs_phy_charger_detect(struct usb_phy *phy) in mxs_phy_charger_detect()
|
/drivers/phy/broadcom/ |
D | phy-brcm-usb-init-synopsys.c | 237 void __iomem *usb_phy = params->regs[BRCM_REGS_USB_PHY]; in usb_init_common_7211b0() local 251 brcm_usb_writel(0, usb_phy + USB_PHY_IDDQ); in usb_init_common_7211b0() 252 reg = brcm_usb_readl(usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0() 254 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0() 257 reg = brcm_usb_readl(usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0() 259 brcm_usb_writel(reg, usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0() 266 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_LDO_CTL); in usb_init_common_7211b0() 270 reg = brcm_usb_readl(usb_phy + USB_PHY_STATUS); in usb_init_common_7211b0() 277 reg = brcm_usb_readl(usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0() 280 brcm_usb_writel(reg, usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0() [all …]
|
/drivers/usb/host/ |
D | ohci-omap.c | 79 otg_start_hnp(hcd->usb_phy->otg); in start_hnp() 82 hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND; in start_hnp() 120 hcd->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2); in ohci_omap_reset() 121 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_omap_reset() 122 int status = otg_set_host(hcd->usb_phy->otg, in ohci_omap_reset() 125 hcd->usb_phy->label, status); in ohci_omap_reset() 127 usb_put_phy(hcd->usb_phy); in ohci_omap_reset() 342 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_hcd_omap_remove() 343 (void) otg_set_host(hcd->usb_phy->otg, 0); in ohci_hcd_omap_remove() 344 usb_put_phy(hcd->usb_phy); in ohci_hcd_omap_remove()
|
D | xhci-plat.c | 352 hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0); in xhci_plat_probe() 353 if (IS_ERR(hcd->usb_phy)) { in xhci_plat_probe() 354 ret = PTR_ERR(hcd->usb_phy); in xhci_plat_probe() 357 hcd->usb_phy = NULL; in xhci_plat_probe() 359 ret = usb_phy_init(hcd->usb_phy); in xhci_plat_probe() 421 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_probe() 455 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_remove()
|
D | ehci-fsl.c | 150 hcd->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2); in fsl_ehci_drv_probe() 152 hcd, ehci, hcd->usb_phy); in fsl_ehci_drv_probe() 154 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in fsl_ehci_drv_probe() 155 retval = otg_set_host(hcd->usb_phy->otg, in fsl_ehci_drv_probe() 158 usb_put_phy(hcd->usb_phy); in fsl_ehci_drv_probe() 692 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in fsl_ehci_drv_remove() 693 otg_set_host(hcd->usb_phy->otg, NULL); in fsl_ehci_drv_remove() 694 usb_put_phy(hcd->usb_phy); in fsl_ehci_drv_remove()
|
/drivers/usb/chipidea/ |
D | usbmisc_imx.c | 687 struct usb_phy *usb_phy = data->usb_phy; in imx7d_charger_secondary_detection() local 721 usb_phy->chg_type = DCP_TYPE; in imx7d_charger_secondary_detection() 724 usb_phy->chg_type = CDP_TYPE; in imx7d_charger_secondary_detection() 801 struct usb_phy *usb_phy = data->usb_phy; in imx7d_charger_primary_detection() local 821 usb_phy->chg_type = SDP_TYPE; in imx7d_charger_primary_detection() 838 struct usb_phy *usb_phy = data->usb_phy; in imx7d_charger_detection() local 870 if (!ret && usb_phy->chg_type != SDP_TYPE) in imx7d_charger_detection() 1070 struct usb_phy *usb_phy; in imx_usbmisc_charger_detection() local 1077 usb_phy = data->usb_phy; in imx_usbmisc_charger_detection() 1087 usb_phy->chg_state = USB_CHARGER_ABSENT; in imx_usbmisc_charger_detection() [all …]
|
D | core.c | 333 ret = usb_phy_init(ci->usb_phy); in _ci_usb_phy_init() 353 usb_phy_shutdown(ci->usb_phy); in ci_usb_phy_exit() 1064 } else if (ci->platdata->usb_phy) { in ci_hdrc_probe() 1065 ci->usb_phy = ci->platdata->usb_phy; in ci_hdrc_probe() 1079 ci->usb_phy = devm_usb_get_phy_by_phandle(dev->parent, in ci_hdrc_probe() 1082 if (PTR_ERR(ci->usb_phy) == -EPROBE_DEFER) { in ci_hdrc_probe() 1085 } else if (IS_ERR(ci->usb_phy)) { in ci_hdrc_probe() 1086 ci->usb_phy = NULL; in ci_hdrc_probe() 1091 if (!ci->phy && !ci->usb_phy) { in ci_hdrc_probe() 1092 ci->usb_phy = devm_usb_get_phy(dev->parent, in ci_hdrc_probe() [all …]
|
D | ci_hdrc_imx.h | 27 struct usb_phy *usb_phy; member
|
D | host.c | 67 usb_phy_vbus_on(ci->usb_phy); in ehci_ci_portpower() 69 usb_phy_vbus_off(ci->usb_phy); in ehci_ci_portpower() 142 if (ci->phy || ci->usb_phy) { in host_start() 144 if (ci->usb_phy) in host_start() 145 hcd->usb_phy = ci->usb_phy; in host_start()
|
D | ci_hdrc_imx.c | 95 struct usb_phy *phy; 317 if (ci->usb_phy) in ci_hdrc_imx_notify_event() 318 schedule_work(&ci->usb_phy->chg_work); in ci_hdrc_imx_notify_event() 437 pdata.usb_phy = data->phy; in ci_hdrc_imx_probe() 439 data->usbmisc_data->usb_phy = data->phy; in ci_hdrc_imx_probe() 442 of_device_is_compatible(np, "fsl,imx51-usb")) && pdata.usb_phy && in ci_hdrc_imx_probe() 446 usb_phy_init(pdata.usb_phy); in ci_hdrc_imx_probe()
|
/drivers/power/supply/ |
D | sc2731_charger.c | 57 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()
|
D | da9150-charger.c | 33 struct usb_phy *usb_phy; member 586 charger->usb_phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); in da9150_charger_probe() 587 if (!IS_ERR_OR_NULL(charger->usb_phy)) { in da9150_charger_probe() 590 usb_register_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_probe() 624 if (!IS_ERR_OR_NULL(charger->usb_phy)) in da9150_charger_probe() 625 usb_unregister_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_probe() 663 if (!IS_ERR_OR_NULL(charger->usb_phy)) in da9150_charger_remove() 664 usb_unregister_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_remove()
|
D | wm831x_power.c | 32 struct usb_phy *usb_phy; member 647 power->usb_phy = devm_usb_get_phy_by_phandle(&pdev->dev, "phys", 0); in wm831x_power_probe() 648 ret = PTR_ERR_OR_ZERO(power->usb_phy); in wm831x_power_probe() 653 ret = usb_register_notifier(power->usb_phy, &power->usb_notify); in wm831x_power_probe() 663 power->usb_phy = NULL; in wm831x_power_probe() 703 if (wm831x_power->usb_phy) { in wm831x_power_remove() 704 usb_unregister_notifier(wm831x_power->usb_phy, in wm831x_power_remove()
|
/drivers/phy/qualcomm/ |
D | phy-qcom-ipq806x-usb.c | 118 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()
|
/drivers/usb/musb/ |
D | mediatek.c | 45 struct platform_device *usb_phy; member 47 struct usb_phy *xceiv; 461 glue->usb_phy = usb_phy_generic_register(); in mtk_musb_probe() 462 if (IS_ERR(glue->usb_phy)) { in mtk_musb_probe() 464 PTR_ERR(glue->usb_phy)); in mtk_musb_probe() 465 return PTR_ERR(glue->usb_phy); in mtk_musb_probe() 507 usb_phy_generic_unregister(glue->usb_phy); in mtk_musb_probe() 514 struct platform_device *usb_phy = glue->usb_phy; in mtk_musb_remove() local 517 usb_phy_generic_unregister(usb_phy); in mtk_musb_remove()
|
D | sunxi.c | 80 struct platform_device *usb_phy; member 81 struct usb_phy *xceiv; 761 glue->usb_phy = usb_phy_generic_register(); in sunxi_musb_probe() 762 if (IS_ERR(glue->usb_phy)) { in sunxi_musb_probe() 764 PTR_ERR(glue->usb_phy)); in sunxi_musb_probe() 765 return PTR_ERR(glue->usb_phy); in sunxi_musb_probe() 798 usb_phy_generic_unregister(glue->usb_phy); in sunxi_musb_probe() 805 struct platform_device *usb_phy = glue->usb_phy; in sunxi_musb_remove() local 808 usb_phy_generic_unregister(usb_phy); in sunxi_musb_remove()
|
/drivers/phy/tegra/ |
D | xusb.c | 564 usb_remove_phy(&port->usb_phy); in tegra_xusb_port_unregister() 565 port->usb_phy.dev->driver = NULL; in tegra_xusb_port_unregister() 608 usb_phy_set_event(&port->usb_phy, to_usb_phy_event(role)); in tegra_xusb_usb_phy_work() 613 atomic_notifier_call_chain(&port->usb_phy.notifier, 0, &port->usb_phy); in tegra_xusb_usb_phy_work() 631 struct tegra_xusb_port *port = container_of(otg->usb_phy, in tegra_xusb_set_peripheral() 633 usb_phy); in tegra_xusb_set_peripheral() 643 struct tegra_xusb_port *port = container_of(otg->usb_phy, in tegra_xusb_set_host() 645 usb_phy); in tegra_xusb_set_host() 690 port->usb_phy.otg = devm_kzalloc(&port->dev, sizeof(struct usb_otg), in tegra_xusb_setup_usb_role_switch() 692 if (!port->usb_phy.otg) in tegra_xusb_setup_usb_role_switch() [all …]
|
/drivers/phy/ |
D | phy-lgm-usb.c | 44 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()
|