drivers/media/i2c/ccs-pll.c
460
struct ccs_pll_branch_bk *op_pll_bk, bool cphy,
drivers/media/i2c/ccs-pll.c
615
bool cphy, u32 phy_const)
drivers/media/i2c/ccs-pll.c
734
bool cphy = pll->bus_type == CCS_PLL_BUS_TYPE_CSI2_CPHY;
drivers/media/i2c/ccs-pll.c
735
u32 phy_const = cphy ? CPHY_CONST : DPHY_CONST;
drivers/media/i2c/ccs-pll.c
858
op_sys_clk_freq_hz_sdr, l, cphy,
drivers/media/i2c/ccs-pll.c
877
op_pll_bk, cphy, phy_const);
drivers/media/platform/renesas/rcar-csi2.c
1013
if (!priv->cphy)
drivers/media/platform/renesas/rcar-csi2.c
1017
if (priv->cphy)
drivers/media/platform/renesas/rcar-csi2.c
1480
const struct rcsi2_cphy_setting *cphy = NULL;
drivers/media/platform/renesas/rcar-csi2.c
1514
priv->cphy ? V4H_PHY_MODE_CPHY : V4H_PHY_MODE_DPHY);
drivers/media/platform/renesas/rcar-csi2.c
1557
if (priv->cphy) {
drivers/media/platform/renesas/rcar-csi2.c
1558
cphy = rcsi2_c_phy_setting_v4h(priv, mbps);
drivers/media/platform/renesas/rcar-csi2.c
1559
if (!cphy)
drivers/media/platform/renesas/rcar-csi2.c
1578
if (priv->cphy) {
drivers/media/platform/renesas/rcar-csi2.c
1581
cphy->lane29);
drivers/media/platform/renesas/rcar-csi2.c
1583
cphy->lane27);
drivers/media/platform/renesas/rcar-csi2.c
2049
priv->cphy = false;
drivers/media/platform/renesas/rcar-csi2.c
2064
priv->cphy = true;
drivers/media/platform/renesas/rcar-csi2.c
781
bool cphy;
drivers/net/ethernet/chelsio/cxgb/common.h
209
struct cphy;
drivers/net/ethernet/chelsio/cxgb/common.h
214
struct cphy *phy;
drivers/net/ethernet/chelsio/cxgb/common.h
330
int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
drivers/net/ethernet/chelsio/cxgb/cphy.h
101
static inline int cphy_mdio_read(struct cphy *cphy, int mmd, int reg,
drivers/net/ethernet/chelsio/cxgb/cphy.h
104
int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd,
drivers/net/ethernet/chelsio/cxgb/cphy.h
110
static inline int cphy_mdio_write(struct cphy *cphy, int mmd, int reg,
drivers/net/ethernet/chelsio/cxgb/cphy.h
113
return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd,
drivers/net/ethernet/chelsio/cxgb/cphy.h
117
static inline int simple_mdio_read(struct cphy *cphy, int reg,
drivers/net/ethernet/chelsio/cxgb/cphy.h
120
return cphy_mdio_read(cphy, MDIO_DEVAD_NONE, reg, valp);
drivers/net/ethernet/chelsio/cxgb/cphy.h
123
static inline int simple_mdio_write(struct cphy *cphy, int reg,
drivers/net/ethernet/chelsio/cxgb/cphy.h
126
return cphy_mdio_write(cphy, MDIO_DEVAD_NONE, reg, val);
drivers/net/ethernet/chelsio/cxgb/cphy.h
130
static inline void cphy_init(struct cphy *phy, struct net_device *dev,
drivers/net/ethernet/chelsio/cxgb/cphy.h
150
struct cphy *(*create)(struct net_device *dev, int phy_addr,
drivers/net/ethernet/chelsio/cxgb/cphy.h
56
struct cphy;
drivers/net/ethernet/chelsio/cxgb/cphy.h
60
void (*destroy)(struct cphy *);
drivers/net/ethernet/chelsio/cxgb/cphy.h
61
int (*reset)(struct cphy *, int wait);
drivers/net/ethernet/chelsio/cxgb/cphy.h
63
int (*interrupt_enable)(struct cphy *);
drivers/net/ethernet/chelsio/cxgb/cphy.h
64
int (*interrupt_disable)(struct cphy *);
drivers/net/ethernet/chelsio/cxgb/cphy.h
65
int (*interrupt_clear)(struct cphy *);
drivers/net/ethernet/chelsio/cxgb/cphy.h
66
int (*interrupt_handler)(struct cphy *);
drivers/net/ethernet/chelsio/cxgb/cphy.h
68
int (*autoneg_enable)(struct cphy *);
drivers/net/ethernet/chelsio/cxgb/cphy.h
69
int (*autoneg_disable)(struct cphy *);
drivers/net/ethernet/chelsio/cxgb/cphy.h
70
int (*autoneg_restart)(struct cphy *);
drivers/net/ethernet/chelsio/cxgb/cphy.h
72
int (*advertise)(struct cphy *phy, unsigned int advertise_map);
drivers/net/ethernet/chelsio/cxgb/cphy.h
73
int (*set_loopback)(struct cphy *, int on);
drivers/net/ethernet/chelsio/cxgb/cphy.h
74
int (*set_speed_duplex)(struct cphy *phy, int speed, int duplex);
drivers/net/ethernet/chelsio/cxgb/cphy.h
75
int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
102
static int mv88e1xxx_interrupt_clear(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
107
(void) simple_mdio_read(cphy,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
111
if (t1_is_asic(cphy->adapter)) {
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
112
t1_tpi_read(cphy->adapter, A_ELMER0_INT_CAUSE, &elmer);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
114
if (is_T2(cphy->adapter))
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
116
t1_tpi_write(cphy->adapter, A_ELMER0_INT_CAUSE, elmer);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
125
static int mv88e1xxx_set_speed_duplex(struct cphy *phy, int speed, int duplex)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
148
static int mv88e1xxx_crossover_set(struct cphy *cphy, int crossover)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
152
(void) simple_mdio_read(cphy,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
156
(void) simple_mdio_write(cphy,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
161
static int mv88e1xxx_autoneg_enable(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
165
(void) mv88e1xxx_crossover_set(cphy, CROSSOVER_AUTO);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
167
(void) simple_mdio_read(cphy, MII_BMCR, &ctl);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
170
(void) simple_mdio_write(cphy, MII_BMCR, ctl);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
174
static int mv88e1xxx_autoneg_disable(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
18
static void mdio_set_bit(struct cphy *cphy, int reg, u32 bitval)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
182
(void) mv88e1xxx_crossover_set(cphy, CROSSOVER_MDI);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
188
(void) simple_mdio_read(cphy, MII_BMCR, &ctl);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
190
(void) simple_mdio_write(cphy, MII_BMCR, ctl | BMCR_ANRESTART);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
194
static int mv88e1xxx_autoneg_restart(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
196
mdio_set_bit(cphy, MII_BMCR, BMCR_ANRESTART);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
200
static int mv88e1xxx_advertise(struct cphy *phy, unsigned int advertise_map)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
22
(void) simple_mdio_read(cphy, reg, &val);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
23
(void) simple_mdio_write(cphy, reg, val | bitval);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
232
static int mv88e1xxx_set_loopback(struct cphy *cphy, int on)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
235
mdio_set_bit(cphy, MII_BMCR, BMCR_LOOPBACK);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
237
mdio_clear_bit(cphy, MII_BMCR, BMCR_LOOPBACK);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
241
static int mv88e1xxx_get_link_status(struct cphy *cphy, int *link_ok,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
247
(void) simple_mdio_read(cphy,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
274
static int mv88e1xxx_downshift_set(struct cphy *cphy, int downshift_enable)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
278
(void) simple_mdio_read(cphy,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
289
(void) simple_mdio_write(cphy,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
29
static void mdio_clear_bit(struct cphy *cphy, int reg, u32 bitval)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
294
static int mv88e1xxx_interrupt_handler(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
305
(void) simple_mdio_read(cphy,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
313
(void) simple_mdio_read(cphy,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
317
cphy->state |= PHY_LINK_UP;
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
319
cphy->state &= ~PHY_LINK_UP;
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
320
if (cphy->state & PHY_AUTONEG_EN)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
321
cphy->state &= ~PHY_AUTONEG_RDY;
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
327
cphy->state |= PHY_AUTONEG_RDY;
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
329
if ((cphy->state & (PHY_LINK_UP | PHY_AUTONEG_RDY)) ==
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
33
(void) simple_mdio_read(cphy, reg, &val);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
336
static void mv88e1xxx_destroy(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
338
kfree(cphy);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
34
(void) simple_mdio_write(cphy, reg, val & ~bitval);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
357
static struct cphy *mv88e1xxx_phy_create(struct net_device *dev, int phy_addr,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
361
struct cphy *cphy = kzalloc_obj(*cphy);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
363
if (!cphy)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
366
cphy_init(cphy, dev, phy_addr, &mv88e1xxx_ops, mdio_ops);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
374
(void) simple_mdio_write(cphy,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
376
(void) simple_mdio_write(cphy,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
379
(void) mv88e1xxx_downshift_set(cphy, 1); /* Enable downshift */
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
383
(void) simple_mdio_write(cphy,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
387
return cphy;
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
48
static int mv88e1xxx_reset(struct cphy *cphy, int wait)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
53
mdio_set_bit(cphy, MII_BMCR, BMCR_RESET);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
56
(void) simple_mdio_read(cphy, MII_BMCR, &ctl);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
65
static int mv88e1xxx_interrupt_enable(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
68
(void) simple_mdio_write(cphy, MV88E1XXX_INTERRUPT_ENABLE_REGISTER,
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
72
if (t1_is_asic(cphy->adapter)) {
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
75
t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
77
if (is_T2(cphy->adapter))
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
79
t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
84
static int mv88e1xxx_interrupt_disable(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
87
(void) simple_mdio_write(cphy, MV88E1XXX_INTERRUPT_ENABLE_REGISTER, 0);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
90
if (t1_is_asic(cphy->adapter)) {
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
93
t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer);
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
95
if (is_T2(cphy->adapter))
drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c
97
t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
102
t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
104
t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
109
static int mv88x201x_interrupt_clear(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
116
cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_RXSTAT, &val);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
117
cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_TXSTAT, &val);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
118
cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_STAT, &val);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
123
cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
127
cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
129
cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_STAT, &val);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
133
cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_RXSTAT, &val);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
134
cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_TXSTAT, &val);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
138
if (t1_is_asic(cphy->adapter)) {
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
139
t1_tpi_read(cphy->adapter, A_ELMER0_INT_CAUSE, &elmer);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
141
t1_tpi_write(cphy->adapter, A_ELMER0_INT_CAUSE, elmer);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
146
static int mv88x201x_interrupt_handler(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
149
mv88x201x_interrupt_clear(cphy);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
157
static int mv88x201x_set_loopback(struct cphy *cphy, int on)
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
162
static int mv88x201x_get_link_status(struct cphy *cphy, int *link_ok,
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
169
cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
173
led_link(cphy, *link_ok);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
184
static void mv88x201x_destroy(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
186
kfree(cphy);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
202
static struct cphy *mv88x201x_phy_create(struct net_device *dev, int phy_addr,
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
206
struct cphy *cphy = kzalloc_obj(*cphy);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
208
if (!cphy)
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
211
cphy_init(cphy, dev, phy_addr, &mv88x201x_ops, mdio_ops);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
214
cphy_mdio_read(cphy, MDIO_MMD_PCS, 0x8300, &val);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
215
cphy_mdio_write(cphy, MDIO_MMD_PCS, 0x8300, val | 1);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
218
cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT2, &val);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
219
cphy_mdio_read(cphy, MDIO_MMD_PCS, MDIO_STAT2, &val);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
222
led_init(cphy);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
223
return cphy;
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
40
static int led_init(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
46
cphy_mdio_write(cphy, MDIO_MMD_PCS, 0x8304, 0xdddd);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
50
static int led_link(struct cphy *cphy, u32 do_enable)
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
55
cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, &led);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
59
cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, led);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
62
cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, led);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
68
static int mv88x201x_reset(struct cphy *cphy, int wait)
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
76
static int mv88x201x_interrupt_enable(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
79
cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL,
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
83
if (t1_is_asic(cphy->adapter)) {
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
86
t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
88
t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
93
static int mv88x201x_interrupt_disable(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
96
cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL, 0x0);
drivers/net/ethernet/chelsio/cxgb/mv88x201x.c
99
if (t1_is_asic(cphy->adapter)) {
drivers/net/ethernet/chelsio/cxgb/my3126.c
101
my3126_interrupt_handler(cphy);
drivers/net/ethernet/chelsio/cxgb/my3126.c
104
static int my3126_set_loopback(struct cphy *cphy, int on)
drivers/net/ethernet/chelsio/cxgb/my3126.c
110
static int my3126_get_link_status(struct cphy *cphy,
drivers/net/ethernet/chelsio/cxgb/my3126.c
117
adapter = cphy->adapter;
drivers/net/ethernet/chelsio/cxgb/my3126.c
118
cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val);
drivers/net/ethernet/chelsio/cxgb/my3126.c
123
cphy->elmer_gpo = val;
drivers/net/ethernet/chelsio/cxgb/my3126.c
142
cphy->elmer_gpo = val;
drivers/net/ethernet/chelsio/cxgb/my3126.c
153
static void my3126_destroy(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/my3126.c
155
kfree(cphy);
drivers/net/ethernet/chelsio/cxgb/my3126.c
17
static int my3126_interrupt_enable(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/my3126.c
171
static struct cphy *my3126_phy_create(struct net_device *dev,
drivers/net/ethernet/chelsio/cxgb/my3126.c
174
struct cphy *cphy = kzalloc_obj(*cphy);
drivers/net/ethernet/chelsio/cxgb/my3126.c
176
if (!cphy)
drivers/net/ethernet/chelsio/cxgb/my3126.c
179
cphy_init(cphy, dev, phy_addr, &my3126_ops, mdio_ops);
drivers/net/ethernet/chelsio/cxgb/my3126.c
180
INIT_DELAYED_WORK(&cphy->phy_update, my3126_poll);
drivers/net/ethernet/chelsio/cxgb/my3126.c
181
cphy->bmsr = 0;
drivers/net/ethernet/chelsio/cxgb/my3126.c
183
return cphy;
drivers/net/ethernet/chelsio/cxgb/my3126.c
19
schedule_delayed_work(&cphy->phy_update, HZ/30);
drivers/net/ethernet/chelsio/cxgb/my3126.c
20
t1_tpi_read(cphy->adapter, A_ELMER0_GPO, &cphy->elmer_gpo);
drivers/net/ethernet/chelsio/cxgb/my3126.c
24
static int my3126_interrupt_disable(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/my3126.c
26
cancel_delayed_work_sync(&cphy->phy_update);
drivers/net/ethernet/chelsio/cxgb/my3126.c
30
static int my3126_interrupt_clear(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/my3126.c
37
static int my3126_interrupt_handler(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb/my3126.c
44
adapter = cphy->adapter;
drivers/net/ethernet/chelsio/cxgb/my3126.c
46
if (cphy->count == 50) {
drivers/net/ethernet/chelsio/cxgb/my3126.c
47
cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val);
drivers/net/ethernet/chelsio/cxgb/my3126.c
49
status = cphy->bmsr ^ val16;
drivers/net/ethernet/chelsio/cxgb/my3126.c
53
cphy->bmsr = val16;
drivers/net/ethernet/chelsio/cxgb/my3126.c
58
cphy->count = 0;
drivers/net/ethernet/chelsio/cxgb/my3126.c
71
cphy->elmer_gpo = val;
drivers/net/ethernet/chelsio/cxgb/my3126.c
74
(cphy->act_count == act_count) || cphy->act_on ) {
drivers/net/ethernet/chelsio/cxgb/my3126.c
79
cphy->act_on = 0;
drivers/net/ethernet/chelsio/cxgb/my3126.c
8
static int my3126_reset(struct cphy *cphy, int wait)
drivers/net/ethernet/chelsio/cxgb/my3126.c
85
cphy->act_on = 1;
drivers/net/ethernet/chelsio/cxgb/my3126.c
90
cphy->elmer_gpo = val;
drivers/net/ethernet/chelsio/cxgb/my3126.c
91
cphy->act_count = act_count;
drivers/net/ethernet/chelsio/cxgb/my3126.c
92
cphy->count++;
drivers/net/ethernet/chelsio/cxgb/my3126.c
99
struct cphy *cphy = container_of(work, struct cphy, phy_update.work);
drivers/net/ethernet/chelsio/cxgb/subr.c
1031
struct cphy *phy = adapter->port[i].phy;
drivers/net/ethernet/chelsio/cxgb/subr.c
144
struct cphy *phy = adapter->port[port_id].phy;
drivers/net/ethernet/chelsio/cxgb/subr.c
195
struct cphy *phy = adapter->port[p].phy;
drivers/net/ethernet/chelsio/cxgb/subr.c
626
int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc)
drivers/net/ethernet/chelsio/cxgb/subr.c
672
struct cphy *phy;
drivers/net/ethernet/chelsio/cxgb3/adapter.h
289
static inline int phy2portid(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/adapter.h
332
int t3_get_edc_fw(struct cphy *phy, int edc_idx, int size);
drivers/net/ethernet/chelsio/cxgb3/adapter.h
72
struct cphy phy;
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
100
static void ael100x_txon(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
113
static int ael_i2c_rd(struct cphy *phy, int dev_addr, int word_addr)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
141
static int ael1002_power_down(struct cphy *phy, int enable)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
153
static int ael1002_reset(struct cphy *phy, int wait)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
168
static int ael1002_intr_noop(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
176
static int get_link_status_r(struct cphy *phy, int *link_ok, int *speed,
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
212
int t3_ael1002_phy_prep(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
222
static int ael1006_reset(struct cphy *phy, int wait)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
238
int t3_ael1006_phy_prep(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
251
static int ael2xxx_get_module_type(struct cphy *phy, int delay_ms)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
293
static int ael2005_setup_sr_edc(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
325
static int ael2005_setup_twinax_edc(struct cphy *phy, int modtype)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
361
static int ael2005_get_module_type(struct cphy *phy, int delay_ms)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
376
static int ael2005_intr_enable(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
382
static int ael2005_intr_disable(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
388
static int ael2005_intr_clear(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
394
static int ael2005_reset(struct cphy *phy, int wait)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
454
static int ael2005_intr_handler(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
509
int t3_ael2005_phy_prep(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
523
static int ael2020_setup_sr_edc(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
551
static int ael2020_setup_twinax_edc(struct cphy *phy, int modtype)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
604
static int ael2020_get_module_type(struct cphy *phy, int delay_ms)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
625
static int ael2020_intr_enable(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
665
static int ael2020_intr_disable(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
692
static int ael2020_intr_clear(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
722
static int ael2020_reset(struct cphy *phy, int wait)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
765
static int ael2020_intr_handler(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
815
int t3_ael2020_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr,
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
829
static int get_link_status_x(struct cphy *phy, int *link_ok, int *speed,
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
84
static int set_phy_regs(struct cphy *phy, const struct reg_val *rv)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
865
int t3_qt2045_phy_prep(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
885
static int xaui_direct_reset(struct cphy *phy, int wait)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
890
static int xaui_direct_get_link_status(struct cphy *phy, int *link_ok,
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
914
static int xaui_direct_power_down(struct cphy *phy, int enable)
drivers/net/ethernet/chelsio/cxgb3/ael1002.c
929
int t3_xaui_direct_phy_prep(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/aq100x.c
105
static int aq100x_intr_handler(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/aq100x.c
120
static int aq100x_power_down(struct cphy *phy, int off)
drivers/net/ethernet/chelsio/cxgb3/aq100x.c
127
static int aq100x_autoneg_enable(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/aq100x.c
140
static int aq100x_autoneg_restart(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/aq100x.c
153
static int aq100x_advertise(struct cphy *phy, unsigned int advertise_map)
drivers/net/ethernet/chelsio/cxgb3/aq100x.c
194
static int aq100x_set_loopback(struct cphy *phy, int mmd, int dir, int enable)
drivers/net/ethernet/chelsio/cxgb3/aq100x.c
201
static int aq100x_set_speed_duplex(struct cphy *phy, int speed, int duplex)
drivers/net/ethernet/chelsio/cxgb3/aq100x.c
207
static int aq100x_get_link_status(struct cphy *phy, int *link_ok,
drivers/net/ethernet/chelsio/cxgb3/aq100x.c
266
int t3_aq100x_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr,
drivers/net/ethernet/chelsio/cxgb3/aq100x.c
65
static int aq100x_reset(struct cphy *phy, int wait)
drivers/net/ethernet/chelsio/cxgb3/aq100x.c
80
static int aq100x_intr_enable(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/aq100x.c
90
static int aq100x_intr_disable(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/aq100x.c
95
static int aq100x_intr_clear(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/common.h
154
struct cphy;
drivers/net/ethernet/chelsio/cxgb3/common.h
519
int (*reset)(struct cphy *phy, int wait);
drivers/net/ethernet/chelsio/cxgb3/common.h
521
int (*intr_enable)(struct cphy *phy);
drivers/net/ethernet/chelsio/cxgb3/common.h
522
int (*intr_disable)(struct cphy *phy);
drivers/net/ethernet/chelsio/cxgb3/common.h
523
int (*intr_clear)(struct cphy *phy);
drivers/net/ethernet/chelsio/cxgb3/common.h
524
int (*intr_handler)(struct cphy *phy);
drivers/net/ethernet/chelsio/cxgb3/common.h
526
int (*autoneg_enable)(struct cphy *phy);
drivers/net/ethernet/chelsio/cxgb3/common.h
527
int (*autoneg_restart)(struct cphy *phy);
drivers/net/ethernet/chelsio/cxgb3/common.h
529
int (*advertise)(struct cphy *phy, unsigned int advertise_map);
drivers/net/ethernet/chelsio/cxgb3/common.h
530
int (*set_loopback)(struct cphy *phy, int mmd, int dir, int enable);
drivers/net/ethernet/chelsio/cxgb3/common.h
531
int (*set_speed_duplex)(struct cphy *phy, int speed, int duplex);
drivers/net/ethernet/chelsio/cxgb3/common.h
532
int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
drivers/net/ethernet/chelsio/cxgb3/common.h
534
int (*power_down)(struct cphy *phy, int enable);
drivers/net/ethernet/chelsio/cxgb3/common.h
562
static inline int t3_mdio_read(struct cphy *phy, int mmd, int reg,
drivers/net/ethernet/chelsio/cxgb3/common.h
570
static inline int t3_mdio_write(struct cphy *phy, int mmd, int reg,
drivers/net/ethernet/chelsio/cxgb3/common.h
578
static inline void cphy_init(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/common.h
655
int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear,
drivers/net/ethernet/chelsio/cxgb3/common.h
657
int t3_phy_reset(struct cphy *phy, int mmd, int wait);
drivers/net/ethernet/chelsio/cxgb3/common.h
658
int t3_phy_advertise(struct cphy *phy, unsigned int advert);
drivers/net/ethernet/chelsio/cxgb3/common.h
659
int t3_phy_advertise_fiber(struct cphy *phy, unsigned int advert);
drivers/net/ethernet/chelsio/cxgb3/common.h
660
int t3_set_phy_speed_duplex(struct cphy *phy, int speed, int duplex);
drivers/net/ethernet/chelsio/cxgb3/common.h
661
int t3_phy_lasi_intr_enable(struct cphy *phy);
drivers/net/ethernet/chelsio/cxgb3/common.h
662
int t3_phy_lasi_intr_disable(struct cphy *phy);
drivers/net/ethernet/chelsio/cxgb3/common.h
663
int t3_phy_lasi_intr_clear(struct cphy *phy);
drivers/net/ethernet/chelsio/cxgb3/common.h
664
int t3_phy_lasi_intr_handler(struct cphy *phy);
drivers/net/ethernet/chelsio/cxgb3/common.h
678
int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
drivers/net/ethernet/chelsio/cxgb3/common.h
756
int t3_vsc8211_phy_prep(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/common.h
758
int t3_ael1002_phy_prep(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/common.h
760
int t3_ael1006_phy_prep(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/common.h
762
int t3_ael2005_phy_prep(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/common.h
764
int t3_ael2020_phy_prep(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/common.h
766
int t3_qt2045_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr,
drivers/net/ethernet/chelsio/cxgb3/common.h
768
int t3_xaui_direct_phy_prep(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/common.h
770
int t3_aq100x_phy_prep(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c
1024
int t3_get_edc_fw(struct cphy *phy, int edc_idx, int size)
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
1179
struct cphy *phy = &pi->phy;
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
1236
struct cphy *phy = &pi->phy;
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
1298
int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc)
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
2053
struct cphy *phy = &adap2pinfo(adapter, idx)->phy;
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
2070
struct cphy *phy = &adap2pinfo(adapter, idx)->phy;
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
2087
struct cphy *phy = &adap2pinfo(adapter, idx)->phy;
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
329
int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear,
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
353
int t3_phy_reset(struct cphy *phy, int mmd, int wait)
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
383
int t3_phy_advertise(struct cphy *phy, unsigned int advert)
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
426
int t3_phy_advertise_fiber(struct cphy *phy, unsigned int advert)
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
450
int t3_set_phy_speed_duplex(struct cphy *phy, int speed, int duplex)
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
476
int t3_phy_lasi_intr_enable(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
482
int t3_phy_lasi_intr_disable(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
487
int t3_phy_lasi_intr_clear(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
494
int t3_phy_lasi_intr_handler(struct cphy *phy)
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
549
int (*phy_prep)(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
103
static int vsc8211_intr_disable(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
105
return t3_mdio_write(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_ENABLE, 0);
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
108
static int vsc8211_intr_clear(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
113
return t3_mdio_read(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_STATUS, &val);
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
116
static int vsc8211_autoneg_enable(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
118
return t3_mdio_change_bits(cphy, MDIO_DEVAD_NONE, MII_BMCR,
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
123
static int vsc8211_autoneg_restart(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
125
return t3_mdio_change_bits(cphy, MDIO_DEVAD_NONE, MII_BMCR,
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
130
static int vsc8211_get_link_status(struct cphy *cphy, int *link_ok,
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
136
err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMCR, &bmcr);
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
138
err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMSR, &status);
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
148
err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMSR,
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
163
err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, VSC8211_AUX_CTRL_STAT,
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
178
err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_LPA,
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
181
err = t3_mdio_read(cphy, MDIO_DEVAD_NONE,
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
206
static int vsc8211_get_link_status_fiber(struct cphy *cphy, int *link_ok,
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
212
err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMCR, &bmcr);
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
214
err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMSR, &status);
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
224
err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMSR,
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
239
err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_LPA, &lpa);
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
241
err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_ADVERTISE,
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
278
static int vsc8211_set_automdi(struct cphy *phy, int enable)
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
305
int vsc8211_set_speed_duplex(struct cphy *phy, int speed, int duplex)
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
316
static int vsc8211_power_down(struct cphy *cphy, int enable)
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
318
return t3_mdio_change_bits(cphy, 0, MII_BMCR, BMCR_PDOWN,
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
322
static int vsc8211_intr_handler(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
327
err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_STATUS, &cause);
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
367
int t3_vsc8211_phy_prep(struct cphy *phy, struct adapter *adapter,
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
92
static int vsc8211_reset(struct cphy *cphy, int wait)
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
94
return t3_phy_reset(cphy, MDIO_DEVAD_NONE, 0);
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
97
static int vsc8211_intr_enable(struct cphy *cphy)
drivers/net/ethernet/chelsio/cxgb3/vsc8211.c
99
return t3_mdio_write(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_ENABLE,
drivers/scsi/libsas/sas_ata.c
678
struct sas_phy *cphy = child->phy;
drivers/scsi/libsas/sas_ata.c
679
enum sas_linkrate min_prate = cphy->minimum_linkrate,
drivers/staging/media/max96712/max96712.c
126
if (priv->cphy) {
drivers/staging/media/max96712/max96712.c
380
priv->cphy = false;
drivers/staging/media/max96712/max96712.c
384
priv->cphy = true;
drivers/staging/media/max96712/max96712.c
40
bool cphy;