Lines Matching refs:alc_softc
123 static void alc_aspm(struct alc_softc *, int, int);
124 static void alc_aspm_813x(struct alc_softc *, int);
125 static void alc_aspm_816x(struct alc_softc *, int);
126 static void alc_disable_l0s_l1(struct alc_softc *);
127 static int alc_dma_alloc(struct alc_softc *);
128 static void alc_dma_free(struct alc_softc *);
129 static void alc_dsp_fixup(struct alc_softc *, int);
130 static int alc_encap(struct alc_softc *, struct mbuf **);
133 static void alc_get_macaddr(struct alc_softc *);
134 static void alc_get_macaddr_813x(struct alc_softc *);
135 static void alc_get_macaddr_816x(struct alc_softc *);
136 static void alc_get_macaddr_par(struct alc_softc *);
137 static void alc_init_cmb(struct alc_softc *);
138 static void alc_init_rr_ring(struct alc_softc *);
139 static int alc_init_rx_ring(struct alc_softc *, bool);
140 static void alc_init_smb(struct alc_softc *);
141 static void alc_init_tx_ring(struct alc_softc *);
143 static void alc_mac_config(struct alc_softc *);
144 static int alc_mii_readreg_813x(struct alc_softc *, int, int, uint16_t *);
145 static int alc_mii_readreg_816x(struct alc_softc *, int, int, uint16_t *);
146 static int alc_mii_writereg_813x(struct alc_softc *, int, int, uint16_t);
147 static int alc_mii_writereg_816x(struct alc_softc *, int, int, uint16_t);
151 static int alc_miidbg_readreg(struct alc_softc *, int, uint16_t *);
152 static int alc_miidbg_writereg(struct alc_softc *, int, uint16_t);
153 static int alc_miiext_readreg(struct alc_softc *, int, int, uint16_t *);
154 static int alc_miiext_writereg(struct alc_softc *, int, int, uint16_t);
155 static int alc_newbuf(struct alc_softc *, struct alc_rxdesc *, bool);
156 static void alc_phy_down(struct alc_softc *);
157 static void alc_phy_reset(struct alc_softc *);
158 static void alc_phy_reset_813x(struct alc_softc *);
159 static void alc_phy_reset_816x(struct alc_softc *);
160 static void alc_reset(struct alc_softc *);
161 static void alc_rxeof(struct alc_softc *, struct rx_rdesc *);
162 static int alc_rxintr(struct alc_softc *);
163 static void alc_iff(struct alc_softc *);
164 static void alc_rxvlan(struct alc_softc *);
165 static void alc_start_queue(struct alc_softc *);
166 static void alc_stats_clear(struct alc_softc *);
167 static void alc_stats_update(struct alc_softc *);
169 static void alc_stop_mac(struct alc_softc *);
170 static void alc_stop_queue(struct alc_softc *);
172 static void alc_txeof(struct alc_softc *);
173 static void alc_init_pcie(struct alc_softc *);
177 CFATTACH_DECL_NEW(alc, sizeof(struct alc_softc),
188 struct alc_softc *sc = device_private(dev);
199 alc_mii_readreg_813x(struct alc_softc *sc, int phy, int reg, uint16_t *val)
238 alc_mii_readreg_816x(struct alc_softc *sc, int phy, int reg, uint16_t *val)
272 struct alc_softc *sc = device_private(dev);
284 alc_mii_writereg_813x(struct alc_softc *sc, int phy, int reg, uint16_t val)
309 alc_mii_writereg_816x(struct alc_softc *sc, int phy, int reg, uint16_t val)
340 struct alc_softc *sc = ifp->if_softc;
380 alc_miidbg_readreg(struct alc_softc *sc, int reg, uint16_t *val)
394 alc_miidbg_writereg(struct alc_softc *sc, int reg, uint16_t val)
410 alc_miiext_readreg(struct alc_softc *sc, int devaddr, int reg, uint16_t *val)
441 alc_miiext_writereg(struct alc_softc *sc, int devaddr, int reg, uint16_t val)
472 alc_dsp_fixup(struct alc_softc *sc, int media)
548 struct alc_softc *sc = ifp->if_softc;
562 struct alc_softc *sc = ifp->if_softc;
602 alc_get_macaddr(struct alc_softc *sc)
612 alc_get_macaddr_813x(struct alc_softc *sc)
713 alc_get_macaddr_816x(struct alc_softc *sc)
772 alc_get_macaddr_par(struct alc_softc *sc)
787 alc_disable_l0s_l1(struct alc_softc *sc)
804 alc_phy_reset(struct alc_softc *sc)
814 alc_phy_reset_813x(struct alc_softc *sc)
928 alc_phy_reset_816x(struct alc_softc *sc)
1002 alc_phy_down(struct alc_softc *sc)
1051 alc_aspm(struct alc_softc *sc, int init, int media)
1061 alc_aspm_813x(struct alc_softc *sc, int media)
1146 alc_aspm_816x(struct alc_softc *sc, int init)
1181 alc_init_pcie(struct alc_softc *sc)
1261 struct alc_softc *sc = device_private(self);
1539 struct alc_softc *sc = device_private(self);
1570 alc_dma_alloc(struct alc_softc *sc)
1831 alc_dma_free(struct alc_softc *sc)
1910 alc_encap(struct alc_softc *sc, struct mbuf **m_head)
2019 struct alc_softc *sc = ifp->if_softc;
2076 struct alc_softc *sc = ifp->if_softc;
2095 struct alc_softc *sc = ifp->if_softc;
2137 alc_mac_config(struct alc_softc *sc)
2171 alc_stats_clear(struct alc_softc *sc)
2203 alc_stats_update(struct alc_softc *sc)
2322 struct alc_softc *sc = arg;
2369 alc_txeof(struct alc_softc *sc)
2427 alc_newbuf(struct alc_softc *sc, struct alc_rxdesc *rxd, bool init)
2473 alc_rxintr(struct alc_softc *sc)
2542 alc_rxeof(struct alc_softc *sc, struct rx_rdesc *rrd)
2656 struct alc_softc *sc = xsc;
2669 alc_osc_reset(struct alc_softc *sc)
2707 alc_reset(struct alc_softc *sc)
2802 struct alc_softc *sc = ifp->if_softc;
3191 struct alc_softc *sc = ifp->if_softc;
3260 alc_stop_mac(struct alc_softc *sc)
3284 alc_start_queue(struct alc_softc *sc)
3310 alc_stop_queue(struct alc_softc *sc)
3347 alc_init_tx_ring(struct alc_softc *sc)
3369 alc_init_rx_ring(struct alc_softc *sc, bool init)
3400 alc_init_rr_ring(struct alc_softc *sc)
3415 alc_init_cmb(struct alc_softc *sc)
3427 alc_init_smb(struct alc_softc *sc)
3439 alc_rxvlan(struct alc_softc *sc)
3452 alc_iff(struct alc_softc *sc)