Lines Matching defs:cphy
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 *);
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 {
110 static inline int cphy_mdio_read(struct cphy *cphy, int mmd, int reg,
113 int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd,
119 static inline int cphy_mdio_write(struct cphy *cphy, int mmd, int reg,
122 return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd,
126 static inline int simple_mdio_read(struct cphy *cphy, int reg,
129 return cphy_mdio_read(cphy, MDIO_DEVAD_NONE, reg, valp);
132 static inline int simple_mdio_write(struct cphy *cphy, int reg,
135 return cphy_mdio_write(cphy, MDIO_DEVAD_NONE, reg, val);
139 static inline void cphy_init(struct cphy *phy, struct net_device *dev,
159 struct cphy *(*create)(struct net_device *dev, int phy_addr,