Home
last modified time | relevance | path

Searched refs:phy (Results 1 – 200 of 1415) sorted by relevance

12345678

/linux-4.4.14/include/linux/phy/
Dphy.h23 struct phy;
34 int (*init)(struct phy *phy);
35 int (*exit)(struct phy *phy);
36 int (*power_on)(struct phy *phy);
37 int (*power_off)(struct phy *phy);
60 struct phy { struct
82 struct phy * (*of_xlate)(struct device *dev,
90 struct phy *phy; member
93 #define to_phy(a) (container_of((a), struct phy, dev))
101 static inline void phy_set_drvdata(struct phy *phy, void *data) in phy_set_drvdata() argument
[all …]
Dphy-qcom-ufs.h27 int ufs_qcom_phy_enable_ref_clk(struct phy *phy);
34 void ufs_qcom_phy_disable_ref_clk(struct phy *phy);
41 void ufs_qcom_phy_enable_dev_ref_clk(struct phy *phy);
48 void ufs_qcom_phy_disable_dev_ref_clk(struct phy *phy);
50 int ufs_qcom_phy_enable_iface_clk(struct phy *phy);
51 void ufs_qcom_phy_disable_iface_clk(struct phy *phy);
52 int ufs_qcom_phy_start_serdes(struct phy *phy);
53 int ufs_qcom_phy_set_tx_lane_enable(struct phy *phy, u32 tx_lanes);
54 int ufs_qcom_phy_calibrate_phy(struct phy *phy, bool is_rate_B);
55 int ufs_qcom_phy_is_pcs_ready(struct phy *phy);
[all …]
/linux-4.4.14/drivers/phy/
Dphy-core.c34 struct phy *phy = *(struct phy **)res; in devm_phy_release() local
36 phy_put(phy); in devm_phy_release()
48 struct phy *phy = *(struct phy **)res; in devm_phy_consume() local
50 phy_destroy(phy); in devm_phy_consume()
55 struct phy **phy = res; in devm_phy_match() local
57 return *phy == match_data; in devm_phy_match()
68 int phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id) in phy_create_lookup() argument
72 if (!phy || !dev_id || !con_id) in phy_create_lookup()
81 pl->phy = phy; in phy_create_lookup()
100 void phy_remove_lookup(struct phy *phy, const char *con_id, const char *dev_id) in phy_remove_lookup() argument
[all …]
Dphy-ti-pipe3.c125 static struct pipe3_dpll_params *ti_pipe3_get_dpll_params(struct ti_pipe3 *phy) in ti_pipe3_get_dpll_params() argument
128 struct pipe3_dpll_map *dpll_map = phy->dpll_map; in ti_pipe3_get_dpll_params()
130 rate = clk_get_rate(phy->sys_clk); in ti_pipe3_get_dpll_params()
137 dev_err(phy->dev, "No DPLL configuration for %lu Hz SYS CLK\n", rate); in ti_pipe3_get_dpll_params()
142 static int ti_pipe3_enable_clocks(struct ti_pipe3 *phy);
143 static void ti_pipe3_disable_clocks(struct ti_pipe3 *phy);
145 static int ti_pipe3_power_off(struct phy *x) in ti_pipe3_power_off()
147 struct ti_pipe3 *phy = phy_get_drvdata(x); in ti_pipe3_power_off() local
149 omap_control_phy_power(phy->control_dev, 0); in ti_pipe3_power_off()
154 static int ti_pipe3_power_on(struct phy *x) in ti_pipe3_power_on()
[all …]
Dphy-omap-usb2.c49 struct omap_usb *phy; in omap_usb2_set_comparator() local
55 phy = phy_to_omapusb(x); in omap_usb2_set_comparator()
56 phy->comparator = comparator; in omap_usb2_set_comparator()
63 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_set_vbus() local
65 if (!phy->comparator) in omap_usb_set_vbus()
68 return phy->comparator->set_vbus(phy->comparator, enabled); in omap_usb_set_vbus()
73 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_start_srp() local
75 if (!phy->comparator) in omap_usb_start_srp()
78 return phy->comparator->start_srp(phy->comparator); in omap_usb_start_srp()
100 static int omap_usb_power_off(struct phy *x) in omap_usb_power_off()
[all …]
Dphy-dm816x-usb.c57 struct usb_phy phy; member
81 static int dm816x_usb_phy_init(struct phy *x) in dm816x_usb_phy_init()
83 struct dm816x_usb_phy *phy = phy_get_drvdata(x); in dm816x_usb_phy_init() local
87 if (clk_get_rate(phy->refclk) != 24000000) in dm816x_usb_phy_init()
88 dev_warn(phy->dev, "nonstandard phy refclk\n"); in dm816x_usb_phy_init()
91 error = regmap_update_bits(phy->syscon, phy->usb_ctrl, in dm816x_usb_phy_init()
96 regmap_read(phy->syscon, phy->usb_ctrl, &val); in dm816x_usb_phy_init()
98 dev_info(phy->dev, in dm816x_usb_phy_init()
107 regmap_read(phy->syscon, phy->usbphy_ctrl, &val); in dm816x_usb_phy_init()
111 regmap_write(phy->syscon, phy->usbphy_ctrl, val); in dm816x_usb_phy_init()
[all …]
Dphy-sun9i-usb.c45 struct phy *phy; member
53 static void sun9i_usb_phy_passby(struct sun9i_usb_phy *phy, int enable) in sun9i_usb_phy_passby() argument
61 if (phy->type == USBPHY_INTERFACE_MODE_HSIC) in sun9i_usb_phy_passby()
65 reg_value = readl(phy->pmu); in sun9i_usb_phy_passby()
72 writel(reg_value, phy->pmu); in sun9i_usb_phy_passby()
75 static int sun9i_usb_phy_init(struct phy *_phy) in sun9i_usb_phy_init()
77 struct sun9i_usb_phy *phy = phy_get_drvdata(_phy); in sun9i_usb_phy_init() local
80 ret = clk_prepare_enable(phy->clk); in sun9i_usb_phy_init()
84 ret = clk_prepare_enable(phy->hsic_clk); in sun9i_usb_phy_init()
88 ret = reset_control_deassert(phy->reset); in sun9i_usb_phy_init()
[all …]
DMakefile5 obj-$(CONFIG_GENERIC_PHY) += phy-core.o
6 obj-$(CONFIG_PHY_BERLIN_USB) += phy-berlin-usb.o
7 obj-$(CONFIG_PHY_BERLIN_SATA) += phy-berlin-sata.o
8 obj-$(CONFIG_PHY_DM816X_USB) += phy-dm816x-usb.o
9 obj-$(CONFIG_ARMADA375_USBCLUSTER_PHY) += phy-armada375-usb2.o
10 obj-$(CONFIG_BCM_KONA_USB2_PHY) += phy-bcm-kona-usb2.o
11 obj-$(CONFIG_PHY_EXYNOS_DP_VIDEO) += phy-exynos-dp-video.o
12 obj-$(CONFIG_PHY_EXYNOS_MIPI_VIDEO) += phy-exynos-mipi-video.o
13 obj-$(CONFIG_PHY_LPC18XX_USB_OTG) += phy-lpc18xx-usb-otg.o
14 obj-$(CONFIG_PHY_PXA_28NM_USB2) += phy-pxa-28nm-usb2.o
[all …]
Dphy-qcom-ipq806x-sata.c61 static int qcom_ipq806x_sata_phy_init(struct phy *generic_phy) in qcom_ipq806x_sata_phy_init()
63 struct qcom_ipq806x_sata_phy *phy = phy_get_drvdata(generic_phy); in qcom_ipq806x_sata_phy_init() local
67 reg = readl_relaxed(phy->mmio + SATA_PHY_P0_PARAM3); in qcom_ipq806x_sata_phy_init()
69 writel_relaxed(reg, phy->mmio + SATA_PHY_P0_PARAM3); in qcom_ipq806x_sata_phy_init()
71 reg = readl_relaxed(phy->mmio + SATA_PHY_P0_PARAM0) & in qcom_ipq806x_sata_phy_init()
76 writel_relaxed(reg, phy->mmio + SATA_PHY_P0_PARAM0); in qcom_ipq806x_sata_phy_init()
78 reg = readl_relaxed(phy->mmio + SATA_PHY_P0_PARAM1) & in qcom_ipq806x_sata_phy_init()
85 writel_relaxed(reg, phy->mmio + SATA_PHY_P0_PARAM1); in qcom_ipq806x_sata_phy_init()
87 reg = readl_relaxed(phy->mmio + SATA_PHY_P0_PARAM2) & in qcom_ipq806x_sata_phy_init()
90 writel_relaxed(reg, phy->mmio + SATA_PHY_P0_PARAM2); in qcom_ipq806x_sata_phy_init()
[all …]
Dphy-sun4i-usb.c98 struct phy *phy; member
122 #define to_sun4i_usb_phy_data(phy) \ argument
123 container_of((phy), struct sun4i_usb_phy_data, phys[(phy)->index])
125 static void sun4i_usb_phy0_update_iscr(struct phy *_phy, u32 clr, u32 set) in sun4i_usb_phy0_update_iscr()
127 struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); in sun4i_usb_phy0_update_iscr() local
128 struct sun4i_usb_phy_data *data = to_sun4i_usb_phy_data(phy); in sun4i_usb_phy0_update_iscr()
137 static void sun4i_usb_phy0_set_id_detect(struct phy *phy, u32 val) in sun4i_usb_phy0_set_id_detect() argument
144 sun4i_usb_phy0_update_iscr(phy, ISCR_FORCE_ID_MASK, val); in sun4i_usb_phy0_set_id_detect()
147 static void sun4i_usb_phy0_set_vbus_detect(struct phy *phy, u32 val) in sun4i_usb_phy0_set_vbus_detect() argument
154 sun4i_usb_phy0_update_iscr(phy, ISCR_FORCE_VBUS_MASK, val); in sun4i_usb_phy0_set_vbus_detect()
[all …]
Dphy-qcom-ufs.c25 static int __ufs_qcom_phy_init_vreg(struct phy *, struct ufs_qcom_phy_vreg *,
27 static int ufs_qcom_phy_init_vreg(struct phy *, struct ufs_qcom_phy_vreg *,
78 struct phy *ufs_qcom_phy_generic_probe(struct platform_device *pdev, in ufs_qcom_phy_generic_probe()
85 struct phy *generic_phy = NULL; in ufs_qcom_phy_generic_probe()
123 struct ufs_qcom_phy *get_ufs_qcom_phy(struct phy *generic_phy) in get_ufs_qcom_phy()
157 static int __ufs_qcom_phy_clk_get(struct phy *phy, in __ufs_qcom_phy_clk_get() argument
162 struct ufs_qcom_phy *ufs_qcom_phy = get_ufs_qcom_phy(phy); in __ufs_qcom_phy_clk_get()
178 int ufs_qcom_phy_clk_get(struct phy *phy, in ufs_qcom_phy_clk_get() argument
181 return __ufs_qcom_phy_clk_get(phy, name, clk_out, true); in ufs_qcom_phy_clk_get()
185 ufs_qcom_phy_init_clks(struct phy *generic_phy, in ufs_qcom_phy_init_clks()
[all …]
Dphy-bcm-kona-usb2.c42 static void bcm_kona_usb_phy_power(struct bcm_kona_usb *phy, int on) in bcm_kona_usb_phy_power() argument
46 val = readl(phy->regs + OTGCTL); in bcm_kona_usb_phy_power()
55 writel(val, phy->regs + OTGCTL); in bcm_kona_usb_phy_power()
58 static int bcm_kona_usb_phy_init(struct phy *gphy) in bcm_kona_usb_phy_init()
60 struct bcm_kona_usb *phy = phy_get_drvdata(gphy); in bcm_kona_usb_phy_init() local
64 val = readl(phy->regs + P1CTL); in bcm_kona_usb_phy_init()
67 writel(val, phy->regs + P1CTL); in bcm_kona_usb_phy_init()
68 writel(val & ~P1CTL_SOFT_RESET, phy->regs + P1CTL); in bcm_kona_usb_phy_init()
71 writel(val | P1CTL_SOFT_RESET, phy->regs + P1CTL); in bcm_kona_usb_phy_init()
76 static int bcm_kona_usb_phy_power_on(struct phy *gphy) in bcm_kona_usb_phy_power_on()
[all …]
Dulpi_phy.h7 static inline struct phy
10 struct phy *phy; in ulpi_phy_create() local
13 phy = phy_create(&ulpi->dev, NULL, ops); in ulpi_phy_create()
14 if (IS_ERR(phy)) in ulpi_phy_create()
15 return phy; in ulpi_phy_create()
17 ret = phy_create_lookup(phy, "usb2-phy", dev_name(ulpi->dev.parent)); in ulpi_phy_create()
19 phy_destroy(phy); in ulpi_phy_create()
23 return phy; in ulpi_phy_create()
27 static inline void ulpi_phy_destroy(struct ulpi *ulpi, struct phy *phy) in ulpi_phy_destroy() argument
29 phy_remove_lookup(phy, "usb2-phy", dev_name(ulpi->dev.parent)); in ulpi_phy_destroy()
[all …]
Dphy-qcom-ufs-qmp-20nm.c64 static int ufs_qcom_phy_qmp_20nm_init(struct phy *generic_phy) in ufs_qcom_phy_qmp_20nm_init()
66 struct ufs_qcom_phy_qmp_20nm *phy = phy_get_drvdata(generic_phy); in ufs_qcom_phy_qmp_20nm_init() local
67 struct ufs_qcom_phy *phy_common = &phy->common_cfg; in ufs_qcom_phy_qmp_20nm_init()
91 void ufs_qcom_phy_qmp_20nm_power_control(struct ufs_qcom_phy *phy, bool val) in ufs_qcom_phy_qmp_20nm_power_control() argument
93 bool hibern8_exit_after_pwr_collapse = phy->quirks & in ufs_qcom_phy_qmp_20nm_power_control()
97 writel_relaxed(0x1, phy->mmio + UFS_PHY_POWER_DOWN_CONTROL); in ufs_qcom_phy_qmp_20nm_power_control()
110 writel_relaxed(0x0A, phy->mmio + in ufs_qcom_phy_qmp_20nm_power_control()
112 writel_relaxed(0x08, phy->mmio + in ufs_qcom_phy_qmp_20nm_power_control()
122 writel_relaxed(0x0A, phy->mmio + in ufs_qcom_phy_qmp_20nm_power_control()
124 writel_relaxed(0x02, phy->mmio + in ufs_qcom_phy_qmp_20nm_power_control()
[all …]
Dphy-rcar-gen2.c48 struct phy *phy; member
70 static int rcar_gen2_phy_init(struct phy *p) in rcar_gen2_phy_init()
72 struct rcar_gen2_phy *phy = phy_get_drvdata(p); in rcar_gen2_phy_init() local
73 struct rcar_gen2_channel *channel = phy->channel; in rcar_gen2_phy_init()
84 if (cmpxchg(&channel->selected_phy, -1, phy->number) != -1) in rcar_gen2_phy_init()
92 ugctrl2 |= phy->select_value; in rcar_gen2_phy_init()
98 static int rcar_gen2_phy_exit(struct phy *p) in rcar_gen2_phy_exit()
100 struct rcar_gen2_phy *phy = phy_get_drvdata(p); in rcar_gen2_phy_exit() local
101 struct rcar_gen2_channel *channel = phy->channel; in rcar_gen2_phy_exit()
110 static int rcar_gen2_phy_power_on(struct phy *p) in rcar_gen2_phy_power_on()
[all …]
Dphy-lpc18xx-usb-otg.c26 struct phy *phy; member
31 static int lpc18xx_usb_otg_phy_init(struct phy *phy) in lpc18xx_usb_otg_phy_init() argument
33 struct lpc18xx_usb_otg_phy *lpc = phy_get_drvdata(phy); in lpc18xx_usb_otg_phy_init()
44 static int lpc18xx_usb_otg_phy_exit(struct phy *phy) in lpc18xx_usb_otg_phy_exit() argument
46 struct lpc18xx_usb_otg_phy *lpc = phy_get_drvdata(phy); in lpc18xx_usb_otg_phy_exit()
53 static int lpc18xx_usb_otg_phy_power_on(struct phy *phy) in lpc18xx_usb_otg_phy_power_on() argument
55 struct lpc18xx_usb_otg_phy *lpc = phy_get_drvdata(phy); in lpc18xx_usb_otg_phy_power_on()
67 static int lpc18xx_usb_otg_phy_power_off(struct phy *phy) in lpc18xx_usb_otg_phy_power_off() argument
69 struct lpc18xx_usb_otg_phy *lpc = phy_get_drvdata(phy); in lpc18xx_usb_otg_phy_power_off()
112 lpc->phy = devm_phy_create(&pdev->dev, NULL, &lpc18xx_usb_otg_phy_ops); in lpc18xx_usb_otg_phy_probe()
[all …]
Dphy-rockchip-usb.c43 struct phy *phy; member
46 static int rockchip_usb_phy_power(struct rockchip_usb_phy *phy, in rockchip_usb_phy_power() argument
49 return regmap_write(phy->reg_base, phy->reg_offset, in rockchip_usb_phy_power()
53 static int rockchip_usb_phy_power_off(struct phy *_phy) in rockchip_usb_phy_power_off()
55 struct rockchip_usb_phy *phy = phy_get_drvdata(_phy); in rockchip_usb_phy_power_off() local
59 ret = rockchip_usb_phy_power(phy, 1); in rockchip_usb_phy_power_off()
63 clk_disable_unprepare(phy->clk); in rockchip_usb_phy_power_off()
68 static int rockchip_usb_phy_power_on(struct phy *_phy) in rockchip_usb_phy_power_on()
70 struct rockchip_usb_phy *phy = phy_get_drvdata(_phy); in rockchip_usb_phy_power_on() local
73 ret = clk_prepare_enable(phy->clk); in rockchip_usb_phy_power_on()
[all …]
Dphy-qcom-apq8064-sata.c97 static int qcom_apq8064_sata_phy_init(struct phy *generic_phy) in qcom_apq8064_sata_phy_init()
99 struct qcom_apq8064_sata_phy *phy = phy_get_drvdata(generic_phy); in qcom_apq8064_sata_phy_init() local
100 void __iomem *base = phy->mmio; in qcom_apq8064_sata_phy_init()
150 dev_err(phy->dev, "poll timeout UNIPHY_PLL_STATUS\n"); in qcom_apq8064_sata_phy_init()
157 dev_err(phy->dev, "poll timeout SATA_PHY_TX_IMCAL_STAT\n"); in qcom_apq8064_sata_phy_init()
164 dev_err(phy->dev, "poll timeout SATA_PHY_RX_IMCAL_STAT\n"); in qcom_apq8064_sata_phy_init()
192 static int qcom_apq8064_sata_phy_exit(struct phy *generic_phy) in qcom_apq8064_sata_phy_exit()
194 struct qcom_apq8064_sata_phy *phy = phy_get_drvdata(generic_phy); in qcom_apq8064_sata_phy_exit() local
195 void __iomem *base = phy->mmio; in qcom_apq8064_sata_phy_exit()
215 struct qcom_apq8064_sata_phy *phy; in qcom_apq8064_sata_phy_probe() local
[all …]
Dphy-qcom-ufs-qmp-14nm.c45 static int ufs_qcom_phy_qmp_14nm_init(struct phy *generic_phy) in ufs_qcom_phy_qmp_14nm_init()
47 struct ufs_qcom_phy_qmp_14nm *phy = phy_get_drvdata(generic_phy); in ufs_qcom_phy_qmp_14nm_init() local
48 struct ufs_qcom_phy *phy_common = &phy->common_cfg; in ufs_qcom_phy_qmp_14nm_init()
74 void ufs_qcom_phy_qmp_14nm_power_control(struct ufs_qcom_phy *phy, bool val) in ufs_qcom_phy_qmp_14nm_power_control() argument
76 writel_relaxed(val ? 0x1 : 0x0, phy->mmio + UFS_PHY_POWER_DOWN_CONTROL); in ufs_qcom_phy_qmp_14nm_power_control()
85 void ufs_qcom_phy_qmp_14nm_set_tx_lane_enable(struct ufs_qcom_phy *phy, u32 val) in ufs_qcom_phy_qmp_14nm_set_tx_lane_enable() argument
93 static inline void ufs_qcom_phy_qmp_14nm_start_serdes(struct ufs_qcom_phy *phy) in ufs_qcom_phy_qmp_14nm_start_serdes() argument
97 tmp = readl_relaxed(phy->mmio + UFS_PHY_PHY_START); in ufs_qcom_phy_qmp_14nm_start_serdes()
100 writel_relaxed(tmp, phy->mmio + UFS_PHY_PHY_START); in ufs_qcom_phy_qmp_14nm_start_serdes()
137 struct phy *generic_phy; in ufs_qcom_phy_qmp_14nm_probe()
[all …]
Dphy-armada375-usb2.c29 struct phy *phy; member
35 static int armada375_usb_phy_init(struct phy *phy) in armada375_usb_phy_init() argument
40 cluster_phy = phy_get_drvdata(phy); in armada375_usb_phy_init()
67 static struct phy *armada375_usb_phy_xlate(struct device *dev, in armada375_usb_phy_xlate()
103 return cluster_phy->phy; in armada375_usb_phy_xlate()
109 struct phy *phy; in armada375_usb_phy_probe() local
124 phy = devm_phy_create(dev, NULL, &armada375_usb_phy_ops); in armada375_usb_phy_probe()
125 if (IS_ERR(phy)) { in armada375_usb_phy_probe()
127 return PTR_ERR(phy); in armada375_usb_phy_probe()
130 cluster_phy->phy = phy; in armada375_usb_phy_probe()
[all …]
Dphy-stih407-usb.c37 struct phy *phy; member
55 static int stih407_usb2_init_port(struct phy *phy) in stih407_usb2_init_port() argument
58 struct stih407_usb2_picophy *phy_dev = phy_get_drvdata(phy); in stih407_usb2_init_port()
72 static int stih407_usb2_exit_port(struct phy *phy) in stih407_usb2_exit_port() argument
74 struct stih407_usb2_picophy *phy_dev = phy_get_drvdata(phy); in stih407_usb2_exit_port()
98 struct phy *phy; in stih407_usb2_picophy_probe() local
143 phy = devm_phy_create(dev, NULL, &stih407_usb2_picophy_data); in stih407_usb2_picophy_probe()
144 if (IS_ERR(phy)) { in stih407_usb2_picophy_probe()
146 return PTR_ERR(phy); in stih407_usb2_picophy_probe()
149 phy_dev->phy = phy; in stih407_usb2_picophy_probe()
[all …]
Dphy-bcm-cygnus-pcie.c42 struct phy *phy; member
59 static int cygnus_pcie_power_config(struct cygnus_pcie_phy *phy, bool enable) in cygnus_pcie_power_config() argument
61 struct cygnus_pcie_phy_core *core = phy->core; in cygnus_pcie_power_config()
67 switch (phy->id) { in cygnus_pcie_power_config()
78 dev_err(core->dev, "PCIe PHY %d invalid\n", phy->id); in cygnus_pcie_power_config()
98 dev_dbg(core->dev, "PCIe PHY %d %s\n", phy->id, in cygnus_pcie_power_config()
103 static int cygnus_pcie_phy_power_on(struct phy *p) in cygnus_pcie_phy_power_on()
105 struct cygnus_pcie_phy *phy = phy_get_drvdata(p); in cygnus_pcie_phy_power_on() local
107 return cygnus_pcie_power_config(phy, true); in cygnus_pcie_phy_power_on()
110 static int cygnus_pcie_phy_power_off(struct phy *p) in cygnus_pcie_phy_power_off()
[all …]
Dphy-pxa-28nm-hsic.c50 struct phy *phy; member
67 static int mv_hsic_phy_init(struct phy *phy) in mv_hsic_phy_init() argument
69 struct mv_hsic_phy *mv_phy = phy_get_drvdata(phy); in mv_hsic_phy_init()
97 static int mv_hsic_phy_power_on(struct phy *phy) in mv_hsic_phy_power_on() argument
99 struct mv_hsic_phy *mv_phy = phy_get_drvdata(phy); in mv_hsic_phy_power_on()
136 static int mv_hsic_phy_power_off(struct phy *phy) in mv_hsic_phy_power_off() argument
138 struct mv_hsic_phy *mv_phy = phy_get_drvdata(phy); in mv_hsic_phy_power_off()
147 static int mv_hsic_phy_exit(struct phy *phy) in mv_hsic_phy_exit() argument
149 struct mv_hsic_phy *mv_phy = phy_get_drvdata(phy); in mv_hsic_phy_exit()
193 mv_phy->phy = devm_phy_create(&pdev->dev, pdev->dev.of_node, &hsic_ops); in mv_hsic_phy_probe()
[all …]
Dphy-exynos-dp-video.c33 static int exynos_dp_video_phy_power_on(struct phy *phy) in exynos_dp_video_phy_power_on() argument
35 struct exynos_dp_video_phy *state = phy_get_drvdata(phy); in exynos_dp_video_phy_power_on()
42 static int exynos_dp_video_phy_power_off(struct phy *phy) in exynos_dp_video_phy_power_off() argument
44 struct exynos_dp_video_phy *state = phy_get_drvdata(phy); in exynos_dp_video_phy_power_off()
83 struct phy *phy; in exynos_dp_video_phy_probe() local
99 phy = devm_phy_create(dev, NULL, &exynos_dp_video_phy_ops); in exynos_dp_video_phy_probe()
100 if (IS_ERR(phy)) { in exynos_dp_video_phy_probe()
102 return PTR_ERR(phy); in exynos_dp_video_phy_probe()
104 phy_set_drvdata(phy, state); in exynos_dp_video_phy_probe()
Dphy-exynos-mipi-video.c41 struct phy *phy; member
100 static int exynos_mipi_video_phy_power_on(struct phy *phy) in exynos_mipi_video_phy_power_on() argument
102 struct video_phy_desc *phy_desc = phy_get_drvdata(phy); in exynos_mipi_video_phy_power_on()
108 static int exynos_mipi_video_phy_power_off(struct phy *phy) in exynos_mipi_video_phy_power_off() argument
110 struct video_phy_desc *phy_desc = phy_get_drvdata(phy); in exynos_mipi_video_phy_power_off()
116 static struct phy *exynos_mipi_video_phy_xlate(struct device *dev, in exynos_mipi_video_phy_xlate()
124 return state->phys[args->args[0]].phy; in exynos_mipi_video_phy_xlate()
161 struct phy *phy = devm_phy_create(dev, NULL, in exynos_mipi_video_phy_probe() local
163 if (IS_ERR(phy)) { in exynos_mipi_video_phy_probe()
165 return PTR_ERR(phy); in exynos_mipi_video_phy_probe()
[all …]
Dphy-qcom-ufs-i.h134 int (*calibrate_phy)(struct ufs_qcom_phy *phy, bool is_rate_B);
135 void (*start_serdes)(struct ufs_qcom_phy *phy);
136 int (*is_physical_coding_sublayer_ready)(struct ufs_qcom_phy *phy);
137 void (*set_tx_lane_enable)(struct ufs_qcom_phy *phy, u32 val);
138 void (*power_control)(struct ufs_qcom_phy *phy, bool val);
141 struct ufs_qcom_phy *get_ufs_qcom_phy(struct phy *generic_phy);
142 int ufs_qcom_phy_power_on(struct phy *generic_phy);
143 int ufs_qcom_phy_power_off(struct phy *generic_phy);
144 int ufs_qcom_phy_exit(struct phy *generic_phy);
145 int ufs_qcom_phy_init_clks(struct phy *generic_phy,
[all …]
Dphy-stih41x-usb.c71 static int stih41x_usb_phy_init(struct phy *phy) in stih41x_usb_phy_init() argument
73 struct stih41x_usb_phy *phy_dev = phy_get_drvdata(phy); in stih41x_usb_phy_init()
79 static int stih41x_usb_phy_power_on(struct phy *phy) in stih41x_usb_phy_power_on() argument
81 struct stih41x_usb_phy *phy_dev = phy_get_drvdata(phy); in stih41x_usb_phy_power_on()
98 static int stih41x_usb_phy_power_off(struct phy *phy) in stih41x_usb_phy_power_off() argument
100 struct stih41x_usb_phy *phy_dev = phy_get_drvdata(phy); in stih41x_usb_phy_power_off()
131 struct phy *phy; in stih41x_usb_phy_probe() local
155 phy = devm_phy_create(dev, NULL, &stih41x_usb_phy_ops); in stih41x_usb_phy_probe()
157 if (IS_ERR(phy)) { in stih41x_usb_phy_probe()
159 return PTR_ERR(phy); in stih41x_usb_phy_probe()
[all …]
Dphy-tusb1210.c25 struct phy *phy; member
31 static int tusb1210_power_on(struct phy *phy) in tusb1210_power_on() argument
33 struct tusb1210 *tusb = phy_get_drvdata(phy); in tusb1210_power_on()
46 static int tusb1210_power_off(struct phy *phy) in tusb1210_power_off() argument
48 struct tusb1210 *tusb = phy_get_drvdata(phy); in tusb1210_power_off()
107 tusb->phy = ulpi_phy_create(ulpi, &phy_ops); in tusb1210_probe()
108 if (IS_ERR(tusb->phy)) in tusb1210_probe()
109 return PTR_ERR(tusb->phy); in tusb1210_probe()
113 phy_set_drvdata(tusb->phy, tusb); in tusb1210_probe()
122 ulpi_phy_destroy(ulpi, tusb->phy); in tusb1210_remove()
Dphy-mvebu-sata.c32 static int phy_mvebu_sata_power_on(struct phy *phy) in phy_mvebu_sata_power_on() argument
34 struct priv *priv = phy_get_drvdata(phy); in phy_mvebu_sata_power_on()
55 static int phy_mvebu_sata_power_off(struct phy *phy) in phy_mvebu_sata_power_off() argument
57 struct priv *priv = phy_get_drvdata(phy); in phy_mvebu_sata_power_off()
89 struct phy *phy; in phy_mvebu_sata_probe() local
104 phy = devm_phy_create(&pdev->dev, NULL, &phy_mvebu_sata_ops); in phy_mvebu_sata_probe()
105 if (IS_ERR(phy)) in phy_mvebu_sata_probe()
106 return PTR_ERR(phy); in phy_mvebu_sata_probe()
108 phy_set_drvdata(phy, priv); in phy_mvebu_sata_probe()
116 phy_mvebu_sata_power_off(phy); in phy_mvebu_sata_probe()
Dphy-berlin-sata.c54 struct phy *phy; member
83 static int phy_berlin_sata_power_on(struct phy *phy) in phy_berlin_sata_power_on() argument
85 struct phy_berlin_desc *desc = phy_get_drvdata(phy); in phy_berlin_sata_power_on()
86 struct phy_berlin_priv *priv = dev_get_drvdata(phy->dev.parent); in phy_berlin_sata_power_on()
136 static int phy_berlin_sata_power_off(struct phy *phy) in phy_berlin_sata_power_off() argument
138 struct phy_berlin_desc *desc = phy_get_drvdata(phy); in phy_berlin_sata_power_off()
139 struct phy_berlin_priv *priv = dev_get_drvdata(phy->dev.parent); in phy_berlin_sata_power_off()
159 static struct phy *phy_berlin_sata_phy_xlate(struct device *dev, in phy_berlin_sata_phy_xlate()
176 return priv->phys[i]->phy; in phy_berlin_sata_phy_xlate()
194 struct phy *phy; in phy_berlin_sata_probe() local
[all …]
Dphy-exynos5250-sata.c52 struct phy *phy; member
72 static int exynos_sata_phy_power_on(struct phy *phy) in exynos_sata_phy_power_on() argument
74 struct exynos_sata_phy *sata_phy = phy_get_drvdata(phy); in exynos_sata_phy_power_on()
81 static int exynos_sata_phy_power_off(struct phy *phy) in exynos_sata_phy_power_off() argument
83 struct exynos_sata_phy *sata_phy = phy_get_drvdata(phy); in exynos_sata_phy_power_off()
90 static int exynos_sata_phy_init(struct phy *phy) in exynos_sata_phy_init() argument
95 struct exynos_sata_phy *sata_phy = phy_get_drvdata(phy); in exynos_sata_phy_init()
100 dev_err(&sata_phy->phy->dev, "phy init failed\n"); in exynos_sata_phy_init()
152 dev_err(&sata_phy->phy->dev, in exynos_sata_phy_init()
213 sata_phy->phy = devm_phy_create(dev, NULL, &exynos_sata_phy_ops); in exynos_sata_phy_probe()
[all …]
Dphy-mt65xx-usb3.c115 struct phy *phy; member
321 static int mt65xx_phy_init(struct phy *phy) in mt65xx_phy_init() argument
323 struct mt65xx_phy_instance *instance = phy_get_drvdata(phy); in mt65xx_phy_init()
324 struct mt65xx_u3phy *u3phy = dev_get_drvdata(phy->dev.parent); in mt65xx_phy_init()
337 static int mt65xx_phy_power_on(struct phy *phy) in mt65xx_phy_power_on() argument
339 struct mt65xx_phy_instance *instance = phy_get_drvdata(phy); in mt65xx_phy_power_on()
340 struct mt65xx_u3phy *u3phy = dev_get_drvdata(phy->dev.parent); in mt65xx_phy_power_on()
346 static int mt65xx_phy_power_off(struct phy *phy) in mt65xx_phy_power_off() argument
348 struct mt65xx_phy_instance *instance = phy_get_drvdata(phy); in mt65xx_phy_power_off()
349 struct mt65xx_u3phy *u3phy = dev_get_drvdata(phy->dev.parent); in mt65xx_phy_power_off()
[all …]
Dphy-pxa-28nm-usb2.c144 struct phy *phy; member
161 static int mv_usb2_phy_28nm_init(struct phy *phy) in mv_usb2_phy_28nm_init() argument
163 struct mv_usb2_phy *mv_phy = phy_get_drvdata(phy); in mv_usb2_phy_28nm_init()
247 static int mv_usb2_phy_28nm_power_on(struct phy *phy) in mv_usb2_phy_28nm_power_on() argument
249 struct mv_usb2_phy *mv_phy = phy_get_drvdata(phy); in mv_usb2_phy_28nm_power_on()
260 static int mv_usb2_phy_28nm_power_off(struct phy *phy) in mv_usb2_phy_28nm_power_off() argument
262 struct mv_usb2_phy *mv_phy = phy_get_drvdata(phy); in mv_usb2_phy_28nm_power_off()
273 static int mv_usb2_phy_28nm_exit(struct phy *phy) in mv_usb2_phy_28nm_exit() argument
275 struct mv_usb2_phy *mv_phy = phy_get_drvdata(phy); in mv_usb2_phy_28nm_exit()
328 mv_phy->phy = devm_phy_create(&pdev->dev, pdev->dev.of_node, &usb_ops); in mv_usb2_phy_probe()
[all …]
Dphy-pistachio-usb.c55 static int pistachio_usb_phy_power_on(struct phy *phy) in pistachio_usb_phy_power_on() argument
57 struct pistachio_usb_phy *p_phy = phy_get_drvdata(phy); in pistachio_usb_phy_power_on()
120 static int pistachio_usb_phy_power_off(struct phy *phy) in pistachio_usb_phy_power_off() argument
122 struct pistachio_usb_phy *p_phy = phy_get_drvdata(phy); in pistachio_usb_phy_power_off()
139 struct phy *phy; in pistachio_usb_phy_probe() local
170 phy = devm_phy_create(p_phy->dev, NULL, &pistachio_usb_phy_ops); in pistachio_usb_phy_probe()
171 if (IS_ERR(phy)) { in pistachio_usb_phy_probe()
173 PTR_ERR(phy)); in pistachio_usb_phy_probe()
174 return PTR_ERR(phy); in pistachio_usb_phy_probe()
176 phy_set_drvdata(phy, p_phy); in pistachio_usb_phy_probe()
Dphy-spear1310-miphy.c112 struct phy *phy; member
154 static int spear1310_miphy_init(struct phy *phy) in spear1310_miphy_init() argument
156 struct spear1310_miphy_priv *priv = phy_get_drvdata(phy); in spear1310_miphy_init()
165 static int spear1310_miphy_exit(struct phy *phy) in spear1310_miphy_exit() argument
167 struct spear1310_miphy_priv *priv = phy_get_drvdata(phy); in spear1310_miphy_exit()
188 static struct phy *spear1310_miphy_xlate(struct device *dev, in spear1310_miphy_xlate()
205 return priv->phy; in spear1310_miphy_xlate()
230 priv->phy = devm_phy_create(dev, NULL, &spear1310_miphy_ops); in spear1310_miphy_probe()
231 if (IS_ERR(priv->phy)) { in spear1310_miphy_probe()
233 return PTR_ERR(priv->phy); in spear1310_miphy_probe()
[all …]
Dphy-spear1340-miphy.c89 struct phy *phy; member
160 static int spear1340_miphy_init(struct phy *phy) in spear1340_miphy_init() argument
162 struct spear1340_miphy_priv *priv = phy_get_drvdata(phy); in spear1340_miphy_init()
173 static int spear1340_miphy_exit(struct phy *phy) in spear1340_miphy_exit() argument
175 struct spear1340_miphy_priv *priv = phy_get_drvdata(phy); in spear1340_miphy_exit()
225 static struct phy *spear1340_miphy_xlate(struct device *dev, in spear1340_miphy_xlate()
242 return priv->phy; in spear1340_miphy_xlate()
262 priv->phy = devm_phy_create(dev, NULL, &spear1340_miphy_ops); in spear1340_miphy_probe()
263 if (IS_ERR(priv->phy)) { in spear1340_miphy_probe()
265 return PTR_ERR(priv->phy); in spear1340_miphy_probe()
[all …]
Dphy-hix5hd2-sata.c65 static int hix5hd2_sata_phy_init(struct phy *phy) in hix5hd2_sata_phy_init() argument
67 struct hix5hd2_priv *priv = phy_get_drvdata(phy); in hix5hd2_sata_phy_init()
72 ret = of_property_read_u32_array(phy->dev.of_node, in hix5hd2_sata_phy_init()
76 dev_err(&phy->dev, "Fail read hisilicon,power-reg\n"); in hix5hd2_sata_phy_init()
142 struct phy *phy; in hix5hd2_sata_phy_probe() local
162 phy = devm_phy_create(dev, NULL, &hix5hd2_sata_phy_ops); in hix5hd2_sata_phy_probe()
163 if (IS_ERR(phy)) { in hix5hd2_sata_phy_probe()
165 return PTR_ERR(phy); in hix5hd2_sata_phy_probe()
168 phy_set_drvdata(phy, priv); in hix5hd2_sata_phy_probe()
Dphy-samsung-usb2.c22 static int samsung_usb2_phy_power_on(struct phy *phy) in samsung_usb2_phy_power_on() argument
24 struct samsung_usb2_phy_instance *inst = phy_get_drvdata(phy); in samsung_usb2_phy_power_on()
64 static int samsung_usb2_phy_power_off(struct phy *phy) in samsung_usb2_phy_power_off() argument
66 struct samsung_usb2_phy_instance *inst = phy_get_drvdata(phy); in samsung_usb2_phy_power_off()
93 static struct phy *samsung_usb2_phy_xlate(struct device *dev, in samsung_usb2_phy_xlate()
105 return drv->instances[args->args[0]].phy; in samsung_usb2_phy_xlate()
232 p->phy = devm_phy_create(dev, NULL, &samsung_usb2_phy_ops); in samsung_usb2_phy_probe()
233 if (IS_ERR(p->phy)) { in samsung_usb2_phy_probe()
236 return PTR_ERR(p->phy); in samsung_usb2_phy_probe()
241 phy_set_bus_width(p->phy, 8); in samsung_usb2_phy_probe()
[all …]
Dphy-brcmstb-sata.c39 struct phy *phy; member
116 static int brcm_sata_phy_init(struct phy *phy) in brcm_sata_phy_init() argument
118 struct brcm_sata_port *port = phy_get_drvdata(phy); in brcm_sata_phy_init()
175 if (priv->phys[id].phy) { in brcm_sata_phy_probe()
184 port->phy = devm_phy_create(dev, child, &phy_ops_28nm); in brcm_sata_phy_probe()
186 if (IS_ERR(port->phy)) { in brcm_sata_phy_probe()
188 ret = PTR_ERR(port->phy); in brcm_sata_phy_probe()
192 phy_set_drvdata(port->phy, port); in brcm_sata_phy_probe()
Dphy-twl4030-usb.c158 struct usb_phy phy; member
180 #define phy_to_twl(x) container_of((x), struct twl4030_usb, phy)
445 static int twl4030_phy_power_off(struct phy *phy) in twl4030_phy_power_off() argument
447 struct twl4030_usb *twl = phy_get_drvdata(phy); in twl4030_phy_power_off()
456 static int twl4030_phy_power_on(struct phy *phy) in twl4030_phy_power_on() argument
458 struct twl4030_usb *twl = phy_get_drvdata(phy); in twl4030_phy_power_on()
593 static int twl4030_phy_init(struct phy *phy) in twl4030_phy_init() argument
595 struct twl4030_usb *twl = phy_get_drvdata(phy); in twl4030_phy_init()
646 struct phy *phy; in twl4030_usb_probe() local
675 twl->phy.dev = twl->dev; in twl4030_usb_probe()
[all …]
Dphy-exynos5-usbdrd.c174 struct phy *phy; member
354 static int exynos5_usbdrd_phy_init(struct phy *phy) in exynos5_usbdrd_phy_init() argument
358 struct phy_usb_instance *inst = phy_get_drvdata(phy); in exynos5_usbdrd_phy_init()
416 static int exynos5_usbdrd_phy_exit(struct phy *phy) in exynos5_usbdrd_phy_exit() argument
420 struct phy_usb_instance *inst = phy_get_drvdata(phy); in exynos5_usbdrd_phy_exit()
450 static int exynos5_usbdrd_phy_power_on(struct phy *phy) in exynos5_usbdrd_phy_power_on() argument
453 struct phy_usb_instance *inst = phy_get_drvdata(phy); in exynos5_usbdrd_phy_power_on()
503 static int exynos5_usbdrd_phy_power_off(struct phy *phy) in exynos5_usbdrd_phy_power_off() argument
505 struct phy_usb_instance *inst = phy_get_drvdata(phy); in exynos5_usbdrd_phy_power_off()
529 static struct phy *exynos5_usbdrd_phy_xlate(struct device *dev, in exynos5_usbdrd_phy_xlate()
[all …]
/linux-4.4.14/drivers/scsi/libsas/
Dsas_phy.c36 struct asd_sas_phy *phy = ev->phy; in sas_phye_loss_of_signal() local
38 clear_bit(PHYE_LOSS_OF_SIGNAL, &phy->phy_events_pending); in sas_phye_loss_of_signal()
39 phy->error = 0; in sas_phye_loss_of_signal()
40 sas_deform_port(phy, 1); in sas_phye_loss_of_signal()
46 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_done() local
48 clear_bit(PHYE_OOB_DONE, &phy->phy_events_pending); in sas_phye_oob_done()
49 phy->error = 0; in sas_phye_oob_done()
55 struct asd_sas_phy *phy = ev->phy; in sas_phye_oob_error() local
56 struct sas_ha_struct *sas_ha = phy->ha; in sas_phye_oob_error()
57 struct asd_sas_port *port = phy->port; in sas_phye_oob_error()
[all …]
Dsas_port.c31 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) in phy_is_wideport_member() argument
33 struct sas_ha_struct *sas_ha = phy->ha; in phy_is_wideport_member()
35 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, in phy_is_wideport_member()
37 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) in phy_is_wideport_member()
42 static void sas_resume_port(struct asd_sas_phy *phy) in sas_resume_port() argument
45 struct asd_sas_port *port = phy->port; in sas_resume_port()
46 struct sas_ha_struct *sas_ha = phy->ha; in sas_resume_port()
50 si->dft->lldd_port_formed(phy); in sas_resume_port()
75 struct ex_phy *phy = &dev->ex_dev.ex_phy[i]; in sas_resume_port() local
77 phy->phy_change_count = -1; in sas_resume_port()
[all …]
Dsas_init.c191 static int sas_get_linkerrors(struct sas_phy *phy) in sas_get_linkerrors() argument
193 if (scsi_is_sas_phy_local(phy)) { in sas_get_linkerrors()
194 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in sas_get_linkerrors()
196 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in sas_get_linkerrors()
203 return sas_smp_get_phy_events(phy); in sas_get_linkerrors()
233 static int transport_sas_phy_reset(struct sas_phy *phy, int hard_reset) in transport_sas_phy_reset() argument
242 if (scsi_is_sas_phy_local(phy)) { in transport_sas_phy_reset()
243 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); in transport_sas_phy_reset()
245 struct asd_sas_phy *asd_phy = sas_ha->sas_phy[phy->number]; in transport_sas_phy_reset()
253 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in transport_sas_phy_reset()
[all …]
Dsas_expander.c169 static char sas_route_char(struct domain_device *dev, struct ex_phy *phy) in sas_route_char() argument
171 switch (phy->routing_attr) { in sas_route_char()
207 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_set_ex_phy() local
209 bool new_phy = !phy->phy; in sas_set_ex_phy()
215 phy->phy = sas_phy_alloc(&rphy->dev, phy_id); in sas_set_ex_phy()
218 BUG_ON(!phy->phy); in sas_set_ex_phy()
223 phy->phy_state = PHY_VACANT; in sas_set_ex_phy()
226 phy->phy_state = PHY_NOT_PRESENT; in sas_set_ex_phy()
229 phy->phy_state = PHY_EMPTY; /* do not know yet */ in sas_set_ex_phy()
234 dev_type = phy->attached_dev_type; in sas_set_ex_phy()
[all …]
Dsas_internal.h44 struct sas_phy *phy; member
74 void sas_deform_port(struct asd_sas_phy *phy, int gone);
88 int sas_smp_get_phy_events(struct sas_phy *phy);
90 void sas_notify_phy_event(struct asd_sas_phy *phy, enum phy_event event);
97 int sas_try_ata_reset(struct asd_sas_phy *phy);
152 struct sas_phy *phy = p->phy; in sas_phy_set_target() local
156 phy->identify.device_type = SAS_END_DEVICE; in sas_phy_set_target()
158 phy->identify.device_type = dev->dev_type; in sas_phy_set_target()
159 phy->identify.target_port_protocols = dev->tproto; in sas_phy_set_target()
161 phy->identify.device_type = SAS_PHY_UNUSED; in sas_phy_set_target()
[all …]
/linux-4.4.14/drivers/net/
Dsungem_phy.c50 static inline int __sungem_phy_read(struct mii_phy* phy, int id, int reg) in __sungem_phy_read() argument
52 return phy->mdio_read(phy->dev, id, reg); in __sungem_phy_read()
55 static inline void __sungem_phy_write(struct mii_phy* phy, int id, int reg, int val) in __sungem_phy_write() argument
57 phy->mdio_write(phy->dev, id, reg, val); in __sungem_phy_write()
60 static inline int sungem_phy_read(struct mii_phy* phy, int reg) in sungem_phy_read() argument
62 return phy->mdio_read(phy->dev, phy->mii_id, reg); in sungem_phy_read()
65 static inline void sungem_phy_write(struct mii_phy* phy, int reg, int val) in sungem_phy_write() argument
67 phy->mdio_write(phy->dev, phy->mii_id, reg, val); in sungem_phy_write()
70 static int reset_one_mii_phy(struct mii_phy* phy, int phy_id) in reset_one_mii_phy() argument
75 val = __sungem_phy_read(phy, phy_id, MII_BMCR); in reset_one_mii_phy()
[all …]
/linux-4.4.14/drivers/net/ethernet/ibm/emac/
Dphy.c34 static inline int _phy_read(struct mii_phy *phy, int reg) in _phy_read() argument
36 return phy->mdio_read(phy->dev, phy->address, reg); in _phy_read()
39 static inline void _phy_write(struct mii_phy *phy, int reg, int val) in _phy_write() argument
41 phy->mdio_write(phy->dev, phy->address, reg, val); in _phy_write()
44 static inline int gpcs_phy_read(struct mii_phy *phy, int reg) in gpcs_phy_read() argument
46 return phy->mdio_read(phy->dev, phy->gpcs_address, reg); in gpcs_phy_read()
49 static inline void gpcs_phy_write(struct mii_phy *phy, int reg, int val) in gpcs_phy_write() argument
51 phy->mdio_write(phy->dev, phy->gpcs_address, reg, val); in gpcs_phy_write()
54 int emac_mii_reset_phy(struct mii_phy *phy) in emac_mii_reset_phy() argument
59 val = phy_read(phy, MII_BMCR); in emac_mii_reset_phy()
[all …]
Dphy.h33 int (*init) (struct mii_phy * phy);
34 int (*suspend) (struct mii_phy * phy, int wol_options);
35 int (*setup_aneg) (struct mii_phy * phy, u32 advertise);
36 int (*setup_forced) (struct mii_phy * phy, int speed, int fd);
37 int (*poll_link) (struct mii_phy * phy);
38 int (*read_link) (struct mii_phy * phy);
83 int emac_mii_phy_probe(struct mii_phy *phy, int address);
84 int emac_mii_reset_phy(struct mii_phy *phy);
85 int emac_mii_reset_gpcs(struct mii_phy *phy);
Dcore.c574 link, dev->phy.duplex, dev->phy.pause, dev->phy.asym_pause); in emac_configure()
585 else if (dev->phy.duplex == DUPLEX_FULL) in emac_configure()
590 switch (dev->phy.speed) { in emac_configure()
592 if (emac_phy_gpcs(dev->phy.mode)) { in emac_configure()
594 (dev->phy.gpcs_address != 0xffffffff) ? in emac_configure()
595 dev->phy.gpcs_address : dev->phy.address); in emac_configure()
627 dev->phy.speed); in emac_configure()
629 zmii_set_speed(dev->zmii_dev, dev->zmii_port, dev->phy.speed); in emac_configure()
635 dev->phy.duplex == DUPLEX_FULL) { in emac_configure()
636 if (dev->phy.pause) in emac_configure()
[all …]
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dael1002.c84 static int set_phy_regs(struct cphy *phy, const struct reg_val *rv) in set_phy_regs() argument
90 err = t3_mdio_write(phy, rv->mmd_addr, rv->reg_addr, in set_phy_regs()
93 err = t3_mdio_change_bits(phy, rv->mmd_addr, in set_phy_regs()
100 static void ael100x_txon(struct cphy *phy) in ael100x_txon() argument
103 phy->mdio.prtad == 0 ? F_GPIO7_OUT_VAL : F_GPIO2_OUT_VAL; in ael100x_txon()
106 t3_set_reg_field(phy->adapter, A_T3DBG_GPIO_EN, 0, tx_on_gpio); in ael100x_txon()
113 static int ael_i2c_rd(struct cphy *phy, int dev_addr, int word_addr) in ael_i2c_rd() argument
118 err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AEL_I2C_CTRL, in ael_i2c_rd()
125 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL_I2C_STAT, &stat); in ael_i2c_rd()
129 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AEL_I2C_DATA, in ael_i2c_rd()
[all …]
Daq100x.c65 static int aq100x_reset(struct cphy *phy, int wait) in aq100x_reset() argument
71 int err = t3_phy_reset(phy, MDIO_MMD_VEND1, 3000); in aq100x_reset()
74 CH_WARN(phy->adapter, "PHY%d: reset failed (0x%x).\n", in aq100x_reset()
75 phy->mdio.prtad, err); in aq100x_reset()
80 static int aq100x_intr_enable(struct cphy *phy) in aq100x_intr_enable() argument
82 int err = t3_mdio_write(phy, MDIO_MMD_PMAPMD, AQ_IMASK_PMA, IMASK_PMA); in aq100x_intr_enable()
86 err = t3_mdio_write(phy, MDIO_MMD_VEND1, AQ_IMASK_GLOBAL, IMASK_GLOBAL); in aq100x_intr_enable()
90 static int aq100x_intr_disable(struct cphy *phy) in aq100x_intr_disable() argument
92 return t3_mdio_write(phy, MDIO_MMD_VEND1, AQ_IMASK_GLOBAL, 0); in aq100x_intr_disable()
95 static int aq100x_intr_clear(struct cphy *phy) in aq100x_intr_clear() argument
[all …]
Dcommon.h518 int (*reset)(struct cphy *phy, int wait);
520 int (*intr_enable)(struct cphy *phy);
521 int (*intr_disable)(struct cphy *phy);
522 int (*intr_clear)(struct cphy *phy);
523 int (*intr_handler)(struct cphy *phy);
525 int (*autoneg_enable)(struct cphy *phy);
526 int (*autoneg_restart)(struct cphy *phy);
528 int (*advertise)(struct cphy *phy, unsigned int advertise_map);
529 int (*set_loopback)(struct cphy *phy, int mmd, int dir, int enable);
530 int (*set_speed_duplex)(struct cphy *phy, int speed, int duplex);
[all …]
Dvsc8211.c278 static int vsc8211_set_automdi(struct cphy *phy, int enable) in vsc8211_set_automdi() argument
282 err = t3_mdio_write(phy, MDIO_DEVAD_NONE, VSC8211_EXT_PAGE_AXS, 0x52b5); in vsc8211_set_automdi()
286 err = t3_mdio_write(phy, MDIO_DEVAD_NONE, 18, 0x12); in vsc8211_set_automdi()
290 err = t3_mdio_write(phy, MDIO_DEVAD_NONE, 17, enable ? 0x2803 : 0x3003); in vsc8211_set_automdi()
294 err = t3_mdio_write(phy, MDIO_DEVAD_NONE, 16, 0x87fa); in vsc8211_set_automdi()
298 err = t3_mdio_write(phy, MDIO_DEVAD_NONE, VSC8211_EXT_PAGE_AXS, 0); in vsc8211_set_automdi()
305 int vsc8211_set_speed_duplex(struct cphy *phy, int speed, int duplex) in vsc8211_set_speed_duplex() argument
309 err = t3_set_phy_speed_duplex(phy, speed, duplex); in vsc8211_set_speed_duplex()
311 err = vsc8211_set_automdi(phy, 1); in vsc8211_set_speed_duplex()
367 int t3_vsc8211_phy_prep(struct cphy *phy, struct adapter *adapter, in t3_vsc8211_phy_prep() argument
[all …]
/linux-4.4.14/drivers/nfc/pn544/
Di2c.c203 static void pn544_hci_i2c_platform_init(struct pn544_i2c_phy *phy) in pn544_hci_i2c_platform_init() argument
209 nfc_info(&phy->i2c_dev->dev, "Detecting nfc_en polarity\n"); in pn544_hci_i2c_platform_init()
212 gpio_set_value_cansleep(phy->gpio_fw, 0); in pn544_hci_i2c_platform_init()
215 phy->en_polarity = polarity; in pn544_hci_i2c_platform_init()
219 gpio_set_value_cansleep(phy->gpio_en, in pn544_hci_i2c_platform_init()
220 !phy->en_polarity); in pn544_hci_i2c_platform_init()
224 gpio_set_value_cansleep(phy->gpio_en, phy->en_polarity); in pn544_hci_i2c_platform_init()
228 dev_dbg(&phy->i2c_dev->dev, "Sending reset cmd\n"); in pn544_hci_i2c_platform_init()
229 ret = i2c_master_send(phy->i2c_dev, rset_cmd, count); in pn544_hci_i2c_platform_init()
231 nfc_info(&phy->i2c_dev->dev, in pn544_hci_i2c_platform_init()
[all …]
Dmei.c33 struct nfc_mei_phy *phy; in pn544_mei_probe() local
38 phy = nfc_mei_phy_alloc(cldev); in pn544_mei_probe()
39 if (!phy) { in pn544_mei_probe()
44 r = pn544_hci_probe(phy, &mei_phy_ops, LLC_NOP_NAME, in pn544_mei_probe()
46 NULL, &phy->hdev); in pn544_mei_probe()
48 nfc_mei_phy_free(phy); in pn544_mei_probe()
58 struct nfc_mei_phy *phy = mei_cldev_get_drvdata(cldev); in pn544_mei_remove() local
62 pn544_hci_remove(phy->hdev); in pn544_mei_remove()
64 nfc_mei_phy_free(phy); in pn544_mei_remove()
/linux-4.4.14/drivers/nfc/s3fwrn5/
Di2c.c51 struct s3fwrn5_i2c_phy *phy = phy_id; in s3fwrn5_i2c_set_wake() local
53 mutex_lock(&phy->mutex); in s3fwrn5_i2c_set_wake()
54 gpio_set_value(phy->gpio_fw_wake, wake); in s3fwrn5_i2c_set_wake()
56 mutex_unlock(&phy->mutex); in s3fwrn5_i2c_set_wake()
61 struct s3fwrn5_i2c_phy *phy = phy_id; in s3fwrn5_i2c_set_mode() local
63 mutex_lock(&phy->mutex); in s3fwrn5_i2c_set_mode()
65 if (phy->mode == mode) in s3fwrn5_i2c_set_mode()
68 phy->mode = mode; in s3fwrn5_i2c_set_mode()
70 gpio_set_value(phy->gpio_en, 1); in s3fwrn5_i2c_set_mode()
71 gpio_set_value(phy->gpio_fw_wake, 0); in s3fwrn5_i2c_set_mode()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/igb/
De1000_phy.c76 struct e1000_phy_info *phy = &hw->phy; in igb_get_phy_id() local
80 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id()
84 phy->id = (u32)(phy_id << 16); in igb_get_phy_id()
86 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id()
90 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in igb_get_phy_id()
91 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in igb_get_phy_id()
107 if (!(hw->phy.ops.write_reg)) in igb_phy_reset_dsp()
110 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in igb_phy_reset_dsp()
114 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); in igb_phy_reset_dsp()
131 struct e1000_phy_info *phy = &hw->phy; in igb_read_phy_reg_mdic() local
[all …]
De1000_82575.c116 struct e1000_phy_info *phy = &hw->phy; in igb_check_for_link_media_swap() local
122 ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 0); in igb_check_for_link_media_swap()
126 ret_val = phy->ops.read_reg(hw, E1000_M88E1112_STATUS, &data); in igb_check_for_link_media_swap()
134 ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 1); in igb_check_for_link_media_swap()
138 ret_val = phy->ops.read_reg(hw, E1000_M88E1112_STATUS, &data); in igb_check_for_link_media_swap()
154 ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 0); in igb_check_for_link_media_swap()
161 ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 0); in igb_check_for_link_media_swap()
175 struct e1000_phy_info *phy = &hw->phy; in igb_init_phy_params_82575() local
179 if (hw->phy.media_type != e1000_media_type_copper) { in igb_init_phy_params_82575()
180 phy->type = e1000_phy_none; in igb_init_phy_params_82575()
[all …]
/linux-4.4.14/drivers/usb/phy/
Dphy-ulpi.c55 static int ulpi_set_otg_flags(struct usb_phy *phy) in ulpi_set_otg_flags() argument
60 if (phy->flags & ULPI_OTG_ID_PULLUP) in ulpi_set_otg_flags()
67 if (phy->flags & ULPI_OTG_DP_PULLDOWN_DIS) in ulpi_set_otg_flags()
70 if (phy->flags & ULPI_OTG_DM_PULLDOWN_DIS) in ulpi_set_otg_flags()
73 if (phy->flags & ULPI_OTG_EXTVBUSIND) in ulpi_set_otg_flags()
76 return usb_phy_io_write(phy, flags, ULPI_OTG_CTRL); in ulpi_set_otg_flags()
79 static int ulpi_set_fc_flags(struct usb_phy *phy) in ulpi_set_fc_flags() argument
87 if (phy->flags & ULPI_FC_HS) in ulpi_set_fc_flags()
89 else if (phy->flags & ULPI_FC_LS) in ulpi_set_fc_flags()
91 else if (phy->flags & ULPI_FC_FS4LS) in ulpi_set_fc_flags()
[all …]
Dphy.c26 struct usb_phy *phy; member
33 struct usb_phy *phy = NULL; in __usb_find_phy() local
35 list_for_each_entry(phy, list, head) { in __usb_find_phy()
36 if (phy->type != type) in __usb_find_phy()
39 return phy; in __usb_find_phy()
53 if (phy_bind->phy) in __usb_find_phy_dev()
54 return phy_bind->phy; in __usb_find_phy_dev()
65 struct usb_phy *phy; in __of_usb_find_phy() local
70 list_for_each_entry(phy, &phy_list, head) { in __of_usb_find_phy()
71 if (node != phy->dev->of_node) in __of_usb_find_phy()
[all …]
Dphy-tegra-usb.c206 static void set_pts(struct tegra_usb_phy *phy, u8 pts_val) in set_pts() argument
208 void __iomem *base = phy->regs; in set_pts()
211 if (phy->soc_config->has_hostpc) { in set_pts()
224 static void set_phcd(struct tegra_usb_phy *phy, bool enable) in set_phcd() argument
226 void __iomem *base = phy->regs; in set_phcd()
229 if (phy->soc_config->has_hostpc) { in set_phcd()
246 static int utmip_pad_open(struct tegra_usb_phy *phy) in utmip_pad_open() argument
248 phy->pad_clk = devm_clk_get(phy->u_phy.dev, "utmi-pads"); in utmip_pad_open()
249 if (IS_ERR(phy->pad_clk)) { in utmip_pad_open()
251 return PTR_ERR(phy->pad_clk); in utmip_pad_open()
[all …]
DMakefile4 obj-$(CONFIG_USB_PHY) += phy.o
9 obj-$(CONFIG_AB8500_USB) += phy-ab8500-usb.o
10 obj-$(CONFIG_FSL_USB2_OTG) += phy-fsl-usb.o
11 obj-$(CONFIG_ISP1301_OMAP) += phy-isp1301-omap.o
12 obj-$(CONFIG_NOP_USB_XCEIV) += phy-generic.o
13 obj-$(CONFIG_TAHVO_USB) += phy-tahvo.o
14 obj-$(CONFIG_AM335X_CONTROL_USB) += phy-am335x-control.o
15 obj-$(CONFIG_AM335X_PHY_USB) += phy-am335x.o
16 obj-$(CONFIG_OMAP_OTG) += phy-omap-otg.o
17 obj-$(CONFIG_SAMSUNG_USBPHY) += phy-samsung-usb.o
[all …]
Dphy-msm-usb.c84 dev_err(motg->phy.dev, "Cannot set vddcx voltage\n"); in msm_hsusb_init_vddcx()
90 dev_err(motg->phy.dev, "unable to enable hsusb vddcx\n"); in msm_hsusb_init_vddcx()
95 dev_err(motg->phy.dev, "Cannot set vddcx voltage\n"); in msm_hsusb_init_vddcx()
98 dev_err(motg->phy.dev, "unable to disable hsusb vddcx\n"); in msm_hsusb_init_vddcx()
112 dev_err(motg->phy.dev, "Cannot set v3p3 voltage\n"); in msm_hsusb_ldo_init()
117 dev_err(motg->phy.dev, "unable to enable the hsusb 3p3\n"); in msm_hsusb_ldo_init()
123 dev_err(motg->phy.dev, "Cannot set v1p8 voltage\n"); in msm_hsusb_ldo_init()
128 dev_err(motg->phy.dev, "unable to enable the hsusb 1p8\n"); in msm_hsusb_ldo_init()
171 static int ulpi_read(struct usb_phy *phy, u32 reg) in ulpi_read() argument
173 struct msm_otg *motg = container_of(phy, struct msm_otg, phy); in ulpi_read()
[all …]
Dphy-gpio-vbus-usb.c35 struct usb_phy phy; member
107 if (!gpio_vbus->phy.otg->gadget) in gpio_vbus_work()
124 gpio_vbus->phy.otg->state = OTG_STATE_B_PERIPHERAL; in gpio_vbus_work()
125 gpio_vbus->phy.last_event = status; in gpio_vbus_work()
126 usb_gadget_vbus_connect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
135 atomic_notifier_call_chain(&gpio_vbus->phy.notifier, in gpio_vbus_work()
136 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
137 usb_phy_set_event(&gpio_vbus->phy, USB_EVENT_ENUMERATED); in gpio_vbus_work()
145 usb_gadget_vbus_disconnect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
147 gpio_vbus->phy.otg->state = OTG_STATE_B_IDLE; in gpio_vbus_work()
[all …]
Dphy-tahvo.c54 struct usb_phy phy; member
85 switch (tu->phy.otg->state) { in check_vbus_state()
88 if (tu->phy.otg->gadget) in check_vbus_state()
89 usb_gadget_vbus_connect(tu->phy.otg->gadget); in check_vbus_state()
90 tu->phy.otg->state = OTG_STATE_B_PERIPHERAL; in check_vbus_state()
91 usb_phy_set_event(&tu->phy, USB_EVENT_ENUMERATED); in check_vbus_state()
98 tu->phy.otg->state = OTG_STATE_A_HOST; in check_vbus_state()
105 switch (tu->phy.otg->state) { in check_vbus_state()
107 if (tu->phy.otg->gadget) in check_vbus_state()
108 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in check_vbus_state()
[all …]
Dphy-qcom-8x16-usb.c64 struct usb_phy phy; member
126 static int phy_8x16_notify_connect(struct usb_phy *phy, in phy_8x16_notify_connect() argument
129 struct phy_8x16 *qphy = container_of(phy, struct phy_8x16, phy); in phy_8x16_notify_connect()
133 usb_phy_io_write(&qphy->phy, val, ULPI_SET(ULPI_MISC_A)); in phy_8x16_notify_connect()
142 static int phy_8x16_notify_disconnect(struct usb_phy *phy, in phy_8x16_notify_disconnect() argument
145 struct phy_8x16 *qphy = container_of(phy, struct phy_8x16, phy); in phy_8x16_notify_disconnect()
149 usb_phy_io_write(&qphy->phy, val, ULPI_CLR(ULPI_MISC_A)); in phy_8x16_notify_disconnect()
160 phy_8x16_notify_connect(&qphy->phy, USB_SPEED_UNKNOWN); in phy_8x16_vbus_on()
170 phy_8x16_notify_disconnect(&qphy->phy, USB_SPEED_UNKNOWN); in phy_8x16_vbus_off()
191 static int phy_8x16_init(struct usb_phy *phy) in phy_8x16_init() argument
[all …]
Dphy-isp1301-omap.c53 struct usb_phy phy; member
237 return usb_otg_state_string(isp->phy.otg->state); in state_name()
252 isp->phy.otg->state = OTG_STATE_UNDEFINED; in power_down()
281 if (!isp->phy.otg->host) in host_suspend()
287 dev = isp->phy.otg->host->controller; in host_suspend()
299 if (!isp->phy.otg->host) in host_resume()
302 dev = isp->phy.otg->host->controller; in host_resume()
309 isp->phy.otg->gadget->b_hnp_enable = 0; in gadget_suspend()
310 isp->phy.otg->gadget->a_hnp_support = 0; in gadget_suspend()
311 isp->phy.otg->gadget->a_alt_hnp_support = 0; in gadget_suspend()
[all …]
Dphy-generic.c109 struct usb_otg *otg = nop->phy.otg; in nop_gpio_vbus_thread()
120 nop->phy.last_event = status; in nop_gpio_vbus_thread()
126 atomic_notifier_call_chain(&nop->phy.notifier, status, in nop_gpio_vbus_thread()
134 nop->phy.last_event = status; in nop_gpio_vbus_thread()
136 atomic_notifier_call_chain(&nop->phy.notifier, status, in nop_gpio_vbus_thread()
142 int usb_gen_phy_init(struct usb_phy *phy) in usb_gen_phy_init() argument
144 struct usb_phy_generic *nop = dev_get_drvdata(phy->dev); in usb_gen_phy_init()
148 dev_err(phy->dev, "Failed to enable power\n"); in usb_gen_phy_init()
160 void usb_gen_phy_shutdown(struct usb_phy *phy) in usb_gen_phy_shutdown() argument
162 struct usb_phy_generic *nop = dev_get_drvdata(phy->dev); in usb_gen_phy_shutdown()
[all …]
Dphy-isp1301.c22 struct usb_phy phy; member
28 #define phy_to_isp(p) (container_of((p), struct isp1301, phy))
53 static int isp1301_phy_init(struct usb_phy *phy) in isp1301_phy_init() argument
55 struct isp1301 *isp = phy_to_isp(phy); in isp1301_phy_init()
80 static int isp1301_phy_set_vbus(struct usb_phy *phy, int on) in isp1301_phy_set_vbus() argument
82 struct isp1301 *isp = phy_to_isp(phy); in isp1301_phy_set_vbus()
96 struct usb_phy *phy; in isp1301_probe() local
105 phy = &isp->phy; in isp1301_probe()
106 phy->dev = &client->dev; in isp1301_probe()
107 phy->label = DRV_NAME; in isp1301_probe()
[all …]
Dphy-ab8500-usb.c215 struct usb_phy phy; member
236 return container_of(x, struct ab8500_usb, phy); in phy_to_ab()
439 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
442 ab->phy.otg->default_a = false; in ab9540_usb_link_status_update()
447 ab->phy.otg->state = OTG_STATE_B_IDLE; in ab9540_usb_link_status_update()
448 usb_phy_set_event(&ab->phy, USB_EVENT_NONE); in ab9540_usb_link_status_update()
461 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
463 usb_phy_set_event(&ab->phy, USB_EVENT_ENUMERATED); in ab9540_usb_link_status_update()
468 atomic_notifier_call_chain(&ab->phy.notifier, in ab9540_usb_link_status_update()
470 usb_phy_set_event(&ab->phy, USB_EVENT_ENUMERATED); in ab9540_usb_link_status_update()
[all …]
Dphy-mxs-usb.c92 #define to_mxs_phy(p) container_of((p), struct mxs_phy, phy)
162 struct usb_phy phy; member
191 void __iomem *base = mxs_phy->phy.io_priv; in mxs_phy_hw_init()
245 void __iomem *base = mxs_phy->phy.io_priv; in __mxs_phy_disconnect_line()
277 void __iomem *base = mxs_phy->phy.io_priv; in mxs_phy_is_otg_host()
308 static int mxs_phy_init(struct usb_phy *phy) in mxs_phy_init() argument
311 struct mxs_phy *mxs_phy = to_mxs_phy(phy); in mxs_phy_init()
321 static void mxs_phy_shutdown(struct usb_phy *phy) in mxs_phy_shutdown() argument
323 struct mxs_phy *mxs_phy = to_mxs_phy(phy); in mxs_phy_shutdown()
333 writel(value, phy->io_priv + HW_USBPHY_CTRL_CLR); in mxs_phy_shutdown()
[all …]
Dphy-rcar-usb.c64 struct usb_phy phy; member
72 #define usb_phy_to_priv(p) container_of(p, struct rcar_usb_phy_priv, phy)
82 static int rcar_usb_phy_init(struct usb_phy *phy) in rcar_usb_phy_init() argument
84 struct rcar_usb_phy_priv *priv = usb_phy_to_priv(phy); in rcar_usb_phy_init()
85 struct device *dev = phy->dev; in rcar_usb_phy_init()
165 static void rcar_usb_phy_shutdown(struct usb_phy *phy) in rcar_usb_phy_shutdown() argument
167 struct rcar_usb_phy_priv *priv = usb_phy_to_priv(phy); in rcar_usb_phy_shutdown()
209 priv->phy.dev = dev; in rcar_usb_phy_probe()
210 priv->phy.label = dev_name(dev); in rcar_usb_phy_probe()
211 priv->phy.init = rcar_usb_phy_init; in rcar_usb_phy_probe()
[all …]
Dphy-mv-usb.c59 struct mv_otg *mvotg = container_of(otg->usb_phy, struct mv_otg, phy); in mv_otg_set_vbus()
205 struct usb_otg *otg = mvotg->phy.otg; in mv_otg_start_host()
226 struct usb_otg *otg = mvotg->phy.otg; in mv_otg_start_periphrals()
231 dev_info(mvotg->phy.dev, "gadget %s\n", on ? "on" : "off"); in mv_otg_start_periphrals()
341 int old_state = mvotg->phy.otg->state; in mv_otg_update_state()
345 mvotg->phy.otg->state = OTG_STATE_B_IDLE; in mv_otg_update_state()
349 mvotg->phy.otg->state = OTG_STATE_A_IDLE; in mv_otg_update_state()
351 mvotg->phy.otg->state = OTG_STATE_B_PERIPHERAL; in mv_otg_update_state()
355 mvotg->phy.otg->state = OTG_STATE_B_IDLE; in mv_otg_update_state()
359 mvotg->phy.otg->state = OTG_STATE_B_IDLE; in mv_otg_update_state()
[all …]
Dphy-keystone.c53 static int keystone_usbphy_init(struct usb_phy *phy) in keystone_usbphy_init() argument
55 struct keystone_usbphy *k_phy = dev_get_drvdata(phy->dev); in keystone_usbphy_init()
64 static void keystone_usbphy_shutdown(struct usb_phy *phy) in keystone_usbphy_shutdown() argument
66 struct keystone_usbphy *k_phy = dev_get_drvdata(phy->dev); in keystone_usbphy_shutdown()
94 k_phy->usb_phy_gen.phy.init = keystone_usbphy_init; in keystone_usbphy_probe()
95 k_phy->usb_phy_gen.phy.shutdown = keystone_usbphy_shutdown; in keystone_usbphy_probe()
99 return usb_add_phy_dev(&k_phy->usb_phy_gen.phy); in keystone_usbphy_probe()
106 usb_remove_phy(&k_phy->usb_phy_gen.phy); in keystone_usbphy_remove()
Dphy-am335x.c21 static int am335x_init(struct usb_phy *phy) in am335x_init() argument
23 struct am335x_phy *am_phy = dev_get_drvdata(phy->dev); in am335x_init()
29 static void am335x_shutdown(struct usb_phy *phy) in am335x_shutdown() argument
31 struct am335x_phy *am_phy = dev_get_drvdata(phy->dev); in am335x_shutdown()
59 ret = usb_add_phy_dev(&am_phy->usb_phy_gen.phy); in am335x_phy_probe()
62 am_phy->usb_phy_gen.phy.init = am335x_init; in am335x_phy_probe()
63 am_phy->usb_phy_gen.phy.shutdown = am335x_shutdown; in am335x_phy_probe()
87 usb_remove_phy(&am_phy->usb_phy_gen.phy); in am335x_phy_remove()
/linux-4.4.14/drivers/net/ieee802154/
Dfakelb.c60 struct fakelb_phy *phy = hw->priv; in fakelb_hw_channel() local
63 phy->page = page; in fakelb_hw_channel()
64 phy->channel = channel; in fakelb_hw_channel()
71 struct fakelb_phy *current_phy = hw->priv, *phy; in fakelb_hw_xmit() local
75 list_for_each_entry(phy, &fakelb_ifup_phys, list_ifup) { in fakelb_hw_xmit()
76 if (current_phy == phy) in fakelb_hw_xmit()
79 if (current_phy->page == phy->page && in fakelb_hw_xmit()
80 current_phy->channel == phy->channel) { in fakelb_hw_xmit()
84 ieee802154_rx_irqsafe(phy->hw, newskb, 0xcc); in fakelb_hw_xmit()
95 struct fakelb_phy *phy = hw->priv; in fakelb_hw_start() local
[all …]
/linux-4.4.14/drivers/net/fddi/skfp/
Dpcmplc.c202 static void pcm_fsm(struct s_smc *smc, struct s_phy *phy, int cmd);
203 static void pc_rcode_actions(struct s_smc *smc, int bit, struct s_phy *phy);
204 static void pc_tcode_actions(struct s_smc *smc, const int bit, struct s_phy *phy);
205 static void reset_lem_struct(struct s_phy *phy);
209 static void sm_ph_linestate(struct s_smc *smc, int phy, int ls);
217 struct s_phy *phy) in start_pcm_timer0() argument
219 phy->timer0_exp = FALSE ; /* clear timer event flag */ in start_pcm_timer0()
220 smt_timer_start(smc,&phy->pcm_timer0,value, in start_pcm_timer0()
221 EV_TOKEN(EVENT_PCM+phy->np,event)) ; in start_pcm_timer0()
227 static void stop_pcm_timer0(struct s_smc *smc, struct s_phy *phy) in stop_pcm_timer0() argument
[all …]
/linux-4.4.14/drivers/staging/media/omap4iss/
Diss_csiphy.c30 static void csiphy_lanes_config(struct iss_csiphy *phy) in csiphy_lanes_config() argument
35 reg = iss_reg_read(phy->iss, phy->cfg_regs, CSI2_COMPLEXIO_CFG); in csiphy_lanes_config()
37 for (i = 0; i < phy->max_data_lanes; i++) { in csiphy_lanes_config()
40 reg |= (phy->lanes.data[i].pol ? in csiphy_lanes_config()
42 reg |= (phy->lanes.data[i].pos << in csiphy_lanes_config()
48 reg |= phy->lanes.clk.pol ? CSI2_COMPLEXIO_CFG_CLOCK_POL : 0; in csiphy_lanes_config()
49 reg |= phy->lanes.clk.pos << CSI2_COMPLEXIO_CFG_CLOCK_POSITION_SHIFT; in csiphy_lanes_config()
51 iss_reg_write(phy->iss, phy->cfg_regs, CSI2_COMPLEXIO_CFG, reg); in csiphy_lanes_config()
60 static int csiphy_set_power(struct iss_csiphy *phy, u32 power) in csiphy_set_power() argument
65 iss_reg_update(phy->iss, phy->cfg_regs, CSI2_COMPLEXIO_CFG, in csiphy_set_power()
[all …]
/linux-4.4.14/drivers/media/platform/omap3isp/
Dispcsiphy.c26 static void csiphy_routing_cfg_3630(struct isp_csiphy *phy, in csiphy_routing_cfg_3630() argument
33 regmap_read(phy->isp->syscon, phy->isp->syscon_offset, &reg); in csiphy_routing_cfg_3630()
68 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, reg); in csiphy_routing_cfg_3630()
71 static void csiphy_routing_cfg_3430(struct isp_csiphy *phy, u32 iface, bool on, in csiphy_routing_cfg_3430() argument
82 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, 0); in csiphy_routing_cfg_3430()
89 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, csirxfe); in csiphy_routing_cfg_3430()
104 static void csiphy_routing_cfg(struct isp_csiphy *phy, in csiphy_routing_cfg() argument
108 if (phy->isp->phy_type == ISP_PHY_TYPE_3630 && on) in csiphy_routing_cfg()
109 return csiphy_routing_cfg_3630(phy, iface, ccp2_strobe); in csiphy_routing_cfg()
110 if (phy->isp->phy_type == ISP_PHY_TYPE_3430) in csiphy_routing_cfg()
[all …]
/linux-4.4.14/drivers/nfc/st21nfca/
Di2c.c114 static int st21nfca_hci_platform_init(struct st21nfca_i2c_phy *phy) in st21nfca_hci_platform_init() argument
122 r = i2c_master_send(phy->i2c_dev, reboot_cmd, in st21nfca_hci_platform_init()
134 r = i2c_master_recv(phy->i2c_dev, tmp, in st21nfca_hci_platform_init()
155 struct st21nfca_i2c_phy *phy = phy_id; in st21nfca_hci_i2c_enable() local
157 gpio_set_value(phy->gpio_ena, 1); in st21nfca_hci_i2c_enable()
158 phy->powered = 1; in st21nfca_hci_i2c_enable()
159 phy->run_mode = ST21NFCA_HCI_MODE; in st21nfca_hci_i2c_enable()
168 struct st21nfca_i2c_phy *phy = phy_id; in st21nfca_hci_i2c_disable() local
171 gpio_set_value(phy->gpio_ena, 0); in st21nfca_hci_i2c_disable()
173 phy->powered = 0; in st21nfca_hci_i2c_disable()
[all …]
/linux-4.4.14/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy.c145 void msm_dsi_phy_set_src_pll(struct msm_dsi_phy *phy, int pll_id, u32 reg, in msm_dsi_phy_set_src_pll() argument
148 int phy_id = phy->id; in msm_dsi_phy_set_src_pll()
154 val = dsi_phy_read(phy->base + reg); in msm_dsi_phy_set_src_pll()
156 if (phy->cfg->src_pll_truthtable[phy_id][pll_id]) in msm_dsi_phy_set_src_pll()
157 dsi_phy_write(phy->base + reg, val | bit_mask); in msm_dsi_phy_set_src_pll()
159 dsi_phy_write(phy->base + reg, val & (~bit_mask)); in msm_dsi_phy_set_src_pll()
162 static int dsi_phy_regulator_init(struct msm_dsi_phy *phy) in dsi_phy_regulator_init() argument
164 struct regulator_bulk_data *s = phy->supplies; in dsi_phy_regulator_init()
165 const struct dsi_reg_entry *regs = phy->cfg->reg_cfg.regs; in dsi_phy_regulator_init()
166 struct device *dev = &phy->pdev->dev; in dsi_phy_regulator_init()
[all …]
Ddsi_phy_20nm.c17 static void dsi_20nm_dphy_set_timing(struct msm_dsi_phy *phy, in dsi_20nm_dphy_set_timing() argument
20 void __iomem *base = phy->base; in dsi_20nm_dphy_set_timing()
50 static void dsi_20nm_phy_regulator_ctrl(struct msm_dsi_phy *phy, bool enable) in dsi_20nm_phy_regulator_ctrl() argument
52 void __iomem *base = phy->reg_base; in dsi_20nm_phy_regulator_ctrl()
59 if (phy->regulator_ldo_mode) { in dsi_20nm_phy_regulator_ctrl()
60 dsi_phy_write(phy->base + REG_DSI_20nm_PHY_LDO_CNTRL, 0x1d); in dsi_20nm_phy_regulator_ctrl()
70 dsi_phy_write(phy->base + REG_DSI_20nm_PHY_LDO_CNTRL, 0x00); in dsi_20nm_phy_regulator_ctrl()
74 static int dsi_20nm_phy_enable(struct msm_dsi_phy *phy, int src_pll_id, in dsi_20nm_phy_enable() argument
77 struct msm_dsi_dphy_timing *timing = &phy->timing; in dsi_20nm_phy_enable()
79 void __iomem *base = phy->base; in dsi_20nm_phy_enable()
[all …]
Ddsi_phy_28nm.c17 static void dsi_28nm_dphy_set_timing(struct msm_dsi_phy *phy, in dsi_28nm_dphy_set_timing() argument
20 void __iomem *base = phy->base; in dsi_28nm_dphy_set_timing()
50 static void dsi_28nm_phy_regulator_ctrl(struct msm_dsi_phy *phy, bool enable) in dsi_28nm_phy_regulator_ctrl() argument
52 void __iomem *base = phy->reg_base; in dsi_28nm_phy_regulator_ctrl()
69 static int dsi_28nm_phy_enable(struct msm_dsi_phy *phy, int src_pll_id, in dsi_28nm_phy_enable() argument
72 struct msm_dsi_dphy_timing *timing = &phy->timing; in dsi_28nm_phy_enable()
74 void __iomem *base = phy->base; in dsi_28nm_phy_enable()
79 dev_err(&phy->pdev->dev, in dsi_28nm_phy_enable()
86 dsi_28nm_phy_regulator_ctrl(phy, true); in dsi_28nm_phy_enable()
90 dsi_28nm_dphy_set_timing(phy, timing); in dsi_28nm_phy_enable()
[all …]
/linux-4.4.14/drivers/nfc/st-nci/
Di2c.c63 struct st_nci_i2c_phy *phy = phy_id; in st_nci_i2c_enable() local
65 gpio_set_value(phy->gpio_reset, 0); in st_nci_i2c_enable()
67 gpio_set_value(phy->gpio_reset, 1); in st_nci_i2c_enable()
70 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_i2c_enable()
71 enable_irq(phy->i2c_dev->irq); in st_nci_i2c_enable()
72 phy->irq_active = true; in st_nci_i2c_enable()
80 struct st_nci_i2c_phy *phy = phy_id; in st_nci_i2c_disable() local
82 disable_irq_nosync(phy->i2c_dev->irq); in st_nci_i2c_disable()
83 phy->irq_active = false; in st_nci_i2c_disable()
94 struct st_nci_i2c_phy *phy = phy_id; in st_nci_i2c_write() local
[all …]
Dspi.c64 struct st_nci_spi_phy *phy = phy_id; in st_nci_spi_enable() local
66 gpio_set_value(phy->gpio_reset, 0); in st_nci_spi_enable()
68 gpio_set_value(phy->gpio_reset, 1); in st_nci_spi_enable()
71 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_spi_enable()
72 enable_irq(phy->spi_dev->irq); in st_nci_spi_enable()
73 phy->irq_active = true; in st_nci_spi_enable()
81 struct st_nci_spi_phy *phy = phy_id; in st_nci_spi_disable() local
83 disable_irq_nosync(phy->spi_dev->irq); in st_nci_spi_disable()
84 phy->irq_active = false; in st_nci_spi_disable()
95 struct st_nci_spi_phy *phy = phy_id; in st_nci_spi_write() local
[all …]
/linux-4.4.14/drivers/gpu/drm/msm/edp/
Dedp_phy.c23 bool msm_edp_phy_ready(struct edp_phy *phy) in msm_edp_phy_ready() argument
29 status = edp_read(phy->base + in msm_edp_phy_ready()
44 void msm_edp_phy_ctrl(struct edp_phy *phy, int enable) in msm_edp_phy_ctrl() argument
49 edp_write(phy->base + REG_EDP_PHY_CTRL, in msm_edp_phy_ctrl()
54 edp_write(phy->base + REG_EDP_PHY_CTRL, 0x000); in msm_edp_phy_ctrl()
55 edp_write(phy->base + REG_EDP_PHY_GLB_PD_CTL, 0x3f); in msm_edp_phy_ctrl()
56 edp_write(phy->base + REG_EDP_PHY_GLB_CFG, 0x1); in msm_edp_phy_ctrl()
58 edp_write(phy->base + REG_EDP_PHY_GLB_PD_CTL, 0xc0); in msm_edp_phy_ctrl()
63 void msm_edp_phy_vm_pe_init(struct edp_phy *phy) in msm_edp_phy_vm_pe_init() argument
65 edp_write(phy->base + REG_EDP_PHY_GLB_VM_CFG0, 0x3); in msm_edp_phy_vm_pe_init()
[all …]
/linux-4.4.14/drivers/net/wireless/b43legacy/
Dphy.c101 B43legacy_WARN_ON(dev->phy.phy_locked); in b43legacy_phy_lock()
102 dev->phy.phy_locked = 1; in b43legacy_phy_lock()
116 B43legacy_WARN_ON(!dev->phy.phy_locked); in b43legacy_phy_unlock()
117 dev->phy.phy_locked = 0; in b43legacy_phy_unlock()
143 struct b43legacy_phy *phy = &dev->phy; in b43legacy_phy_calibrate() local
146 if (phy->calibrated) in b43legacy_phy_calibrate()
148 if (phy->type == B43legacy_PHYTYPE_G && phy->rev == 1) { in b43legacy_phy_calibrate()
153 phy->calibrated = 1; in b43legacy_phy_calibrate()
161 struct b43legacy_phy *phy = &dev->phy; in b43legacy_phy_init_pctl() local
167 B43legacy_BUG_ON(!(phy->type == B43legacy_PHYTYPE_B || in b43legacy_phy_init_pctl()
[all …]
Dradio.c116 struct b43legacy_phy *phy = &dev->phy; in b43legacy_radio_read16() local
118 switch (phy->type) { in b43legacy_radio_read16()
120 if (phy->radio_ver == 0x2053) { in b43legacy_radio_read16()
125 } else if (phy->radio_ver == 0x2050) in b43legacy_radio_read16()
151 struct b43legacy_phy *phy = &dev->phy; in b43legacy_set_all_gains() local
158 if (phy->rev <= 1) { in b43legacy_set_all_gains()
187 struct b43legacy_phy *phy = &dev->phy; in b43legacy_set_original_gains() local
194 if (phy->rev <= 1) { in b43legacy_set_original_gains()
227 struct b43legacy_phy *phy = &dev->phy; in b43legacy_synth_pu_workaround() local
231 if (phy->radio_ver != 0x2050 || phy->radio_rev >= 6) in b43legacy_synth_pu_workaround()
[all …]
Dmain.c594 if (dev->phy.type != B43legacy_PHYTYPE_G) in b43legacy_set_slot_time()
626 struct b43legacy_phy *phy = &dev->phy; in b43legacy_dummy_transmission() local
638 switch (phy->type) { in b43legacy_dummy_transmission()
666 if (phy->radio_ver == 0x2050 && phy->radio_rev <= 0x5) in b43legacy_dummy_transmission()
686 if (phy->radio_ver == 0x2050 && phy->radio_rev <= 0x5) in b43legacy_dummy_transmission()
725 dev->phy.gmode = true; in b43legacy_wireless_core_reset()
727 dev->phy.gmode = false; in b43legacy_wireless_core_reset()
804 dev->phy.channel); in b43legacy_generate_noise_sample()
813 dev->noisecalc.channel_at_start = dev->phy.channel; in b43legacy_calculate_link_quality()
822 struct b43legacy_phy *phy = &dev->phy; in handle_irq_noise() local
[all …]
/linux-4.4.14/drivers/nfc/
Dmei_phy.c104 static int mei_nfc_if_version(struct nfc_mei_phy *phy) in mei_nfc_if_version() argument
121 r = mei_cldev_send(phy->cldev, (u8 *)&cmd, sizeof(struct mei_nfc_cmd)); in mei_nfc_if_version()
135 bytes_recv = mei_cldev_recv(phy->cldev, (u8 *)reply, if_version_length); in mei_nfc_if_version()
144 phy->fw_ivn = version->fw_ivn; in mei_nfc_if_version()
145 phy->vendor_id = version->vendor_id; in mei_nfc_if_version()
146 phy->radio_type = version->radio_type; in mei_nfc_if_version()
153 static int mei_nfc_connect(struct nfc_mei_phy *phy) in mei_nfc_connect() argument
185 connect->fw_ivn = phy->fw_ivn; in mei_nfc_connect()
186 connect->vendor_id = phy->vendor_id; in mei_nfc_connect()
189 r = mei_cldev_send(phy->cldev, (u8 *)cmd, connect_length); in mei_nfc_connect()
[all …]
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.c32 typedef int (*read_sfp_module_eeprom_func_p)(struct bnx2x_phy *phy,
223 static int bnx2x_sfp_module_detection(struct bnx2x_phy *phy,
1461 params->phy[phy_index].mdio_ctrl); in bnx2x_set_mdio_emac_per_phy()
1767 if (!(params->phy[INT_PHY].flags & FLAGS_TX_ERROR_CHECK)) { in bnx2x_xmac_enable()
1798 (params->phy[INT_PHY].supported & in bnx2x_xmac_enable()
2599 struct bnx2x_phy *phy, in bnx2x_cl22_write() argument
2606 mode = REG_RD(bp, phy->mdio_ctrl + EMAC_REG_EMAC_MDIO_MODE); in bnx2x_cl22_write()
2607 REG_WR(bp, phy->mdio_ctrl + EMAC_REG_EMAC_MDIO_MODE, in bnx2x_cl22_write()
2611 tmp = ((phy->addr << 21) | (reg << 16) | val | in bnx2x_cl22_write()
2614 REG_WR(bp, phy->mdio_ctrl + EMAC_REG_EMAC_MDIO_COMM, tmp); in bnx2x_cl22_write()
[all …]
/linux-4.4.14/net/mac802154/
Dmain.c57 struct wpan_phy *phy; in ieee802154_alloc_hw() local
85 phy = wpan_phy_new(&mac802154_config_ops, priv_size); in ieee802154_alloc_hw()
86 if (!phy) { in ieee802154_alloc_hw()
91 phy->privid = mac802154_wpan_phy_privid; in ieee802154_alloc_hw()
93 local = wpan_phy_priv(phy); in ieee802154_alloc_hw()
94 local->phy = phy; in ieee802154_alloc_hw()
95 local->hw.phy = local->phy; in ieee802154_alloc_hw()
111 phy->supported.max_minbe = 8; in ieee802154_alloc_hw()
112 phy->supported.min_maxbe = 3; in ieee802154_alloc_hw()
113 phy->supported.max_maxbe = 8; in ieee802154_alloc_hw()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dphy.c79 struct e1000_phy_info *phy = &hw->phy; in e1000e_get_phy_id() local
84 if (!phy->ops.read_reg) in e1000e_get_phy_id()
92 phy->id = (u32)(phy_id << 16); in e1000e_get_phy_id()
98 phy->id |= (u32)(phy_id & PHY_REVISION_MASK); in e1000e_get_phy_id()
99 phy->revision = (u32)(phy_id & ~PHY_REVISION_MASK); in e1000e_get_phy_id()
101 if (phy->id != 0 && phy->id != PHY_REVISION_MASK) in e1000e_get_phy_id()
138 struct e1000_phy_info *phy = &hw->phy; in e1000e_read_phy_reg_mdic() local
151 (phy->addr << E1000_MDIC_PHY_SHIFT) | in e1000e_read_phy_reg_mdic()
201 struct e1000_phy_info *phy = &hw->phy; in e1000e_write_phy_reg_mdic() local
215 (phy->addr << E1000_MDIC_PHY_SHIFT) | in e1000e_write_phy_reg_mdic()
[all …]
Dich8lan.c217 if (hw->phy.id) { in e1000_phy_is_accessible_pchlan()
218 if (hw->phy.id == phy_id) in e1000_phy_is_accessible_pchlan()
221 hw->phy.id = phy_id; in e1000_phy_is_accessible_pchlan()
222 hw->phy.revision = (u32)(phy_reg & ~PHY_REVISION_MASK); in e1000_phy_is_accessible_pchlan()
230 hw->phy.ops.release(hw); in e1000_phy_is_accessible_pchlan()
234 hw->phy.ops.acquire(hw); in e1000_phy_is_accessible_pchlan()
323 ret_val = hw->phy.ops.acquire(hw); in e1000_init_phy_workarounds_pchlan()
363 if (hw->phy.ops.check_reset_block(hw)) { in e1000_init_phy_workarounds_pchlan()
392 hw->phy.ops.release(hw); in e1000_init_phy_workarounds_pchlan()
396 if (hw->phy.ops.check_reset_block(hw)) { in e1000_init_phy_workarounds_pchlan()
[all …]
/linux-4.4.14/drivers/nfc/nxp-nci/
Di2c.c66 struct nxp_nci_i2c_phy *phy = (struct nxp_nci_i2c_phy *) phy_id; in nxp_nci_i2c_set_mode() local
68 gpio_set_value(phy->gpio_fw, (mode == NXP_NCI_MODE_FW) ? 1 : 0); in nxp_nci_i2c_set_mode()
69 gpio_set_value(phy->gpio_en, (mode != NXP_NCI_MODE_COLD) ? 1 : 0); in nxp_nci_i2c_set_mode()
73 phy->hard_fault = 0; in nxp_nci_i2c_set_mode()
81 struct nxp_nci_i2c_phy *phy = phy_id; in nxp_nci_i2c_write() local
82 struct i2c_client *client = phy->i2c_dev; in nxp_nci_i2c_write()
84 if (phy->hard_fault != 0) in nxp_nci_i2c_write()
85 return phy->hard_fault; in nxp_nci_i2c_write()
114 static int nxp_nci_i2c_fw_read(struct nxp_nci_i2c_phy *phy, in nxp_nci_i2c_fw_read() argument
117 struct i2c_client *client = phy->i2c_dev; in nxp_nci_i2c_fw_read()
[all …]
/linux-4.4.14/drivers/net/wireless/b43/
Dphy_common.c43 struct b43_phy *phy = &(dev->phy); in b43_phy_allocate() local
46 phy->ops = NULL; in b43_phy_allocate()
48 switch (phy->type) { in b43_phy_allocate()
51 phy->ops = &b43_phyops_g; in b43_phy_allocate()
56 phy->ops = &b43_phyops_n; in b43_phy_allocate()
61 phy->ops = &b43_phyops_lp; in b43_phy_allocate()
66 phy->ops = &b43_phyops_ht; in b43_phy_allocate()
71 phy->ops = &b43_phyops_lcn; in b43_phy_allocate()
76 phy->ops = &b43_phyops_ac; in b43_phy_allocate()
80 if (B43_WARN_ON(!phy->ops)) in b43_phy_allocate()
[all …]
Dphy_g.c83 struct b43_phy *phy = &dev->phy; in generate_rfatt_list() local
131 if (phy->radio_ver == 0x2050 && phy->radio_rev == 8) { in generate_rfatt_list()
178 struct b43_phy *phy = &dev->phy; in b43_synth_pu_workaround() local
182 if (phy->radio_ver != 0x2050 || phy->radio_rev >= 6) { in b43_synth_pu_workaround()
201 struct b43_phy *phy = &dev->phy; in b43_gphy_set_baseband_attenuation() local
203 if (phy->analog == 0) { in b43_gphy_set_baseband_attenuation()
207 } else if (phy->analog > 1) { in b43_gphy_set_baseband_attenuation()
219 struct b43_phy *phy = &dev->phy; in b43_set_txpower_g() local
220 struct b43_phy_g *gphy = phy->g; in b43_set_txpower_g()
248 if (phy->radio_ver == 0x2050 && phy->radio_rev == 8) { in b43_set_txpower_g()
[all …]
Dwa.c62 struct b43_phy *phy = &dev->phy; in b43_wa_initgains() local
66 if (phy->rev <= 2) in b43_wa_initgains()
74 if (phy->rev <= 3) in b43_wa_initgains()
76 else if (phy->rev == 5) { in b43_wa_initgains()
80 if (phy->rev >= 3) in b43_wa_initgains()
92 if (dev->phy.rev <= 2) { in b43_wa_gt()
136 struct b43_phy *phy = &dev->phy; in b43_wa_analog() local
141 if (phy->type == B43_PHYTYPE_A) in b43_wa_analog()
154 if (dev->phy.analog == 1) in b43_wa_dac()
166 if (dev->phy.type == B43_PHYTYPE_A) in b43_wa_fft()
[all …]
Dlo.c60 struct b43_phy *phy = &dev->phy; in b43_lo_write() local
71 B43_WARN_ON(phy->type != B43_PHYTYPE_G); in b43_lo_write()
81 struct b43_phy *phy = &dev->phy; in lo_measure_feedthrough() local
85 if (phy->gmode) { in lo_measure_feedthrough()
102 && phy->rev > 6) in lo_measure_feedthrough()
144 struct b43_phy *phy = &dev->phy; in lo_txctl_register_table() local
147 if (phy->type == B43_PHYTYPE_B) { in lo_txctl_register_table()
149 if (phy->radio_rev <= 5) { in lo_txctl_register_table()
157 if (phy->rev >= 2 && phy->radio_rev == 8) { in lo_txctl_register_table()
177 struct b43_phy *phy = &dev->phy; in lo_measure_txctl_values() local
[all …]
Dphy_a.c67 struct b43_phy *phy = &dev->phy;
68 struct b43_phy_a *aphy = phy->a;
176 aphy_channel_switch(dev, dev->phy.ops->get_default_chan(dev)); in b43_radio_init2060()
185 if (dev->phy.rev < 3) { in b43_phy_rssiagc()
268 struct b43_phy *phy = &dev->phy; in b43_phy_inita() local
273 B43_WARN_ON((phy->type != B43_PHYTYPE_A) && in b43_phy_inita()
274 (phy->type != B43_PHYTYPE_G)); in b43_phy_inita()
278 if (phy->rev >= 6) { in b43_phy_inita()
279 if (phy->type == B43_PHYTYPE_A) in b43_phy_inita()
289 if (phy->type == B43_PHYTYPE_A) { in b43_phy_inita()
[all …]
Dphy_n.c109 return ((dev->phy.n->ipa2g_on && band == IEEE80211_BAND_2GHZ) || in b43_nphy_ipa()
110 (dev->phy.n->ipa5g_on && band == IEEE80211_BAND_5GHZ)); in b43_nphy_ipa()
166 struct b43_phy *phy = &dev->phy; in b43_nphy_rf_ctl_override_rev7() local
176 if (phy->rev >= 19 || phy->rev < 3) { in b43_nphy_rf_ctl_override_rev7()
213 struct b43_phy *phy = &dev->phy; in b43_nphy_rf_ctl_override_one_to_many() local
216 B43_WARN_ON(phy->rev < 7); in b43_nphy_rf_ctl_override_one_to_many()
262 if (dev->phy.rev >= 3) { in b43_nphy_rf_ctl_override()
405 if (dev->phy.rev >= 7) { in b43_nphy_rf_ctl_intc_override()
411 B43_WARN_ON(dev->phy.rev < 3); in b43_nphy_rf_ctl_intc_override()
558 struct b43_phy *phy = &dev->phy; in b43_nphy_stay_in_carrier_search() local
[all …]
Dtables_nphy.c3530 if (dev->phy.do_full_init) { in b43_nphy_tables_init_rev16()
3542 if (dev->phy.do_full_init) { in b43_nphy_tables_init_rev7()
3575 if (dev->phy.do_full_init) { in b43_nphy_tables_init_rev3()
3604 if (dev->phy.do_full_init) { in b43_nphy_tables_init_rev0()
3639 if (dev->phy.rev >= 16) in b43_nphy_tables_init()
3641 else if (dev->phy.rev >= 7) in b43_nphy_tables_init()
3643 else if (dev->phy.rev >= 3) in b43_nphy_tables_init()
3652 struct b43_phy *phy = &dev->phy; in b43_nphy_get_ipa_gain_table() local
3655 switch (phy->rev) { in b43_nphy_get_ipa_gain_table()
3657 if (phy->radio_rev == 14) in b43_nphy_get_ipa_gain_table()
[all …]
Dradio_2057.c539 struct b43_phy *phy = &dev->phy; in r2057_upload_inittabs() local
543 switch (phy->rev) { in r2057_upload_inittabs()
549 if (phy->radio_rev == 5) { in r2057_upload_inittabs()
552 } else if (phy->radio_rev == 7) { in r2057_upload_inittabs()
558 if (phy->radio_rev == 5) { in r2057_upload_inittabs()
564 if (phy->radio_rev == 9) { in r2057_upload_inittabs()
570 if (phy->radio_rev == 14) { in r2057_upload_inittabs()
589 struct b43_phy *phy = &dev->phy; in r2057_get_chantabent_rev7() local
597 switch (phy->rev) { in r2057_get_chantabent_rev7()
599 if (phy->radio_rev == 5) { in r2057_get_chantabent_rev7()
[all …]
/linux-4.4.14/drivers/char/tpm/st33zp24/
Dspi.c115 struct st33zp24_spi_phy *phy = phy_id; in st33zp24_spi_send() local
116 struct spi_device *dev = phy->spi_device; in st33zp24_spi_send()
117 u8 *tx_buf = (u8 *)phy->spi_xfer.tx_buf; in st33zp24_spi_send()
118 u8 *rx_buf = phy->spi_xfer.rx_buf; in st33zp24_spi_send()
136 nbr_dummy_bytes = phy->latency; in st33zp24_spi_send()
139 phy->spi_xfer.len = total_length + nbr_dummy_bytes; in st33zp24_spi_send()
141 ret = spi_sync_transfer(dev, &phy->spi_xfer, 1); in st33zp24_spi_send()
161 struct st33zp24_spi_phy *phy = phy_id; in read8_reg() local
162 struct spi_device *dev = phy->spi_device; in read8_reg()
163 u8 *tx_buf = (u8 *)phy->spi_xfer.tx_buf; in read8_reg()
[all …]
Di2c.c47 struct st33zp24_i2c_phy *phy = phy_id; in write8_reg() local
49 phy->buf[0] = tpm_register; in write8_reg()
50 memcpy(phy->buf + 1, tpm_data, tpm_size); in write8_reg()
51 return i2c_master_send(phy->client, phy->buf, tpm_size + 1); in write8_reg()
64 struct st33zp24_i2c_phy *phy = phy_id; in read8_reg() local
69 status = write8_reg(phy, tpm_register, &data, 1); in read8_reg()
71 status = i2c_master_recv(phy->client, tpm_data, tpm_size); in read8_reg()
112 static int st33zp24_i2c_of_request_resources(struct st33zp24_i2c_phy *phy) in st33zp24_i2c_of_request_resources() argument
115 struct i2c_client *client = phy->client; in st33zp24_i2c_of_request_resources()
130 phy->io_lpcpd = -1; in st33zp24_i2c_of_request_resources()
[all …]
/linux-4.4.14/drivers/nfc/fdp/
Di2c.c48 static void fdp_nci_i2c_reset(struct fdp_i2c_phy *phy) in fdp_nci_i2c_reset() argument
51 gpiod_set_value_cansleep(phy->power_gpio, FDP_POWER_OFF); in fdp_nci_i2c_reset()
53 gpiod_set_value_cansleep(phy->power_gpio, FDP_POWER_ON); in fdp_nci_i2c_reset()
59 struct fdp_i2c_phy *phy = phy_id; in fdp_nci_i2c_enable() local
61 dev_dbg(&phy->i2c_dev->dev, "%s\n", __func__); in fdp_nci_i2c_enable()
62 fdp_nci_i2c_reset(phy); in fdp_nci_i2c_enable()
69 struct fdp_i2c_phy *phy = phy_id; in fdp_nci_i2c_disable() local
71 dev_dbg(&phy->i2c_dev->dev, "%s\n", __func__); in fdp_nci_i2c_disable()
72 fdp_nci_i2c_reset(phy); in fdp_nci_i2c_disable()
100 struct fdp_i2c_phy *phy = phy_id; in fdp_nci_i2c_write() local
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_phy.c115 u32 swfw_mask = hw->phy.phy_semaphore_mask; in ixgbe_read_i2c_combined_generic_int()
223 u32 swfw_mask = hw->phy.phy_semaphore_mask; in ixgbe_write_i2c_combined_generic_int()
316 if (!hw->phy.phy_semaphore_mask) { in ixgbe_identify_phy_generic()
318 hw->phy.phy_semaphore_mask = IXGBE_GSSR_PHY1_SM; in ixgbe_identify_phy_generic()
320 hw->phy.phy_semaphore_mask = IXGBE_GSSR_PHY0_SM; in ixgbe_identify_phy_generic()
323 if (hw->phy.type == ixgbe_phy_unknown) { in ixgbe_identify_phy_generic()
325 hw->phy.mdio.prtad = phy_addr; in ixgbe_identify_phy_generic()
326 if (mdio45_probe(&hw->phy.mdio, phy_addr) == 0) { in ixgbe_identify_phy_generic()
328 hw->phy.type = in ixgbe_identify_phy_generic()
329 ixgbe_get_phy_type_from_id(hw->phy.id); in ixgbe_identify_phy_generic()
[all …]
Dixgbe_x550.c32 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_get_invariants_X550_x() local
38 phy->ops.set_phy_power = NULL; in ixgbe_get_invariants_X550_x()
69 return hw->phy.ops.read_i2c_combined_unlocked(hw, IXGBE_CS4227, reg, in ixgbe_read_cs4227()
83 return hw->phy.ops.write_i2c_combined_unlocked(hw, IXGBE_CS4227, reg, in ixgbe_write_cs4227()
275 u32 swfw_mask = hw->phy.phy_semaphore_mask; in ixgbe_check_cs4227()
355 hw->phy.phy_semaphore_mask = IXGBE_GSSR_SHARED_I2C_SM; in ixgbe_identify_phy_x550em()
360 hw->phy.type = ixgbe_phy_x550em_kx4; in ixgbe_identify_phy_x550em()
363 hw->phy.type = ixgbe_phy_x550em_kr; in ixgbe_identify_phy_x550em()
1205 switch (hw->phy.sfp_type) { in ixgbe_supported_sfp_modules_X550em()
1282 if (!(hw->phy.nw_mng_if_sel & IXGBE_NW_MNG_IF_SEL_INT_PHY_MODE)) in ixgbe_setup_mac_link_sfp_x550em()
[all …]
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
Dhdmi_phy.c29 void hdmi_phy_dump(struct hdmi_phy_data *phy, struct seq_file *s) in hdmi_phy_dump() argument
32 hdmi_read_reg(phy->base, r)) in hdmi_phy_dump()
42 int hdmi_phy_parse_lanes(struct hdmi_phy_data *phy, const u32 *lanes) in hdmi_phy_parse_lanes() argument
71 phy->lane_function[lane] = i / 2; in hdmi_phy_parse_lanes()
72 phy->lane_polarity[lane] = pol; in hdmi_phy_parse_lanes()
78 static void hdmi_phy_configure_lanes(struct hdmi_phy_data *phy) in hdmi_phy_configure_lanes() argument
113 lane_cfg |= phy->lane_function[i] << ((3 - i) * 4); in hdmi_phy_configure_lanes()
115 pol_val |= phy->lane_polarity[0] << 0; in hdmi_phy_configure_lanes()
116 pol_val |= phy->lane_polarity[1] << 3; in hdmi_phy_configure_lanes()
117 pol_val |= phy->lane_polarity[2] << 2; in hdmi_phy_configure_lanes()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/phy/
Dsamsung-phy.txt5 - compatible : should be "samsung,s5pv210-mipi-video-phy";
6 - #phy-cells : from the generic phy bindings, must be 1;
9 For "samsung,s5pv210-mipi-video-phy" compatible PHYs the second cell in
21 - "samsung,exynos5250-dp-video-phy"
22 - "samsung,exynos5420-dp-video-phy"
25 - #phy-cells : from the generic PHY bindings, must be 0;
32 - "samsung,exynos3250-usb2-phy"
33 - "samsung,exynos4210-usb2-phy"
34 - "samsung,exynos4x12-usb2-phy"
35 - "samsung,exynos5250-usb2-phy"
[all …]
Dbrcm,cygnus-pcie-phy.txt4 - compatible: must be "brcm,cygnus-pcie-phy"
15 - #phy-cells: must be 0
18 pcie_phy: phy@0301d0a0 {
19 compatible = "brcm,cygnus-pcie-phy";
22 pcie0_phy: phy@0 {
24 #phy-cells = <0>;
27 pcie1_phy: phy@1 {
29 #phy-cells = <0>;
33 /* users of the PCIe phy */
39 phy-names = "pcie-phy";
[all …]
Dbrcm,brcmstb-sata-phy.txt5 "brcm,bcm7445-sata-phy"
6 "brcm,phy-sata3"
10 - reg-names: should be "phy"
17 - phy-cells: generic PHY binding; must be 0
24 sata-phy@f0458100 {
25 compatible = "brcm,bcm7445-sata-phy", "brcm,phy-sata3";
27 reg-names = "phy";
31 sata-phy@0 {
33 #phy-cells = <0>;
36 sata-phy@1 {
[all …]
Dsun9i-usb-phy.txt6 * allwinner,sun9i-a80-usb-phy
8 - #phy-cells : from the generic phy bindings, must be 0
11 - clocks : phandle + clock specifier for the phy clocks
13 * "phy" for normal USB
17 * "phy" for normal USB
21 - phy-supply : from the generic phy bindings, a phandle to a regulator that
28 usbphy1: phy@00a01800 {
29 compatible = "allwinner,sun9i-a80-usb-phy";
33 clock-names = "hsic_480M", "hsic_12M", "phy";
35 reset-names = "hsic", "phy";
[all …]
Dphy-mt65xx-usb.txt4 This binding describes a usb3.0 phy for mt65xx platforms of Medaitek SoC.
8 - reg : offset and length of register for phy, exclude port's
13 "u3phya_ref": for reference clock of usb3.0 analog phy.
22 - #phy-cells : should be 1 (See second example)
23 cell after port phandle is phy type from:
29 u3phy: usb-phy@11290000 {
41 #phy-cells = <1>;
47 #phy-cells = <1>;
52 Specifying phy control of devices
56 property, containing a phandle to the phy port node and a device type;
[all …]
Dpistachio-usb-phy.txt6 - compatible: Must be "img,pistachio-usb-phy".
7 - #phy-cells: Must be 0. See ./phy-bindings.txt for details.
13 See <dt-bindings/phy/phy-pistachio-usb.h> for a list of valid values.
17 - phy-supply: USB VBUS supply. Must supply 5.0V.
21 usb_phy: usb-phy {
22 compatible = "img,pistachio-usb-phy";
25 phy-supply = <&usb_vbus>;
28 #phy-cells = <0>;
Dti-phy.txt7 "ti,control-phy-otghs" - if it has otghs_control mailbox register as on OMAP4.
8 "ti,control-phy-usb2" - if it has Power down bit in control_dev_conf register
10 "ti,control-phy-pipe3" - if it has DPLL and individual Rx & Tx power control
12 "ti,control-phy-pcie" - for pcie to support external clock for pcie and to
15 "ti,control-phy-usb2-dra7" - if it has power down register like USB2 PHY on
17 "ti,control-phy-usb2-am437" - if it has power down register like USB2 PHY on
20 - reg-names: "otghs_control" for control-phy-otghs
21 "power", "pcie_pcs" and "control_sma" for control-phy-pcie
25 compatible = "ti,control-phy-otghs";
35 - #phy-cells: determine the number of cells that should be given in the
[all …]
Dphy-lpc18xx-usb-otg.txt8 - compatible : must be "nxp,lpc1850-usb-otg-phy"
11 - #phy-cells : must be 0 for this phy
12 See: Documentation/devicetree/bindings/phy/phy-bindings.txt
14 The phy node must be a child of the creg syscon node.
21 usb0_otg_phy: phy@004 {
22 compatible = "nxp,lpc1850-usb-otg-phy";
24 #phy-cells = <0>;
Dphy-stih41x-usb.txt4 This file contains documentation for the usb phy found in STiH415/6 SoCs from
8 - compatible : should be "st,stih416-usb-phy" or "st,stih415-usb-phy"
13 - #phy-cells : must be 0 for this phy
14 See: Documentation/devicetree/bindings/phy/phy-bindings.txt
19 compatible = "st,stih416-usb-phy";
20 #phy-cell = <0>;
Dsun4i-usb-phy.txt6 * allwinner,sun4i-a10-usb-phy
7 * allwinner,sun5i-a13-usb-phy
8 * allwinner,sun6i-a31-usb-phy
9 * allwinner,sun7i-a20-usb-phy
10 * allwinner,sun8i-a23-usb-phy
11 * allwinner,sun8i-a33-usb-phy
17 - #phy-cells : from the generic phy bindings, must be 1
18 - clocks : phandle + clock specifier for the phy clocks
38 usbphy: phy@0x01c13400 {
39 #phy-cells = <1>;
[all …]
Dbrcm,kona-usb2-phy.txt4 - compatible: brcm,kona-usb2-phy
6 - #phy-cells: must be 0
7 Refer to phy/phy-bindings.txt for the generic PHY binding properties
11 usbphy: usb-phy@3f130000 {
12 compatible = "brcm,kona-usb2-phy";
14 #phy-cells = <0>;
Dberlin-sata-phy.txt6 "marvell,berlin2-sata-phy"
7 "marvell,berlin2q-sata-phy"
10 - phy-cells: from the generic PHY bindings, must be 1
21 sata_phy: phy@f7e900a0 {
22 compatible = "marvell,berlin2q-sata-phy";
27 #phy-cells = <1>;
29 sata-phy@0 {
33 sata-phy@1 {
Dqcom-dwc3-usb-phy.txt9 - "qcom,dwc3-hs-usb-phy" for High Speed Synopsis PHY controller
10 - "qcom,dwc3-ss-usb-phy" for Super Speed Synopsis PHY controller
12 - #phy-cells: must be zero
21 phy@100f8800 {
22 compatible = "qcom,dwc3-hs-usb-phy";
26 #phy-cells = <0>;
31 phy@100f8830 {
32 compatible = "qcom,dwc3-ss-usb-phy";
36 #phy-cells = <0>;
Dphy-mvebu.txt3 Power control for the SATA phy found on Marvell MVEBU SoCs.
5 This document extends the binding described in phy-bindings.txt
10 - compatible : Should be "marvell,mvebu-sata-phy"
15 sata-phy@84000 {
16 compatible = "marvell,mvebu-sata-phy";
20 #phy-cells = <0>;
35 - #phy-cells : from the generic phy bindings, must be 1. Possible
42 #phy-cells = <1>
Dhix5hd2-phy.txt5 - compatible: should be "hisilicon,hix5hd2-sata-phy"
7 - #phy-cells: must be 0
8 Refer to phy/phy-bindings.txt for the generic PHY binding properties
16 sata_phy: phy@f9900000 {
17 compatible = "hisilicon,hix5hd2-sata-phy";
19 #phy-cells = <0>;
Ddm816x-phy.txt5 - compatible : should be "ti,dm816x-usb-phy"
7 - reg-names : name for the phy registers
11 - #phy-cells : from the generic PHY bindings, must be 1
16 usb_phy0: usb-phy@20 {
17 compatible = "ti,dm8168-usb-phy";
19 reg-names = "phy";
22 #phy-cells = <0>;
Dphy-bindings.txt2 information about PHY subsystem refer to Documentation/phy.txt
8 #phy-cells: Number of cells in a PHY specifier; The meaning of all those
9 cells is defined by the binding for the phy node. The PHY
14 phy-supply: Phandle to a regulator that provides power to the PHY. This
19 phys: phy {
24 #phy-cells = <1>;
38 phy-names : the names of the PHY corresponding to the PHYs present in the
48 phy-names = "usb2phy", "usb3phy";
63 phy-names = "usbphy";
69 device defined previously. Note that the phy handle has an additional specifier
Dpxa1928-usb-phy.txt4 - compatible: "marvell,pxa1928-usb-phy" or "marvell,pxa1928-hsic-phy"
7 - #phys-cells: should be 0. From commmon phy binding.
12 usbphy: phy@7000 {
13 compatible = "marvell,pxa1928-usb-phy";
16 #phy-cells = <0>;
Drcar-gen2-phy.txt7 - compatible: "renesas,usb-phy-r8a7790" if the device is a part of R8A7790 SoC.
8 "renesas,usb-phy-r8a7791" if the device is a part of R8A7791 SoC.
9 "renesas,usb-phy-r8a7794" if the device is a part of R8A7794 SoC.
20 - #phy-cells: see phy-bindings.txt in the same directory, must be <1>.
36 usb-phy@e6590100 {
37 compatible = "renesas,usb-phy-r8a7790";
46 #phy-cells = <1>;
50 #phy-cells = <1>;
Dqcom-apq8064-sata-phy.txt8 - compatible: compatible list, contains "qcom,apq8064-sata-phy".
10 - #phy-cells: must be zero
13 - clock-names: must be "cfg" for phy config clock.
16 sata_phy: sata-phy@1b400000 {
17 compatible = "qcom,apq8064-sata-phy";
23 #phy-cells = <0>;
Dberlin-usb-phy.txt4 - compatible: "marvell,berlin2-usb-phy" or "marvell,berlin2cd-usb-phy"
11 usb-phy@f774000 {
12 compatible = "marvell,berlin2-usb-phy";
14 #phy-cells = <0>;
Drockchip-usb-phy.txt4 - compatible: rockchip,rk3288-usb-phy
15 - #phy-cells: should be 0
22 - clocks : phandle + clock specifier for the phy clocks
27 usbphy: phy {
28 compatible = "rockchip,rk3288-usb-phy";
34 #phy-cells = <0>;
/linux-4.4.14/drivers/of/
Dof_mdio.c47 struct phy_device *phy; in of_mdiobus_register_phy() local
56 phy = phy_device_create(mdio, addr, phy_id, 0, NULL); in of_mdiobus_register_phy()
58 phy = get_phy_device(mdio, addr, is_c45); in of_mdiobus_register_phy()
59 if (!phy || IS_ERR(phy)) in of_mdiobus_register_phy()
64 phy->irq = rc; in of_mdiobus_register_phy()
69 phy->irq = mdio->irq[addr]; in of_mdiobus_register_phy()
78 phy->dev.of_node = child; in of_mdiobus_register_phy()
82 rc = phy_device_register(phy); in of_mdiobus_register_phy()
84 phy_device_free(phy); in of_mdiobus_register_phy()
230 struct phy_device *phy = of_phy_find_device(phy_np); in of_phy_connect() local
[all …]
/linux-4.4.14/drivers/scsi/aic94xx/
Daic94xx_scb.c54 static void get_lrate_mode(struct asd_phy *phy, u8 oob_mode) in get_lrate_mode() argument
56 struct sas_phy *sas_phy = phy->sas_phy.phy; in get_lrate_mode()
61 phy->sas_phy.linkrate = SAS_LINK_RATE_6_0_GBPS; in get_lrate_mode()
62 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_6_0_GBPS; in get_lrate_mode()
65 phy->sas_phy.linkrate = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode()
66 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_3_0_GBPS; in get_lrate_mode()
69 phy->sas_phy.linkrate = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode()
70 phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_1_5_GBPS; in get_lrate_mode()
73 sas_phy->negotiated_linkrate = phy->sas_phy.linkrate; in get_lrate_mode()
76 sas_phy->maximum_linkrate = phy->phy_desc->max_sas_lrate; in get_lrate_mode()
[all …]
Daic94xx_hwi.c71 static void asd_init_phy_identify(struct asd_phy *phy) in asd_init_phy_identify() argument
73 phy->identify_frame = phy->id_frm_tok->vaddr; in asd_init_phy_identify()
75 memset(phy->identify_frame, 0, sizeof(*phy->identify_frame)); in asd_init_phy_identify()
77 phy->identify_frame->dev_type = SAS_END_DEVICE; in asd_init_phy_identify()
78 if (phy->sas_phy.role & PHY_ROLE_INITIATOR) in asd_init_phy_identify()
79 phy->identify_frame->initiator_bits = phy->sas_phy.iproto; in asd_init_phy_identify()
80 if (phy->sas_phy.role & PHY_ROLE_TARGET) in asd_init_phy_identify()
81 phy->identify_frame->target_bits = phy->sas_phy.tproto; in asd_init_phy_identify()
82 memcpy(phy->identify_frame->sas_addr, phy->phy_desc->sas_addr, in asd_init_phy_identify()
84 phy->identify_frame->phy_id = phy->sas_phy.id; in asd_init_phy_identify()
[all …]
/linux-4.4.14/net/ieee802154/
Dnl-phy.c37 u32 seq, int flags, struct wpan_phy *phy) in ieee802154_nl_fill_phy() argument
54 if (nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) || in ieee802154_nl_fill_phy()
55 nla_put_u8(msg, IEEE802154_ATTR_PAGE, phy->current_page) || in ieee802154_nl_fill_phy()
56 nla_put_u8(msg, IEEE802154_ATTR_CHANNEL, phy->current_channel)) in ieee802154_nl_fill_phy()
59 if (phy->supported.channels[i]) in ieee802154_nl_fill_phy()
60 buf[pages++] = phy->supported.channels[i] | (i << 27); in ieee802154_nl_fill_phy()
85 struct wpan_phy *phy; in ieee802154_list_phy() local
98 phy = wpan_phy_find(name); in ieee802154_list_phy()
99 if (!phy) in ieee802154_list_phy()
107 0, phy); in ieee802154_list_phy()
[all …]
Dcore.c56 int (*fn)(struct wpan_phy *phy, void *data);
63 struct wpan_phy *phy = container_of(dev, struct wpan_phy, dev); in wpan_phy_iter() local
65 return wpid->fn(phy, wpid->data); in wpan_phy_iter()
68 int wpan_phy_for_each(int (*fn)(struct wpan_phy *phy, void *data), in wpan_phy_for_each() argument
149 int wpan_phy_register(struct wpan_phy *phy) in wpan_phy_register() argument
151 struct cfg802154_registered_device *rdev = wpan_phy_to_rdev(phy); in wpan_phy_register()
155 ret = device_add(&phy->dev); in wpan_phy_register()
173 void wpan_phy_unregister(struct wpan_phy *phy) in wpan_phy_unregister() argument
175 struct cfg802154_registered_device *rdev = wpan_phy_to_rdev(phy); in wpan_phy_unregister()
198 device_del(&phy->dev); in wpan_phy_unregister()
[all …]
/linux-4.4.14/drivers/nfc/microread/
Di2c.c119 struct microread_i2c_phy *phy = phy_id; in microread_i2c_write() local
120 struct i2c_client *client = phy->i2c_dev; in microread_i2c_write()
122 if (phy->hard_fault != 0) in microread_i2c_write()
123 return phy->hard_fault; in microread_i2c_write()
151 static int microread_i2c_read(struct microread_i2c_phy *phy, in microread_i2c_read() argument
157 struct i2c_client *client = phy->i2c_dev; in microread_i2c_read()
213 struct microread_i2c_phy *phy = phy_id; in microread_i2c_irq_thread_fn() local
217 if (!phy || irq != phy->i2c_dev->irq) { in microread_i2c_irq_thread_fn()
222 if (phy->hard_fault != 0) in microread_i2c_irq_thread_fn()
225 r = microread_i2c_read(phy, &skb); in microread_i2c_irq_thread_fn()
[all …]
Dmei.c35 struct nfc_mei_phy *phy; in microread_mei_probe() local
40 phy = nfc_mei_phy_alloc(cldev); in microread_mei_probe()
41 if (!phy) { in microread_mei_probe()
46 r = microread_probe(phy, &mei_phy_ops, LLC_NOP_NAME, in microread_mei_probe()
48 &phy->hdev); in microread_mei_probe()
50 nfc_mei_phy_free(phy); in microread_mei_probe()
60 struct nfc_mei_phy *phy = mei_cldev_get_drvdata(cldev); in microread_mei_remove() local
62 microread_remove(phy->hdev); in microread_mei_remove()
64 nfc_mei_phy_free(phy); in microread_mei_remove()
/linux-4.4.14/drivers/gpu/drm/msm/hdmi/
Dhdmi_phy_8x74.c27 static void phy_write(struct hdmi_phy_8x74 *phy, u32 reg, u32 data) in phy_write() argument
29 msm_writel(data, phy->mmio + reg); in phy_write()
37 static void hdmi_phy_8x74_destroy(struct hdmi_phy *phy) in hdmi_phy_8x74_destroy() argument
39 struct hdmi_phy_8x74 *phy_8x74 = to_hdmi_phy_8x74(phy); in hdmi_phy_8x74_destroy()
43 static void hdmi_phy_8x74_powerup(struct hdmi_phy *phy, in hdmi_phy_8x74_powerup() argument
46 struct hdmi_phy_8x74 *phy_8x74 = to_hdmi_phy_8x74(phy); in hdmi_phy_8x74_powerup()
58 static void hdmi_phy_8x74_powerdown(struct hdmi_phy *phy) in hdmi_phy_8x74_powerdown() argument
60 struct hdmi_phy_8x74 *phy_8x74 = to_hdmi_phy_8x74(phy); in hdmi_phy_8x74_powerdown()
73 struct hdmi_phy *phy = NULL; in hdmi_phy_8x74_init() local
82 phy = &phy_8x74->base; in hdmi_phy_8x74_init()
[all …]
Dhdmi_phy_8x60.c26 static void hdmi_phy_8x60_destroy(struct hdmi_phy *phy) in hdmi_phy_8x60_destroy() argument
28 struct hdmi_phy_8x60 *phy_8x60 = to_hdmi_phy_8x60(phy); in hdmi_phy_8x60_destroy()
32 static void hdmi_phy_8x60_powerup(struct hdmi_phy *phy, in hdmi_phy_8x60_powerup() argument
35 struct hdmi_phy_8x60 *phy_8x60 = to_hdmi_phy_8x60(phy); in hdmi_phy_8x60_powerup()
119 static void hdmi_phy_8x60_powerdown(struct hdmi_phy *phy) in hdmi_phy_8x60_powerdown() argument
121 struct hdmi_phy_8x60 *phy_8x60 = to_hdmi_phy_8x60(phy); in hdmi_phy_8x60_powerdown()
161 struct hdmi_phy *phy = NULL; in hdmi_phy_8x60_init() local
170 phy = &phy_8x60->base; in hdmi_phy_8x60_init()
172 phy->funcs = &hdmi_phy_8x60_funcs; in hdmi_phy_8x60_init()
176 return phy; in hdmi_phy_8x60_init()
[all …]
/linux-4.4.14/drivers/usb/renesas_usbhs/
Drcar2.c25 struct phy *phy = phy_get(&pdev->dev, "usb"); in usbhs_rcar2_hardware_init() local
27 if (IS_ERR(phy)) in usbhs_rcar2_hardware_init()
28 return PTR_ERR(phy); in usbhs_rcar2_hardware_init()
30 priv->phy = phy; in usbhs_rcar2_hardware_init()
51 if (priv->phy) { in usbhs_rcar2_hardware_exit()
52 phy_put(priv->phy); in usbhs_rcar2_hardware_exit()
53 priv->phy = NULL; in usbhs_rcar2_hardware_exit()
70 if (priv->phy) { in usbhs_rcar2_power_ctrl()
72 retval = phy_init(priv->phy); in usbhs_rcar2_power_ctrl()
75 retval = phy_power_on(priv->phy); in usbhs_rcar2_power_ctrl()
[all …]
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
Dxgbe-mdio.c387 if (pdata->phy.autoneg == AUTONEG_ENABLE) { in xgbe_use_xgmii_mode()
388 if (pdata->phy.advertising & ADVERTISED_10000baseKR_Full) in xgbe_use_xgmii_mode()
391 if (pdata->phy.speed == SPEED_10000) in xgbe_use_xgmii_mode()
400 if (pdata->phy.autoneg == AUTONEG_ENABLE) { in xgbe_use_gmii_2500_mode()
401 if (pdata->phy.advertising & ADVERTISED_2500baseX_Full) in xgbe_use_gmii_2500_mode()
404 if (pdata->phy.speed == SPEED_2500) in xgbe_use_gmii_2500_mode()
413 if (pdata->phy.autoneg == AUTONEG_ENABLE) { in xgbe_use_gmii_mode()
414 if (pdata->phy.advertising & ADVERTISED_1000baseKX_Full) in xgbe_use_gmii_mode()
417 if (pdata->phy.speed == SPEED_1000) in xgbe_use_gmii_mode()
598 if (!(pdata->phy.advertising & ADVERTISED_1000baseKX_Full) && in xgbe_an_incompat_link()
[all …]
Dxgbe-ethtool.c237 pause->autoneg = pdata->phy.pause_autoneg; in xgbe_get_pauseparam()
238 pause->tx_pause = pdata->phy.tx_pause; in xgbe_get_pauseparam()
239 pause->rx_pause = pdata->phy.rx_pause; in xgbe_get_pauseparam()
248 if (pause->autoneg && (pdata->phy.autoneg != AUTONEG_ENABLE)) { in xgbe_set_pauseparam()
254 pdata->phy.pause_autoneg = pause->autoneg; in xgbe_set_pauseparam()
255 pdata->phy.tx_pause = pause->tx_pause; in xgbe_set_pauseparam()
256 pdata->phy.rx_pause = pause->rx_pause; in xgbe_set_pauseparam()
258 pdata->phy.advertising &= ~ADVERTISED_Pause; in xgbe_set_pauseparam()
259 pdata->phy.advertising &= ~ADVERTISED_Asym_Pause; in xgbe_set_pauseparam()
262 pdata->phy.advertising |= ADVERTISED_Pause; in xgbe_set_pauseparam()
[all …]
/linux-4.4.14/drivers/dma/
Ds3c24xx-dma.c221 struct s3c24xx_dma_phy *phy; member
255 static int s3c24xx_dma_phy_busy(struct s3c24xx_dma_phy *phy) in s3c24xx_dma_phy_busy() argument
257 unsigned int val = readl(phy->base + S3C24XX_DSTAT); in s3c24xx_dma_phy_busy()
262 struct s3c24xx_dma_phy *phy) in s3c24xx_dma_phy_valid() argument
277 phyvalid = (cdata->chansel >> (phy->id * S3C24XX_CHANSEL_WIDTH)); in s3c24xx_dma_phy_valid()
294 struct s3c24xx_dma_phy *phy = NULL; in s3c24xx_dma_get_phy() local
303 phy = &s3cdma->phy_chans[i]; in s3c24xx_dma_get_phy()
305 if (!phy->valid) in s3c24xx_dma_get_phy()
308 if (!s3c24xx_dma_phy_valid(s3cchan, phy)) in s3c24xx_dma_get_phy()
311 spin_lock_irqsave(&phy->lock, flags); in s3c24xx_dma_get_phy()
[all …]
Dpxa_dma.c118 struct pxad_phy *phy; member
145 #define _phy_readl_relaxed(phy, _reg) \ argument
146 readl_relaxed((phy)->base + _reg((phy)->idx))
147 #define phy_readl_relaxed(phy, _reg) \ argument
150 _v = readl_relaxed((phy)->base + _reg((phy)->idx)); \
151 dev_vdbg(&phy->vchan->vc.chan.dev->device, \
156 #define phy_writel(phy, val, _reg) \ argument
158 writel((val), (phy)->base + _reg((phy)->idx)); \
159 dev_vdbg(&phy->vchan->vc.chan.dev->device, \
163 #define phy_writel_relaxed(phy, val, _reg) \ argument
[all …]
Dmmp_pdma.c97 struct mmp_pdma_phy *phy; member
130 struct mmp_pdma_phy *phy; member
143 static void set_desc(struct mmp_pdma_phy *phy, dma_addr_t addr) in set_desc() argument
145 u32 reg = (phy->idx << 4) + DDADR; in set_desc()
147 writel(addr, phy->base + reg); in set_desc()
150 static void enable_chan(struct mmp_pdma_phy *phy) in enable_chan() argument
154 if (!phy->vchan) in enable_chan()
157 reg = DRCMR(phy->vchan->drcmr); in enable_chan()
158 writel(DRCMR_MAPVLD | phy->idx, phy->base + reg); in enable_chan()
160 dalgn = readl(phy->base + DALGN); in enable_chan()
[all …]
Dk3dma.c79 struct k3_dma_phy *phy; member
100 struct k3_dma_phy *phy; member
114 static void k3_dma_pause_dma(struct k3_dma_phy *phy, bool on) in k3_dma_pause_dma() argument
119 val = readl_relaxed(phy->base + CX_CFG); in k3_dma_pause_dma()
121 writel_relaxed(val, phy->base + CX_CFG); in k3_dma_pause_dma()
123 val = readl_relaxed(phy->base + CX_CFG); in k3_dma_pause_dma()
125 writel_relaxed(val, phy->base + CX_CFG); in k3_dma_pause_dma()
129 static void k3_dma_terminate_chan(struct k3_dma_phy *phy, struct k3_dma_dev *d) in k3_dma_terminate_chan() argument
133 k3_dma_pause_dma(phy, false); in k3_dma_terminate_chan()
135 val = 0x1 << phy->idx; in k3_dma_terminate_chan()
[all …]
Dzx296702_dma.c106 struct zx_dma_phy *phy; member
125 struct zx_dma_phy *phy; member
141 static void zx_dma_terminate_chan(struct zx_dma_phy *phy, struct zx_dma_dev *d) in zx_dma_terminate_chan() argument
145 val = readl_relaxed(phy->base + REG_ZX_CTRL); in zx_dma_terminate_chan()
148 writel_relaxed(val, phy->base + REG_ZX_CTRL); in zx_dma_terminate_chan()
150 val = 0x1 << phy->idx; in zx_dma_terminate_chan()
157 static void zx_dma_set_desc(struct zx_dma_phy *phy, struct zx_desc_hw *hw) in zx_dma_set_desc() argument
159 writel_relaxed(hw->saddr, phy->base + REG_ZX_SRC_ADDR); in zx_dma_set_desc()
160 writel_relaxed(hw->daddr, phy->base + REG_ZX_DST_ADDR); in zx_dma_set_desc()
161 writel_relaxed(hw->src_x, phy->base + REG_ZX_TX_X_COUNT); in zx_dma_set_desc()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/net/
Dfsl-fec.txt7 - phy-mode : See ethernet.txt file in the same directory
10 - phy-reset-gpios : Should specify the gpio for phy reset
11 - phy-reset-duration : Reset duration in milliseconds. Should present
12 only if property "phy-reset-gpios" is available. Missing the property
15 - phy-supply : regulator that powers the Ethernet PHY.
16 - phy-handle : phandle to the PHY device connected to this device.
18 Use instead of phy-handle.
29 - mdio : specifies the mdio bus in the FEC, used as a container for phy nodes
30 according to phy.txt in the same directory
38 phy-mode = "mii";
[all …]
Dhisilicon-hip04-net.txt13 - phy-mode: see ethernet.txt [1].
16 - phy-handle: see ethernet.txt [1].
37 [2] Documentation/devicetree/bindings/net/phy.txt
46 phy0: ethernet-phy@0 {
47 compatible = "ethernet-phy-ieee802.3-c22";
52 phy1: ethernet-phy@1 {
53 compatible = "ethernet-phy-ieee802.3-c22";
68 phy-mode = "mii";
76 phy-mode = "sgmii";
78 phy-handle = <&phy0>;
[all …]
Daltera_tse.txt24 - phy-mode: See ethernet.txt in the same directory.
25 - phy-handle: See ethernet.txt in the same directory.
26 - phy-addr: See ethernet.txt in the same directory. A configuration should
27 include phy-handle or phy-addr.
35 - mdio device tree subnode: When the TSE has a phy connected to its local
43 For each phy on the mdio bus, there must be a node with the following
46 - reg: phy id used to communicate to phy.
47 - device_type: Must be "ethernet-phy".
72 phy-mode = "gmii";
75 phy-handle = <&phy0>;
[all …]
Dcpsw-phy-sel.txt5 - compatible : Should be "ti,am3352-cpsw-phy-sel" for am335x platform and
6 "ti,dra7xx-cpsw-phy-sel" for dra7xx platform
7 "ti,am43xx-cpsw-phy-sel" for am43xx platform
18 phy_sel: cpsw-phy-sel@44e10650 {
19 compatible = "ti,am3352-cpsw-phy-sel";
25 phy_sel: cpsw-phy-sel@44e10650 {
26 compatible = "ti,am3352-cpsw-phy-sel";
Dhisilicon-hix5hd2-gmac.txt11 - phy-mode: see ethernet.txt [1].
12 - phy-handle: see ethernet.txt [1].
16 - PHY subnode: inherits from phy binding [2]
19 [2] Documentation/devicetree/bindings/net/phy.txt
28 phy-mode = "mii";
29 phy-handle = <&phy2>;
33 phy2: ethernet-phy@2 {
Dsnps,dwc-qos-ethernet.txt13 - phy-mode: See ethernet.txt file in the same directory
30 - phy-handle: See ethernet.txt file in the same directory
31 - mdio device tree subnode: When the GMAC has a phy connected to its local
38 For each phy on the mdio bus, there must be a node with the following
41 - reg: phy id used to communicate to phy.
42 - device_type: Must be "ethernet-phy".
53 phy-handle = <&phy2>;
54 phy-mode = "gmii";
69 phy2: phy@1 {
70 compatible = "ethernet-phy-ieee802.3-c22";
[all …]
Demac_rockchip.txt10 - phy: see ethernet.txt file in the same directory.
11 - phy-mode: see ethernet.txt file in the same directory.
14 - phy-supply: phandle to a regulator if the PHY needs one
20 data to and from the phy.
41 phy = <&phy0>;
42 phy-mode = "rmii";
43 phy-supply = <&vcc_rmii>;
47 phy0: ethernet-phy@0 {
/linux-4.4.14/drivers/staging/vt6655/
Dbaseband.c1779 u16 tx_rate, u8 pkt_type, struct vnt_phy_field *phy) in vnt_get_phy_field() argument
1794 phy->signal = 0x00; in vnt_get_phy_field()
1801 phy->signal = 0x09; in vnt_get_phy_field()
1803 phy->signal = 0x01; in vnt_get_phy_field()
1814 phy->signal = 0x0a; in vnt_get_phy_field()
1816 phy->signal = 0x02; in vnt_get_phy_field()
1831 phy->signal = 0x0b; in vnt_get_phy_field()
1833 phy->signal = 0x03; in vnt_get_phy_field()
1838 phy->signal = 0x9b; in vnt_get_phy_field()
1840 phy->signal = 0x8b; in vnt_get_phy_field()
[all …]
/linux-4.4.14/drivers/usb/host/
Dehci-omap.c70 struct usb_phy *phy[OMAP3_HS_USB_PORTS]; /* one PHY for each port */ member
171 struct usb_phy *phy; in ehci_hcd_omap_probe() local
175 phy = devm_usb_get_phy_by_phandle(dev, "phys", i); in ehci_hcd_omap_probe()
177 phy = devm_usb_get_phy_dev(dev, i); in ehci_hcd_omap_probe()
178 if (IS_ERR(phy)) { in ehci_hcd_omap_probe()
183 ret = PTR_ERR(phy); in ehci_hcd_omap_probe()
189 omap->phy[i] = phy; in ehci_hcd_omap_probe()
192 usb_phy_init(omap->phy[i]); in ehci_hcd_omap_probe()
194 usb_phy_set_suspend(omap->phy[i], 0); in ehci_hcd_omap_probe()
227 if (!omap->phy[i] || in ehci_hcd_omap_probe()
[all …]
Dohci-exynos.c38 struct phy *phy[PHY_NUMBER]; member
45 struct phy *phy; in exynos_ohci_get_phy() local
64 phy = devm_of_phy_get(dev, child, NULL); in exynos_ohci_get_phy()
65 exynos_ohci->phy[phy_number] = phy; in exynos_ohci_get_phy()
66 if (IS_ERR(phy)) { in exynos_ohci_get_phy()
67 ret = PTR_ERR(phy); in exynos_ohci_get_phy()
89 if (!IS_ERR(exynos_ohci->phy[i])) in exynos_ohci_phy_enable()
90 ret = phy_power_on(exynos_ohci->phy[i]); in exynos_ohci_phy_enable()
93 if (!IS_ERR(exynos_ohci->phy[i])) in exynos_ohci_phy_enable()
94 phy_power_off(exynos_ohci->phy[i]); in exynos_ohci_phy_enable()
[all …]
Dehci-orion.c56 struct phy *phy; member
224 priv->phy = devm_phy_optional_get(&pdev->dev, "usb"); in ehci_orion_drv_probe()
225 if (IS_ERR(priv->phy)) { in ehci_orion_drv_probe()
226 err = PTR_ERR(priv->phy); in ehci_orion_drv_probe()
230 err = phy_init(priv->phy); in ehci_orion_drv_probe()
234 err = phy_power_on(priv->phy); in ehci_orion_drv_probe()
274 if (!IS_ERR(priv->phy)) in ehci_orion_drv_probe()
275 phy_power_off(priv->phy); in ehci_orion_drv_probe()
277 if (!IS_ERR(priv->phy)) in ehci_orion_drv_probe()
278 phy_exit(priv->phy); in ehci_orion_drv_probe()
[all …]
Dehci-exynos.c47 struct phy *phy[PHY_NUMBER]; member
56 struct phy *phy; in exynos_ehci_get_phy() local
75 phy = devm_of_phy_get(dev, child, NULL); in exynos_ehci_get_phy()
76 exynos_ehci->phy[phy_number] = phy; in exynos_ehci_get_phy()
77 if (IS_ERR(phy)) { in exynos_ehci_get_phy()
78 ret = PTR_ERR(phy); in exynos_ehci_get_phy()
100 if (!IS_ERR(exynos_ehci->phy[i])) in exynos_ehci_phy_enable()
101 ret = phy_power_on(exynos_ehci->phy[i]); in exynos_ehci_phy_enable()
104 if (!IS_ERR(exynos_ehci->phy[i])) in exynos_ehci_phy_enable()
105 phy_power_off(exynos_ehci->phy[i]); in exynos_ehci_phy_enable()
[all …]
/linux-4.4.14/drivers/scsi/mpt3sas/
Dmpt3sas_transport.c504 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in _transport_delete_phy()
510 sas_port_delete_phy(mpt3sas_port->port, mpt3sas_phy->phy); in _transport_delete_phy()
528 dev_printk(KERN_INFO, &mpt3sas_phy->phy->dev, in _transport_add_phy()
534 sas_port_add_phy(mpt3sas_port->port, mpt3sas_phy->phy); in _transport_add_phy()
624 if (sas_node->phy[i].remote_identify.sas_address != sas_address) in _transport_sanity_check()
626 if (sas_node->phy[i].phy_belongs_to_port == 1) in _transport_sanity_check()
628 &sas_node->phy[i]); in _transport_sanity_check()
694 if (sas_node->phy[i].remote_identify.sas_address != in mpt3sas_transport_port_add()
697 list_add_tail(&sas_node->phy[i].port_siblings, in mpt3sas_transport_port_add()
723 sas_port_add_phy(port, mpt3sas_phy->phy); in mpt3sas_transport_port_add()
[all …]
/linux-4.4.14/drivers/scsi/mvsas/
Dmv_sas.c82 struct asd_sas_phy *phy; in mvs_find_dev_mvi() local
86 phy = container_of(sha->sas_port[i]->phy_list.next, in mvs_find_dev_mvi()
90 if (sha->sas_phy[j] == phy) in mvs_find_dev_mvi()
114 struct asd_sas_phy *phy; in mvs_find_dev_phyno() local
115 list_for_each_entry(phy, in mvs_find_dev_phyno()
119 if (sha->sas_phy[j] == phy) in mvs_find_dev_phyno()
237 struct mvs_phy *phy = &mvi->phy[i]; in mvs_bytes_dmaed() local
238 struct asd_sas_phy *sas_phy = &phy->sas_phy; in mvs_bytes_dmaed()
240 if (!phy->phy_attached) in mvs_bytes_dmaed()
243 if (!(phy->att_dev_info & PORT_DEV_TRGT_MASK) in mvs_bytes_dmaed()
[all …]
/linux-4.4.14/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_phy.c109 struct pch_gbe_phy_info *phy = &hw->phy; in pch_gbe_phy_get_id() local
124 phy->id = (u32)phy_id1; in pch_gbe_phy_get_id()
125 phy->id = ((phy->id << 6) | ((phy_id2 & 0xFC00) >> 10)); in pch_gbe_phy_get_id()
126 phy->revision = (u32) (phy_id2 & 0x000F); in pch_gbe_phy_get_id()
129 phy->id, phy->revision); in pch_gbe_phy_get_id()
144 struct pch_gbe_phy_info *phy = &hw->phy; in pch_gbe_phy_read_reg_miic() local
153 *data = pch_gbe_mac_ctrl_miim(hw, phy->addr, PCH_GBE_HAL_MIIM_READ, in pch_gbe_phy_read_reg_miic()
169 struct pch_gbe_phy_info *phy = &hw->phy; in pch_gbe_phy_write_reg_miic() local
178 pch_gbe_mac_ctrl_miim(hw, phy->addr, PCH_GBE_HAL_MIIM_WRITE, in pch_gbe_phy_write_reg_miic()
276 switch (hw->phy.id) { in pch_gbe_phy_tx_clk_delay()
[all …]
/linux-4.4.14/drivers/staging/vt6656/
Dbaseband.c202 u16 tx_rate, u8 pkt_type, struct vnt_phy_field *phy) in vnt_get_phy_field() argument
217 phy->signal = 0x00; in vnt_get_phy_field()
224 phy->signal = 0x09; in vnt_get_phy_field()
226 phy->signal = 0x01; in vnt_get_phy_field()
237 phy->signal = 0x0a; in vnt_get_phy_field()
239 phy->signal = 0x02; in vnt_get_phy_field()
254 phy->signal = 0x0b; in vnt_get_phy_field()
256 phy->signal = 0x03; in vnt_get_phy_field()
261 phy->signal = 0x9b; in vnt_get_phy_field()
263 phy->signal = 0x8b; in vnt_get_phy_field()
[all …]
/linux-4.4.14/Documentation/
Dphy.txt18 all over the Linux kernel to drivers/phy to increase code re-use and for
56 struct phy *phy_create(struct device *dev, struct device_node *node,
58 struct phy *devm_phy_create(struct device *dev, struct device_node *node,
62 the device pointer and phy ops.
66 Inorder to dereference the private data (in phy_ops), the phy provider driver
75 struct phy *phy_get(struct device *dev, const char *string);
76 struct phy *phy_optional_get(struct device *dev, const char *string);
77 struct phy *devm_phy_get(struct device *dev, const char *string);
78 struct phy *devm_phy_optional_get(struct device *dev, const char *string);
79 struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np,
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/ata/
Dapm-xgene.txt21 - phys : A list of phandles + phy-specifiers, one for each
22 entry in phy-names.
23 - phy-names : Should contain:
24 * "sata-phy" for the SATA 6.0Gbps PHY
39 phy2: phy@1f22a000 {
40 compatible = "apm,xgene-phy";
42 #phy-cells = <1>;
45 phy3: phy@1f23a000 {
46 compatible = "apm,xgene-phy";
48 #phy-cells = <1>;
[all …]
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
Dcphy.h81 int (*advertise)(struct cphy *phy, unsigned int advertise_map);
83 int (*set_speed_duplex)(struct cphy *phy, int speed, int duplex);
84 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
139 static inline void cphy_init(struct cphy *phy, struct net_device *dev, in cphy_init() argument
144 phy->adapter = adapter; in cphy_init()
145 phy->ops = phy_ops; in cphy_init()
147 phy->mdio.prtad = phy_addr; in cphy_init()
148 phy->mdio.mmds = phy_ops->mmds; in cphy_init()
149 phy->mdio.mode_support = mdio_ops->mode_support; in cphy_init()
150 phy->mdio.mdio_read = mdio_ops->read; in cphy_init()
[all …]
Dsubr.c153 struct cphy *phy = adapter->port[port_id].phy; in t1_link_changed() local
156 phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); in t1_link_changed()
200 struct cphy *phy = adapter->port[p].phy; in fpga_phy_intr_handler() local
201 int phy_cause = phy->ops->interrupt_handler(phy); in fpga_phy_intr_handler()
623 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t1_link_start() argument
639 phy->ops->advertise(phy, lc->advertising); in t1_link_start()
648 phy->state = PHY_AUTONEG_RDY; in t1_link_start()
649 phy->ops->set_speed_duplex(phy, lc->speed, lc->duplex); in t1_link_start()
650 phy->ops->reset(phy, 0); in t1_link_start()
652 phy->state = PHY_AUTONEG_EN; in t1_link_start()
[all …]
/linux-4.4.14/drivers/usb/dwc2/
Dpci.c62 struct platform_device *phy; member
70 usb_phy_generic_unregister(glue->phy); in dwc2_pci_remove()
80 struct platform_device *phy; in dwc2_pci_probe() local
118 phy = usb_phy_generic_register(); in dwc2_pci_probe()
119 if (IS_ERR(phy)) { in dwc2_pci_probe()
121 PTR_ERR(phy)); in dwc2_pci_probe()
122 return PTR_ERR(phy); in dwc2_pci_probe()
135 glue->phy = phy; in dwc2_pci_probe()
141 usb_phy_generic_unregister(phy); in dwc2_pci_probe()
/linux-4.4.14/Documentation/devicetree/bindings/usb/
Dqcom,dwc3.txt21 Documentation/devicetree/bindings/phy/qcom,dwc3-usb-phy.txt
25 hs_phy: phy@100f8800 {
26 compatible = "qcom,dwc3-hs-usb-phy";
30 #phy-cells = <0>;
35 ss_phy: phy@100f8830 {
36 compatible = "qcom,dwc3-ss-usb-phy";
40 #phy-cells = <0>;
61 phy-names = "usb2-phy", "usb3-phy";
Ddwc2.txt18 - phys: phy provider specifier
19 - phy-names: shall be "usb2-phy"
20 Refer to phy/phy-bindings.txt for generic phy consumer properties
37 phy-names = "usb2-phy";
/linux-4.4.14/drivers/net/phy/
Dmdio-bitbang.c97 static void mdiobb_cmd(struct mdiobb_ctrl *ctrl, int op, u8 phy, u8 reg) in mdiobb_cmd() argument
127 mdiobb_send_num(ctrl, phy, 5); in mdiobb_cmd()
137 static int mdiobb_cmd_addr(struct mdiobb_ctrl *ctrl, int phy, u32 addr) in mdiobb_cmd_addr() argument
141 mdiobb_cmd(ctrl, MDIO_C45_ADDR, phy, dev_addr); in mdiobb_cmd_addr()
155 static int mdiobb_read(struct mii_bus *bus, int phy, int reg) in mdiobb_read() argument
161 reg = mdiobb_cmd_addr(ctrl, phy, reg); in mdiobb_read()
162 mdiobb_cmd(ctrl, MDIO_C45_READ, phy, reg); in mdiobb_read()
164 mdiobb_cmd(ctrl, MDIO_READ, phy, reg); in mdiobb_read()
172 !(bus->phy_ignore_ta_mask & (1 << phy))) { in mdiobb_read()
187 static int mdiobb_write(struct mii_bus *bus, int phy, int reg, u16 val) in mdiobb_write() argument
[all …]
Dfixed_phy.c315 struct phy_device *phy; in fixed_phy_register() local
332 phy = get_phy_device(fmb->mii_bus, phy_addr, false); in fixed_phy_register()
333 if (!phy || IS_ERR(phy)) { in fixed_phy_register()
339 phy->link = status->link; in fixed_phy_register()
341 phy->speed = status->speed; in fixed_phy_register()
342 phy->duplex = status->duplex; in fixed_phy_register()
343 phy->pause = status->pause; in fixed_phy_register()
344 phy->asym_pause = status->asym_pause; in fixed_phy_register()
348 phy->dev.of_node = np; in fixed_phy_register()
349 phy->is_pseudo_fixed_link = true; in fixed_phy_register()
[all …]
/linux-4.4.14/drivers/scsi/
Dscsi_transport_sas.c458 struct sas_phy *phy = transport_class_to_phy(dev); \
460 return snprintf(buf, 20, format_string, cast phy->field); \
472 struct sas_phy *phy = transport_class_to_phy(dev); \
474 if (!phy->field) \
476 return get_sas_protocol_names(phy->field, buf); \
488 struct sas_phy *phy = transport_class_to_phy(dev); \
490 return get_sas_linkspeed_names(phy->field, buf); \
500 struct sas_phy *phy = transport_class_to_phy(dev); \
501 struct Scsi_Host *shost = dev_to_shost(phy->dev.parent); \
511 error = i->f->set_phy_speed(phy, &rates); \
[all …]
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
DMakefile21 -Idrivers/net/wireless/brcm80211/brcmsmac/phy \
36 phy/phy_cmn.o \
37 phy/phy_lcn.o \
38 phy/phy_n.o \
39 phy/phytbl_lcn.o \
40 phy/phytbl_n.o \
41 phy/phy_qmath.o \
/linux-4.4.14/include/linux/
Dsungem_phy.h9 int (*init)(struct mii_phy *phy);
10 int (*suspend)(struct mii_phy *phy);
11 int (*setup_aneg)(struct mii_phy *phy, u32 advertise);
12 int (*setup_forced)(struct mii_phy *phy, int speed, int fd);
13 int (*poll_link)(struct mii_phy *phy);
14 int (*read_link)(struct mii_phy *phy);
15 int (*enable_fiber)(struct mii_phy *phy, int autoneg);
64 extern int sungem_phy_probe(struct mii_phy *phy, int mii_id);
/linux-4.4.14/Documentation/devicetree/bindings/ufs/
Dufs-qcom.txt10 - compatible : compatible list, contains "qcom,ufs-phy-qmp-20nm"
11 or "qcom,ufs-phy-qmp-14nm" according to the relevant phy in use.
15 - #phy-cells : This property shall be set to 0
16 - vdda-phy-supply : phandle to main PHY supply for analog domain
25 - vdda-phy-max-microamp : specifies max. load that can be drawn from phy supply
34 compatible = "qcom,ufs-phy-qmp-20nm";
37 #phy-cells = <0>;
38 vdda-phy-supply = <&pma8084_l4>;
40 vdda-phy-max-microamp = <50000>;
57 phy-names = "ufsphy";
/linux-4.4.14/arch/powerpc/boot/dts/fsl/
Dppa8548.dts110 phy0: ethernet-phy@0 {
114 phy1: ethernet-phy@1 {
118 tbi0: tbi-phy@11 {
120 device_type = "tbi-phy";
126 phy-handle = <&phy0>;
130 tbi1: tbi-phy@11 {
132 device_type = "tbi-phy";
138 phy-handle = <&phy1>;
142 tbi2: tbi-phy@11 {
144 device_type = "tbi-phy";
[all …]
Dmvme2500.dts91 phy-handle = <&phy1>;
92 phy-connection-type = "rgmii-id";
96 phy1: ethernet-phy@1 {
102 phy2: ethernet-phy@2 {
108 phy3: ethernet-phy@3 {
114 phy7: ethernet-phy@7 {
120 tbi0: tbi-phy@11 {
122 device_type = "tbi-phy";
128 phy-handle = <&phy7>;
129 phy-connection-type = "rgmii-id";
[all …]
Dmpc8569mds.dts265 phy-handle = <&qe_phy0>;
266 phy-connection-type = "rgmii-id";
275 qe_phy0: ethernet-phy@07 {
280 qe_phy1: ethernet-phy@01 {
285 qe_phy2: ethernet-phy@02 {
290 qe_phy3: ethernet-phy@03 {
295 qe_phy5: ethernet-phy@04 {
298 qe_phy7: ethernet-phy@06 {
301 tbi1: tbi-phy@11 {
303 device_type = "tbi-phy";
[all …]
Dp1021mds.dts158 phy0: ethernet-phy@0 {
162 phy1: ethernet-phy@1 {
166 phy4: ethernet-phy@4 {
169 tbi-phy@5 {
170 device_type = "tbi-phy";
176 tbi0: tbi-phy@11 {
178 device_type = "tbi-phy";
183 phy-handle = <&phy0>;
184 phy-connection-type = "rgmii-id";
188 phy-handle = <&phy4>;
[all …]
Dp1025twr.dtsi109 phy0: ethernet-phy@2 {
115 phy1: ethernet-phy@1 {
121 tbi0: tbi-phy@11 {
123 device_type = "tbi-phy";
128 tbi1: tbi-phy@11 {
130 device_type = "tbi-phy";
135 tbi2: tbi-phy@11 {
137 device_type = "tbi-phy";
154 phy-handle = <&phy0>;
155 phy-connection-type = "rgmii-id";
[all …]
Dp1020utm-pc.dtsi82 phy0: ethernet-phy@0 {
86 phy1: ethernet-phy@1 {
90 phy2: ethernet-phy@2 {
97 tbi1: tbi-phy@11 {
99 device_type = "tbi-phy";
104 tbi2: tbi-phy@11 {
106 device_type = "tbi-phy";
111 phy-handle = <&phy2>;
112 phy-connection-type = "rgmii-id";
116 phy-handle = <&phy0>;
[all …]
/linux-4.4.14/drivers/pci/host/
Dpci-dra7xx.c69 struct phy **phy; member
340 struct phy **phy; in dra7xx_pcie_probe() local
379 phy = devm_kzalloc(dev, sizeof(*phy) * phy_count, GFP_KERNEL); in dra7xx_pcie_probe()
380 if (!phy) in dra7xx_pcie_probe()
385 phy[i] = devm_phy_get(dev, name); in dra7xx_pcie_probe()
386 if (IS_ERR(phy[i])) in dra7xx_pcie_probe()
387 return PTR_ERR(phy[i]); in dra7xx_pcie_probe()
389 ret = phy_init(phy[i]); in dra7xx_pcie_probe()
393 ret = phy_power_on(phy[i]); in dra7xx_pcie_probe()
395 phy_exit(phy[i]); in dra7xx_pcie_probe()
[all …]
/linux-4.4.14/arch/arm/boot/dts/
Dspear1310.dtsi36 phy-id = <0>;
37 #phy-cells = <1>;
45 phy-id = <1>;
46 #phy-cells = <1>;
54 phy-id = <2>;
55 #phy-cells = <1>;
64 phy-names = "sata-phy";
73 phy-names = "sata-phy";
82 phy-names = "sata-phy";
95 phy-names = "pcie-phy";
[all …]
Dkirkwood-guruplug-server-plus.dts103 ethphy0: ethernet-phy@0 {
105 compatible = "ethernet-phy-id0141.0cb0",
106 "ethernet-phy-ieee802.3-c22";
110 ethphy1: ethernet-phy@1 {
112 compatible = "ethernet-phy-id0141.0cb0",
113 "ethernet-phy-ieee802.3-c22";
121 phy-handle = <&ethphy0>;
122 phy-connection-type = "rgmii-id";
129 phy-handle = <&ethphy1>;
130 phy-connection-type = "rgmii-id";
Dhisi-x5hd2-dkb.dts58 phy-handle = <&phy2>;
59 phy-mode = "mii";
64 phy2: ethernet-phy@2 {
72 phy-handle = <&phy1>;
73 phy-mode = "rgmii";
78 phy1: ethernet-phy@1 {
85 phy-names = "sata-phy";
/linux-4.4.14/arch/arm/mach-imx/
Dmx31moboard-devboard.c197 struct usb_phy *phy; in devboard_usbh1_init() local
200 phy = kzalloc(sizeof(*phy), GFP_KERNEL); in devboard_usbh1_init()
201 if (!phy) in devboard_usbh1_init()
204 phy->otg = kzalloc(sizeof(struct usb_otg), GFP_KERNEL); in devboard_usbh1_init()
205 if (!phy->otg) { in devboard_usbh1_init()
206 kfree(phy); in devboard_usbh1_init()
210 phy->label = "ISP1105"; in devboard_usbh1_init()
211 phy->init = devboard_isp1105_init; in devboard_usbh1_init()
212 phy->otg->set_vbus = devboard_isp1105_set_vbus; in devboard_usbh1_init()
214 usbh1_pdata.otg = phy; in devboard_usbh1_init()
/linux-4.4.14/drivers/power/
Disp1704_charger.c63 struct usb_phy *phy; member
76 return usb_phy_io_read(isp->phy, reg); in isp1704_read()
81 return usb_phy_io_write(isp->phy, val, reg); in isp1704_write()
253 switch (isp->phy->last_event) { in isp1704_charger_work()
271 if (isp->phy->otg->gadget) in isp1704_charger_work()
272 usb_gadget_connect(isp->phy->otg->gadget); in isp1704_charger_work()
301 if (isp->phy->otg->gadget) in isp1704_charger_work()
302 usb_gadget_disconnect(isp->phy->otg->gadget); in isp1704_charger_work()
440 isp->phy = devm_usb_get_phy_by_phandle(&pdev->dev, "usb-phy", 0); in isp1704_charger_probe()
442 isp->phy = devm_usb_get_phy(&pdev->dev, USB_PHY_TYPE_USB2); in isp1704_charger_probe()
[all …]
/linux-4.4.14/net/caif/
Dcfcnfg.c136 struct cfcnfg_phyinfo *phy; in cfcnfg_get_phyinfo_rcu() local
138 list_for_each_entry_rcu(phy, &cnfg->phys, node) in cfcnfg_get_phyinfo_rcu()
139 if (phy->id == phyid) in cfcnfg_get_phyinfo_rcu()
140 return phy; in cfcnfg_get_phyinfo_rcu()
152 struct cfcnfg_phyinfo *phy; in cfcnfg_get_phyid() local
154 list_for_each_entry_rcu(phy, &cnfg->phys, node) { in cfcnfg_get_phyid()
155 if (phy->up && phy->pref == phy_pref && in cfcnfg_get_phyid()
156 phy->frm_layer != NULL) in cfcnfg_get_phyid()
158 return &phy->dev_info; in cfcnfg_get_phyid()
162 list_for_each_entry_rcu(phy, &cnfg->phys, node) in cfcnfg_get_phyid()
[all …]
/linux-4.4.14/drivers/pinctrl/
Dpinctrl-tegra-xusb.c96 struct phy *phys[2];
546 static int tegra_xusb_phy_init(struct phy *phy) in tegra_xusb_phy_init() argument
548 struct tegra_xusb_padctl *padctl = phy_get_drvdata(phy); in tegra_xusb_phy_init()
553 static int tegra_xusb_phy_exit(struct phy *phy) in tegra_xusb_phy_exit() argument
555 struct tegra_xusb_padctl *padctl = phy_get_drvdata(phy); in tegra_xusb_phy_exit()
560 static int pcie_phy_power_on(struct phy *phy) in pcie_phy_power_on() argument
562 struct tegra_xusb_padctl *padctl = phy_get_drvdata(phy); in pcie_phy_power_on()
596 static int pcie_phy_power_off(struct phy *phy) in pcie_phy_power_off() argument
598 struct tegra_xusb_padctl *padctl = phy_get_drvdata(phy); in pcie_phy_power_off()
616 static int sata_phy_power_on(struct phy *phy) in sata_phy_power_on() argument
[all …]
/linux-4.4.14/net/dsa/
Dslave.c101 err = ds->drv->port_enable(ds, p->port, p->phy); in dsa_slave_open()
109 if (p->phy) in dsa_slave_open()
110 phy_start(p->phy); in dsa_slave_open()
133 if (p->phy) in dsa_slave_close()
134 phy_stop(p->phy); in dsa_slave_close()
147 ds->drv->port_disable(ds, p->port, p->phy); in dsa_slave_close()
381 if (p->phy != NULL) in dsa_slave_ioctl()
382 return phy_mii_ioctl(p->phy, ifr, cmd); in dsa_slave_ioctl()
636 if (p->phy != NULL) { in dsa_slave_get_settings()
637 err = phy_read_status(p->phy); in dsa_slave_get_settings()
[all …]
/linux-4.4.14/Documentation/DocBook/
D.networking.xml.cmd2 …ivers/net/phy/phy.c drivers/net/phy/phy.c drivers/net/phy/phy_device.c drivers/net/phy/phy_device.…
Dnetworking.xml.db432 API-phy-print-status
433 API-phy-ethtool-sset
434 API-phy-mii-ioctl
435 API-phy-start-aneg
436 API-phy-start-interrupts
437 API-phy-stop-interrupts
438 API-phy-stop
439 API-phy-start
440 API-phy-read-mmd-indirect
441 API-phy-write-mmd-indirect
[all …]
/linux-4.4.14/arch/mips/boot/dts/cavium-octeon/
Docteon_68xx.dts60 phy0: ethernet-phy@6 {
72 phy1: ethernet-phy@1 {
81 phy2: ethernet-phy@2 {
90 phy3: ethernet-phy@3 {
99 phy4: ethernet-phy@4 {
116 phy41: ethernet-phy@1 {
125 phy42: ethernet-phy@2 {
134 phy43: ethernet-phy@3 {
143 phy44: ethernet-phy@4 {
160 phy21: ethernet-phy@1 {
[all …]
/linux-4.4.14/drivers/net/ethernet/ti/
Dtlan.c963 u32 phy = priv->phy[priv->phy_num]; in tlan_ioctl() local
970 data->phy_id = phy; in tlan_ioctl()
1705 u32 phy; in tlan_handle_status_check() local
1723 phy = priv->phy[priv->phy_num]; in tlan_handle_status_check()
1732 tlan_mii_read_reg(dev, phy, TLAN_TLPHY_STS, &tlphy_sts); in tlan_handle_status_check()
1733 tlan_mii_read_reg(dev, phy, TLAN_TLPHY_CTL, &tlphy_ctl); in tlan_handle_status_check()
1737 tlan_mii_write_reg(dev, phy, TLAN_TLPHY_CTL, in tlan_handle_status_check()
1742 tlan_mii_write_reg(dev, phy, TLAN_TLPHY_CTL, in tlan_handle_status_check()
2262 u32 phy; in tlan_finish_reset() local
2271 phy = priv->phy[priv->phy_num]; in tlan_finish_reset()
[all …]
/linux-4.4.14/drivers/net/ethernet/smsc/
Dsmc911x.h844 #define SMC_GET_MII(lp,a,phy,v) \ argument
850 SMC_SET_MII_ACC( (lp), ((phy)<<11) | ((a)<<6) | \
857 #define SMC_SET_MII(lp,a,phy,v) \ argument
864 SMC_SET_MII_ACC( (lp), ((phy)<<11) | ((a)<<6) | \
871 #define SMC_GET_PHY_BMCR(lp,phy,x) SMC_GET_MII( (lp), MII_BMCR, phy, x ) argument
872 #define SMC_SET_PHY_BMCR(lp,phy,x) SMC_SET_MII( (lp), MII_BMCR, phy, x ) argument
873 #define SMC_GET_PHY_BMSR(lp,phy,x) SMC_GET_MII( (lp), MII_BMSR, phy, x ) argument
874 #define SMC_GET_PHY_ID1(lp,phy,x) SMC_GET_MII( (lp), MII_PHYSID1, phy, x ) argument
875 #define SMC_GET_PHY_ID2(lp,phy,x) SMC_GET_MII( (lp), MII_PHYSID2, phy, x ) argument
876 #define SMC_GET_PHY_MII_ADV(lp,phy,x) SMC_GET_MII( (lp), MII_ADVERTISE, phy, x ) argument
[all …]
/linux-4.4.14/arch/arm/mach-omap2/
Dusb-host.c431 int usbhs_init_phys(struct usbhs_phy_data *phy, int num_phys) in usbhs_init_phys() argument
442 if (!phy->port) { in usbhs_init_phys()
449 if (!gpio_is_valid(phy->reset_gpio) && in usbhs_init_phys()
450 !gpio_is_valid(phy->vcc_gpio)) in usbhs_init_phys()
461 if (gpio_is_valid(phy->vcc_gpio)) in usbhs_init_phys()
463 nop_pdata.gpio_reset = phy->reset_gpio; in usbhs_init_phys()
469 pdevinfo.id = phy->port; in usbhs_init_phys()
474 phy->port); in usbhs_init_phys()
483 usb_bind_phy("ehci-omap.0", phy->port - 1, phy_id); in usbhs_init_phys()
486 if (gpio_is_valid(phy->vcc_gpio)) { in usbhs_init_phys()
[all …]
/linux-4.4.14/drivers/scsi/bfa/
Dbfa_ioc.c5320 bfa_phy_present(struct bfa_phy_s *phy) in bfa_phy_present() argument
5322 return (phy->ioc->attr->card_type == BFA_MFG_TYPE_LIGHTNING); in bfa_phy_present()
5328 struct bfa_phy_s *phy = cbarg; in bfa_phy_notify() local
5330 bfa_trc(phy, event); in bfa_phy_notify()
5335 if (phy->op_busy) { in bfa_phy_notify()
5336 phy->status = BFA_STATUS_IOC_FAILURE; in bfa_phy_notify()
5337 phy->cbfn(phy->cbarg, phy->status); in bfa_phy_notify()
5338 phy->op_busy = 0; in bfa_phy_notify()
5355 struct bfa_phy_s *phy = cbarg; in bfa_phy_query_send() local
5357 (struct bfi_phy_query_req_s *) phy->mb.msg; in bfa_phy_query_send()
[all …]

12345678