/drivers/net/ethernet/chelsio/cxgb/ |
H A D | mv88x201x.c | 39 #include "cphy.h" 49 static int led_init(struct cphy *cphy) argument 55 cphy_mdio_write(cphy, MDIO_MMD_PCS, 0x8304, 0xdddd); 59 static int led_link(struct cphy *cphy, u32 do_enable) argument 64 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, &led); 68 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, led); 71 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, led); 77 static int mv88x201x_reset(struct cphy *cph argument 85 mv88x201x_interrupt_enable(struct cphy *cphy) argument 102 mv88x201x_interrupt_disable(struct cphy *cphy) argument 118 mv88x201x_interrupt_clear(struct cphy *cphy) argument 155 mv88x201x_interrupt_handler(struct cphy *cphy) argument 166 mv88x201x_set_loopback(struct cphy *cphy, int on) argument 171 mv88x201x_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) argument 193 mv88x201x_destroy(struct cphy *cphy) argument 215 struct cphy *cphy = kzalloc(sizeof(*cphy), GFP_KERNEL); local [all...] |
H A D | my3126.c | 2 #include "cphy.h" 7 static int my3126_reset(struct cphy *cphy, int wait) argument 16 static int my3126_interrupt_enable(struct cphy *cphy) argument 18 schedule_delayed_work(&cphy->phy_update, HZ/30); 19 t1_tpi_read(cphy->adapter, A_ELMER0_GPO, &cphy->elmer_gpo); 23 static int my3126_interrupt_disable(struct cphy *cphy) argument 29 my3126_interrupt_clear(struct cphy *cphy) argument 36 my3126_interrupt_handler(struct cphy *cphy) argument 98 struct cphy *cphy = container_of(work, struct cphy, phy_update.work); local 103 my3126_set_loopback(struct cphy *cphy, int on) argument 109 my3126_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) argument 152 my3126_destroy(struct cphy *cphy) argument 173 struct cphy *cphy = kzalloc(sizeof (*cphy), GFP_KERNEL); local [all...] |
H A D | cphy.h | 3 * 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 *); 91 struct cphy { struct 110 cphy_mdio_read(struct cphy *cphy, int mmd, int reg, unsigned int *valp) argument 119 cphy_mdio_write(struct cphy *cphy, int mmd, int reg, unsigned int val) argument 126 simple_mdio_read(struct cphy *cphy, int reg, unsigned int *valp) argument 132 simple_mdio_write(struct cphy *cphy, int reg, unsigned int val) argument [all...] |
H A D | mv88e1xxx.c | 4 #include "cphy.h" 17 static void mdio_set_bit(struct cphy *cphy, int reg, u32 bitval) argument 21 (void) simple_mdio_read(cphy, reg, &val); 22 (void) simple_mdio_write(cphy, reg, val | bitval); 28 static void mdio_clear_bit(struct cphy *cphy, int reg, u32 bitval) argument 32 (void) simple_mdio_read(cphy, reg, &val); 33 (void) simple_mdio_write(cphy, reg, val & ~bitval); 42 * PARAMS: cphy 47 mv88e1xxx_reset(struct cphy *cphy, int wait) argument 64 mv88e1xxx_interrupt_enable(struct cphy *cphy) argument 83 mv88e1xxx_interrupt_disable(struct cphy *cphy) argument 101 mv88e1xxx_interrupt_clear(struct cphy *cphy) argument 147 mv88e1xxx_crossover_set(struct cphy *cphy, int crossover) argument 160 mv88e1xxx_autoneg_enable(struct cphy *cphy) argument 173 mv88e1xxx_autoneg_disable(struct cphy *cphy) argument 193 mv88e1xxx_autoneg_restart(struct cphy *cphy) argument 231 mv88e1xxx_set_loopback(struct cphy *cphy, int on) argument 240 mv88e1xxx_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) argument 273 mv88e1xxx_downshift_set(struct cphy *cphy, int downshift_enable) argument 293 mv88e1xxx_interrupt_handler(struct cphy *cphy) argument 335 mv88e1xxx_destroy(struct cphy *cphy) argument 360 struct cphy *cphy = kzalloc(sizeof(*cphy), GFP_KERNEL); local [all...] |
H A D | common.h | 214 struct cphy; 219 struct cphy *phy; 337 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
|
H A D | subr.c | 43 #include "cphy.h" 153 struct cphy *phy = adapter->port[port_id].phy; 200 struct cphy *phy = adapter->port[p].phy; 623 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) 669 struct cphy *phy; 1014 struct cphy *phy = adapter->port[i].phy;
|
/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | vsc8211.c | 92 static int vsc8211_reset(struct cphy *cphy, int wait) argument 94 return t3_phy_reset(cphy, MDIO_DEVAD_NONE, 0); 97 static int vsc8211_intr_enable(struct cphy *cphy) argument 99 return t3_mdio_write(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_ENABLE, 103 static int vsc8211_intr_disable(struct cphy *cphy) argument 105 return t3_mdio_write(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_ENABLE, 0); 108 static int vsc8211_intr_clear(struct cphy *cph argument 116 vsc8211_autoneg_enable(struct cphy *cphy) argument 123 vsc8211_autoneg_restart(struct cphy *cphy) argument 130 vsc8211_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) argument 206 vsc8211_get_link_status_fiber(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) argument 316 vsc8211_power_down(struct cphy *cphy, int enable) argument 322 vsc8211_intr_handler(struct cphy *cphy) argument [all...] |
H A D | common.h | 153 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 *ph 548 struct cphy { struct [all...] |
H A D | aq100x.c | 65 static int aq100x_reset(struct cphy *phy, int wait) 80 static int aq100x_intr_enable(struct cphy *phy) 90 static int aq100x_intr_disable(struct cphy *phy) 95 static int aq100x_intr_clear(struct cphy *phy) 105 static int aq100x_intr_handler(struct cphy *phy) 120 static int aq100x_power_down(struct cphy *phy, int off) 127 static int aq100x_autoneg_enable(struct cphy *phy) 140 static int aq100x_autoneg_restart(struct cphy *phy) 153 static int aq100x_advertise(struct cphy *phy, unsigned int advertise_map) 194 static int aq100x_set_loopback(struct cphy *ph [all...] |
H A D | ael1002.c | 84 static int set_phy_regs(struct cphy *phy, const struct reg_val *rv) 100 static void ael100x_txon(struct cphy *phy) 113 static int ael_i2c_rd(struct cphy *phy, int dev_addr, int word_addr) 141 static int ael1002_power_down(struct cphy *phy, int enable) 153 static int ael1002_reset(struct cphy *phy, int wait) 168 static int ael1002_intr_noop(struct cphy *phy) 176 static int get_link_status_r(struct cphy *phy, int *link_ok, int *speed, 212 int t3_ael1002_phy_prep(struct cphy *phy, struct adapter *adapter, 222 static int ael1006_reset(struct cphy *phy, int wait) 238 int t3_ael1006_phy_prep(struct cphy *ph [all...] |
H A D | adapter.h | 72 struct cphy phy; 290 static inline int phy2portid(struct cphy *phy) 332 int t3_get_edc_fw(struct cphy *phy, int edc_idx, int size);
|
H A D | t3_hw.c | 328 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear, 352 int t3_phy_reset(struct cphy *phy, int mmd, int wait) 382 int t3_phy_advertise(struct cphy *phy, unsigned int advert) 425 int t3_phy_advertise_fiber(struct cphy *phy, unsigned int advert) 449 int t3_set_phy_speed_duplex(struct cphy *phy, int speed, int duplex) 475 int t3_phy_lasi_intr_enable(struct cphy *phy) 481 int t3_phy_lasi_intr_disable(struct cphy *phy) 486 int t3_phy_lasi_intr_clear(struct cphy *phy) 493 int t3_phy_lasi_intr_handler(struct cphy *phy) 548 int (*phy_prep)(struct cphy *ph [all...] |
H A D | cxgb3_main.c | 1024 int t3_get_edc_fw(struct cphy *phy, int edc_idx, int size)
|