Searched defs:cphy (Results 1 - 5 of 5) sorted by relevance

/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dmy3126.c28 #include "cphy.h"
34 static int my3126_reset(struct cphy *cphy, int wait) argument
44 static int my3126_interrupt_enable(struct cphy *cphy) argument
47 if (!is_T2(cphy->adapter))
49 ch_start_cyclic(&cphy->phy_update_cyclic, 30);
50 (void) t1_tpi_read(cphy->adapter, A_ELMER0_GPO, &cphy->elmer_gpo);
55 static int my3126_interrupt_disable(struct cphy *cph argument
64 my3126_interrupt_clear(struct cphy *cphy) argument
71 my3126_interrupt_handler(struct cphy *cphy) argument
125 my3126_set_loopback(struct cphy *cphy, int on) argument
131 my3126_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) argument
165 my3126_destroy(struct cphy *cphy) argument
202 struct cphy *cphy = t1_os_malloc_wait_zero(sizeof(*cphy)); local
[all...]
H A Dxpak.c28 #include "cphy.h"
32 static int xpak_reset(struct cphy *cphy, int wait) argument
38 static int xpak_interrupt_enable(struct cphy *cphy) argument
44 static int xpak_interrupt_disable(struct cphy *cphy) argument
50 static int xpak_interrupt_clear(struct cphy *cphy) argument
56 static int xpak_set_loopback(struct cphy *cph argument
62 xpak_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) argument
76 xpak_destroy(struct cphy *cphy) argument
113 struct cphy *cphy = t1_os_malloc_wait_zero(sizeof(*cphy)); local
[all...]
H A Dmv88x201x.c28 #include "cphy.h"
38 static int led_init(struct cphy *cphy) argument
44 (void) mdio_write(cphy, 0x3, 0x8304, 0xdddd);
48 static int led_link(struct cphy *cphy, u32 do_enable) argument
53 (void) mdio_read(cphy, 0x1, 0x7, &led);
57 (void) mdio_write(cphy, 0x1, 0x7, led);
60 (void) mdio_write(cphy, 0x1, 0x7, led);
67 static int mv88x201x_reset(struct cphy *cph argument
75 mv88x201x_interrupt_enable(struct cphy *cphy) argument
91 mv88x201x_interrupt_disable(struct cphy *cphy) argument
107 mv88x201x_interrupt_clear(struct cphy *cphy) argument
144 mv88x201x_interrupt_handler(struct cphy *cphy) argument
156 mv88x201x_set_loopback(struct cphy *cphy, int on) argument
161 mv88x201x_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) argument
184 mv88x201x_destroy(struct cphy *cphy) argument
222 struct cphy *cphy = t1_os_malloc_wait_zero(sizeof(*cphy)); local
[all...]
H A Dcphy.h26 #pragma ident "%Z%%M% %I% %E% SMI" /* cphy.h */
53 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 *);
77 struct cphy { struct
100 mdio_read(struct cphy *cphy, int mmd, int reg, unsigned int *valp) argument
106 mdio_write(struct cphy *cphy, int mmd, int reg, unsigned int val) argument
112 simple_mdio_read(struct cphy *cphy, int reg, unsigned int *valp) argument
118 simple_mdio_write(struct cphy *cphy, int reg, unsigned int val) argument
[all...]
H A Dmv88e1xxx.c30 #include "cphy.h"
43 static void mdio_set_bit(struct cphy *cphy, int reg, u32 bitval) argument
47 (void) simple_mdio_read(cphy, reg, &val);
48 (void) simple_mdio_write(cphy, reg, val | bitval);
54 static void mdio_clear_bit(struct cphy *cphy, int reg, u32 bitval) argument
58 (void) simple_mdio_read(cphy, reg, &val);
59 (void) simple_mdio_write(cphy, reg, val & ~bitval);
68 * PARAMS: cphy
74 mv88e1xxx_reset(struct cphy *cphy, int wait) argument
91 mv88e1xxx_interrupt_enable(struct cphy *cphy) argument
111 mv88e1xxx_interrupt_disable(struct cphy *cphy) argument
130 mv88e1xxx_interrupt_clear(struct cphy *cphy) argument
176 mv88e1xxx_crossover_set(struct cphy *cphy, int crossover) argument
187 mv88e1xxx_autoneg_enable(struct cphy *cphy) argument
200 mv88e1xxx_autoneg_disable(struct cphy *cphy) argument
220 mv88e1xxx_autoneg_restart(struct cphy *cphy) argument
258 mv88e1xxx_set_loopback(struct cphy *cphy, int on) argument
267 mv88e1xxx_get_link_status(struct cphy *cphy, int *link_ok, int *speed, int *duplex, int *fc) argument
299 mv88e1xxx_downshift_set(struct cphy *cphy, int downshift_enable) argument
317 mv88e1xxx_interrupt_handler(struct cphy *cphy) argument
358 mv88e1xxx_destroy(struct cphy *cphy) argument
400 struct cphy *cphy = t1_os_malloc_wait_zero(sizeof(*cphy)); local
[all...]

Completed in 59 milliseconds