Home | History | Annotate | Download | only in pci

Lines Matching refs:bge_softc

175 typedef int (*bge_eaddr_fcn_t)(struct bge_softc *, uint8_t[]);
178 static int bge_can_use_msi(struct bge_softc *);
182 static void bge_release_resources(struct bge_softc *);
184 static int bge_get_eaddr_fw(struct bge_softc *, uint8_t[]);
185 static int bge_get_eaddr_mem(struct bge_softc *, uint8_t[]);
186 static int bge_get_eaddr_nvram(struct bge_softc *, uint8_t[]);
187 static int bge_get_eaddr_eeprom(struct bge_softc *, uint8_t[]);
188 static int bge_get_eaddr(struct bge_softc *, uint8_t[]);
190 static void bge_txeof(struct bge_softc *);
191 static void bge_rxcsum(struct bge_softc *, struct bge_rx_bd *, struct mbuf *);
192 static void bge_rxeof(struct bge_softc *);
194 static void bge_asf_driver_up (struct bge_softc *);
196 static void bge_stats_update(struct bge_softc *);
197 static void bge_stats_update_regs(struct bge_softc *);
198 static int bge_encap(struct bge_softc *, struct mbuf *, uint32_t *);
212 static uint8_t bge_nvram_getbyte(struct bge_softc *, int, uint8_t *);
213 static int bge_read_nvram(struct bge_softc *, uint8_t *, int, int);
215 static uint8_t bge_eeprom_getbyte(struct bge_softc *, int, uint8_t *);
216 static int bge_read_eeprom(struct bge_softc *, void *, int, int);
217 static void bge_setmulti(struct bge_softc *);
219 static void bge_handle_events(struct bge_softc *);
220 static int bge_alloc_jumbo_mem(struct bge_softc *);
221 static void bge_free_jumbo_mem(struct bge_softc *);
222 static void *bge_jalloc(struct bge_softc *);
224 static int bge_newbuf_jumbo(struct bge_softc *, int, struct mbuf *);
225 static int bge_init_rx_ring_jumbo(struct bge_softc *);
226 static void bge_free_rx_ring_jumbo(struct bge_softc *);
228 static int bge_newbuf_std(struct bge_softc *, int);
229 static int bge_init_rx_ring_std(struct bge_softc *);
230 static void bge_fill_rx_ring_std(struct bge_softc *);
231 static void bge_free_rx_ring_std(struct bge_softc *m);
233 static void bge_free_tx_ring(struct bge_softc *m, bool);
234 static int bge_init_tx_ring(struct bge_softc *);
236 static int bge_chipinit(struct bge_softc *);
237 static int bge_blockinit(struct bge_softc *);
238 static int bge_phy_addr(struct bge_softc *);
239 static uint32_t bge_readmem_ind(struct bge_softc *, int);
240 static void bge_writemem_ind(struct bge_softc *, int, int);
241 static void bge_writembx(struct bge_softc *, int, int);
242 static void bge_writembx_flush(struct bge_softc *, int, int);
243 static void bge_writemem_direct(struct bge_softc *, int, int);
244 static void bge_writereg_ind(struct bge_softc *, int, int);
245 static void bge_set_max_readrq(struct bge_softc *);
254 static void bge_sig_post_reset(struct bge_softc *, int);
255 static void bge_sig_legacy(struct bge_softc *, int);
256 static void bge_sig_pre_reset(struct bge_softc *, int);
257 static void bge_wait_for_event_ack(struct bge_softc *);
258 static void bge_stop_fw(struct bge_softc *);
259 static int bge_reset(struct bge_softc *);
260 static void bge_link_upd(struct bge_softc *);
261 static void bge_sysctl_init(struct bge_softc *);
264 static void bge_ape_lock_init(struct bge_softc *);
265 static void bge_ape_read_fw_ver(struct bge_softc *);
266 static int bge_ape_lock(struct bge_softc *, int);
267 static void bge_ape_unlock(struct bge_softc *, int);
268 static void bge_ape_send_event(struct bge_softc *, uint32_t);
269 static void bge_ape_driver_state_change(struct bge_softc *, int);
277 void bge_debug_info(struct bge_softc *);
535 CFATTACH_DECL3_NEW(bge, sizeof(struct bge_softc),
539 bge_readmem_ind(struct bge_softc *sc, int off)
554 bge_writemem_ind(struct bge_softc *sc, int off, int val)
566 bge_set_max_readrq(struct bge_softc *sc)
590 bge_readreg_ind(struct bge_softc *sc, int off)
598 bge_writereg_ind(struct bge_softc *sc, int off, int val)
605 bge_writemem_direct(struct bge_softc *sc, int off, int val)
611 bge_writembx(struct bge_softc *sc, int off, int val)
620 bge_writembx_flush(struct bge_softc *sc, int off, int val)
632 bge_ape_lock_init(struct bge_softc *sc)
686 bge_ape_read_fw_ver(struct bge_softc *sc)
729 bge_ape_lock(struct bge_softc *sc, int locknum)
811 bge_ape_unlock(struct bge_softc *sc, int locknum)
866 bge_ape_send_event(struct bge_softc *sc, uint32_t event)
897 bge_ape_driver_state_change(struct bge_softc *sc, int kind)
947 bge_nvram_getbyte(struct bge_softc *sc, int addr, uint8_t *dest)
999 bge_read_nvram(struct bge_softc *sc, uint8_t *dest, int off, int cnt)
1024 bge_eeprom_getbyte(struct bge_softc *sc, int addr, uint8_t *dest)
1067 bge_read_eeprom(struct bge_softc *sc, void *destv, int off, int cnt)
1086 struct bge_softc * const sc = device_private(dev);
1142 struct bge_softc * const sc = device_private(dev);
1199 struct bge_softc * const sc = ifp->if_softc;
1258 struct bge_softc * const sc = ifp->if_softc;
1308 bge_handle_events(struct bge_softc *sc)
1319 bge_alloc_jumbo_mem(struct bge_softc *sc)
1406 bge_free_jumbo_mem(struct bge_softc *sc)
1429 bge_jalloc(struct bge_softc *sc)
1452 struct bge_softc * const sc = arg;
1481 bge_newbuf_std(struct bge_softc *sc, int i)
1537 bge_newbuf_jumbo(struct bge_softc *sc, int i, struct mbuf *m)
1594 bge_init_rx_ring_std(struct bge_softc *sc)
1631 bge_fill_rx_ring_std(struct bge_softc *sc)
1652 bge_free_rx_ring_std(struct bge_softc *sc)
1679 bge_init_rx_ring_jumbo(struct bge_softc *sc)
1705 bge_free_rx_ring_jumbo(struct bge_softc *sc)
1723 bge_free_tx_ring(struct bge_softc *sc, bool disable)
1760 bge_init_tx_ring(struct bge_softc *sc)
1838 bge_setmulti(struct bge_softc *sc)
1893 bge_sig_pre_reset(struct bge_softc *sc, int type)
1924 bge_sig_post_reset(struct bge_softc *sc, int type)
1946 bge_sig_legacy(struct bge_softc *sc, int type)
1964 bge_wait_for_event_ack(struct bge_softc *sc)
1978 bge_stop_fw(struct bge_softc *sc)
1993 bge_poll_fw(struct bge_softc *sc)
2041 bge_phy_addr(struct bge_softc *sc)
2090 bge_chipinit(struct bge_softc *sc)
2348 bge_blockinit(struct bge_softc *sc)
3179 bge_can_use_msi(struct bge_softc *sc)
3225 struct bge_softc * const sc = device_private(self);
4104 struct bge_softc * const sc = device_private(self);
4132 bge_release_resources(struct bge_softc *sc)
4196 bge_reset(struct bge_softc *sc)
4202 void (*write_op)(struct bge_softc *, int, int);
4481 bge_rxeof(struct bge_softc *sc)
4614 bge_rxcsum(struct bge_softc *sc, struct bge_rx_bd *cur_rx, struct mbuf *m)
4653 bge_txeof(struct bge_softc *sc)
4734 struct bge_softc * const sc = xsc;
4832 bge_asf_driver_up(struct bge_softc *sc)
4858 struct bge_softc * const sc = xsc;
4897 bge_stats_update_regs(struct bge_softc *sc)
4954 bge_stats_update(struct bge_softc *sc)
5164 bge_encap(struct bge_softc *sc, struct mbuf *m_head, uint32_t *txidx)
5498 struct bge_softc * const sc = ifp->if_softc;
5513 struct bge_softc * const sc = ifp->if_softc;
5593 struct bge_softc * const sc = ifp->if_softc;
5802 struct bge_softc * const sc = ifp->if_softc;
5904 struct bge_softc * const sc = ifp->if_softc;
5933 struct bge_softc * const sc = ifp->if_softc;
5961 struct bge_softc * const sc = ifp->if_softc;
6030 bge_watchdog_check(struct bge_softc * const sc)
6074 struct bge_softc * const sc = ifp->if_softc;
6093 struct bge_softc * const sc = arg;
6117 bge_stop_block(struct bge_softc *sc, bus_addr_t reg, uint32_t bit)
6146 struct bge_softc * const sc = ifp->if_softc;
6259 bge_link_upd(struct bge_softc *sc)
6413 bge_sysctl_init(struct bge_softc *sc)
6459 bge_debug_info(struct bge_softc *sc)
6527 bge_get_eaddr_fw(struct bge_softc *sc, uint8_t ether_addr[])
6540 bge_get_eaddr_mem(struct bge_softc *sc, uint8_t ether_addr[])
6559 bge_get_eaddr_nvram(struct bge_softc *sc, uint8_t ether_addr[])
6571 bge_get_eaddr_eeprom(struct bge_softc *sc, uint8_t ether_addr[])
6582 bge_get_eaddr(struct bge_softc *sc, uint8_t eaddr[])