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,
89 struct cphy {
112 static inline int mdio_read(struct cphy *cphy, int mmd, int reg,
115 return cphy->mdio_read(cphy->adapter, cphy->addr, mmd, reg, valp);
118 static inline int mdio_write(struct cphy *cphy, int mmd, int reg,
121 return cphy->mdio_write(cphy->adapter, cphy->addr, mmd, reg, val);
124 static inline int simple_mdio_read(struct cphy *cphy, int reg,
127 return mdio_read(cphy, 0, reg, valp);
130 static inline int simple_mdio_write(struct cphy *cphy, int reg,
133 return mdio_write(cphy, 0, reg, val);
137 static inline void cphy_init(struct cphy *phy, adapter_t *adapter,
153 struct cphy *(*create)(adapter_t *adapter, int phy_addr,