Lines Matching refs:phy

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);
561 static inline int t3_mdio_read(struct cphy *phy, int mmd, int reg, in t3_mdio_read() argument
564 int rc = phy->mdio.mdio_read(phy->mdio.dev, phy->mdio.prtad, mmd, reg); in t3_mdio_read()
569 static inline int t3_mdio_write(struct cphy *phy, int mmd, int reg, in t3_mdio_write() argument
572 return phy->mdio.mdio_write(phy->mdio.dev, phy->mdio.prtad, mmd, in t3_mdio_write()
577 static inline void cphy_init(struct cphy *phy, struct adapter *adapter, in cphy_init() argument
582 phy->caps = caps; in cphy_init()
583 phy->adapter = adapter; in cphy_init()
584 phy->desc = desc; in cphy_init()
585 phy->ops = phy_ops; in cphy_init()
587 phy->mdio.prtad = phy_addr; in cphy_init()
588 phy->mdio.mmds = phy_ops->mmds; in cphy_init()
589 phy->mdio.mode_support = mdio_ops->mode_support; in cphy_init()
590 phy->mdio.mdio_read = mdio_ops->read; in cphy_init()
591 phy->mdio.mdio_write = mdio_ops->write; in 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,