Lines Matching defs:cphy
4 * File: cphy.h *
56 struct cphy;
60 void (*destroy)(struct cphy *);
61 int (*reset)(struct cphy *, int wait);
63 int (*interrupt_enable)(struct cphy *);
64 int (*interrupt_disable)(struct cphy *);
65 int (*interrupt_clear)(struct cphy *);
66 int (*interrupt_handler)(struct cphy *);
68 int (*autoneg_enable)(struct cphy *);
69 int (*autoneg_disable)(struct cphy *);
70 int (*autoneg_restart)(struct cphy *);
72 int (*advertise)(struct cphy *phy, unsigned int advertise_map);
73 int (*set_loopback)(struct cphy *, int on);
74 int (*set_speed_duplex)(struct cphy *phy, int speed, int duplex);
75 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
82 struct cphy {
101 static inline int cphy_mdio_read(struct cphy *cphy, int mmd, int reg,
104 int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd,
110 static inline int cphy_mdio_write(struct cphy *cphy, int mmd, int reg,
113 return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd,
117 static inline int simple_mdio_read(struct cphy *cphy, int reg,
120 return cphy_mdio_read(cphy, MDIO_DEVAD_NONE, reg, valp);
123 static inline int simple_mdio_write(struct cphy *cphy, int reg,
126 return cphy_mdio_write(cphy, MDIO_DEVAD_NONE, reg, val);
130 static inline void cphy_init(struct cphy *phy, struct net_device *dev,
150 struct cphy *(*create)(struct net_device *dev, int phy_addr,