| /Linux-v5.4/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-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-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-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 | 200 struct usb_phy phy; 422 static int mxs_phy_init(struct usb_phy *phy) in mxs_phy_init() 435 static void mxs_phy_shutdown(struct usb_phy *phy) in mxs_phy_shutdown() 484 static int mxs_phy_suspend(struct usb_phy *x, int suspend) in mxs_phy_suspend() 525 static int mxs_phy_set_wakeup(struct usb_phy *x, bool enabled) in mxs_phy_set_wakeup() 542 static int mxs_phy_on_connect(struct usb_phy *phy, in mxs_phy_on_connect() 555 static int mxs_phy_on_disconnect(struct usb_phy *phy, in mxs_phy_on_disconnect() 677 static enum usb_charger_type mxs_phy_charger_detect(struct usb_phy *phy) in mxs_phy_charger_detect()
|
| /Linux-v5.4/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-v5.4/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 | 296 hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0); in xhci_plat_probe() 297 if (IS_ERR(hcd->usb_phy)) { in xhci_plat_probe() 298 ret = PTR_ERR(hcd->usb_phy); in xhci_plat_probe() 301 hcd->usb_phy = NULL; in xhci_plat_probe() 303 ret = usb_phy_init(hcd->usb_phy); in xhci_plat_probe() 337 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_probe() 370 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 | 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() 698 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in fsl_ehci_drv_remove() 699 otg_set_host(hcd->usb_phy->otg, NULL); in fsl_ehci_drv_remove() 700 usb_put_phy(hcd->usb_phy); in fsl_ehci_drv_remove()
|
| /Linux-v5.4/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() 704 if (wm831x_power->usb_phy) { in wm831x_power_remove() 705 usb_unregister_notifier(wm831x_power->usb_phy, in wm831x_power_remove()
|
| /Linux-v5.4/drivers/usb/chipidea/ |
| D | core.c | 351 ret = usb_phy_init(ci->usb_phy); in _ci_usb_phy_init() 371 usb_phy_shutdown(ci->usb_phy); in ci_usb_phy_exit() 1020 } else if (ci->platdata->usb_phy) { in ci_hdrc_probe() 1021 ci->usb_phy = ci->platdata->usb_phy; in ci_hdrc_probe() 1035 ci->usb_phy = devm_usb_get_phy_by_phandle(dev->parent, in ci_hdrc_probe() 1038 if (PTR_ERR(ci->usb_phy) == -EPROBE_DEFER) { in ci_hdrc_probe() 1041 } else if (IS_ERR(ci->usb_phy)) { in ci_hdrc_probe() 1042 ci->usb_phy = NULL; in ci_hdrc_probe() 1047 if (!ci->phy && !ci->usb_phy) { in ci_hdrc_probe() 1048 ci->usb_phy = devm_usb_get_phy(dev->parent, in ci_hdrc_probe() [all …]
|
| /Linux-v5.4/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>;
|
| /Linux-v5.4/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-v5.4/Documentation/devicetree/bindings/usb/ |
| D | ingenic,jz4740-musb.txt | 15 usb_phy: usb-phy@0 { 31 phys = <&usb_phy>;
|
| /Linux-v5.4/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()
|