Home
last modified time | relevance | path

Searched refs:usb_phy (Results 1 - 25 of 187) sorted by relevance

12345678

/kernel/linux/linux-6.6/drivers/usb/phy/
H A Dphy.c33 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(const 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 in __device_to_usb_phy()
95 usb_phy_set_default_current(struct usb_phy *usb_phy) usb_phy_set_default_current() argument
125 struct usb_phy *usb_phy = container_of(work, struct usb_phy, chg_work); usb_phy_notify_charger_work() local
150 const struct usb_phy *usb_phy; usb_phy_uevent() local
177 __usb_phy_get_charger_type(struct usb_phy *usb_phy) __usb_phy_get_charger_type() argument
211 struct usb_phy *usb_phy = container_of(nb, struct usb_phy, type_nb); usb_phy_get_charger_type() local
231 usb_phy_set_charger_current(struct usb_phy *usb_phy, unsigned int mA) usb_phy_set_charger_current() argument
280 usb_phy_get_charger_current(struct usb_phy *usb_phy, unsigned int *min, unsigned int *max) usb_phy_get_charger_current() argument
317 usb_phy_set_charger_state(struct usb_phy *usb_phy, enum usb_charger_state state) usb_phy_set_charger_state() argument
356 usb_charger_init(struct usb_phy *usb_phy) usb_charger_init() argument
[all...]
H 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()
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()
[all...]
H 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);
H 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()
/kernel/linux/linux-5.10/drivers/usb/phy/
H A Dphy.c33 struct usb_phy *phy;
45 static struct usb_phy *__usb_find_phy(struct list_head *list, in __usb_find_phy()
48 struct usb_phy *phy = NULL; in __usb_find_phy()
60 static struct usb_phy *__of_usb_find_phy(struct device_node *node) in __of_usb_find_phy()
62 struct usb_phy *phy; in __of_usb_find_phy()
77 static void usb_phy_set_default_current(struct usb_phy *usb_phy) in usb_phy_set_default_current() argument
79 usb_phy->chg_cur.sdp_min = DEFAULT_SDP_CUR_MIN; in usb_phy_set_default_current()
80 usb_phy->chg_cur.sdp_max = DEFAULT_SDP_CUR_MAX; in usb_phy_set_default_current()
81 usb_phy in usb_phy_set_default_current()
107 struct usb_phy *usb_phy = container_of(work, struct usb_phy, chg_work); usb_phy_notify_charger_work() local
139 __usb_phy_get_charger_type(struct usb_phy *usb_phy) __usb_phy_get_charger_type() argument
173 struct usb_phy *usb_phy = container_of(nb, struct usb_phy, type_nb); usb_phy_get_charger_type() local
193 usb_phy_set_charger_current(struct usb_phy *usb_phy, unsigned int mA) usb_phy_set_charger_current() argument
242 usb_phy_get_charger_current(struct usb_phy *usb_phy, unsigned int *min, unsigned int *max) usb_phy_get_charger_current() argument
279 usb_phy_set_charger_state(struct usb_phy *usb_phy, enum usb_charger_state state) usb_phy_set_charger_state() argument
318 usb_charger_init(struct usb_phy *usb_phy) usb_charger_init() argument
[all...]
H 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()
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()
[all...]
H A Dphy-jz4770.c100 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 in jz4770_phy_probe()
[all...]
H 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);
/kernel/linux/linux-5.10/include/linux/usb/
H A Dphy.h66 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);
127 void (*shutdown)(struct usb_phy *x);
130 int (*set_vbus)(struct usb_phy *x, int on);
133 int (*set_power)(struct usb_phy *x,
137 int (*set_suspend)(struct usb_phy *x,
145 int (*set_wakeup)(struct usb_phy *
270 usb_phy_set_charger_current(struct usb_phy *usb_phy, unsigned int mA) usb_phy_set_charger_current() argument
275 usb_phy_get_charger_current(struct usb_phy *usb_phy, unsigned int *min, unsigned int *max) usb_phy_get_charger_current() argument
281 usb_phy_set_charger_state(struct usb_phy *usb_phy, enum usb_charger_state state) usb_phy_set_charger_state() argument
[all...]
H A Dtegra_usb_phy.h76 struct usb_phy *ulpi;
77 struct usb_phy u_phy;
85 void tegra_usb_phy_preresume(struct usb_phy *phy);
87 void tegra_usb_phy_postresume(struct usb_phy *phy);
89 void tegra_ehci_phy_restore_start(struct usb_phy *phy,
92 void tegra_ehci_phy_restore_end(struct usb_phy *phy);
H A Dulpi.h56 struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops,
59 struct usb_phy *devm_otg_ulpi_create(struct device *dev,
63 static inline struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops, in otg_ulpi_create()
69 static inline struct usb_phy *devm_otg_ulpi_create(struct device *dev, in devm_otg_ulpi_create()
/kernel/linux/linux-6.6/include/linux/usb/
H A Dphy.h66 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);
127 void (*shutdown)(struct usb_phy *x);
130 int (*set_vbus)(struct usb_phy *x, int on);
133 int (*set_power)(struct usb_phy *x,
137 int (*set_suspend)(struct usb_phy *x,
145 int (*set_wakeup)(struct usb_phy *
270 usb_phy_set_charger_current(struct usb_phy *usb_phy, unsigned int mA) usb_phy_set_charger_current() argument
275 usb_phy_get_charger_current(struct usb_phy *usb_phy, unsigned int *min, unsigned int *max) usb_phy_get_charger_current() argument
281 usb_phy_set_charger_state(struct usb_phy *usb_phy, enum usb_charger_state state) usb_phy_set_charger_state() argument
[all...]
H A Dtegra_usb_phy.h71 struct usb_phy *ulpi;
72 struct usb_phy u_phy;
82 void tegra_usb_phy_preresume(struct usb_phy *phy);
84 void tegra_usb_phy_postresume(struct usb_phy *phy);
86 void tegra_ehci_phy_restore_start(struct usb_phy *phy,
89 void tegra_ehci_phy_restore_end(struct usb_phy *phy);
H 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()
/kernel/linux/linux-6.6/drivers/phy/broadcom/
H A Dphy-brcm-usb-init-synopsys.c246 void __iomem *usb_phy = params->regs[BRCM_REGS_USB_PHY]; in usb_init_common_7211b0() local
260 brcm_usb_writel(0, usb_phy + USB_PHY_IDDQ); in usb_init_common_7211b0()
261 reg = brcm_usb_readl(usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0()
263 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0()
266 reg = brcm_usb_readl(usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0()
268 brcm_usb_writel(reg, usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0()
272 reg = brcm_usb_readl(usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0()
274 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0()
280 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_LDO_CTL); in usb_init_common_7211b0()
284 reg = brcm_usb_readl(usb_phy in usb_init_common_7211b0()
363 void __iomem *usb_phy = params->regs[BRCM_REGS_USB_PHY]; usb_uninit_common_7211b0() local
[all...]
/kernel/linux/linux-5.10/drivers/phy/broadcom/
H A Dphy-brcm-usb-init-synopsys.c228 void __iomem *usb_phy = params->regs[BRCM_REGS_USB_PHY]; in usb_init_common_7211b0() local
242 brcm_usb_writel(0, usb_phy + USB_PHY_IDDQ); in usb_init_common_7211b0()
243 reg = brcm_usb_readl(usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0()
245 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0()
248 reg = brcm_usb_readl(usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0()
250 brcm_usb_writel(reg, usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0()
257 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_LDO_CTL); in usb_init_common_7211b0()
261 reg = brcm_usb_readl(usb_phy + USB_PHY_STATUS); in usb_init_common_7211b0()
268 reg = brcm_usb_readl(usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0()
271 brcm_usb_writel(reg, usb_phy in usb_init_common_7211b0()
318 void __iomem *usb_phy = params->regs[BRCM_REGS_USB_PHY]; usb_uninit_common_7211b0() local
[all...]
/kernel/linux/linux-6.6/drivers/usb/host/
H A Dxhci-plat.c266 hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0); in xhci_plat_probe()
267 if (IS_ERR(hcd->usb_phy)) { in xhci_plat_probe()
268 ret = PTR_ERR(hcd->usb_phy); in xhci_plat_probe()
271 hcd->usb_phy = NULL; in xhci_plat_probe()
273 ret = usb_phy_init(hcd->usb_phy); in xhci_plat_probe()
300 xhci->shared_hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, in xhci_plat_probe()
302 if (IS_ERR(xhci->shared_hcd->usb_phy)) { in xhci_plat_probe()
303 xhci->shared_hcd->usb_phy = NULL; in xhci_plat_probe()
305 ret = usb_phy_init(xhci->shared_hcd->usb_phy); in xhci_plat_probe()
344 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_probe()
[all...]
H 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()
[all...]
/kernel/linux/linux-5.10/drivers/usb/host/
H A Dohci-omap.c171 otg_start_hnp(hcd->usb_phy->otg); in start_hnp()
174 hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND; in start_hnp()
212 hcd->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2); in ohci_omap_reset()
213 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_omap_reset()
214 int status = otg_set_host(hcd->usb_phy->otg, in ohci_omap_reset()
217 hcd->usb_phy->label, status); in ohci_omap_reset()
219 usb_put_phy(hcd->usb_phy); in ohci_omap_reset()
417 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_hcd_omap_remove()
418 (void) otg_set_host(hcd->usb_phy->otg, 0); in ohci_hcd_omap_remove()
419 usb_put_phy(hcd->usb_phy); in ohci_hcd_omap_remove()
[all...]
/kernel/linux/linux-6.6/drivers/usb/musb/
H A Dmediatek.c46 struct platform_device *usb_phy; member
48 struct usb_phy *xceiv;
462 glue->usb_phy = usb_phy_generic_register(); in mtk_musb_probe()
463 if (IS_ERR(glue->usb_phy)) { in mtk_musb_probe()
465 PTR_ERR(glue->usb_phy)); in mtk_musb_probe()
466 return PTR_ERR(glue->usb_phy); in mtk_musb_probe()
508 usb_phy_generic_unregister(glue->usb_phy); in mtk_musb_probe()
515 struct platform_device *usb_phy = glue->usb_phy; in mtk_musb_remove() local
518 usb_phy_generic_unregister(usb_phy); in mtk_musb_remove()
[all...]
/kernel/linux/linux-6.6/drivers/usb/chipidea/
H A Dci.h202 * @usb_phy: pointer to USB PHY, if any and if using the USB PHY framework
256 /* old usb_phy interface */
257 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()
H A Dcore.c312 * _ci_usb_phy_init: initialize phy taking in account both phy and usb_phy
333 ret = usb_phy_init(ci->usb_phy); in _ci_usb_phy_init()
340 * ci_usb_phy_exit: deinitialize phy taking in account both phy and usb_phy
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()
1108 ci->usb_phy = devm_usb_get_phy_by_phandle(dev->parent, in ci_hdrc_probe()
1111 if (PTR_ERR(ci->usb_phy) == -EPROBE_DEFER) { in ci_hdrc_probe()
1114 } else if (IS_ERR(ci->usb_phy)) { in ci_hdrc_probe()
[all...]
H 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_ph in imx7d_charger_detection() local
1136 struct usb_phy *usb_phy; imx_usbmisc_charger_detection() local
[all...]
/kernel/linux/linux-5.10/drivers/usb/chipidea/
H A Dusbmisc_imx.c687 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_ph in imx7d_charger_detection() local
1070 struct usb_phy *usb_phy; imx_usbmisc_charger_detection() local
[all...]
H A Dcore.c305 * _ci_usb_phy_init: initialize phy taking in account both phy and usb_phy
326 ret = usb_phy_init(ci->usb_phy); in _ci_usb_phy_init()
333 * _ci_usb_phy_exit: deinitialize phy taking in account both phy and usb_phy
346 usb_phy_shutdown(ci->usb_phy); in ci_usb_phy_exit()
1051 } else if (ci->platdata->usb_phy) { in ci_hdrc_probe()
1052 ci->usb_phy = ci->platdata->usb_phy; in ci_hdrc_probe()
1066 ci->usb_phy = devm_usb_get_phy_by_phandle(dev->parent, in ci_hdrc_probe()
1069 if (PTR_ERR(ci->usb_phy) == -EPROBE_DEFER) { in ci_hdrc_probe()
1072 } else if (IS_ERR(ci->usb_phy)) { in ci_hdrc_probe()
[all...]

Completed in 23 milliseconds

12345678