Lines Matching refs:cphy
28 #include "cphy.h"
32 static int xpak_reset(struct cphy *cphy, int wait)
38 static int xpak_interrupt_enable(struct cphy *cphy)
44 static int xpak_interrupt_disable(struct cphy *cphy)
50 static int xpak_interrupt_clear(struct cphy *cphy)
56 static int xpak_set_loopback(struct cphy *cphy, int on)
62 static int xpak_get_link_status(struct cphy *cphy, int *link_ok, int *speed,
76 static void xpak_destroy(struct cphy *cphy)
78 t1_os_free((void *)cphy, sizeof(*cphy));
110 static struct cphy *xpak_phy_create(adapter_t * adapter, int phy_addr,
113 struct cphy *cphy = t1_os_malloc_wait_zero(sizeof(*cphy));
115 if (!cphy)
118 cphy->ops = &xpak_ops;
119 cphy->adapter = adapter;
120 cphy->mdio_read = mdio_ops->read;
121 cphy->mdio_write = mdio_ops->write;
122 return cphy;