Symbol: usb_phy
drivers/clk/meson/a1-peripherals.c
1884
static A1_PCLK(usb_phy, SYS_CLK_EN0, 27, CLK_IGNORE_UNUSED);
drivers/clk/mxs/clk-imx23.c
153
clks[usb_phy] = clk_register_gate(NULL, "usb_phy", "pll", 0, PLLCTRL0, 18, 0, &mxs_lock);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
257
void __iomem *usb_phy = params->regs[BRCM_REGS_USB_PHY];
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
271
brcm_usb_writel(0, usb_phy + USB_PHY_IDDQ);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
272
reg = brcm_usb_readl(usb_phy + USB_PHY_PLL_CTL);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
274
brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_CTL);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
277
reg = brcm_usb_readl(usb_phy + USB_PHY_UTMI_CTL_1);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
279
brcm_usb_writel(reg, usb_phy + USB_PHY_UTMI_CTL_1);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
283
reg = brcm_usb_readl(usb_phy + USB_PHY_PLL_CTL);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
285
brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_CTL);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
291
brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_LDO_CTL);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
295
reg = brcm_usb_readl(usb_phy + USB_PHY_STATUS);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
302
reg = brcm_usb_readl(usb_phy + USB_PHY_UTMI_CTL_1);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
305
brcm_usb_writel(reg, usb_phy + USB_PHY_UTMI_CTL_1);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
325
reg = brcm_usb_readl(usb_phy + USB_PHY_UTMI_CTL_1);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
327
brcm_usb_writel(reg, usb_phy + USB_PHY_UTMI_CTL_1);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
420
void __iomem *usb_phy = params->regs[BRCM_REGS_USB_PHY];
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
430
brcm_usb_writel(0, usb_phy + USB_PHY_PLL_LDO_CTL);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
431
reg = brcm_usb_readl(usb_phy + USB_PHY_PLL_CTL);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
433
brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_CTL);
drivers/phy/broadcom/phy-brcm-usb-init-synopsys.c
435
usb_phy + USB_PHY_IDDQ);
drivers/phy/motorola/phy-cpcap-usb.c
116
struct usb_phy phy;
drivers/phy/motorola/phy-cpcap-usb.c
635
otg->usb_phy = &ddata->phy;
drivers/phy/phy-lgm-usb.c
118
static int phy_set_vbus(struct usb_phy *phy, int on)
drivers/phy/phy-lgm-usb.c
191
struct usb_phy *phy;
drivers/phy/phy-lgm-usb.c
44
struct usb_phy phy;
drivers/phy/phy-lgm-usb.c
68
static int phy_init(struct usb_phy *phy)
drivers/phy/phy-lgm-usb.c
99
static void phy_shutdown(struct usb_phy *phy)
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c
142
static inline void usb_phy_write_readback(struct usb_phy *phy_dwc3,
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c
175
static int usb_ss_write_phycreg(struct usb_phy *phy_dwc3,
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c
213
static int usb_ss_read_phycreg(struct usb_phy *phy_dwc3,
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c
254
struct usb_phy *phy_dwc3 = phy_get_drvdata(phy);
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c
293
struct usb_phy *phy_dwc3 = phy_get_drvdata(phy);
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c
303
struct usb_phy *phy_dwc3 = phy_get_drvdata(phy);
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c
434
struct usb_phy *phy_dwc3 = phy_get_drvdata(phy);
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c
486
struct usb_phy *phy_dwc3;
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
2299
struct phy *usb_phy;
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
4438
qmp_combo_usb_power_off(qmp->usb_phy);
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
4443
qmp_combo_usb_power_on(qmp->usb_phy);
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
4505
qmp_combo_usb_power_off(qmp->usb_phy);
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
4521
qmp_combo_usb_power_on(qmp->usb_phy);
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
4758
return qmp->usb_phy;
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
4950
qmp->usb_phy = devm_phy_create(dev, usb_np, &qmp_combo_usb_phy_ops);
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
4951
if (IS_ERR(qmp->usb_phy)) {
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
4952
ret = PTR_ERR(qmp->usb_phy);
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
4957
phy_set_drvdata(qmp->usb_phy, qmp);
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
1715
qmp_usbc_usb_power_off(qmp->usb_phy);
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
1716
qmp_usbc_com_exit(qmp->usb_phy);
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
1718
qmp_usbc_com_init(qmp->usb_phy);
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
1720
qmp_usbc_usb_power_on(qmp->usb_phy);
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
1903
return qmp->usb_phy;
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
1907
return qmp->usb_phy;
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
1976
qmp->usb_phy = devm_phy_create(dev, np, &qmp_usbc_usb_phy_ops);
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
1977
if (IS_ERR(qmp->usb_phy)) {
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
1978
ret = PTR_ERR(qmp->usb_phy);
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
1983
phy_set_drvdata(qmp->usb_phy, qmp);
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c
464
struct phy *usb_phy;
drivers/phy/tegra/xusb.c
570
usb_remove_phy(&port->usb_phy);
drivers/phy/tegra/xusb.c
571
port->usb_phy.dev->driver = NULL;
drivers/phy/tegra/xusb.c
614
usb_phy_set_event(&port->usb_phy, to_usb_phy_event(role));
drivers/phy/tegra/xusb.c
619
atomic_notifier_call_chain(&port->usb_phy.notifier, 0, &port->usb_phy);
drivers/phy/tegra/xusb.c
637
struct tegra_xusb_port *port = container_of(otg->usb_phy,
drivers/phy/tegra/xusb.c
639
usb_phy);
drivers/phy/tegra/xusb.c
649
struct tegra_xusb_port *port = container_of(otg->usb_phy,
drivers/phy/tegra/xusb.c
651
usb_phy);
drivers/phy/tegra/xusb.c
696
port->usb_phy.otg = devm_kzalloc(&port->dev, sizeof(struct usb_otg),
drivers/phy/tegra/xusb.c
698
if (!port->usb_phy.otg)
drivers/phy/tegra/xusb.c
709
port->usb_phy.dev = &lane->pad->lanes[port->index]->dev;
drivers/phy/tegra/xusb.c
710
port->usb_phy.dev->driver = port->dev.driver;
drivers/phy/tegra/xusb.c
711
port->usb_phy.otg->usb_phy = &port->usb_phy;
drivers/phy/tegra/xusb.c
712
port->usb_phy.otg->set_peripheral = tegra_xusb_set_peripheral;
drivers/phy/tegra/xusb.c
713
port->usb_phy.otg->set_host = tegra_xusb_set_host;
drivers/phy/tegra/xusb.c
715
err = usb_add_phy_dev(&port->usb_phy);
drivers/phy/tegra/xusb.h
286
struct usb_phy usb_phy;
drivers/phy/ti/phy-dm816x-usb.c
214
otg->usb_phy = &phy->phy;
drivers/phy/ti/phy-dm816x-usb.c
47
struct usb_phy phy;
drivers/phy/ti/phy-omap-usb2.c
105
struct usb_phy *x = usb_get_phy(USB_PHY_TYPE_USB2);
drivers/phy/ti/phy-omap-usb2.c
118
struct omap_usb *phy = phy_to_omapusb(otg->usb_phy);
drivers/phy/ti/phy-omap-usb2.c
128
struct omap_usb *phy = phy_to_omapusb(otg->usb_phy);
drivers/phy/ti/phy-omap-usb2.c
491
otg->usb_phy = &phy->phy;
drivers/phy/ti/phy-omap-usb2.c
55
struct usb_phy phy;
drivers/phy/ti/phy-twl4030-usb.c
147
struct usb_phy phy;
drivers/phy/ti/phy-twl4030-usb.c
722
otg->usb_phy = &twl->phy;
drivers/pinctrl/qcom/pinctrl-kaanapali.c
1490
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-kaanapali.c
1566
[59] = PINGROUP(59, qup1_se6, usb_phy, vsense_trigger_mirnat, _, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-kaanapali.c
1567
[60] = PINGROUP(60, qup1_se7, usb_phy, ibi_i3c, _, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-msm8998.c
1329
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-msm8998.c
1380
PINGROUP(38, WEST, usb_phy, _, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-qcm2290.c
1051
[89] = PINGROUP(89, usb_phy, atest, _, pwm_7, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-qcm2290.c
949
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-qdu1000.c
1013
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-qdu1000.c
1147
[91] = PINGROUP(91, usb_phy, phase_flag, cmu_rng,
drivers/pinctrl/qcom/pinctrl-sc7180.c
1089
[104] = PINGROUP(104, WEST, usb_phy, _, qdss, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sc7180.c
967
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sc7280.c
1259
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sc7280.c
1411
[140] = PINGROUP(140, usb_phy, pll_clk, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sdm670.c
1110
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sdm670.c
1167
PINGROUP(38, NORTH, usb_phy, _, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sdm845.c
1101
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sdm845.c
1154
PINGROUP(38, NORTH, usb_phy, _, _, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm6115.c
734
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sm6115.c
836
[89] = PINGROUP(89, WEST, usb_phy, atest, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm6125.c
1047
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sm6125.c
1183
[102] = PINGROUP(102, SOUTH, usb_phy, _, qdss, atest_char, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm6350.c
1139
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sm6350.c
1285
[124] = PINGROUP(124, usb_phy, _, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm6375.c
1289
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sm6375.c
1436
[124] = PINGROUP(124, usb_phy, _, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm7150.c
1064
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sm7150.c
1186
[104] = PINGROUP(104, WEST, usb_phy, _, qdss, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm8150.c
1297
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sm8150.c
1352
[38] = PINGROUP(38, SOUTH, usb_phy, _, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm8250.c
1124
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sm8250.c
1199
[65] = PINGROUP(65, SOUTH, usb_phy, pll_clk, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm8350.c
1377
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sm8350.c
1470
[81] = PINGROUP(81, usb_phy, pll_bist, pll_clk, atest_usb, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm8450.c
1404
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sm8450.c
1507
[91] = PINGROUP(91, usb_phy, tsense_pwm1, tsense_pwm2, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm8550.c
1485
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sm8550.c
1509
[11] = PINGROUP(11, i2chub0_se7, usb_phy, qdss_cti, phase_flag, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm8550.c
1546
[48] = PINGROUP(48, usb_phy, qup1_se6, qspi2, sdc42, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm8650.c
1465
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sm8650.c
1507
[29] = PINGROUP(29, qup2_se7, usb_phy, _, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm8650.c
1532
[54] = PINGROUP(54, qup1_se5, usb_phy, _, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm8750.c
1423
MSM_PIN_FUNCTION(usb_phy),
drivers/pinctrl/qcom/pinctrl-sm8750.c
1498
[59] = PINGROUP(59, qup1_se6, usb_phy, vsense_trigger_mirnat, _, _, _, _, _, _, _, _),
drivers/pinctrl/qcom/pinctrl-sm8750.c
1500
[61] = PINGROUP(61, qup1_se7, usb_phy, aoss_cti, sdc43, _, _, _, _, _, _, _),
drivers/power/supply/ab8500_charger.c
320
struct usb_phy *usb_phy;
drivers/power/supply/ab8500_charger.c
3660
di->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2);
drivers/power/supply/ab8500_charger.c
3661
if (IS_ERR_OR_NULL(di->usb_phy)) {
drivers/power/supply/ab8500_charger.c
3667
ret = usb_register_notifier(di->usb_phy, &di->nb);
drivers/power/supply/ab8500_charger.c
3684
usb_unregister_notifier(di->usb_phy, &di->nb);
drivers/power/supply/ab8500_charger.c
3686
usb_put_phy(di->usb_phy);
drivers/power/supply/ab8500_charger.c
3698
usb_unregister_notifier(di->usb_phy, &di->nb);
drivers/power/supply/ab8500_charger.c
3700
usb_put_phy(di->usb_phy);
drivers/power/supply/bq256xx_charger.c
237
struct usb_phy *usb2_phy;
drivers/power/supply/bq256xx_charger.c
238
struct usb_phy *usb3_phy;
drivers/power/supply/bq25890_charger.c
116
struct usb_phy *usb_phy;
drivers/power/supply/bq25890_charger.c
1504
bq->usb_phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2);
drivers/power/supply/bq25890_charger.c
1529
if (!IS_ERR_OR_NULL(bq->usb_phy)) {
drivers/power/supply/bq25890_charger.c
1532
usb_register_notifier(bq->usb_phy, &bq->usb_nb);
drivers/power/supply/bq25890_charger.c
1542
if (!IS_ERR_OR_NULL(bq->usb_phy)) {
drivers/power/supply/bq25890_charger.c
1543
usb_unregister_notifier(bq->usb_phy, &bq->usb_nb);
drivers/power/supply/bq25890_charger.c
1562
if (!IS_ERR_OR_NULL(bq->usb_phy))
drivers/power/supply/da9150-charger.c
31
struct usb_phy *usb_phy;
drivers/power/supply/da9150-charger.c
567
charger->usb_phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2);
drivers/power/supply/da9150-charger.c
568
if (!IS_ERR_OR_NULL(charger->usb_phy)) {
drivers/power/supply/da9150-charger.c
571
usb_register_notifier(charger->usb_phy, &charger->otg_nb);
drivers/power/supply/da9150-charger.c
605
if (!IS_ERR_OR_NULL(charger->usb_phy))
drivers/power/supply/da9150-charger.c
606
usb_unregister_notifier(charger->usb_phy, &charger->otg_nb);
drivers/power/supply/da9150-charger.c
629
if (!IS_ERR_OR_NULL(charger->usb_phy))
drivers/power/supply/da9150-charger.c
630
usb_unregister_notifier(charger->usb_phy, &charger->otg_nb);
drivers/power/supply/isp1704_charger.c
50
struct usb_phy *phy;
drivers/power/supply/rt9455_charger.c
1638
info->usb_phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2);
drivers/power/supply/rt9455_charger.c
1639
if (IS_ERR(info->usb_phy)) {
drivers/power/supply/rt9455_charger.c
1643
ret = usb_register_notifier(info->usb_phy, &info->nb);
drivers/power/supply/rt9455_charger.c
1695
usb_unregister_notifier(info->usb_phy, &info->nb);
drivers/power/supply/rt9455_charger.c
1713
usb_unregister_notifier(info->usb_phy, &info->nb);
drivers/power/supply/rt9455_charger.c
240
struct usb_phy *usb_phy;
drivers/power/supply/sc2731_charger.c
446
if (info->usb_phy->chg_state != USB_CHARGER_PRESENT)
drivers/power/supply/sc2731_charger.c
449
usb_phy_get_charger_current(info->usb_phy, &min, &max);
drivers/power/supply/sc2731_charger.c
496
info->usb_phy = devm_usb_get_phy_by_phandle(&pdev->dev, "phys", 0);
drivers/power/supply/sc2731_charger.c
497
if (IS_ERR(info->usb_phy)) {
drivers/power/supply/sc2731_charger.c
499
return PTR_ERR(info->usb_phy);
drivers/power/supply/sc2731_charger.c
503
ret = usb_register_notifier(info->usb_phy, &info->usb_notify);
drivers/power/supply/sc2731_charger.c
518
usb_unregister_notifier(info->usb_phy, &info->usb_notify);
drivers/power/supply/sc2731_charger.c
57
struct usb_phy *usb_phy;
drivers/power/supply/twl4030_charger.c
116
struct usb_phy *transceiver;
drivers/power/supply/wm831x_power.c
32
struct usb_phy *usb_phy;
drivers/power/supply/wm831x_power.c
656
power->usb_phy = devm_usb_get_phy_by_phandle(&pdev->dev, "phys", 0);
drivers/power/supply/wm831x_power.c
657
ret = PTR_ERR_OR_ZERO(power->usb_phy);
drivers/power/supply/wm831x_power.c
662
ret = usb_register_notifier(power->usb_phy, &power->usb_notify);
drivers/power/supply/wm831x_power.c
672
power->usb_phy = NULL;
drivers/power/supply/wm831x_power.c
708
if (wm831x_power->usb_phy) {
drivers/power/supply/wm831x_power.c
709
usb_unregister_notifier(wm831x_power->usb_phy,
drivers/usb/chipidea/ci.h
258
struct usb_phy *usb_phy;
drivers/usb/chipidea/ci.h
294
if (ci->usb_phy) {
drivers/usb/chipidea/ci.h
296
usb_phy_set_event(ci->usb_phy, USB_EVENT_ID);
drivers/usb/chipidea/ci.h
299
usb_phy_set_event(ci->usb_phy, USB_EVENT_NONE);
drivers/usb/chipidea/ci.h
316
if (ci->usb_phy)
drivers/usb/chipidea/ci.h
317
usb_phy_set_event(ci->usb_phy, USB_EVENT_NONE);
drivers/usb/chipidea/ci_hdrc_imx.c
108
struct usb_phy *phy;
drivers/usb/chipidea/ci_hdrc_imx.c
342
if (ci->usb_phy)
drivers/usb/chipidea/ci_hdrc_imx.c
343
schedule_work(&ci->usb_phy->chg_work);
drivers/usb/chipidea/ci_hdrc_imx.c
508
pdata.usb_phy = data->phy;
drivers/usb/chipidea/ci_hdrc_imx.c
510
data->usbmisc_data->usb_phy = data->phy;
drivers/usb/chipidea/ci_hdrc_imx.c
513
of_device_is_compatible(np, "fsl,imx51-usb")) && pdata.usb_phy &&
drivers/usb/chipidea/ci_hdrc_imx.c
517
ret = usb_phy_init(pdata.usb_phy);
drivers/usb/chipidea/ci_hdrc_imx.h
27
struct usb_phy *usb_phy;
drivers/usb/chipidea/ci_hdrc_tegra.c
272
usb_phy_set_suspend(ci->usb_phy, enable);
drivers/usb/chipidea/ci_hdrc_tegra.c
31
struct usb_phy *phy;
drivers/usb/chipidea/ci_hdrc_tegra.c
334
usb->data.usb_phy = usb->phy;
drivers/usb/chipidea/core.c
1098
} else if (ci->platdata->usb_phy) {
drivers/usb/chipidea/core.c
1099
ci->usb_phy = ci->platdata->usb_phy;
drivers/usb/chipidea/core.c
1113
ci->usb_phy = devm_usb_get_phy_by_phandle(dev->parent,
drivers/usb/chipidea/core.c
1116
if (PTR_ERR(ci->usb_phy) == -EPROBE_DEFER) {
drivers/usb/chipidea/core.c
1119
} else if (IS_ERR(ci->usb_phy)) {
drivers/usb/chipidea/core.c
1120
ci->usb_phy = NULL;
drivers/usb/chipidea/core.c
1125
if (!ci->phy && !ci->usb_phy) {
drivers/usb/chipidea/core.c
1126
ci->usb_phy = devm_usb_get_phy(dev->parent,
drivers/usb/chipidea/core.c
1129
if (PTR_ERR(ci->usb_phy) == -EPROBE_DEFER) {
drivers/usb/chipidea/core.c
1132
} else if (IS_ERR(ci->usb_phy)) {
drivers/usb/chipidea/core.c
1133
ci->usb_phy = NULL;
drivers/usb/chipidea/core.c
1138
if (!ci->phy && !ci->usb_phy) {
drivers/usb/chipidea/core.c
1321
usb_phy_set_suspend(ci->usb_phy, 1);
drivers/usb/chipidea/core.c
1369
if (ci->usb_phy) {
drivers/usb/chipidea/core.c
1370
usb_phy_set_suspend(ci->usb_phy, 0);
drivers/usb/chipidea/core.c
1371
usb_phy_set_wakeup(ci->usb_phy, false);
drivers/usb/chipidea/core.c
1417
usb_phy_set_wakeup(ci->usb_phy, true);
drivers/usb/chipidea/core.c
1483
usb_phy_set_wakeup(ci->usb_phy, true);
drivers/usb/chipidea/core.c
334
ret = usb_phy_init(ci->usb_phy);
drivers/usb/chipidea/core.c
354
usb_phy_shutdown(ci->usb_phy);
drivers/usb/chipidea/host.c
143
if (ci->phy || ci->usb_phy) {
drivers/usb/chipidea/host.c
145
if (ci->usb_phy)
drivers/usb/chipidea/host.c
146
hcd->usb_phy = ci->usb_phy;
drivers/usb/chipidea/host.c
68
usb_phy_vbus_on(ci->usb_phy);
drivers/usb/chipidea/host.c
70
usb_phy_vbus_off(ci->usb_phy);
drivers/usb/chipidea/otg_fsm.c
477
usb_phy_vbus_on(ci->usb_phy);
drivers/usb/chipidea/otg_fsm.c
489
usb_phy_vbus_off(ci->usb_phy);
drivers/usb/chipidea/otg_fsm.c
803
ci->otg.usb_phy = ci->usb_phy;
drivers/usb/chipidea/udc.c
1893
if (ci->usb_phy)
drivers/usb/chipidea/udc.c
1894
usb_phy_set_charger_state(ci->usb_phy, is_active ?
drivers/usb/chipidea/udc.c
1901
if (ci->usb_phy) {
drivers/usb/chipidea/udc.c
1903
usb_phy_set_event(ci->usb_phy, USB_EVENT_VBUS);
drivers/usb/chipidea/udc.c
1905
usb_phy_set_event(ci->usb_phy, USB_EVENT_NONE);
drivers/usb/chipidea/udc.c
1943
if (ci->usb_phy)
drivers/usb/chipidea/udc.c
1944
return usb_phy_set_power(ci->usb_phy, ma);
drivers/usb/chipidea/udc.c
2229
if (ci->usb_phy)
drivers/usb/chipidea/udc.c
2230
usb_phy_set_event(ci->usb_phy,
drivers/usb/chipidea/usbmisc_imx.c
1321
struct usb_phy *usb_phy;
drivers/usb/chipidea/usbmisc_imx.c
1328
usb_phy = data->usb_phy;
drivers/usb/chipidea/usbmisc_imx.c
1338
usb_phy->chg_state = USB_CHARGER_ABSENT;
drivers/usb/chipidea/usbmisc_imx.c
1340
usb_phy->chg_state = USB_CHARGER_PRESENT;
drivers/usb/chipidea/usbmisc_imx.c
1343
usb_phy->chg_state = USB_CHARGER_ABSENT;
drivers/usb/chipidea/usbmisc_imx.c
1344
usb_phy->chg_type = UNKNOWN_TYPE;
drivers/usb/chipidea/usbmisc_imx.c
783
struct usb_phy *usb_phy = data->usb_phy;
drivers/usb/chipidea/usbmisc_imx.c
817
usb_phy->chg_type = DCP_TYPE;
drivers/usb/chipidea/usbmisc_imx.c
820
usb_phy->chg_type = CDP_TYPE;
drivers/usb/chipidea/usbmisc_imx.c
897
struct usb_phy *usb_phy = data->usb_phy;
drivers/usb/chipidea/usbmisc_imx.c
917
usb_phy->chg_type = SDP_TYPE;
drivers/usb/chipidea/usbmisc_imx.c
934
struct usb_phy *usb_phy = data->usb_phy;
drivers/usb/chipidea/usbmisc_imx.c
966
if (!ret && usb_phy->chg_type != SDP_TYPE)
drivers/usb/core/hub.c
5405
if (hcd->usb_phy && !hdev->parent)
drivers/usb/core/hub.c
5406
usb_phy_notify_disconnect(hcd->usb_phy, udev->speed);
drivers/usb/core/hub.c
5575
if (hcd->usb_phy && !hdev->parent)
drivers/usb/core/hub.c
5576
usb_phy_notify_connect(hcd->usb_phy,
drivers/usb/dwc2/core.h
1079
struct usb_phy *uphy;
drivers/usb/dwc3/core.h
1222
struct usb_phy *usb2_phy;
drivers/usb/dwc3/core.h
1223
struct usb_phy *usb3_phy;
drivers/usb/fotg210/fotg210-udc.h
241
struct usb_phy *phy;
drivers/usb/gadget/udc/fsl_usb2_udc.h
483
struct usb_phy *transceiver;
drivers/usb/gadget/udc/omap_udc.c
2615
omap_udc_setup(struct platform_device *odev, struct usb_phy *xceiv)
drivers/usb/gadget/udc/omap_udc.c
2748
struct usb_phy *xceiv = NULL;
drivers/usb/gadget/udc/omap_udc.h
167
struct usb_phy *transceiver;
drivers/usb/gadget/udc/pxa25x_udc.h
116
struct usb_phy *transceiver;
drivers/usb/gadget/udc/pxa27x_udc.h
457
struct usb_phy *transceiver;
drivers/usb/gadget/udc/tegra-xudc.c
517
struct usb_phy **usbphy;
drivers/usb/gadget/udc/tegra-xudc.c
518
struct usb_phy *curr_usbphy;
drivers/usb/gadget/udc/tegra-xudc.c
790
struct usb_phy *usbphy)
drivers/usb/gadget/udc/tegra-xudc.c
804
struct usb_phy *usbphy)
drivers/usb/gadget/udc/tegra-xudc.c
834
struct usb_phy *usbphy = (struct usb_phy *)data;
drivers/usb/host/ehci-fsl.c
149
hcd->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2);
drivers/usb/host/ehci-fsl.c
151
hcd, ehci, hcd->usb_phy);
drivers/usb/host/ehci-fsl.c
153
if (!IS_ERR_OR_NULL(hcd->usb_phy)) {
drivers/usb/host/ehci-fsl.c
154
retval = otg_set_host(hcd->usb_phy->otg,
drivers/usb/host/ehci-fsl.c
157
usb_put_phy(hcd->usb_phy);
drivers/usb/host/ehci-fsl.c
682
if (!IS_ERR_OR_NULL(hcd->usb_phy)) {
drivers/usb/host/ehci-fsl.c
683
otg_set_host(hcd->usb_phy->otg, NULL);
drivers/usb/host/ehci-fsl.c
684
usb_put_phy(hcd->usb_phy);
drivers/usb/host/ehci-hub.c
807
otg_start_hnp(hcd->usb_phy->otg);
drivers/usb/host/ehci-mv.c
37
struct usb_phy *otg;
drivers/usb/host/ehci-omap.c
149
struct usb_phy *phy;
drivers/usb/host/ehci-omap.c
55
struct usb_phy *phy[OMAP3_HS_USB_PORTS]; /* one PHY for each port */
drivers/usb/host/ohci-omap.c
111
hcd->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2);
drivers/usb/host/ohci-omap.c
112
if (!IS_ERR_OR_NULL(hcd->usb_phy)) {
drivers/usb/host/ohci-omap.c
113
int status = otg_set_host(hcd->usb_phy->otg,
drivers/usb/host/ohci-omap.c
116
hcd->usb_phy->label, status);
drivers/usb/host/ohci-omap.c
118
usb_put_phy(hcd->usb_phy);
drivers/usb/host/ohci-omap.c
332
if (!IS_ERR_OR_NULL(hcd->usb_phy)) {
drivers/usb/host/ohci-omap.c
333
(void) otg_set_host(hcd->usb_phy->otg, 0);
drivers/usb/host/ohci-omap.c
334
usb_put_phy(hcd->usb_phy);
drivers/usb/host/ohci-omap.c
77
otg_start_hnp(hcd->usb_phy->otg);
drivers/usb/host/ohci-omap.c
80
hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND;
drivers/usb/host/xhci-plat.c
292
hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0);
drivers/usb/host/xhci-plat.c
293
if (IS_ERR(hcd->usb_phy)) {
drivers/usb/host/xhci-plat.c
294
ret = PTR_ERR(hcd->usb_phy);
drivers/usb/host/xhci-plat.c
297
hcd->usb_phy = NULL;
drivers/usb/host/xhci-plat.c
299
ret = usb_phy_init(hcd->usb_phy);
drivers/usb/host/xhci-plat.c
327
xhci->shared_hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev,
drivers/usb/host/xhci-plat.c
329
if (IS_ERR(xhci->shared_hcd->usb_phy)) {
drivers/usb/host/xhci-plat.c
330
xhci->shared_hcd->usb_phy = NULL;
drivers/usb/host/xhci-plat.c
332
ret = usb_phy_init(xhci->shared_hcd->usb_phy);
drivers/usb/host/xhci-plat.c
374
usb_phy_shutdown(hcd->usb_phy);
drivers/usb/host/xhci-plat.c
451
usb_phy_shutdown(hcd->usb_phy);
drivers/usb/host/xhci-tegra.c
1459
struct usb_phy *usbphy)
drivers/usb/host/xhci-tegra.c
1476
struct usb_phy *usbphy = (struct usb_phy *)data;
drivers/usb/host/xhci-tegra.c
302
struct usb_phy **usbphy;
drivers/usb/misc/lvstest.c
367
if (hcd->usb_phy)
drivers/usb/misc/lvstest.c
368
usb_phy_notify_connect(hcd->usb_phy,
drivers/usb/misc/lvstest.c
372
if (hcd->usb_phy)
drivers/usb/misc/lvstest.c
373
usb_phy_notify_disconnect(hcd->usb_phy,
drivers/usb/musb/da8xx.c
554
glue->usb_phy = usb_phy_generic_register();
drivers/usb/musb/da8xx.c
555
ret = PTR_ERR_OR_ZERO(glue->usb_phy);
drivers/usb/musb/da8xx.c
586
usb_phy_generic_unregister(glue->usb_phy);
drivers/usb/musb/da8xx.c
595
usb_phy_generic_unregister(glue->usb_phy);
drivers/usb/musb/da8xx.c
71
struct platform_device *usb_phy;
drivers/usb/musb/jz4740.c
83
struct usb_phy *phy = glue->musb->xceiv;
drivers/usb/musb/mediatek.c
459
glue->usb_phy = usb_phy_generic_register();
drivers/usb/musb/mediatek.c
46
struct platform_device *usb_phy;
drivers/usb/musb/mediatek.c
460
if (IS_ERR(glue->usb_phy))
drivers/usb/musb/mediatek.c
461
return dev_err_probe(dev, PTR_ERR(glue->usb_phy),
drivers/usb/musb/mediatek.c
48
struct usb_phy *xceiv;
drivers/usb/musb/mediatek.c
503
usb_phy_generic_unregister(glue->usb_phy);
drivers/usb/musb/mediatek.c
510
struct platform_device *usb_phy = glue->usb_phy;
drivers/usb/musb/mediatek.c
513
usb_phy_generic_unregister(usb_phy);
drivers/usb/musb/musb_core.c
131
static int musb_ulpi_read(struct usb_phy *phy, u32 reg)
drivers/usb/musb/musb_core.c
175
static int musb_ulpi_write(struct usb_phy *phy, u32 val, u32 reg)
drivers/usb/musb/musb_core.h
339
struct usb_phy *xceiv;
drivers/usb/musb/sunxi.c
764
glue->usb_phy = usb_phy_generic_register();
drivers/usb/musb/sunxi.c
765
if (IS_ERR(glue->usb_phy)) {
drivers/usb/musb/sunxi.c
767
PTR_ERR(glue->usb_phy));
drivers/usb/musb/sunxi.c
768
return PTR_ERR(glue->usb_phy);
drivers/usb/musb/sunxi.c
801
usb_phy_generic_unregister(glue->usb_phy);
drivers/usb/musb/sunxi.c
808
struct platform_device *usb_phy = glue->usb_phy;
drivers/usb/musb/sunxi.c
811
usb_phy_generic_unregister(usb_phy);
drivers/usb/musb/sunxi.c
87
struct platform_device *usb_phy;
drivers/usb/musb/sunxi.c
88
struct usb_phy *xceiv;
drivers/usb/musb/tusb6010.c
330
static int tusb_draw_power(struct usb_phy *x, unsigned mA)
drivers/usb/phy/phy-ab8500-usb.c
127
struct usb_phy phy;
drivers/usb/phy/phy-ab8500-usb.c
145
static inline struct ab8500_usb *phy_to_ab(struct usb_phy *x)
drivers/usb/phy/phy-ab8500-usb.c
627
static int ab8500_usb_set_suspend(struct usb_phy *x, int suspend)
drivers/usb/phy/phy-ab8500-usb.c
641
ab = phy_to_ab(otg->usb_phy);
drivers/usb/phy/phy-ab8500-usb.c
665
ab = phy_to_ab(otg->usb_phy);
drivers/usb/phy/phy-ab8500-usb.c
900
otg->usb_phy = &ab->phy;
drivers/usb/phy/phy-am335x.c
23
static int am335x_init(struct usb_phy *phy)
drivers/usb/phy/phy-am335x.c
31
static void am335x_shutdown(struct usb_phy *phy)
drivers/usb/phy/phy-fsl-usb.c
463
container_of(otg->usb_phy, struct fsl_otg, phy);
drivers/usb/phy/phy-fsl-usb.c
558
otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy);
drivers/usb/phy/phy-fsl-usb.c
608
otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy);
drivers/usb/phy/phy-fsl-usb.c
670
otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy);
drivers/usb/phy/phy-fsl-usb.c
688
otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy);
drivers/usb/phy/phy-fsl-usb.c
809
fsl_otg_tc->phy.otg->usb_phy = &fsl_otg_tc->phy;
drivers/usb/phy/phy-fsl-usb.c
836
struct usb_phy *otg_trans = usb_get_phy(USB_PHY_TYPE_USB2);
drivers/usb/phy/phy-fsl-usb.h
358
struct usb_phy phy;
drivers/usb/phy/phy-generic.c
128
int usb_gen_phy_init(struct usb_phy *phy)
drivers/usb/phy/phy-generic.c
148
void usb_gen_phy_shutdown(struct usb_phy *phy)
drivers/usb/phy/phy-generic.c
175
atomic_notifier_call_chain(&otg->usb_phy->notifier,
drivers/usb/phy/phy-generic.c
255
nop->phy.otg->usb_phy = &nop->phy;
drivers/usb/phy/phy-generic.c
46
static int nop_set_suspend(struct usb_phy *x, int suspend)
drivers/usb/phy/phy-generic.c
79
struct usb_phy_generic *nop = dev_get_drvdata(otg->usb_phy->dev);
drivers/usb/phy/phy-generic.h
10
struct usb_phy phy;
drivers/usb/phy/phy-generic.h
22
int usb_gen_phy_init(struct usb_phy *phy);
drivers/usb/phy/phy-generic.h
23
void usb_gen_phy_shutdown(struct usb_phy *phy);
drivers/usb/phy/phy-gpio-vbus-usb.c
172
gpio_vbus = container_of(otg->usb_phy, struct gpio_vbus_data, phy);
drivers/usb/phy/phy-gpio-vbus-usb.c
202
static int gpio_vbus_set_power(struct usb_phy *phy, unsigned mA)
drivers/usb/phy/phy-gpio-vbus-usb.c
214
static int gpio_vbus_set_suspend(struct usb_phy *phy, int suspend)
drivers/usb/phy/phy-gpio-vbus-usb.c
257
gpio_vbus->phy.otg->usb_phy = &gpio_vbus->phy;
drivers/usb/phy/phy-gpio-vbus-usb.c
33
struct usb_phy phy;
drivers/usb/phy/phy-isp1301.c
19
struct usb_phy phy;
drivers/usb/phy/phy-isp1301.c
56
static int isp1301_phy_init(struct usb_phy *phy)
drivers/usb/phy/phy-isp1301.c
83
static int isp1301_phy_set_vbus(struct usb_phy *phy, int on)
drivers/usb/phy/phy-isp1301.c
98
struct usb_phy *phy;
drivers/usb/phy/phy-keystone.c
44
static int keystone_usbphy_init(struct usb_phy *phy)
drivers/usb/phy/phy-keystone.c
55
static void keystone_usbphy_shutdown(struct usb_phy *phy)
drivers/usb/phy/phy-mv-usb.h
135
struct usb_phy phy;
drivers/usb/phy/phy-mxs-usb.c
225
struct usb_phy phy;
drivers/usb/phy/phy-mxs-usb.c
459
static int mxs_phy_init(struct usb_phy *phy)
drivers/usb/phy/phy-mxs-usb.c
472
static void mxs_phy_shutdown(struct usb_phy *phy)
drivers/usb/phy/phy-mxs-usb.c
524
static int mxs_phy_suspend(struct usb_phy *x, int suspend)
drivers/usb/phy/phy-mxs-usb.c
572
static int mxs_phy_set_wakeup(struct usb_phy *x, bool enabled)
drivers/usb/phy/phy-mxs-usb.c
589
static int mxs_phy_on_connect(struct usb_phy *phy,
drivers/usb/phy/phy-mxs-usb.c
602
static int mxs_phy_on_disconnect(struct usb_phy *phy,
drivers/usb/phy/phy-mxs-usb.c
724
static enum usb_charger_type mxs_phy_charger_detect(struct usb_phy *phy)
drivers/usb/phy/phy-tahvo.c
175
static int tahvo_usb_set_suspend(struct usb_phy *dev, int suspend)
drivers/usb/phy/phy-tahvo.c
195
struct tahvo_usb *tu = container_of(otg->usb_phy, struct tahvo_usb,
drivers/usb/phy/phy-tahvo.c
223
struct tahvo_usb *tu = container_of(otg->usb_phy, struct tahvo_usb,
drivers/usb/phy/phy-tahvo.c
380
tu->phy.otg->usb_phy = &tu->phy;
drivers/usb/phy/phy-tahvo.c
47
struct usb_phy phy;
drivers/usb/phy/phy-tegra-usb.c
1080
static void tegra_usb_phy_shutdown(struct usb_phy *u_phy)
drivers/usb/phy/phy-tegra-usb.c
1116
static int tegra_usb_phy_set_wakeup(struct usb_phy *u_phy, bool enable)
drivers/usb/phy/phy-tegra-usb.c
1166
static int tegra_usb_phy_set_suspend(struct usb_phy *u_phy, int suspend)
drivers/usb/phy/phy-tegra-usb.c
1241
static int tegra_usb_phy_init(struct usb_phy *u_phy)
drivers/usb/phy/phy-tegra-usb.c
1497
struct usb_phy *phy;
drivers/usb/phy/phy-tegra-usb.c
283
static inline struct tegra_usb_phy *to_tegra_usb_phy(struct usb_phy *u_phy)
drivers/usb/phy/phy-ulpi-viewport.c
29
static int ulpi_viewport_read(struct usb_phy *otg, u32 reg)
drivers/usb/phy/phy-ulpi-viewport.c
47
static int ulpi_viewport_write(struct usb_phy *otg, u32 val, u32 reg)
drivers/usb/phy/phy-ulpi.c
108
static int ulpi_set_ic_flags(struct usb_phy *phy)
drivers/usb/phy/phy-ulpi.c
127
static int ulpi_set_flags(struct usb_phy *phy)
drivers/usb/phy/phy-ulpi.c
142
static int ulpi_check_integrity(struct usb_phy *phy)
drivers/usb/phy/phy-ulpi.c
168
static int ulpi_init(struct usb_phy *phy)
drivers/usb/phy/phy-ulpi.c
201
struct usb_phy *phy = otg->usb_phy;
drivers/usb/phy/phy-ulpi.c
227
struct usb_phy *phy = otg->usb_phy;
drivers/usb/phy/phy-ulpi.c
243
static void otg_ulpi_init(struct usb_phy *phy, struct usb_otg *otg,
drivers/usb/phy/phy-ulpi.c
253
otg->usb_phy = phy;
drivers/usb/phy/phy-ulpi.c
258
struct usb_phy *
drivers/usb/phy/phy-ulpi.c
263
struct usb_phy *phy;
drivers/usb/phy/phy-ulpi.c
42
static int ulpi_set_otg_flags(struct usb_phy *phy)
drivers/usb/phy/phy-ulpi.c
66
static int ulpi_set_fc_flags(struct usb_phy *phy)
drivers/usb/phy/phy.c
100
usb_phy->chg_cur.dcp_max = DEFAULT_DCP_CUR_MAX;
drivers/usb/phy/phy.c
101
usb_phy->chg_cur.cdp_min = DEFAULT_CDP_CUR_MIN;
drivers/usb/phy/phy.c
102
usb_phy->chg_cur.cdp_max = DEFAULT_CDP_CUR_MAX;
drivers/usb/phy/phy.c
103
usb_phy->chg_cur.aca_min = DEFAULT_ACA_CUR_MIN;
drivers/usb/phy/phy.c
104
usb_phy->chg_cur.aca_max = DEFAULT_ACA_CUR_MAX;
drivers/usb/phy/phy.c
125
struct usb_phy *usb_phy = container_of(work, struct usb_phy, chg_work);
drivers/usb/phy/phy.c
128
switch (usb_phy->chg_state) {
drivers/usb/phy/phy.c
130
usb_phy_get_charger_current(usb_phy, &min, &max);
drivers/usb/phy/phy.c
132
atomic_notifier_call_chain(&usb_phy->notifier, max, usb_phy);
drivers/usb/phy/phy.c
135
usb_phy_set_default_current(usb_phy);
drivers/usb/phy/phy.c
137
atomic_notifier_call_chain(&usb_phy->notifier, 0, usb_phy);
drivers/usb/phy/phy.c
140
dev_warn(usb_phy->dev, "Unknown USB charger state: %d\n",
drivers/usb/phy/phy.c
141
usb_phy->chg_state);
drivers/usb/phy/phy.c
145
kobject_uevent(&usb_phy->dev->kobj, KOBJ_CHANGE);
drivers/usb/phy/phy.c
150
const struct usb_phy *usb_phy;
drivers/usb/phy/phy.c
156
usb_phy = __device_to_usb_phy(dev);
drivers/usb/phy/phy.c
159
if (!usb_phy)
drivers/usb/phy/phy.c
163
"USB_CHARGER_STATE=%s", usb_chger_state[usb_phy->chg_state]);
drivers/usb/phy/phy.c
166
"USB_CHARGER_TYPE=%s", usb_chger_type[usb_phy->chg_type]);
drivers/usb/phy/phy.c
177
static void __usb_phy_get_charger_type(struct usb_phy *usb_phy)
drivers/usb/phy/phy.c
179
if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_SDP) > 0) {
drivers/usb/phy/phy.c
180
usb_phy->chg_type = SDP_TYPE;
drivers/usb/phy/phy.c
181
usb_phy->chg_state = USB_CHARGER_PRESENT;
drivers/usb/phy/phy.c
182
} else if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_CDP) > 0) {
drivers/usb/phy/phy.c
183
usb_phy->chg_type = CDP_TYPE;
drivers/usb/phy/phy.c
184
usb_phy->chg_state = USB_CHARGER_PRESENT;
drivers/usb/phy/phy.c
185
} else if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_DCP) > 0) {
drivers/usb/phy/phy.c
186
usb_phy->chg_type = DCP_TYPE;
drivers/usb/phy/phy.c
187
usb_phy->chg_state = USB_CHARGER_PRESENT;
drivers/usb/phy/phy.c
188
} else if (extcon_get_state(usb_phy->edev, EXTCON_CHG_USB_ACA) > 0) {
drivers/usb/phy/phy.c
189
usb_phy->chg_type = ACA_TYPE;
drivers/usb/phy/phy.c
190
usb_phy->chg_state = USB_CHARGER_PRESENT;
drivers/usb/phy/phy.c
192
usb_phy->chg_type = UNKNOWN_TYPE;
drivers/usb/phy/phy.c
193
usb_phy->chg_state = USB_CHARGER_ABSENT;
drivers/usb/phy/phy.c
196
schedule_work(&usb_phy->chg_work);
drivers/usb/phy/phy.c
211
struct usb_phy *usb_phy = container_of(nb, struct usb_phy, type_nb);
drivers/usb/phy/phy.c
213
__usb_phy_get_charger_type(usb_phy);
drivers/usb/phy/phy.c
231
void usb_phy_set_charger_current(struct usb_phy *usb_phy, unsigned int mA)
drivers/usb/phy/phy.c
233
switch (usb_phy->chg_type) {
drivers/usb/phy/phy.c
235
if (usb_phy->chg_cur.sdp_max == mA)
drivers/usb/phy/phy.c
238
usb_phy->chg_cur.sdp_max = (mA > DEFAULT_SDP_CUR_MAX_SS) ?
drivers/usb/phy/phy.c
242
if (usb_phy->chg_cur.dcp_max == mA)
drivers/usb/phy/phy.c
245
usb_phy->chg_cur.dcp_max = (mA > DEFAULT_DCP_CUR_MAX) ?
drivers/usb/phy/phy.c
249
if (usb_phy->chg_cur.cdp_max == mA)
drivers/usb/phy/phy.c
252
usb_phy->chg_cur.cdp_max = (mA > DEFAULT_CDP_CUR_MAX) ?
drivers/usb/phy/phy.c
256
if (usb_phy->chg_cur.aca_max == mA)
drivers/usb/phy/phy.c
259
usb_phy->chg_cur.aca_max = (mA > DEFAULT_ACA_CUR_MAX) ?
drivers/usb/phy/phy.c
266
schedule_work(&usb_phy->chg_work);
drivers/usb/phy/phy.c
280
void usb_phy_get_charger_current(struct usb_phy *usb_phy,
drivers/usb/phy/phy.c
283
switch (usb_phy->chg_type) {
drivers/usb/phy/phy.c
285
*min = usb_phy->chg_cur.sdp_min;
drivers/usb/phy/phy.c
286
*max = usb_phy->chg_cur.sdp_max;
drivers/usb/phy/phy.c
289
*min = usb_phy->chg_cur.dcp_min;
drivers/usb/phy/phy.c
290
*max = usb_phy->chg_cur.dcp_max;
drivers/usb/phy/phy.c
293
*min = usb_phy->chg_cur.cdp_min;
drivers/usb/phy/phy.c
294
*max = usb_phy->chg_cur.cdp_max;
drivers/usb/phy/phy.c
297
*min = usb_phy->chg_cur.aca_min;
drivers/usb/phy/phy.c
298
*max = usb_phy->chg_cur.aca_max;
drivers/usb/phy/phy.c
317
void usb_phy_set_charger_state(struct usb_phy *usb_phy,
drivers/usb/phy/phy.c
320
if (usb_phy->chg_state == state || !usb_phy->charger_detect)
drivers/usb/phy/phy.c
323
usb_phy->chg_state = state;
drivers/usb/phy/phy.c
324
if (usb_phy->chg_state == USB_CHARGER_PRESENT)
drivers/usb/phy/phy.c
325
usb_phy->chg_type = usb_phy->charger_detect(usb_phy);
drivers/usb/phy/phy.c
327
usb_phy->chg_type = UNKNOWN_TYPE;
drivers/usb/phy/phy.c
329
schedule_work(&usb_phy->chg_work);
drivers/usb/phy/phy.c
33
struct usb_phy *phy;
drivers/usb/phy/phy.c
335
struct usb_phy *phy = *(struct usb_phy **)res;
drivers/usb/phy/phy.c
349
static void usb_charger_init(struct usb_phy *usb_phy)
drivers/usb/phy/phy.c
351
usb_phy->chg_type = UNKNOWN_TYPE;
drivers/usb/phy/phy.c
352
usb_phy->chg_state = USB_CHARGER_DEFAULT;
drivers/usb/phy/phy.c
353
usb_phy_set_default_current(usb_phy);
drivers/usb/phy/phy.c
354
INIT_WORK(&usb_phy->chg_work, usb_phy_notify_charger_work);
drivers/usb/phy/phy.c
357
static int usb_add_extcon(struct usb_phy *x)
drivers/usb/phy/phy.c
457
struct usb_phy *devm_usb_get_phy(struct device *dev, enum usb_phy_type type)
drivers/usb/phy/phy.c
459
struct usb_phy **ptr, *phy;
drivers/usb/phy/phy.c
486
struct usb_phy *usb_get_phy(enum usb_phy_type type)
drivers/usb/phy/phy.c
488
struct usb_phy *phy = NULL;
drivers/usb/phy/phy.c
51
static struct usb_phy *__usb_find_phy(struct list_head *list,
drivers/usb/phy/phy.c
528
struct usb_phy *devm_usb_get_phy_by_node(struct device *dev,
drivers/usb/phy/phy.c
532
struct usb_phy *phy = ERR_PTR(-ENOMEM);
drivers/usb/phy/phy.c
54
struct usb_phy *phy = NULL;
drivers/usb/phy/phy.c
587
struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev,
drivers/usb/phy/phy.c
591
struct usb_phy *phy;
drivers/usb/phy/phy.c
618
void usb_put_phy(struct usb_phy *x)
drivers/usb/phy/phy.c
638
int usb_add_phy(struct usb_phy *x, enum usb_phy_type type)
drivers/usb/phy/phy.c
642
struct usb_phy *phy;
drivers/usb/phy/phy.c
66
static struct usb_phy *__of_usb_find_phy(struct device_node *node)
drivers/usb/phy/phy.c
68
struct usb_phy *phy;
drivers/usb/phy/phy.c
691
int usb_add_phy_dev(struct usb_phy *x)
drivers/usb/phy/phy.c
726
void usb_remove_phy(struct usb_phy *x)
drivers/usb/phy/phy.c
744
void usb_phy_set_event(struct usb_phy *x, unsigned long event)
drivers/usb/phy/phy.c
83
static struct usb_phy *__device_to_usb_phy(const struct device *dev)
drivers/usb/phy/phy.c
85
struct usb_phy *usb_phy;
drivers/usb/phy/phy.c
87
list_for_each_entry(usb_phy, &phy_list, head) {
drivers/usb/phy/phy.c
88
if (usb_phy->dev == dev)
drivers/usb/phy/phy.c
89
return usb_phy;
drivers/usb/phy/phy.c
95
static void usb_phy_set_default_current(struct usb_phy *usb_phy)
drivers/usb/phy/phy.c
97
usb_phy->chg_cur.sdp_min = DEFAULT_SDP_CUR_MIN;
drivers/usb/phy/phy.c
98
usb_phy->chg_cur.sdp_max = DEFAULT_SDP_CUR_MAX;
drivers/usb/phy/phy.c
99
usb_phy->chg_cur.dcp_min = DEFAULT_DCP_CUR_MIN;
drivers/usb/renesas_usbhs/mod_gadget.c
47
struct usb_phy *transceiver;
include/linux/usb/chipidea.h
40
struct usb_phy *usb_phy;
include/linux/usb/hcd.h
99
struct usb_phy *usb_phy;
include/linux/usb/otg.h
21
struct usb_phy *usb_phy;
include/linux/usb/phy.h
126
int (*init)(struct usb_phy *x);
include/linux/usb/phy.h
127
void (*shutdown)(struct usb_phy *x);
include/linux/usb/phy.h
130
int (*set_vbus)(struct usb_phy *x, int on);
include/linux/usb/phy.h
133
int (*set_power)(struct usb_phy *x,
include/linux/usb/phy.h
137
int (*set_suspend)(struct usb_phy *x,
include/linux/usb/phy.h
145
int (*set_wakeup)(struct usb_phy *x, bool enabled);
include/linux/usb/phy.h
148
int (*notify_connect)(struct usb_phy *x,
include/linux/usb/phy.h
150
int (*notify_disconnect)(struct usb_phy *x,
include/linux/usb/phy.h
157
enum usb_charger_type (*charger_detect)(struct usb_phy *x);
include/linux/usb/phy.h
161
extern int usb_add_phy(struct usb_phy *, enum usb_phy_type type);
include/linux/usb/phy.h
162
extern int usb_add_phy_dev(struct usb_phy *);
include/linux/usb/phy.h
163
extern void usb_remove_phy(struct usb_phy *);
include/linux/usb/phy.h
166
static inline int usb_phy_io_read(struct usb_phy *x, u32 reg)
include/linux/usb/phy.h
174
static inline int usb_phy_io_write(struct usb_phy *x, u32 val, u32 reg)
include/linux/usb/phy.h
183
usb_phy_init(struct usb_phy *x)
include/linux/usb/phy.h
192
usb_phy_shutdown(struct usb_phy *x)
include/linux/usb/phy.h
199
usb_phy_vbus_on(struct usb_phy *x)
include/linux/usb/phy.h
208
usb_phy_vbus_off(struct usb_phy *x)
include/linux/usb/phy.h
218
extern struct usb_phy *usb_get_phy(enum usb_phy_type type);
include/linux/usb/phy.h
219
extern struct usb_phy *devm_usb_get_phy(struct device *dev,
include/linux/usb/phy.h
221
extern struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev,
include/linux/usb/phy.h
223
extern struct usb_phy *devm_usb_get_phy_by_node(struct device *dev,
include/linux/usb/phy.h
225
extern void usb_put_phy(struct usb_phy *);
include/linux/usb/phy.h
226
extern void usb_phy_set_event(struct usb_phy *x, unsigned long event);
include/linux/usb/phy.h
227
extern void usb_phy_set_charger_current(struct usb_phy *usb_phy,
include/linux/usb/phy.h
229
extern void usb_phy_get_charger_current(struct usb_phy *usb_phy,
include/linux/usb/phy.h
231
extern void usb_phy_set_charger_state(struct usb_phy *usb_phy,
include/linux/usb/phy.h
234
static inline struct usb_phy *usb_get_phy(enum usb_phy_type type)
include/linux/usb/phy.h
239
static inline struct usb_phy *devm_usb_get_phy(struct device *dev,
include/linux/usb/phy.h
245
static inline struct usb_phy *devm_usb_get_phy_by_phandle(struct device *dev,
include/linux/usb/phy.h
251
static inline struct usb_phy *devm_usb_get_phy_by_node(struct device *dev,
include/linux/usb/phy.h
257
static inline void usb_put_phy(struct usb_phy *x)
include/linux/usb/phy.h
261
static inline void usb_phy_set_event(struct usb_phy *x, unsigned long event)
include/linux/usb/phy.h
265
static inline void usb_phy_set_charger_current(struct usb_phy *usb_phy,
include/linux/usb/phy.h
270
static inline void usb_phy_get_charger_current(struct usb_phy *usb_phy,
include/linux/usb/phy.h
276
static inline void usb_phy_set_charger_state(struct usb_phy *usb_phy,
include/linux/usb/phy.h
283
usb_phy_set_power(struct usb_phy *x, unsigned mA)
include/linux/usb/phy.h
297
usb_phy_set_suspend(struct usb_phy *x, int suspend)
include/linux/usb/phy.h
306
usb_phy_set_wakeup(struct usb_phy *x, bool enabled)
include/linux/usb/phy.h
315
usb_phy_notify_connect(struct usb_phy *x, enum usb_device_speed speed)
include/linux/usb/phy.h
324
usb_phy_notify_disconnect(struct usb_phy *x, enum usb_device_speed speed)
include/linux/usb/phy.h
334
usb_register_notifier(struct usb_phy *x, struct notifier_block *nb)
include/linux/usb/phy.h
340
usb_unregister_notifier(struct usb_phy *x, struct notifier_block *nb)
include/linux/usb/phy.h
66
struct usb_phy;
include/linux/usb/phy.h
73
int (*read)(struct usb_phy *x, u32 reg);
include/linux/usb/phy.h
74
int (*write)(struct usb_phy *x, u32 val, u32 reg);
include/linux/usb/tegra_usb_phy.h
81
struct usb_phy *ulpi;
include/linux/usb/tegra_usb_phy.h
82
struct usb_phy u_phy;
include/linux/usb/ulpi.h
52
struct usb_phy *devm_otg_ulpi_create(struct device *dev,
include/linux/usb/ulpi.h
56
static inline struct usb_phy *devm_otg_ulpi_create(struct device *dev,