Lines Matching defs:cphy
3 * File: 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 *);
82 int (*advertise)(struct cphy *phy, unsigned int advertise_map);
83 int (*set_loopback)(struct cphy *, int on);
84 int (*set_speed_duplex)(struct cphy *phy, int speed, int duplex);
85 int (*get_link_status)(struct cphy *phy, int *link_ok, int *speed,
92 struct cphy {
111 static inline int cphy_mdio_read(struct cphy *cphy, int mmd, int reg,
114 int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd,
120 static inline int cphy_mdio_write(struct cphy *cphy, int mmd, int reg,
123 return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd,
127 static inline int simple_mdio_read(struct cphy *cphy, int reg,
130 return cphy_mdio_read(cphy, MDIO_DEVAD_NONE, reg, valp);
133 static inline int simple_mdio_write(struct cphy *cphy, int reg,
136 return cphy_mdio_write(cphy, MDIO_DEVAD_NONE, reg, val);
140 static inline void cphy_init(struct cphy *phy, struct net_device *dev,
160 struct cphy *(*create)(struct net_device *dev, int phy_addr,