Home
last modified time | relevance | path

Searched refs:cphy (Results 1 – 6 of 6) sorted by relevance

/netbsd/src/sys/dev/pci/cxgb/
Dcxgb_mv88e1xxx.c141 static int mv88e1xxx_reset(struct cphy *cphy, int wait) in mv88e1xxx_reset() argument
143 return t3_phy_reset(cphy, 0, wait); in mv88e1xxx_reset()
146 static int mv88e1xxx_intr_enable(struct cphy *cphy) in mv88e1xxx_intr_enable() argument
148 return mdio_write(cphy, 0, MV88E1XXX_INTR_ENABLE, INTR_ENABLE_MASK); in mv88e1xxx_intr_enable()
151 static int mv88e1xxx_intr_disable(struct cphy *cphy) in mv88e1xxx_intr_disable() argument
153 return mdio_write(cphy, 0, MV88E1XXX_INTR_ENABLE, 0); in mv88e1xxx_intr_disable()
156 static int mv88e1xxx_intr_clear(struct cphy *cphy) in mv88e1xxx_intr_clear() argument
161 return mdio_read(cphy, 0, MV88E1XXX_INTR_STATUS, &val); in mv88e1xxx_intr_clear()
164 static int mv88e1xxx_crossover_set(struct cphy *cphy, int crossover) in mv88e1xxx_crossover_set() argument
166 return t3_mdio_change_bits(cphy, 0, MV88E1XXX_SPECIFIC_CNTRL, in mv88e1xxx_crossover_set()
[all …]
Dcxgb_vsc8211.c85 static int vsc8211_reset(struct cphy *cphy, int wait) in vsc8211_reset() argument
87 return t3_phy_reset(cphy, 0, 0); in vsc8211_reset()
90 static int vsc8211_intr_enable(struct cphy *cphy) in vsc8211_intr_enable() argument
92 return mdio_write(cphy, 0, VSC8211_INTR_ENABLE, INTR_MASK); in vsc8211_intr_enable()
95 static int vsc8211_intr_disable(struct cphy *cphy) in vsc8211_intr_disable() argument
97 return mdio_write(cphy, 0, VSC8211_INTR_ENABLE, 0); in vsc8211_intr_disable()
100 static int vsc8211_intr_clear(struct cphy *cphy) in vsc8211_intr_clear() argument
105 return mdio_read(cphy, 0, VSC8211_INTR_STATUS, &val); in vsc8211_intr_clear()
108 static int vsc8211_autoneg_enable(struct cphy *cphy) in vsc8211_autoneg_enable() argument
110 return t3_mdio_change_bits(cphy, 0, MII_BMCR, BMCR_PDOWN | BMCR_ISOLATE, in vsc8211_autoneg_enable()
[all …]
Dcxgb_ael1002.c51 static void ael100x_txon(struct cphy *phy) in ael100x_txon()
60 static int ael1002_power_down(struct cphy *phy, int enable) in ael1002_power_down()
71 static int ael1002_reset(struct cphy *phy, int wait) in ael1002_reset()
86 static int ael1002_intr_noop(struct cphy *phy) in ael1002_intr_noop()
91 static int ael100x_get_link_status(struct cphy *phy, int *link_ok, in ael100x_get_link_status()
144 void t3_ael1002_phy_prep(struct cphy *phy, adapter_t *adapter, int phy_addr, in t3_ael1002_phy_prep()
151 static int ael1006_reset(struct cphy *phy, int wait) in ael1006_reset()
156 static int ael1006_intr_enable(struct cphy *phy) in ael1006_intr_enable()
161 static int ael1006_intr_disable(struct cphy *phy) in ael1006_intr_disable()
166 static int ael1006_intr_clear(struct cphy *phy) in ael1006_intr_clear()
[all …]
Dcxgb_common.h136 struct cphy;
159 void (*phy_prep)(struct cphy *phy, adapter_t *adapter, int phy_addr,
510 void (*destroy)(struct cphy *phy);
511 int (*reset)(struct cphy *phy, int wait);
513 int (*intr_enable)(struct cphy *phy);
514 int (*intr_disable)(struct cphy *phy);
515 int (*intr_clear)(struct cphy *phy);
516 int (*intr_handler)(struct cphy *phy);
518 int (*autoneg_enable)(struct cphy *phy);
519 int (*autoneg_restart)(struct cphy *phy);
[all …]
Dcxgb_t3_hw.c318 int t3_mdio_change_bits(struct cphy *phy, int mmd, int reg, unsigned int clear, in t3_mdio_change_bits()
342 int t3_phy_reset(struct cphy *phy, int mmd, int wait) in t3_phy_reset()
371 int t3_phy_advertise(struct cphy *phy, unsigned int advert) in t3_phy_advertise()
415 int t3_set_phy_speed_duplex(struct cphy *phy, int speed, int duplex) in t3_set_phy_speed_duplex()
1113 struct cphy *phy = &pi->phy; in t3_link_changed()
1156 int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t3_link_start()
Dcxgb_adapter.h108 struct cphy phy;