Home
last modified time | relevance | path

Searched refs:cphy (Results 1 – 8 of 8) sorted by relevance

/titanic_44/usr/src/uts/common/io/chxge/com/
H A Dmv88x201x.c38 static int led_init(struct cphy *cphy) in led_init() argument
44 (void) mdio_write(cphy, 0x3, 0x8304, 0xdddd); in led_init()
48 static int led_link(struct cphy *cphy, u32 do_enable) in led_link() argument
53 (void) mdio_read(cphy, 0x1, 0x7, &led); in led_link()
57 (void) mdio_write(cphy, 0x1, 0x7, led); in led_link()
60 (void) mdio_write(cphy, 0x1, 0x7, led); in led_link()
67 static int mv88x201x_reset(struct cphy *cphy, int wait) in mv88x201x_reset() argument
75 static int mv88x201x_interrupt_enable(struct cphy *cphy) in mv88x201x_interrupt_enable() argument
78 (void) mdio_write(cphy, 0x1, 0x9002, 0x1); in mv88x201x_interrupt_enable()
81 if (t1_is_asic(cphy->adapter)) { in mv88x201x_interrupt_enable()
[all …]
H A Dmv88e1xxx.c43 static void mdio_set_bit(struct cphy *cphy, int reg, u32 bitval) in mdio_set_bit() argument
47 (void) simple_mdio_read(cphy, reg, &val); in mdio_set_bit()
48 (void) simple_mdio_write(cphy, reg, val | bitval); in mdio_set_bit()
54 static void mdio_clear_bit(struct cphy *cphy, int reg, u32 bitval) in mdio_clear_bit() argument
58 (void) simple_mdio_read(cphy, reg, &val); in mdio_clear_bit()
59 (void) simple_mdio_write(cphy, reg, val & ~bitval); in mdio_clear_bit()
74 static int mv88e1xxx_reset(struct cphy *cphy, int wait) in mv88e1xxx_reset() argument
79 mdio_set_bit(cphy, MII_BMCR, BMCR_RESET); in mv88e1xxx_reset()
82 (void) simple_mdio_read(cphy, MII_BMCR, &ctl); in mv88e1xxx_reset()
91 static int mv88e1xxx_interrupt_enable(struct cphy *cphy) in mv88e1xxx_interrupt_enable() argument
[all …]
H A Dmy3126.c34 static int my3126_reset(struct cphy *cphy, int wait) in my3126_reset() argument
44 static int my3126_interrupt_enable(struct cphy *cphy) in my3126_interrupt_enable() argument
47 if (!is_T2(cphy->adapter)) in my3126_interrupt_enable()
49 ch_start_cyclic(&cphy->phy_update_cyclic, 30); in my3126_interrupt_enable()
50 (void) t1_tpi_read(cphy->adapter, A_ELMER0_GPO, &cphy->elmer_gpo); in my3126_interrupt_enable()
55 static int my3126_interrupt_disable(struct cphy *cphy) in my3126_interrupt_disable() argument
58 if (is_T2(cphy->adapter)) in my3126_interrupt_disable()
59 ch_stop_cyclic(&cphy->phy_update_cyclic); in my3126_interrupt_disable()
64 static int my3126_interrupt_clear(struct cphy *cphy) in my3126_interrupt_clear() argument
71 static int my3126_interrupt_handler(struct cphy *cphy) in my3126_interrupt_handler() argument
[all …]
H A Dcphy.h53 struct cphy;
57 void (*destroy)(struct cphy *);
58 int (*reset)(struct cphy *, int wait);
60 int (*interrupt_enable)(struct cphy *);
61 int (*interrupt_disable)(struct cphy *);
62 int (*interrupt_clear)(struct cphy *);
63 int (*interrupt_handler)(struct cphy *);
65 int (*autoneg_enable)(struct cphy *);
66 int (*autoneg_disable)(struct cphy *);
67 int (*autoneg_restart)(struct cphy *);
[all …]
H A Dxpak.c32 static int xpak_reset(struct cphy *cphy, int wait) in xpak_reset() argument
38 static int xpak_interrupt_enable(struct cphy *cphy) in xpak_interrupt_enable() argument
44 static int xpak_interrupt_disable(struct cphy *cphy) in xpak_interrupt_disable() argument
50 static int xpak_interrupt_clear(struct cphy *cphy) in xpak_interrupt_clear() argument
56 static int xpak_set_loopback(struct cphy *cphy, int on) in xpak_set_loopback() argument
62 static int xpak_get_link_status(struct cphy *cphy, int *link_ok, int *speed, in xpak_get_link_status() argument
76 static void xpak_destroy(struct cphy *cphy) in xpak_destroy() argument
78 t1_os_free((void *)cphy, sizeof(*cphy)); in xpak_destroy()
110 static struct cphy *xpak_phy_create(adapter_t * adapter, int phy_addr, in xpak_phy_create()
113 struct cphy *cphy = t1_os_malloc_wait_zero(sizeof(*cphy)); in xpak_phy_create() local
[all …]
H A Dch_subr.c163 struct cphy *phy = adapter->port[port_id].phy; in link_changed()
211 struct cphy *phy = adapter->port[p].phy; in fpga_phy_intr_handler()
822 t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t1_link_start()
868 struct cphy *phy; in elmer0_ext_intr_handler()
1308 struct cphy *phy = adapter->port[i].phy; in t1_free_sw_modules()
H A Dcommon.h251 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
/titanic_44/usr/src/uts/common/io/chxge/
H A Doschtoe.h179 struct cphy *phy;