Home
last modified time | relevance | path

Searched full:cphy (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dmv88e1xxx.c28 #include "cphy.h"
41 static void mdio_set_bit(struct cphy *cphy, int reg, u32 bitval) in mdio_set_bit() argument
45 (void) simple_mdio_read(cphy, reg, &val); in mdio_set_bit()
46 (void) simple_mdio_write(cphy, reg, val | bitval); in mdio_set_bit()
52 static void mdio_clear_bit(struct cphy *cphy, int reg, u32 bitval) in mdio_clear_bit() argument
56 (void) simple_mdio_read(cphy, reg, &val); in mdio_clear_bit()
57 (void) simple_mdio_write(cphy, reg, val & ~bitval); in mdio_clear_bit()
66 * PARAMS: cphy - Pointer to PHY instance data.
72 static int mv88e1xxx_reset(struct cphy *cphy, int wait) in mv88e1xxx_reset() argument
77 mdio_set_bit(cphy, MII_BMCR, BMCR_RESET); in mv88e1xxx_reset()
[all …]
H A Dmv88x201x.c26 #include "cphy.h"
36 static int led_init(struct cphy *cphy) in led_init() argument
42 (void) mdio_write(cphy, 0x3, 0x8304, 0xdddd); in led_init()
46 static int led_link(struct cphy *cphy, u32 do_enable) in led_link() argument
51 (void) mdio_read(cphy, 0x1, 0x7, &led); in led_link()
55 (void) mdio_write(cphy, 0x1, 0x7, led); in led_link()
58 (void) mdio_write(cphy, 0x1, 0x7, led); in led_link()
65 static int mv88x201x_reset(struct cphy *cphy, int wait) in mv88x201x_reset() argument
73 static int mv88x201x_interrupt_enable(struct cphy *cphy) in mv88x201x_interrupt_enable() argument
76 (void) mdio_write(cphy, 0x1, 0x9002, 0x1); in mv88x201x_interrupt_enable()
[all …]
H A Dmy3126.c26 #include "cphy.h"
32 static int my3126_reset(struct cphy *cphy, int wait) in my3126_reset() argument
42 static int my3126_interrupt_enable(struct cphy *cphy) in my3126_interrupt_enable() argument
45 if (!is_T2(cphy->adapter)) in my3126_interrupt_enable()
47 ch_start_cyclic(&cphy->phy_update_cyclic, 30); in my3126_interrupt_enable()
48 (void) t1_tpi_read(cphy->adapter, A_ELMER0_GPO, &cphy->elmer_gpo); in my3126_interrupt_enable()
53 static int my3126_interrupt_disable(struct cphy *cphy) in my3126_interrupt_disable() argument
56 if (is_T2(cphy->adapter)) in my3126_interrupt_disable()
57 ch_stop_cyclic(&cphy->phy_update_cyclic); in my3126_interrupt_disable()
62 static int my3126_interrupt_clear(struct cphy *cphy) in my3126_interrupt_clear() argument
[all …]
H A Dcphy.h51 struct cphy;
55 void (*destroy)(struct cphy *);
56 int (*reset)(struct cphy *, int wait);
58 int (*interrupt_enable)(struct cphy *);
59 int (*interrupt_disable)(struct cphy *);
60 int (*interrupt_clear)(struct cphy *);
61 int (*interrupt_handler)(struct cphy *);
63 int (*autoneg_enable)(struct cphy *);
64 int (*autoneg_disable)(struct cphy *);
65 int (*autoneg_restart)(struct cphy *);
[all …]
H A Dxpak.c26 #include "cphy.h"
30 static int xpak_reset(struct cphy *cphy, int wait) in xpak_reset() argument
36 static int xpak_interrupt_enable(struct cphy *cphy) in xpak_interrupt_enable() argument
42 static int xpak_interrupt_disable(struct cphy *cphy) in xpak_interrupt_disable() argument
48 static int xpak_interrupt_clear(struct cphy *cphy) in xpak_interrupt_clear() argument
54 static int xpak_set_loopback(struct cphy *cphy, int on) in xpak_set_loopback() argument
60 static int xpak_get_link_status(struct cphy *cphy, int *link_ok, int *speed, in xpak_get_link_status() argument
74 static void xpak_destroy(struct cphy *cphy) in xpak_destroy() argument
76 t1_os_free((void *)cphy, sizeof(*cphy)); in xpak_destroy()
108 static struct cphy *xpak_phy_create(adapter_t * adapter, int phy_addr, in xpak_phy_create()
[all …]
H A Dch_subr.c31 #include "cphy.h"
161 struct cphy *phy = adapter->port[port_id].phy; in link_changed()
209 struct cphy *phy = adapter->port[p].phy; in fpga_phy_intr_handler()
820 t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t1_link_start()
866 struct cphy *phy; in elmer0_ext_intr_handler()
1306 struct cphy *phy = adapter->port[i].phy; in t1_free_sw_modules()
H A Dcommon.h249 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
/illumos-gate/usr/src/uts/common/io/chxge/
H A Doschtoe.h177 struct cphy *phy;
H A Dpe.c69 #include "cphy.h"