Searched refs:cphy (Results 1 - 14 of 14) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
H A Dmv88e1xxx.c4 #include "cphy.h"
17 static void mdio_set_bit(struct cphy *cphy, int reg, u32 bitval) mdio_set_bit() argument
21 (void) simple_mdio_read(cphy, reg, &val); mdio_set_bit()
22 (void) simple_mdio_write(cphy, reg, val | bitval); mdio_set_bit()
28 static void mdio_clear_bit(struct cphy *cphy, int reg, u32 bitval) mdio_clear_bit() argument
32 (void) simple_mdio_read(cphy, reg, &val); mdio_clear_bit()
33 (void) simple_mdio_write(cphy, reg, val & ~bitval); mdio_clear_bit()
42 * PARAMS: cphy - Pointer to PHY instance data.
47 static int mv88e1xxx_reset(struct cphy *cphy, int wait) mv88e1xxx_reset() argument
52 mdio_set_bit(cphy, MII_BMCR, BMCR_RESET); mv88e1xxx_reset()
55 (void) simple_mdio_read(cphy, MII_BMCR, &ctl); mv88e1xxx_reset()
64 static int mv88e1xxx_interrupt_enable(struct cphy *cphy) mv88e1xxx_interrupt_enable() argument
67 (void) simple_mdio_write(cphy, MV88E1XXX_INTERRUPT_ENABLE_REGISTER, mv88e1xxx_interrupt_enable()
71 if (t1_is_asic(cphy->adapter)) { mv88e1xxx_interrupt_enable()
74 t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer); mv88e1xxx_interrupt_enable()
76 if (is_T2(cphy->adapter)) mv88e1xxx_interrupt_enable()
78 t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer); mv88e1xxx_interrupt_enable()
83 static int mv88e1xxx_interrupt_disable(struct cphy *cphy) mv88e1xxx_interrupt_disable() argument
86 (void) simple_mdio_write(cphy, MV88E1XXX_INTERRUPT_ENABLE_REGISTER, 0); mv88e1xxx_interrupt_disable()
89 if (t1_is_asic(cphy->adapter)) { mv88e1xxx_interrupt_disable()
92 t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer); mv88e1xxx_interrupt_disable()
94 if (is_T2(cphy->adapter)) mv88e1xxx_interrupt_disable()
96 t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer); mv88e1xxx_interrupt_disable()
101 static int mv88e1xxx_interrupt_clear(struct cphy *cphy) mv88e1xxx_interrupt_clear() argument
106 (void) simple_mdio_read(cphy, mv88e1xxx_interrupt_clear()
110 if (t1_is_asic(cphy->adapter)) { mv88e1xxx_interrupt_clear()
111 t1_tpi_read(cphy->adapter, A_ELMER0_INT_CAUSE, &elmer); mv88e1xxx_interrupt_clear()
113 if (is_T2(cphy->adapter)) mv88e1xxx_interrupt_clear()
115 t1_tpi_write(cphy->adapter, A_ELMER0_INT_CAUSE, elmer); mv88e1xxx_interrupt_clear()
124 static int mv88e1xxx_set_speed_duplex(struct cphy *phy, int speed, int duplex) mv88e1xxx_set_speed_duplex()
147 static int mv88e1xxx_crossover_set(struct cphy *cphy, int crossover) mv88e1xxx_crossover_set() argument
151 (void) simple_mdio_read(cphy, mv88e1xxx_crossover_set()
155 (void) simple_mdio_write(cphy, mv88e1xxx_crossover_set()
160 static int mv88e1xxx_autoneg_enable(struct cphy *cphy) mv88e1xxx_autoneg_enable() argument
164 (void) mv88e1xxx_crossover_set(cphy, CROSSOVER_AUTO); mv88e1xxx_autoneg_enable()
166 (void) simple_mdio_read(cphy, MII_BMCR, &ctl); mv88e1xxx_autoneg_enable()
169 (void) simple_mdio_write(cphy, MII_BMCR, ctl); mv88e1xxx_autoneg_enable()
173 static int mv88e1xxx_autoneg_disable(struct cphy *cphy) mv88e1xxx_autoneg_disable() argument
181 (void) mv88e1xxx_crossover_set(cphy, CROSSOVER_MDI); mv88e1xxx_autoneg_disable()
187 (void) simple_mdio_read(cphy, MII_BMCR, &ctl); mv88e1xxx_autoneg_disable()
189 (void) simple_mdio_write(cphy, MII_BMCR, ctl | BMCR_ANRESTART); mv88e1xxx_autoneg_disable()
193 static int mv88e1xxx_autoneg_restart(struct cphy *cphy) mv88e1xxx_autoneg_restart() argument
195 mdio_set_bit(cphy, MII_BMCR, BMCR_ANRESTART); mv88e1xxx_autoneg_restart()
199 static int mv88e1xxx_advertise(struct cphy *phy, unsigned int advertise_map) mv88e1xxx_advertise()
231 static int mv88e1xxx_set_loopback(struct cphy *cphy, int on) mv88e1xxx_set_loopback() argument
234 mdio_set_bit(cphy, MII_BMCR, BMCR_LOOPBACK); mv88e1xxx_set_loopback()
236 mdio_clear_bit(cphy, MII_BMCR, BMCR_LOOPBACK); mv88e1xxx_set_loopback()
240 static int mv88e1xxx_get_link_status(struct cphy *cphy, int *link_ok, mv88e1xxx_get_link_status() argument
246 (void) simple_mdio_read(cphy, mv88e1xxx_get_link_status()
273 static int mv88e1xxx_downshift_set(struct cphy *cphy, int downshift_enable) mv88e1xxx_downshift_set() argument
277 (void) simple_mdio_read(cphy, mv88e1xxx_downshift_set()
288 (void) simple_mdio_write(cphy, mv88e1xxx_downshift_set()
293 static int mv88e1xxx_interrupt_handler(struct cphy *cphy) mv88e1xxx_interrupt_handler() argument
304 (void) simple_mdio_read(cphy, mv88e1xxx_interrupt_handler()
312 (void) simple_mdio_read(cphy, mv88e1xxx_interrupt_handler()
316 cphy->state |= PHY_LINK_UP; mv88e1xxx_interrupt_handler()
318 cphy->state &= ~PHY_LINK_UP; mv88e1xxx_interrupt_handler()
319 if (cphy->state & PHY_AUTONEG_EN) mv88e1xxx_interrupt_handler()
320 cphy->state &= ~PHY_AUTONEG_RDY; mv88e1xxx_interrupt_handler()
326 cphy->state |= PHY_AUTONEG_RDY; mv88e1xxx_interrupt_handler()
328 if ((cphy->state & (PHY_LINK_UP | PHY_AUTONEG_RDY)) == mv88e1xxx_interrupt_handler()
335 static void mv88e1xxx_destroy(struct cphy *cphy) mv88e1xxx_destroy() argument
337 kfree(cphy); mv88e1xxx_destroy()
356 static struct cphy *mv88e1xxx_phy_create(struct net_device *dev, int phy_addr, mv88e1xxx_phy_create()
360 struct cphy *cphy = kzalloc(sizeof(*cphy), GFP_KERNEL); mv88e1xxx_phy_create() local
362 if (!cphy) mv88e1xxx_phy_create()
365 cphy_init(cphy, dev, phy_addr, &mv88e1xxx_ops, mdio_ops); mv88e1xxx_phy_create()
373 (void) simple_mdio_write(cphy, mv88e1xxx_phy_create()
375 (void) simple_mdio_write(cphy, mv88e1xxx_phy_create()
378 (void) mv88e1xxx_downshift_set(cphy, 1); /* Enable downshift */ mv88e1xxx_phy_create()
382 (void) simple_mdio_write(cphy, mv88e1xxx_phy_create()
386 return cphy; mv88e1xxx_phy_create()
H A Dmy3126.c2 #include "cphy.h"
7 static int my3126_reset(struct cphy *cphy, int wait) my3126_reset() argument
16 static int my3126_interrupt_enable(struct cphy *cphy) my3126_interrupt_enable() argument
18 schedule_delayed_work(&cphy->phy_update, HZ/30); my3126_interrupt_enable()
19 t1_tpi_read(cphy->adapter, A_ELMER0_GPO, &cphy->elmer_gpo); my3126_interrupt_enable()
23 static int my3126_interrupt_disable(struct cphy *cphy) my3126_interrupt_disable() argument
25 cancel_delayed_work_sync(&cphy->phy_update); my3126_interrupt_disable()
29 static int my3126_interrupt_clear(struct cphy *cphy) my3126_interrupt_clear() argument
36 static int my3126_interrupt_handler(struct cphy *cphy) my3126_interrupt_handler() argument
43 adapter = cphy->adapter; my3126_interrupt_handler()
45 if (cphy->count == 50) { my3126_interrupt_handler()
46 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val); my3126_interrupt_handler()
48 status = cphy->bmsr ^ val16; my3126_interrupt_handler()
52 cphy->bmsr = val16; my3126_interrupt_handler()
57 cphy->count = 0; my3126_interrupt_handler()
70 cphy->elmer_gpo = val; my3126_interrupt_handler()
73 (cphy->act_count == act_count) || cphy->act_on ) { my3126_interrupt_handler()
78 cphy->act_on = 0; my3126_interrupt_handler()
84 cphy->act_on = 1; my3126_interrupt_handler()
89 cphy->elmer_gpo = val; my3126_interrupt_handler()
90 cphy->act_count = act_count; my3126_interrupt_handler()
91 cphy->count++; my3126_interrupt_handler()
98 struct cphy *cphy = container_of(work, struct cphy, phy_update.work); my3216_poll() local
100 my3126_interrupt_handler(cphy); my3216_poll()
103 static int my3126_set_loopback(struct cphy *cphy, int on) my3126_set_loopback() argument
109 static int my3126_get_link_status(struct cphy *cphy, my3126_get_link_status() argument
116 adapter = cphy->adapter; my3126_get_link_status()
117 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val); my3126_get_link_status()
122 cphy->elmer_gpo = val; my3126_get_link_status()
141 cphy->elmer_gpo = val; my3126_get_link_status()
152 static void my3126_destroy(struct cphy *cphy) my3126_destroy() argument
154 kfree(cphy); my3126_destroy()
170 static struct cphy *my3126_phy_create(struct net_device *dev, my3126_phy_create()
173 struct cphy *cphy = kzalloc(sizeof (*cphy), GFP_KERNEL); my3126_phy_create() local
175 if (!cphy) my3126_phy_create()
178 cphy_init(cphy, dev, phy_addr, &my3126_ops, mdio_ops); my3126_phy_create()
179 INIT_DELAYED_WORK(&cphy->phy_update, my3216_poll); my3126_phy_create()
180 cphy->bmsr = 0; my3126_phy_create()
182 return cphy; my3126_phy_create()
H A Dmv88x201x.c39 #include "cphy.h"
49 static int led_init(struct cphy *cphy) led_init() argument
55 cphy_mdio_write(cphy, MDIO_MMD_PCS, 0x8304, 0xdddd); led_init()
59 static int led_link(struct cphy *cphy, u32 do_enable) led_link() argument
64 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, &led); led_link()
68 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, led); led_link()
71 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, led); led_link()
77 static int mv88x201x_reset(struct cphy *cphy, int wait) mv88x201x_reset() argument
85 static int mv88x201x_interrupt_enable(struct cphy *cphy) mv88x201x_interrupt_enable() argument
88 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL, mv88x201x_interrupt_enable()
92 if (t1_is_asic(cphy->adapter)) { mv88x201x_interrupt_enable()
95 t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer); mv88x201x_interrupt_enable()
97 t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer); mv88x201x_interrupt_enable()
102 static int mv88x201x_interrupt_disable(struct cphy *cphy) mv88x201x_interrupt_disable() argument
105 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL, 0x0); mv88x201x_interrupt_disable()
108 if (t1_is_asic(cphy->adapter)) { mv88x201x_interrupt_disable()
111 t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer); mv88x201x_interrupt_disable()
113 t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer); mv88x201x_interrupt_disable()
118 static int mv88x201x_interrupt_clear(struct cphy *cphy) mv88x201x_interrupt_clear() argument
125 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_RXSTAT, &val); mv88x201x_interrupt_clear()
126 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_TXSTAT, &val); mv88x201x_interrupt_clear()
127 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_STAT, &val); mv88x201x_interrupt_clear()
132 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val); mv88x201x_interrupt_clear()
136 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val); mv88x201x_interrupt_clear()
138 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_STAT, &val); mv88x201x_interrupt_clear()
142 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_RXSTAT, &val); mv88x201x_interrupt_clear()
143 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_TXSTAT, &val); mv88x201x_interrupt_clear()
147 if (t1_is_asic(cphy->adapter)) { mv88x201x_interrupt_clear()
148 t1_tpi_read(cphy->adapter, A_ELMER0_INT_CAUSE, &elmer); mv88x201x_interrupt_clear()
150 t1_tpi_write(cphy->adapter, A_ELMER0_INT_CAUSE, elmer); mv88x201x_interrupt_clear()
155 static int mv88x201x_interrupt_handler(struct cphy *cphy) mv88x201x_interrupt_handler() argument
158 mv88x201x_interrupt_clear(cphy); mv88x201x_interrupt_handler()
166 static int mv88x201x_set_loopback(struct cphy *cphy, int on) mv88x201x_set_loopback() argument
171 static int mv88x201x_get_link_status(struct cphy *cphy, int *link_ok, mv88x201x_get_link_status() argument
178 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT1, &val); mv88x201x_get_link_status()
182 led_link(cphy, *link_ok); mv88x201x_get_link_status()
193 static void mv88x201x_destroy(struct cphy *cphy) mv88x201x_destroy() argument
195 kfree(cphy); mv88x201x_destroy()
211 static struct cphy *mv88x201x_phy_create(struct net_device *dev, int phy_addr, mv88x201x_phy_create()
215 struct cphy *cphy = kzalloc(sizeof(*cphy), GFP_KERNEL); mv88x201x_phy_create() local
217 if (!cphy) mv88x201x_phy_create()
220 cphy_init(cphy, dev, phy_addr, &mv88x201x_ops, mdio_ops); mv88x201x_phy_create()
223 cphy_mdio_read(cphy, MDIO_MMD_PCS, 0x8300, &val); mv88x201x_phy_create()
224 cphy_mdio_write(cphy, MDIO_MMD_PCS, 0x8300, val | 1); mv88x201x_phy_create()
227 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_STAT2, &val); mv88x201x_phy_create()
228 cphy_mdio_read(cphy, MDIO_MMD_PCS, MDIO_STAT2, &val); mv88x201x_phy_create()
231 led_init(cphy); mv88x201x_phy_create()
232 return cphy; mv88x201x_phy_create()
H A Dcphy.h3 * File: cphy.h *
65 struct cphy;
69 void (*destroy)(struct cphy *);
70 int (*reset)(struct cphy *, int wait);
72 int (*interrupt_enable)(struct cphy *);
73 int (*interrupt_disable)(struct cphy *);
74 int (*interrupt_clear)(struct cphy *);
75 int (*interrupt_handler)(struct cphy *);
77 int (*autoneg_enable)(struct cphy *);
78 int (*autoneg_disable)(struct cphy *);
79 int (*autoneg_restart)(struct cphy *);
81 int (*advertise)(struct cphy *phy, unsigned int advertise_map);
82 int (*set_loopback)(struct cphy *, int on);
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,
91 struct cphy { struct
110 static inline int cphy_mdio_read(struct cphy *cphy, int mmd, int reg, cphy_mdio_read() argument
113 int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd, cphy_mdio_read()
119 static inline int cphy_mdio_write(struct cphy *cphy, int mmd, int reg, cphy_mdio_write() argument
122 return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd, cphy_mdio_write()
126 static inline int simple_mdio_read(struct cphy *cphy, int reg, simple_mdio_read() argument
129 return cphy_mdio_read(cphy, MDIO_DEVAD_NONE, reg, valp); simple_mdio_read()
132 static inline int simple_mdio_write(struct cphy *cphy, int reg, simple_mdio_write() argument
135 return cphy_mdio_write(cphy, MDIO_DEVAD_NONE, reg, val); simple_mdio_write()
139 static inline void cphy_init(struct cphy *phy, struct net_device *dev, cphy_init()
159 struct cphy *(*create)(struct net_device *dev, int phy_addr,
H A Dcommon.h214 struct cphy;
219 struct cphy *phy;
337 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
H A Dsubr.c43 #include "cphy.h"
153 struct cphy *phy = adapter->port[port_id].phy; t1_link_changed()
200 struct cphy *phy = adapter->port[p].phy; for_each_port()
623 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) t1_link_start()
669 struct cphy *phy; t1_elmer0_ext_intr_handler()
1014 struct cphy *phy = adapter->port[i].phy; for_each_port()
H A Dcxgb2.c52 #include "cphy.h"
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
H A Dvsc8211.c92 static int vsc8211_reset(struct cphy *cphy, int wait) vsc8211_reset() argument
94 return t3_phy_reset(cphy, MDIO_DEVAD_NONE, 0); vsc8211_reset()
97 static int vsc8211_intr_enable(struct cphy *cphy) vsc8211_intr_enable() argument
99 return t3_mdio_write(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_ENABLE, vsc8211_intr_enable()
103 static int vsc8211_intr_disable(struct cphy *cphy) vsc8211_intr_disable() argument
105 return t3_mdio_write(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_ENABLE, 0); vsc8211_intr_disable()
108 static int vsc8211_intr_clear(struct cphy *cphy) vsc8211_intr_clear() argument
113 return t3_mdio_read(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_STATUS, &val); vsc8211_intr_clear()
116 static int vsc8211_autoneg_enable(struct cphy *cphy) vsc8211_autoneg_enable() argument
118 return t3_mdio_change_bits(cphy, MDIO_DEVAD_NONE, MII_BMCR, vsc8211_autoneg_enable()
123 static int vsc8211_autoneg_restart(struct cphy *cphy) vsc8211_autoneg_restart() argument
125 return t3_mdio_change_bits(cphy, MDIO_DEVAD_NONE, MII_BMCR, vsc8211_autoneg_restart()
130 static int vsc8211_get_link_status(struct cphy *cphy, int *link_ok, vsc8211_get_link_status() argument
136 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMCR, &bmcr); vsc8211_get_link_status()
138 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMSR, &status); vsc8211_get_link_status()
148 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMSR, vsc8211_get_link_status()
163 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, VSC8211_AUX_CTRL_STAT, vsc8211_get_link_status()
178 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_LPA, vsc8211_get_link_status()
181 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, vsc8211_get_link_status()
206 static int vsc8211_get_link_status_fiber(struct cphy *cphy, int *link_ok, vsc8211_get_link_status_fiber() argument
212 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMCR, &bmcr); vsc8211_get_link_status_fiber()
214 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMSR, &status); vsc8211_get_link_status_fiber()
224 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_BMSR, vsc8211_get_link_status_fiber()
239 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_LPA, &lpa); vsc8211_get_link_status_fiber()
241 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_ADVERTISE, vsc8211_get_link_status_fiber()
278 static int vsc8211_set_automdi(struct cphy *phy, int enable) vsc8211_set_automdi()
305 int vsc8211_set_speed_duplex(struct cphy *phy, int speed, int duplex) vsc8211_set_speed_duplex()
316 static int vsc8211_power_down(struct cphy *cphy, int enable) vsc8211_power_down() argument
318 return t3_mdio_change_bits(cphy, 0, MII_BMCR, BMCR_PDOWN, vsc8211_power_down()
322 static int vsc8211_intr_handler(struct cphy *cphy) vsc8211_intr_handler() argument
327 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_STATUS, &cause); vsc8211_intr_handler()
367 int t3_vsc8211_phy_prep(struct cphy *phy, struct adapter *adapter, t3_vsc8211_phy_prep()
H A Dael1002.c84 static int set_phy_regs(struct cphy *phy, const struct reg_val *rv) set_phy_regs()
100 static void ael100x_txon(struct cphy *phy) ael100x_txon()
113 static int ael_i2c_rd(struct cphy *phy, int dev_addr, int word_addr) ael_i2c_rd()
141 static int ael1002_power_down(struct cphy *phy, int enable) ael1002_power_down()
153 static int ael1002_reset(struct cphy *phy, int wait) ael1002_reset()
168 static int ael1002_intr_noop(struct cphy *phy) ael1002_intr_noop()
176 static int get_link_status_r(struct cphy *phy, int *link_ok, int *speed, get_link_status_r()
212 int t3_ael1002_phy_prep(struct cphy *phy, struct adapter *adapter, t3_ael1002_phy_prep()
222 static int ael1006_reset(struct cphy *phy, int wait) ael1006_reset()
238 int t3_ael1006_phy_prep(struct cphy *phy, struct adapter *adapter, t3_ael1006_phy_prep()
251 static int ael2xxx_get_module_type(struct cphy *phy, int delay_ms) ael2xxx_get_module_type()
293 static int ael2005_setup_sr_edc(struct cphy *phy) ael2005_setup_sr_edc()
325 static int ael2005_setup_twinax_edc(struct cphy *phy, int modtype) ael2005_setup_twinax_edc()
361 static int ael2005_get_module_type(struct cphy *phy, int delay_ms) ael2005_get_module_type()
376 static int ael2005_intr_enable(struct cphy *phy) ael2005_intr_enable()
382 static int ael2005_intr_disable(struct cphy *phy) ael2005_intr_disable()
388 static int ael2005_intr_clear(struct cphy *phy) ael2005_intr_clear()
394 static int ael2005_reset(struct cphy *phy, int wait) ael2005_reset()
454 static int ael2005_intr_handler(struct cphy *phy) ael2005_intr_handler()
509 int t3_ael2005_phy_prep(struct cphy *phy, struct adapter *adapter, t3_ael2005_phy_prep()
523 static int ael2020_setup_sr_edc(struct cphy *phy) ael2020_setup_sr_edc()
551 static int ael2020_setup_twinax_edc(struct cphy *phy, int modtype) ael2020_setup_twinax_edc()
604 static int ael2020_get_module_type(struct cphy *phy, int delay_ms) ael2020_get_module_type()
625 static int ael2020_intr_enable(struct cphy *phy) ael2020_intr_enable()
665 static int ael2020_intr_disable(struct cphy *phy) ael2020_intr_disable()
692 static int ael2020_intr_clear(struct cphy *phy) ael2020_intr_clear()
722 static int ael2020_reset(struct cphy *phy, int wait) ael2020_reset()
765 static int ael2020_intr_handler(struct cphy *phy) ael2020_intr_handler()
815 int t3_ael2020_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, t3_ael2020_phy_prep()
834 static int get_link_status_x(struct cphy *phy, int *link_ok, int *speed, get_link_status_x()
870 int t3_qt2045_phy_prep(struct cphy *phy, struct adapter *adapter, t3_qt2045_phy_prep()
890 static int xaui_direct_reset(struct cphy *phy, int wait) xaui_direct_reset()
895 static int xaui_direct_get_link_status(struct cphy *phy, int *link_ok, xaui_direct_get_link_status()
919 static int xaui_direct_power_down(struct cphy *phy, int enable) xaui_direct_power_down()
934 int t3_xaui_direct_phy_prep(struct cphy *phy, struct adapter *adapter, t3_xaui_direct_phy_prep()
H A Daq100x.c65 static int aq100x_reset(struct cphy *phy, int wait) aq100x_reset()
80 static int aq100x_intr_enable(struct cphy *phy) aq100x_intr_enable()
90 static int aq100x_intr_disable(struct cphy *phy) aq100x_intr_disable()
95 static int aq100x_intr_clear(struct cphy *phy) aq100x_intr_clear()
105 static int aq100x_intr_handler(struct cphy *phy) aq100x_intr_handler()
120 static int aq100x_power_down(struct cphy *phy, int off) aq100x_power_down()
127 static int aq100x_autoneg_enable(struct cphy *phy) aq100x_autoneg_enable()
140 static int aq100x_autoneg_restart(struct cphy *phy) aq100x_autoneg_restart()
153 static int aq100x_advertise(struct cphy *phy, unsigned int advertise_map) aq100x_advertise()
194 static int aq100x_set_loopback(struct cphy *phy, int mmd, int dir, int enable) aq100x_set_loopback()
201 static int aq100x_set_speed_duplex(struct cphy *phy, int speed, int duplex) aq100x_set_speed_duplex()
207 static int aq100x_get_link_status(struct cphy *phy, int *link_ok, aq100x_get_link_status()
266 int t3_aq100x_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr, t3_aq100x_phy_prep()
H A Dcommon.h153 struct cphy;
518 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);
531 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
533 int (*power_down)(struct cphy *phy, int enable);
548 struct cphy { struct
561 static inline int t3_mdio_read(struct cphy *phy, int mmd, int reg, t3_mdio_read()
569 static inline int t3_mdio_write(struct cphy *phy, int mmd, int reg, t3_mdio_write()
577 static inline void cphy_init(struct cphy *phy, struct adapter *adapter, cphy_init()
654 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear,
656 int t3_phy_reset(struct cphy *phy, int mmd, int wait);
657 int t3_phy_advertise(struct cphy *phy, unsigned int advert);
658 int t3_phy_advertise_fiber(struct cphy *phy, unsigned int advert);
659 int t3_set_phy_speed_duplex(struct cphy *phy, int speed, int duplex);
660 int t3_phy_lasi_intr_enable(struct cphy *phy);
661 int t3_phy_lasi_intr_disable(struct cphy *phy);
662 int t3_phy_lasi_intr_clear(struct cphy *phy);
663 int t3_phy_lasi_intr_handler(struct cphy *phy);
677 int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
757 int t3_vsc8211_phy_prep(struct cphy *phy, struct adapter *adapter,
759 int t3_ael1002_phy_prep(struct cphy *phy, struct adapter *adapter,
761 int t3_ael1006_phy_prep(struct cphy *phy, struct adapter *adapter,
763 int t3_ael2005_phy_prep(struct cphy *phy, struct adapter *adapter,
765 int t3_ael2020_phy_prep(struct cphy *phy, struct adapter *adapter,
767 int t3_qt2045_phy_prep(struct cphy *phy, struct adapter *adapter, int phy_addr,
769 int t3_xaui_direct_phy_prep(struct cphy *phy, struct adapter *adapter,
771 int t3_aq100x_phy_prep(struct cphy *phy, struct adapter *adapter,
H A Dadapter.h72 struct cphy phy;
290 static inline int phy2portid(struct cphy *phy) phy2portid()
332 int t3_get_edc_fw(struct cphy *phy, int edc_idx, int size);
H A Dt3_hw.c328 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear, t3_mdio_change_bits()
352 int t3_phy_reset(struct cphy *phy, int mmd, int wait) t3_phy_reset()
382 int t3_phy_advertise(struct cphy *phy, unsigned int advert) t3_phy_advertise()
425 int t3_phy_advertise_fiber(struct cphy *phy, unsigned int advert) t3_phy_advertise_fiber()
449 int t3_set_phy_speed_duplex(struct cphy *phy, int speed, int duplex) t3_set_phy_speed_duplex()
475 int t3_phy_lasi_intr_enable(struct cphy *phy) t3_phy_lasi_intr_enable()
481 int t3_phy_lasi_intr_disable(struct cphy *phy) t3_phy_lasi_intr_disable()
486 int t3_phy_lasi_intr_clear(struct cphy *phy) t3_phy_lasi_intr_clear()
493 int t3_phy_lasi_intr_handler(struct cphy *phy) t3_phy_lasi_intr_handler()
548 int (*phy_prep)(struct cphy *phy, struct adapter *adapter,
1210 struct cphy *phy = &pi->phy; t3_link_changed()
1267 struct cphy *phy = &pi->phy; t3_link_fault()
1329 int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) t3_link_start()
2084 struct cphy *phy = &adap2pinfo(adapter, idx)->phy; t3_port_intr_enable()
2101 struct cphy *phy = &adap2pinfo(adapter, idx)->phy; t3_port_intr_disable()
2118 struct cphy *phy = &adap2pinfo(adapter, idx)->phy; t3_port_intr_clear()
H A Dcxgb3_main.c1024 int t3_get_edc_fw(struct cphy *phy, int edc_idx, int size) t3_get_edc_fw()

Completed in 559 milliseconds