Lines Matching refs:bce_softc
326 static u32 bce_reg_rd (struct bce_softc *, u32);
327 static void bce_reg_wr (struct bce_softc *, u32, u32);
328 static void bce_reg_wr16 (struct bce_softc *, u32, u16);
329 static u32 bce_ctx_rd (struct bce_softc *, u32, u32);
330 static void bce_dump_enet (struct bce_softc *, struct mbuf *);
331 static void bce_dump_mbuf (struct bce_softc *, struct mbuf *);
332 static void bce_dump_tx_mbuf_chain (struct bce_softc *, u16, int);
333 static void bce_dump_rx_mbuf_chain (struct bce_softc *, u16, int);
334 static void bce_dump_pg_mbuf_chain (struct bce_softc *, u16, int);
335 static void bce_dump_txbd (struct bce_softc *,
337 static void bce_dump_rxbd (struct bce_softc *,
339 static void bce_dump_pgbd (struct bce_softc *,
341 static void bce_dump_l2fhdr (struct bce_softc *,
343 static void bce_dump_ctx (struct bce_softc *, u16);
344 static void bce_dump_ftqs (struct bce_softc *);
345 static void bce_dump_tx_chain (struct bce_softc *, u16, int);
346 static void bce_dump_rx_bd_chain (struct bce_softc *, u16, int);
347 static void bce_dump_pg_chain (struct bce_softc *, u16, int);
348 static void bce_dump_status_block (struct bce_softc *);
349 static void bce_dump_stats_block (struct bce_softc *);
350 static void bce_dump_driver_state (struct bce_softc *);
351 static void bce_dump_hw_state (struct bce_softc *);
352 static void bce_dump_shmem_state (struct bce_softc *);
353 static void bce_dump_mq_regs (struct bce_softc *);
354 static void bce_dump_bc_state (struct bce_softc *);
355 static void bce_dump_txp_state (struct bce_softc *, int);
356 static void bce_dump_rxp_state (struct bce_softc *, int);
357 static void bce_dump_tpat_state (struct bce_softc *, int);
358 static void bce_dump_cp_state (struct bce_softc *, int);
359 static void bce_dump_com_state (struct bce_softc *, int);
360 static void bce_dump_rv2p_state (struct bce_softc *);
361 static void bce_breakpoint (struct bce_softc *);
367 static u32 bce_reg_rd_ind (struct bce_softc *, u32);
368 static void bce_reg_wr_ind (struct bce_softc *, u32, u32);
369 static void bce_shmem_wr (struct bce_softc *, u32, u32);
370 static u32 bce_shmem_rd (struct bce_softc *, u32);
371 static void bce_ctx_wr (struct bce_softc *, u32, u32, u32);
386 static int bce_acquire_nvram_lock (struct bce_softc *);
387 static int bce_release_nvram_lock (struct bce_softc *);
388 static void bce_enable_nvram_access(struct bce_softc *);
389 static void bce_disable_nvram_access(struct bce_softc *);
390 static int bce_nvram_read_dword (struct bce_softc *, u32, u8 *, u32);
391 static int bce_init_nvram (struct bce_softc *);
392 static int bce_nvram_read (struct bce_softc *, u32, u8 *, int);
393 static int bce_nvram_test (struct bce_softc *);
395 static int bce_enable_nvram_write (struct bce_softc *);
396 static void bce_disable_nvram_write(struct bce_softc *);
397 static int bce_nvram_erase_page (struct bce_softc *, u32);
398 static int bce_nvram_write_dword (struct bce_softc *, u32, u8 *, u32);
399 static int bce_nvram_write (struct bce_softc *, u32, u8 *, int);
405 static void bce_get_rx_buffer_sizes(struct bce_softc *, int);
406 static void bce_get_media (struct bce_softc *);
407 static void bce_init_media (struct bce_softc *);
408 static u32 bce_get_rphy_link (struct bce_softc *);
411 static void bce_dma_free (struct bce_softc *);
412 static void bce_release_resources (struct bce_softc *);
417 static void bce_fw_cap_init (struct bce_softc *);
418 static int bce_fw_sync (struct bce_softc *, u32);
419 static void bce_load_rv2p_fw (struct bce_softc *, const u32 *, u32,
421 static void bce_load_cpu_fw (struct bce_softc *,
423 static void bce_start_cpu (struct bce_softc *, struct cpu_reg *);
424 static void bce_halt_cpu (struct bce_softc *, struct cpu_reg *);
425 static void bce_start_rxp_cpu (struct bce_softc *);
426 static void bce_init_rxp_cpu (struct bce_softc *);
427 static void bce_init_txp_cpu (struct bce_softc *);
428 static void bce_init_tpat_cpu (struct bce_softc *);
429 static void bce_init_cp_cpu (struct bce_softc *);
430 static void bce_init_com_cpu (struct bce_softc *);
431 static void bce_init_cpus (struct bce_softc *);
433 static void bce_print_adapter_info (struct bce_softc *);
434 static void bce_probe_pci_caps (device_t, struct bce_softc *);
435 static void bce_stop (struct bce_softc *);
436 static int bce_reset (struct bce_softc *, u32);
437 static int bce_chipinit (struct bce_softc *);
438 static int bce_blockinit (struct bce_softc *);
440 static int bce_init_tx_chain (struct bce_softc *);
441 static void bce_free_tx_chain (struct bce_softc *);
443 static int bce_get_rx_buf (struct bce_softc *, u16, u16, u32 *);
444 static int bce_init_rx_chain (struct bce_softc *);
445 static void bce_fill_rx_chain (struct bce_softc *);
446 static void bce_free_rx_chain (struct bce_softc *);
448 static int bce_get_pg_buf (struct bce_softc *, u16, u16);
449 static int bce_init_pg_chain (struct bce_softc *);
450 static void bce_fill_pg_chain (struct bce_softc *);
451 static void bce_free_pg_chain (struct bce_softc *);
453 static struct mbuf *bce_tso_setup (struct bce_softc *,
455 static int bce_tx_encap (struct bce_softc *, struct mbuf **);
460 static void bce_watchdog (struct bce_softc *);
464 static void bce_ifmedia_sts_rphy (struct bce_softc *, struct ifmediareq *);
465 static void bce_init_locked (struct bce_softc *);
467 static void bce_mgmt_init_locked (struct bce_softc *sc);
469 static int bce_init_ctx (struct bce_softc *);
470 static void bce_get_mac_addr (struct bce_softc *);
471 static void bce_set_mac_addr (struct bce_softc *);
472 static void bce_phy_intr (struct bce_softc *);
473 static inline u16 bce_get_hw_rx_cons (struct bce_softc *);
474 static void bce_rx_intr (struct bce_softc *);
475 static void bce_tx_intr (struct bce_softc *);
476 static void bce_disable_intr (struct bce_softc *);
477 static void bce_enable_intr (struct bce_softc *, int);
480 static void bce_set_rx_mode (struct bce_softc *);
481 static void bce_stats_update (struct bce_softc *);
484 static void bce_add_sysctls (struct bce_softc *);
515 sizeof(struct bce_softc)
677 struct bce_softc *sc; in bce_probe()
733 bce_print_adapter_info(struct bce_softc *sc) in bce_print_adapter_info()
822 bce_probe_pci_caps(device_t dev, struct bce_softc *sc) in bce_probe_pci_caps()
869 bce_set_tunables(struct bce_softc *sc) in bce_set_tunables()
1056 struct bce_softc *sc; in bce_attach()
1538 struct bce_softc *sc = device_get_softc(dev); in bce_detach()
1590 struct bce_softc *sc = device_get_softc(dev); in bce_shutdown()
1617 bce_reg_rd(struct bce_softc *sc, u32 offset) in bce_reg_rd()
1632 bce_reg_wr16(struct bce_softc *sc, u32 offset, u16 val) in bce_reg_wr16()
1646 bce_reg_wr(struct bce_softc *sc, u32 offset, u32 val) in bce_reg_wr()
1665 bce_reg_rd_ind(struct bce_softc *sc, u32 offset) in bce_reg_rd_ind()
1695 bce_reg_wr_ind(struct bce_softc *sc, u32 offset, u32 val) in bce_reg_wr_ind()
1716 bce_shmem_wr(struct bce_softc *sc, u32 offset, u32 val) in bce_shmem_wr()
1733 bce_shmem_rd(struct bce_softc *sc, u32 offset) in bce_shmem_rd()
1754 bce_ctx_rd(struct bce_softc *sc, u32 cid_addr, u32 ctx_offset) in bce_ctx_rd()
1802 bce_ctx_wr(struct bce_softc *sc, u32 cid_addr, u32 ctx_offset, u32 ctx_val) in bce_ctx_wr()
1847 struct bce_softc *sc; in bce_miibus_read_reg()
1925 struct bce_softc *sc; in bce_miibus_write_reg()
1997 struct bce_softc *sc; in bce_miibus_statchg()
2108 bce_acquire_nvram_lock(struct bce_softc *sc) in bce_acquire_nvram_lock()
2145 bce_release_nvram_lock(struct bce_softc *sc) in bce_release_nvram_lock()
2184 bce_enable_nvram_write(struct bce_softc *sc) in bce_enable_nvram_write()
2228 bce_disable_nvram_write(struct bce_softc *sc) in bce_disable_nvram_write()
2252 bce_enable_nvram_access(struct bce_softc *sc) in bce_enable_nvram_access()
2275 bce_disable_nvram_access(struct bce_softc *sc) in bce_disable_nvram_access()
2301 bce_nvram_erase_page(struct bce_softc *sc, u32 offset) in bce_nvram_erase_page()
2356 bce_nvram_read_dword(struct bce_softc *sc, in bce_nvram_read_dword()
2421 bce_nvram_write_dword(struct bce_softc *sc, u32 offset, u8 *val, in bce_nvram_write_dword()
2478 bce_init_nvram(struct bce_softc *sc) in bce_init_nvram()
2590 bce_nvram_read(struct bce_softc *sc, u32 offset, u8 *ret_buf, in bce_nvram_read()
2715 bce_nvram_write(struct bce_softc *sc, u32 offset, u8 *data_buf, in bce_nvram_write()
2911 bce_nvram_test(struct bce_softc *sc) in bce_nvram_test()
2983 bce_get_rx_buffer_sizes(struct bce_softc *sc, int mtu) in bce_get_rx_buffer_sizes()
3034 bce_get_media(struct bce_softc *sc) in bce_get_media()
3140 bce_init_media(struct bce_softc *sc) in bce_init_media()
3173 bce_dma_free(struct bce_softc *sc) in bce_dma_free()
3443 struct bce_softc *sc; in bce_dma_alloc()
3829 bce_release_resources(struct bce_softc *sc) in bce_release_resources()
3882 bce_fw_sync(struct bce_softc *sc, u32 msg_data) in bce_fw_sync()
3941 bce_load_rv2p_fw(struct bce_softc *sc, const u32 *rv2p_code, in bce_load_rv2p_fw()
3991 bce_load_cpu_fw(struct bce_softc *sc, struct cpu_reg *cpu_reg, in bce_load_cpu_fw()
4067 bce_start_cpu(struct bce_softc *sc, struct cpu_reg *cpu_reg) in bce_start_cpu()
4089 bce_halt_cpu(struct bce_softc *sc, struct cpu_reg *cpu_reg) in bce_halt_cpu()
4111 bce_start_rxp_cpu(struct bce_softc *sc) in bce_start_rxp_cpu()
4143 bce_init_rxp_cpu(struct bce_softc *sc) in bce_init_rxp_cpu()
4240 bce_init_txp_cpu(struct bce_softc *sc) in bce_init_txp_cpu()
4336 bce_init_tpat_cpu(struct bce_softc *sc) in bce_init_tpat_cpu()
4432 bce_init_cp_cpu(struct bce_softc *sc) in bce_init_cp_cpu()
4528 bce_init_com_cpu(struct bce_softc *sc) in bce_init_com_cpu()
4626 bce_init_cpus(struct bce_softc *sc) in bce_init_cpus()
4668 bce_init_ctx(struct bce_softc *sc) in bce_init_ctx()
4766 bce_get_mac_addr(struct bce_softc *sc) in bce_get_mac_addr()
4808 bce_set_mac_addr(struct bce_softc *sc) in bce_set_mac_addr()
4838 bce_stop(struct bce_softc *sc) in bce_stop()
4876 bce_reset(struct bce_softc *sc, u32 reset_code) in bce_reset()
4998 bce_chipinit(struct bce_softc *sc) in bce_chipinit()
5104 bce_blockinit(struct bce_softc *sc) in bce_blockinit()
5273 bce_get_rx_buf(struct bce_softc *sc, u16 prod, u16 chain_prod, u32 *prod_bseq) in bce_get_rx_buf()
5387 bce_get_pg_buf(struct bce_softc *sc, u16 prod, u16 prod_idx) in bce_get_pg_buf()
5490 bce_init_tx_context(struct bce_softc *sc) in bce_init_tx_context()
5539 bce_init_tx_chain(struct bce_softc *sc) in bce_init_tx_chain()
5598 bce_free_tx_chain(struct bce_softc *sc) in bce_free_tx_chain()
5639 bce_init_rx_context(struct bce_softc *sc) in bce_init_rx_context()
5712 bce_init_rx_chain(struct bce_softc *sc) in bce_init_rx_chain()
5776 bce_fill_rx_chain(struct bce_softc *sc) in bce_fill_rx_chain()
5822 bce_free_rx_chain(struct bce_softc *sc) in bce_free_rx_chain()
5865 bce_init_pg_chain(struct bce_softc *sc) in bce_init_pg_chain()
5944 bce_fill_pg_chain(struct bce_softc *sc) in bce_fill_pg_chain()
5989 bce_free_pg_chain(struct bce_softc *sc) in bce_free_pg_chain()
6023 bce_get_rphy_link(struct bce_softc *sc) in bce_get_rphy_link()
6079 struct bce_softc *sc = ifp->if_softc; in bce_ifmedia_upd()
6101 struct bce_softc *sc = ifp->if_softc; in bce_ifmedia_upd_locked()
6215 bce_ifmedia_sts_rphy(struct bce_softc *sc, struct ifmediareq *ifmr) in bce_ifmedia_sts_rphy()
6301 struct bce_softc *sc = ifp->if_softc; in bce_ifmedia_sts()
6334 bce_phy_intr(struct bce_softc *sc) in bce_phy_intr()
6399 bce_get_hw_rx_cons(struct bce_softc *sc) in bce_get_hw_rx_cons()
6418 bce_rx_intr(struct bce_softc *sc) in bce_rx_intr()
6769 bce_get_hw_tx_cons(struct bce_softc *sc) in bce_get_hw_tx_cons()
6788 bce_tx_intr(struct bce_softc *sc) in bce_tx_intr()
6905 bce_disable_intr(struct bce_softc *sc) in bce_disable_intr()
6922 bce_enable_intr(struct bce_softc *sc, int coal_now) in bce_enable_intr()
6947 bce_init_locked(struct bce_softc *sc) in bce_init_locked()
7060 bce_mgmt_init_locked(struct bce_softc *sc) in bce_mgmt_init_locked()
7097 struct bce_softc *sc = xsc; in bce_init()
7115 bce_tso_setup(struct bce_softc *sc, struct mbuf **m_head, u16 *flags) in bce_tso_setup()
7234 bce_tx_encap(struct bce_softc *sc, struct mbuf **m_head) in bce_tx_encap()
7431 struct bce_softc *sc = ifp->if_softc; in bce_start_locked()
7524 struct bce_softc *sc = ifp->if_softc; in bce_start()
7544 struct bce_softc *sc = ifp->if_softc; in bce_ioctl()
7705 bce_watchdog(struct bce_softc *sc) in bce_watchdog()
7784 struct bce_softc *sc; in bce_intr()
7933 bce_set_rx_mode(struct bce_softc *sc) in bce_set_rx_mode()
8014 bce_stats_update(struct bce_softc *sc) in bce_stats_update()
8213 struct bce_softc *sc; in bce_get_counter()
8260 struct bce_softc *sc = xsc; in bce_pulse()
8315 struct bce_softc *sc = xsc; in bce_tick()
8383 bce_fw_cap_init(struct bce_softc *sc) in bce_fw_cap_init()
8423 struct bce_softc *sc; in bce_sysctl_driver_state()
8432 sc = (struct bce_softc *)arg1; in bce_sysctl_driver_state()
8450 struct bce_softc *sc; in bce_sysctl_hw_state()
8459 sc = (struct bce_softc *)arg1; in bce_sysctl_hw_state()
8477 struct bce_softc *sc; in bce_sysctl_status_block()
8486 sc = (struct bce_softc *)arg1; in bce_sysctl_status_block()
8504 struct bce_softc *sc; in bce_sysctl_stats_block()
8513 sc = (struct bce_softc *)arg1; in bce_sysctl_stats_block()
8532 struct bce_softc *sc; in bce_sysctl_stats_clear()
8541 sc = (struct bce_softc *)arg1; in bce_sysctl_stats_clear()
8595 struct bce_softc *sc; in bce_sysctl_shmem_state()
8604 sc = (struct bce_softc *)arg1; in bce_sysctl_shmem_state()
8622 struct bce_softc *sc; in bce_sysctl_bc_state()
8631 sc = (struct bce_softc *)arg1; in bce_sysctl_bc_state()
8649 struct bce_softc *sc; in bce_sysctl_dump_rx_bd_chain()
8658 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_rx_bd_chain()
8676 struct bce_softc *sc; in bce_sysctl_dump_rx_mbuf_chain()
8685 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_rx_mbuf_chain()
8703 struct bce_softc *sc; in bce_sysctl_dump_tx_chain()
8712 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_tx_chain()
8730 struct bce_softc *sc; in bce_sysctl_dump_pg_chain()
8739 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_pg_chain()
8756 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_nvram_read()
8784 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_reg_read()
8815 struct bce_softc *sc; in bce_sysctl_phy_read()
8827 sc = (struct bce_softc *)arg1; in bce_sysctl_phy_read()
8845 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_nvram_dump()
8875 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_nvram_write()
8905 struct bce_softc *sc; in bce_sysctl_dump_ctx()
8915 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_ctx()
8934 struct bce_softc *sc; in bce_sysctl_breakpoint()
8943 sc = (struct bce_softc *)arg1; in bce_sysctl_breakpoint()
8958 bce_add_sysctls(struct bce_softc *sc) in bce_add_sysctls()
9522 bce_freeze_controller(struct bce_softc *sc) in bce_freeze_controller()
9538 bce_unfreeze_controller(struct bce_softc *sc) in bce_unfreeze_controller()
9555 bce_dump_enet(struct bce_softc *sc, struct mbuf *m) in bce_dump_enet()
9657 bce_dump_mbuf(struct bce_softc *sc, struct mbuf *m) in bce_dump_mbuf()
9718 bce_dump_tx_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) in bce_dump_tx_mbuf_chain()
9747 bce_dump_rx_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) in bce_dump_rx_mbuf_chain()
9776 bce_dump_pg_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) in bce_dump_pg_mbuf_chain()
9805 bce_dump_txbd(struct bce_softc *sc, int idx, struct tx_bd *txbd) in bce_dump_txbd()
9919 bce_dump_rxbd(struct bce_softc *sc, int idx, struct rx_bd *rxbd) in bce_dump_rxbd()
9944 bce_dump_pgbd(struct bce_softc *sc, int idx, struct rx_bd *pgbd) in bce_dump_pgbd()
9968 bce_dump_l2fhdr(struct bce_softc *sc, int idx, struct l2_fhdr *l2fhdr) in bce_dump_l2fhdr()
9985 bce_dump_ctx(struct bce_softc *sc, u16 cid) in bce_dump_ctx()
10105 bce_dump_ftqs(struct bce_softc *sc) in bce_dump_ftqs()
10350 bce_dump_tx_chain(struct bce_softc *sc, u16 tx_prod, int count) in bce_dump_tx_chain()
10391 bce_dump_rx_bd_chain(struct bce_softc *sc, u16 rx_prod, int count) in bce_dump_rx_bd_chain()
10434 bce_dump_pg_chain(struct bce_softc *sc, u16 pg_prod, int count) in bce_dump_pg_chain()
10491 bce_dump_status_block(struct bce_softc *sc) in bce_dump_status_block()
10554 bce_dump_stats_block(struct bce_softc *sc) in bce_dump_stats_block()
10636 bce_dump_driver_state(struct bce_softc *sc) in bce_dump_driver_state()
10794 bce_dump_hw_state(struct bce_softc *sc) in bce_dump_hw_state()
10905 bce_dump_shmem_state(struct bce_softc *sc) in bce_dump_shmem_state()
10941 bce_dump_mq_regs(struct bce_softc *sc) in bce_dump_mq_regs()
10972 bce_dump_bc_state(struct bce_softc *sc) in bce_dump_bc_state()
11012 bce_dump_txp_state(struct bce_softc *sc, int regs) in bce_dump_txp_state()
11070 bce_dump_rxp_state(struct bce_softc *sc, int regs) in bce_dump_rxp_state()
11129 bce_dump_tpat_state(struct bce_softc *sc, int regs) in bce_dump_tpat_state()
11188 bce_dump_cp_state(struct bce_softc *sc, int regs) in bce_dump_cp_state()
11247 bce_dump_com_state(struct bce_softc *sc, int regs) in bce_dump_com_state()
11304 bce_dump_rv2p_state(struct bce_softc *sc) in bce_dump_rv2p_state()
11371 bce_breakpoint(struct bce_softc *sc) in bce_breakpoint()