/linux-3.4.99/drivers/net/ethernet/chelsio/cxgb/ |
D | mv88x201x.c | 50 static int led_init(struct cphy *cphy) in led_init() argument 56 cphy_mdio_write(cphy, MDIO_MMD_PCS, 0x8304, 0xdddd); in led_init() 60 static int led_link(struct cphy *cphy, u32 do_enable) in led_link() argument 65 cphy_mdio_read(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, &led); in led_link() 69 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, led); in led_link() 72 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_CTRL2, led); in led_link() 78 static int mv88x201x_reset(struct cphy *cphy, int wait) in mv88x201x_reset() argument 86 static int mv88x201x_interrupt_enable(struct cphy *cphy) in mv88x201x_interrupt_enable() argument 89 cphy_mdio_write(cphy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL, in mv88x201x_interrupt_enable() 93 if (t1_is_asic(cphy->adapter)) { in mv88x201x_interrupt_enable() [all …]
|
D | mv88e1xxx.c | 17 static void mdio_set_bit(struct cphy *cphy, int reg, u32 bitval) in mdio_set_bit() argument 21 (void) simple_mdio_read(cphy, reg, &val); in mdio_set_bit() 22 (void) simple_mdio_write(cphy, reg, val | bitval); in mdio_set_bit() 28 static void mdio_clear_bit(struct cphy *cphy, int reg, u32 bitval) in mdio_clear_bit() argument 32 (void) simple_mdio_read(cphy, reg, &val); in mdio_clear_bit() 33 (void) simple_mdio_write(cphy, reg, val & ~bitval); in mdio_clear_bit() 47 static int mv88e1xxx_reset(struct cphy *cphy, int wait) in mv88e1xxx_reset() argument 52 mdio_set_bit(cphy, MII_BMCR, BMCR_RESET); in mv88e1xxx_reset() 55 (void) simple_mdio_read(cphy, MII_BMCR, &ctl); in mv88e1xxx_reset() 64 static int mv88e1xxx_interrupt_enable(struct cphy *cphy) in mv88e1xxx_interrupt_enable() argument [all …]
|
D | my3126.c | 7 static int my3126_reset(struct cphy *cphy, int wait) in my3126_reset() argument 16 static int my3126_interrupt_enable(struct cphy *cphy) in my3126_interrupt_enable() argument 18 schedule_delayed_work(&cphy->phy_update, HZ/30); in my3126_interrupt_enable() 19 t1_tpi_read(cphy->adapter, A_ELMER0_GPO, &cphy->elmer_gpo); in my3126_interrupt_enable() 23 static int my3126_interrupt_disable(struct cphy *cphy) in my3126_interrupt_disable() argument 25 cancel_delayed_work_sync(&cphy->phy_update); in my3126_interrupt_disable() 29 static int my3126_interrupt_clear(struct cphy *cphy) in my3126_interrupt_clear() argument 36 static int my3126_interrupt_handler(struct cphy *cphy) in my3126_interrupt_handler() argument 43 adapter = cphy->adapter; in my3126_interrupt_handler() 45 if (cphy->count == 50) { in my3126_interrupt_handler() [all …]
|
D | cphy.h | 66 struct cphy; 70 void (*destroy)(struct cphy *); 71 int (*reset)(struct cphy *, int wait); 73 int (*interrupt_enable)(struct cphy *); 74 int (*interrupt_disable)(struct cphy *); 75 int (*interrupt_clear)(struct cphy *); 76 int (*interrupt_handler)(struct cphy *); 78 int (*autoneg_enable)(struct cphy *); 79 int (*autoneg_disable)(struct cphy *); 80 int (*autoneg_restart)(struct cphy *); [all …]
|
D | common.h | 216 struct cphy; 221 struct cphy *phy; 339 extern int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
|
D | subr.c | 154 struct cphy *phy = adapter->port[port_id].phy; in t1_link_changed() 201 struct cphy *phy = adapter->port[p].phy; in fpga_phy_intr_handler() 624 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t1_link_start() 670 struct cphy *phy; in t1_elmer0_ext_intr_handler() 1015 struct cphy *phy = adapter->port[i].phy; in t1_free_sw_modules()
|
/linux-3.4.99/drivers/net/ethernet/chelsio/cxgb3/ |
D | vsc8211.c | 92 static int vsc8211_reset(struct cphy *cphy, int wait) in vsc8211_reset() argument 94 return t3_phy_reset(cphy, MDIO_DEVAD_NONE, 0); in vsc8211_reset() 97 static int vsc8211_intr_enable(struct cphy *cphy) in vsc8211_intr_enable() argument 99 return t3_mdio_write(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_ENABLE, in vsc8211_intr_enable() 103 static int vsc8211_intr_disable(struct cphy *cphy) in vsc8211_intr_disable() argument 105 return t3_mdio_write(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_ENABLE, 0); in vsc8211_intr_disable() 108 static int vsc8211_intr_clear(struct cphy *cphy) in vsc8211_intr_clear() argument 113 return t3_mdio_read(cphy, MDIO_DEVAD_NONE, VSC8211_INTR_STATUS, &val); in vsc8211_intr_clear() 116 static int vsc8211_autoneg_enable(struct cphy *cphy) in vsc8211_autoneg_enable() argument 118 return t3_mdio_change_bits(cphy, MDIO_DEVAD_NONE, MII_BMCR, in vsc8211_autoneg_enable() [all …]
|
D | ael1002.c | 84 static int set_phy_regs(struct cphy *phy, const struct reg_val *rv) in set_phy_regs() 100 static void ael100x_txon(struct cphy *phy) in ael100x_txon() 113 static int ael_i2c_rd(struct cphy *phy, int dev_addr, int word_addr) in ael_i2c_rd() 141 static int ael1002_power_down(struct cphy *phy, int enable) in ael1002_power_down() 153 static int ael1002_reset(struct cphy *phy, int wait) in ael1002_reset() 168 static int ael1002_intr_noop(struct cphy *phy) in ael1002_intr_noop() 176 static int get_link_status_r(struct cphy *phy, int *link_ok, int *speed, in get_link_status_r() 212 int t3_ael1002_phy_prep(struct cphy *phy, struct adapter *adapter, in t3_ael1002_phy_prep() 222 static int ael1006_reset(struct cphy *phy, int wait) in ael1006_reset() 238 int t3_ael1006_phy_prep(struct cphy *phy, struct adapter *adapter, in t3_ael1006_phy_prep() [all …]
|
D | common.h | 155 struct cphy; 520 int (*reset)(struct cphy *phy, int wait); 522 int (*intr_enable)(struct cphy *phy); 523 int (*intr_disable)(struct cphy *phy); 524 int (*intr_clear)(struct cphy *phy); 525 int (*intr_handler)(struct cphy *phy); 527 int (*autoneg_enable)(struct cphy *phy); 528 int (*autoneg_restart)(struct cphy *phy); 530 int (*advertise)(struct cphy *phy, unsigned int advertise_map); 531 int (*set_loopback)(struct cphy *phy, int mmd, int dir, int enable); [all …]
|
D | aq100x.c | 65 static int aq100x_reset(struct cphy *phy, int wait) in aq100x_reset() 80 static int aq100x_intr_enable(struct cphy *phy) in aq100x_intr_enable() 90 static int aq100x_intr_disable(struct cphy *phy) in aq100x_intr_disable() 95 static int aq100x_intr_clear(struct cphy *phy) in aq100x_intr_clear() 105 static int aq100x_intr_handler(struct cphy *phy) in aq100x_intr_handler() 120 static int aq100x_power_down(struct cphy *phy, int off) in aq100x_power_down() 127 static int aq100x_autoneg_enable(struct cphy *phy) in aq100x_autoneg_enable() 140 static int aq100x_autoneg_restart(struct cphy *phy) in aq100x_autoneg_restart() 153 static int aq100x_advertise(struct cphy *phy, unsigned int advertise_map) in aq100x_advertise() 194 static int aq100x_set_loopback(struct cphy *phy, int mmd, int dir, int enable) in aq100x_set_loopback() [all …]
|
D | adapter.h | 72 struct cphy phy; 290 static inline int phy2portid(struct cphy *phy) in phy2portid() 332 int t3_get_edc_fw(struct cphy *phy, int edc_idx, int size);
|
D | t3_hw.c | 328 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear, in t3_mdio_change_bits() 352 int t3_phy_reset(struct cphy *phy, int mmd, int wait) in t3_phy_reset() 382 int t3_phy_advertise(struct cphy *phy, unsigned int advert) in t3_phy_advertise() 425 int t3_phy_advertise_fiber(struct cphy *phy, unsigned int advert) in t3_phy_advertise_fiber() 449 int t3_set_phy_speed_duplex(struct cphy *phy, int speed, int duplex) in t3_set_phy_speed_duplex() 475 int t3_phy_lasi_intr_enable(struct cphy *phy) in t3_phy_lasi_intr_enable() 481 int t3_phy_lasi_intr_disable(struct cphy *phy) in t3_phy_lasi_intr_disable() 486 int t3_phy_lasi_intr_clear(struct cphy *phy) in t3_phy_lasi_intr_clear() 493 int t3_phy_lasi_intr_handler(struct cphy *phy) in t3_phy_lasi_intr_handler() 548 int (*phy_prep)(struct cphy *phy, struct adapter *adapter, [all …]
|
D | cxgb3_main.c | 1020 int t3_get_edc_fw(struct cphy *phy, int edc_idx, int size) in t3_get_edc_fw()
|