Lines Matching refs:bce_softc
324 static u32 bce_reg_rd (struct bce_softc *, u32);
325 static void bce_reg_wr (struct bce_softc *, u32, u32);
326 static void bce_reg_wr16 (struct bce_softc *, u32, u16);
327 static u32 bce_ctx_rd (struct bce_softc *, u32, u32);
328 static void bce_dump_enet (struct bce_softc *, struct mbuf *);
329 static void bce_dump_mbuf (struct bce_softc *, struct mbuf *);
330 static void bce_dump_tx_mbuf_chain (struct bce_softc *, u16, int);
331 static void bce_dump_rx_mbuf_chain (struct bce_softc *, u16, int);
332 static void bce_dump_pg_mbuf_chain (struct bce_softc *, u16, int);
333 static void bce_dump_txbd (struct bce_softc *,
335 static void bce_dump_rxbd (struct bce_softc *,
337 static void bce_dump_pgbd (struct bce_softc *,
339 static void bce_dump_l2fhdr (struct bce_softc *,
341 static void bce_dump_ctx (struct bce_softc *, u16);
342 static void bce_dump_ftqs (struct bce_softc *);
343 static void bce_dump_tx_chain (struct bce_softc *, u16, int);
344 static void bce_dump_rx_bd_chain (struct bce_softc *, u16, int);
345 static void bce_dump_pg_chain (struct bce_softc *, u16, int);
346 static void bce_dump_status_block (struct bce_softc *);
347 static void bce_dump_stats_block (struct bce_softc *);
348 static void bce_dump_driver_state (struct bce_softc *);
349 static void bce_dump_hw_state (struct bce_softc *);
350 static void bce_dump_shmem_state (struct bce_softc *);
351 static void bce_dump_mq_regs (struct bce_softc *);
352 static void bce_dump_bc_state (struct bce_softc *);
353 static void bce_dump_txp_state (struct bce_softc *, int);
354 static void bce_dump_rxp_state (struct bce_softc *, int);
355 static void bce_dump_tpat_state (struct bce_softc *, int);
356 static void bce_dump_cp_state (struct bce_softc *, int);
357 static void bce_dump_com_state (struct bce_softc *, int);
358 static void bce_dump_rv2p_state (struct bce_softc *);
359 static void bce_breakpoint (struct bce_softc *);
365 static u32 bce_reg_rd_ind (struct bce_softc *, u32);
366 static void bce_reg_wr_ind (struct bce_softc *, u32, u32);
367 static void bce_shmem_wr (struct bce_softc *, u32, u32);
368 static u32 bce_shmem_rd (struct bce_softc *, u32);
369 static void bce_ctx_wr (struct bce_softc *, u32, u32, u32);
384 static int bce_acquire_nvram_lock (struct bce_softc *);
385 static int bce_release_nvram_lock (struct bce_softc *);
386 static void bce_enable_nvram_access(struct bce_softc *);
387 static void bce_disable_nvram_access(struct bce_softc *);
388 static int bce_nvram_read_dword (struct bce_softc *, u32, u8 *, u32);
389 static int bce_init_nvram (struct bce_softc *);
390 static int bce_nvram_read (struct bce_softc *, u32, u8 *, int);
391 static int bce_nvram_test (struct bce_softc *);
393 static int bce_enable_nvram_write (struct bce_softc *);
394 static void bce_disable_nvram_write(struct bce_softc *);
395 static int bce_nvram_erase_page (struct bce_softc *, u32);
396 static int bce_nvram_write_dword (struct bce_softc *, u32, u8 *, u32);
397 static int bce_nvram_write (struct bce_softc *, u32, u8 *, int);
403 static void bce_get_rx_buffer_sizes(struct bce_softc *, int);
404 static void bce_get_media (struct bce_softc *);
405 static void bce_init_media (struct bce_softc *);
406 static u32 bce_get_rphy_link (struct bce_softc *);
409 static void bce_dma_free (struct bce_softc *);
410 static void bce_release_resources (struct bce_softc *);
415 static void bce_fw_cap_init (struct bce_softc *);
416 static int bce_fw_sync (struct bce_softc *, u32);
417 static void bce_load_rv2p_fw (struct bce_softc *, const u32 *, u32,
419 static void bce_load_cpu_fw (struct bce_softc *,
421 static void bce_start_cpu (struct bce_softc *, struct cpu_reg *);
422 static void bce_halt_cpu (struct bce_softc *, struct cpu_reg *);
423 static void bce_start_rxp_cpu (struct bce_softc *);
424 static void bce_init_rxp_cpu (struct bce_softc *);
425 static void bce_init_txp_cpu (struct bce_softc *);
426 static void bce_init_tpat_cpu (struct bce_softc *);
427 static void bce_init_cp_cpu (struct bce_softc *);
428 static void bce_init_com_cpu (struct bce_softc *);
429 static void bce_init_cpus (struct bce_softc *);
431 static void bce_print_adapter_info (struct bce_softc *);
432 static void bce_probe_pci_caps (device_t, struct bce_softc *);
433 static void bce_stop (struct bce_softc *);
434 static int bce_reset (struct bce_softc *, u32);
435 static int bce_chipinit (struct bce_softc *);
436 static int bce_blockinit (struct bce_softc *);
438 static int bce_init_tx_chain (struct bce_softc *);
439 static void bce_free_tx_chain (struct bce_softc *);
441 static int bce_get_rx_buf (struct bce_softc *, u16, u16, u32 *);
442 static int bce_init_rx_chain (struct bce_softc *);
443 static void bce_fill_rx_chain (struct bce_softc *);
444 static void bce_free_rx_chain (struct bce_softc *);
446 static int bce_get_pg_buf (struct bce_softc *, u16, u16);
447 static int bce_init_pg_chain (struct bce_softc *);
448 static void bce_fill_pg_chain (struct bce_softc *);
449 static void bce_free_pg_chain (struct bce_softc *);
451 static struct mbuf *bce_tso_setup (struct bce_softc *,
453 static int bce_tx_encap (struct bce_softc *, struct mbuf **);
458 static void bce_watchdog (struct bce_softc *);
462 static void bce_ifmedia_sts_rphy (struct bce_softc *, struct ifmediareq *);
463 static void bce_init_locked (struct bce_softc *);
465 static void bce_mgmt_init_locked (struct bce_softc *sc);
467 static int bce_init_ctx (struct bce_softc *);
468 static void bce_get_mac_addr (struct bce_softc *);
469 static void bce_set_mac_addr (struct bce_softc *);
470 static void bce_phy_intr (struct bce_softc *);
471 static inline u16 bce_get_hw_rx_cons (struct bce_softc *);
472 static void bce_rx_intr (struct bce_softc *);
473 static void bce_tx_intr (struct bce_softc *);
474 static void bce_disable_intr (struct bce_softc *);
475 static void bce_enable_intr (struct bce_softc *, int);
478 static void bce_set_rx_mode (struct bce_softc *);
479 static void bce_stats_update (struct bce_softc *);
482 static void bce_add_sysctls (struct bce_softc *);
513 sizeof(struct bce_softc)
673 struct bce_softc *sc; in bce_probe()
719 bce_print_adapter_info(struct bce_softc *sc) in bce_print_adapter_info()
808 bce_probe_pci_caps(device_t dev, struct bce_softc *sc) in bce_probe_pci_caps()
855 bce_set_tunables(struct bce_softc *sc) in bce_set_tunables()
1042 struct bce_softc *sc; in bce_attach()
1517 struct bce_softc *sc = device_get_softc(dev); in bce_detach()
1568 struct bce_softc *sc = device_get_softc(dev); in bce_shutdown()
1595 bce_reg_rd(struct bce_softc *sc, u32 offset) in bce_reg_rd()
1610 bce_reg_wr16(struct bce_softc *sc, u32 offset, u16 val) in bce_reg_wr16()
1624 bce_reg_wr(struct bce_softc *sc, u32 offset, u32 val) in bce_reg_wr()
1643 bce_reg_rd_ind(struct bce_softc *sc, u32 offset) in bce_reg_rd_ind()
1673 bce_reg_wr_ind(struct bce_softc *sc, u32 offset, u32 val) in bce_reg_wr_ind()
1694 bce_shmem_wr(struct bce_softc *sc, u32 offset, u32 val) in bce_shmem_wr()
1711 bce_shmem_rd(struct bce_softc *sc, u32 offset) in bce_shmem_rd()
1732 bce_ctx_rd(struct bce_softc *sc, u32 cid_addr, u32 ctx_offset) in bce_ctx_rd()
1780 bce_ctx_wr(struct bce_softc *sc, u32 cid_addr, u32 ctx_offset, u32 ctx_val) in bce_ctx_wr()
1825 struct bce_softc *sc; in bce_miibus_read_reg()
1903 struct bce_softc *sc; in bce_miibus_write_reg()
1975 struct bce_softc *sc; in bce_miibus_statchg()
2086 bce_acquire_nvram_lock(struct bce_softc *sc) in bce_acquire_nvram_lock()
2123 bce_release_nvram_lock(struct bce_softc *sc) in bce_release_nvram_lock()
2162 bce_enable_nvram_write(struct bce_softc *sc) in bce_enable_nvram_write()
2206 bce_disable_nvram_write(struct bce_softc *sc) in bce_disable_nvram_write()
2230 bce_enable_nvram_access(struct bce_softc *sc) in bce_enable_nvram_access()
2253 bce_disable_nvram_access(struct bce_softc *sc) in bce_disable_nvram_access()
2279 bce_nvram_erase_page(struct bce_softc *sc, u32 offset) in bce_nvram_erase_page()
2334 bce_nvram_read_dword(struct bce_softc *sc, in bce_nvram_read_dword()
2399 bce_nvram_write_dword(struct bce_softc *sc, u32 offset, u8 *val, in bce_nvram_write_dword()
2456 bce_init_nvram(struct bce_softc *sc) in bce_init_nvram()
2568 bce_nvram_read(struct bce_softc *sc, u32 offset, u8 *ret_buf, in bce_nvram_read()
2693 bce_nvram_write(struct bce_softc *sc, u32 offset, u8 *data_buf, in bce_nvram_write()
2889 bce_nvram_test(struct bce_softc *sc) in bce_nvram_test()
2961 bce_get_rx_buffer_sizes(struct bce_softc *sc, int mtu) in bce_get_rx_buffer_sizes()
3012 bce_get_media(struct bce_softc *sc) in bce_get_media()
3118 bce_init_media(struct bce_softc *sc) in bce_init_media()
3151 bce_dma_free(struct bce_softc *sc) in bce_dma_free()
3421 struct bce_softc *sc; in bce_dma_alloc()
3807 bce_release_resources(struct bce_softc *sc) in bce_release_resources()
3860 bce_fw_sync(struct bce_softc *sc, u32 msg_data) in bce_fw_sync()
3919 bce_load_rv2p_fw(struct bce_softc *sc, const u32 *rv2p_code, in bce_load_rv2p_fw()
3969 bce_load_cpu_fw(struct bce_softc *sc, struct cpu_reg *cpu_reg, in bce_load_cpu_fw()
4045 bce_start_cpu(struct bce_softc *sc, struct cpu_reg *cpu_reg) in bce_start_cpu()
4067 bce_halt_cpu(struct bce_softc *sc, struct cpu_reg *cpu_reg) in bce_halt_cpu()
4089 bce_start_rxp_cpu(struct bce_softc *sc) in bce_start_rxp_cpu()
4121 bce_init_rxp_cpu(struct bce_softc *sc) in bce_init_rxp_cpu()
4218 bce_init_txp_cpu(struct bce_softc *sc) in bce_init_txp_cpu()
4314 bce_init_tpat_cpu(struct bce_softc *sc) in bce_init_tpat_cpu()
4410 bce_init_cp_cpu(struct bce_softc *sc) in bce_init_cp_cpu()
4506 bce_init_com_cpu(struct bce_softc *sc) in bce_init_com_cpu()
4604 bce_init_cpus(struct bce_softc *sc) in bce_init_cpus()
4646 bce_init_ctx(struct bce_softc *sc) in bce_init_ctx()
4744 bce_get_mac_addr(struct bce_softc *sc) in bce_get_mac_addr()
4786 bce_set_mac_addr(struct bce_softc *sc) in bce_set_mac_addr()
4816 bce_stop(struct bce_softc *sc) in bce_stop()
4854 bce_reset(struct bce_softc *sc, u32 reset_code) in bce_reset()
4976 bce_chipinit(struct bce_softc *sc) in bce_chipinit()
5082 bce_blockinit(struct bce_softc *sc) in bce_blockinit()
5251 bce_get_rx_buf(struct bce_softc *sc, u16 prod, u16 chain_prod, u32 *prod_bseq) in bce_get_rx_buf()
5365 bce_get_pg_buf(struct bce_softc *sc, u16 prod, u16 prod_idx) in bce_get_pg_buf()
5468 bce_init_tx_context(struct bce_softc *sc) in bce_init_tx_context()
5517 bce_init_tx_chain(struct bce_softc *sc) in bce_init_tx_chain()
5576 bce_free_tx_chain(struct bce_softc *sc) in bce_free_tx_chain()
5617 bce_init_rx_context(struct bce_softc *sc) in bce_init_rx_context()
5690 bce_init_rx_chain(struct bce_softc *sc) in bce_init_rx_chain()
5754 bce_fill_rx_chain(struct bce_softc *sc) in bce_fill_rx_chain()
5800 bce_free_rx_chain(struct bce_softc *sc) in bce_free_rx_chain()
5843 bce_init_pg_chain(struct bce_softc *sc) in bce_init_pg_chain()
5922 bce_fill_pg_chain(struct bce_softc *sc) in bce_fill_pg_chain()
5967 bce_free_pg_chain(struct bce_softc *sc) in bce_free_pg_chain()
6001 bce_get_rphy_link(struct bce_softc *sc) in bce_get_rphy_link()
6057 struct bce_softc *sc = if_getsoftc(ifp); in bce_ifmedia_upd()
6079 struct bce_softc *sc = if_getsoftc(ifp); in bce_ifmedia_upd_locked()
6193 bce_ifmedia_sts_rphy(struct bce_softc *sc, struct ifmediareq *ifmr) in bce_ifmedia_sts_rphy()
6279 struct bce_softc *sc = if_getsoftc(ifp); in bce_ifmedia_sts()
6312 bce_phy_intr(struct bce_softc *sc) in bce_phy_intr()
6377 bce_get_hw_rx_cons(struct bce_softc *sc) in bce_get_hw_rx_cons()
6396 bce_rx_intr(struct bce_softc *sc) in bce_rx_intr()
6747 bce_get_hw_tx_cons(struct bce_softc *sc) in bce_get_hw_tx_cons()
6766 bce_tx_intr(struct bce_softc *sc) in bce_tx_intr()
6883 bce_disable_intr(struct bce_softc *sc) in bce_disable_intr()
6900 bce_enable_intr(struct bce_softc *sc, int coal_now) in bce_enable_intr()
6925 bce_init_locked(struct bce_softc *sc) in bce_init_locked()
7038 bce_mgmt_init_locked(struct bce_softc *sc) in bce_mgmt_init_locked()
7075 struct bce_softc *sc = xsc; in bce_init()
7093 bce_tso_setup(struct bce_softc *sc, struct mbuf **m_head, u16 *flags) in bce_tso_setup()
7213 bce_tx_encap(struct bce_softc *sc, struct mbuf **m_head) in bce_tx_encap()
7410 struct bce_softc *sc = if_getsoftc(ifp); in bce_start_locked()
7503 struct bce_softc *sc = if_getsoftc(ifp); in bce_start()
7523 struct bce_softc *sc = if_getsoftc(ifp); in bce_ioctl()
7684 bce_watchdog(struct bce_softc *sc) in bce_watchdog()
7763 struct bce_softc *sc; in bce_intr()
7912 bce_set_rx_mode(struct bce_softc *sc) in bce_set_rx_mode()
7993 bce_stats_update(struct bce_softc *sc) in bce_stats_update()
8192 struct bce_softc *sc; in bce_get_counter()
8239 struct bce_softc *sc = xsc; in bce_pulse()
8294 struct bce_softc *sc = xsc; in bce_tick()
8362 bce_fw_cap_init(struct bce_softc *sc) in bce_fw_cap_init()
8402 struct bce_softc *sc; in bce_sysctl_driver_state()
8411 sc = (struct bce_softc *)arg1; in bce_sysctl_driver_state()
8429 struct bce_softc *sc; in bce_sysctl_hw_state()
8438 sc = (struct bce_softc *)arg1; in bce_sysctl_hw_state()
8456 struct bce_softc *sc; in bce_sysctl_status_block()
8465 sc = (struct bce_softc *)arg1; in bce_sysctl_status_block()
8483 struct bce_softc *sc; in bce_sysctl_stats_block()
8492 sc = (struct bce_softc *)arg1; in bce_sysctl_stats_block()
8511 struct bce_softc *sc; in bce_sysctl_stats_clear()
8520 sc = (struct bce_softc *)arg1; in bce_sysctl_stats_clear()
8574 struct bce_softc *sc; in bce_sysctl_shmem_state()
8583 sc = (struct bce_softc *)arg1; in bce_sysctl_shmem_state()
8601 struct bce_softc *sc; in bce_sysctl_bc_state()
8610 sc = (struct bce_softc *)arg1; in bce_sysctl_bc_state()
8628 struct bce_softc *sc; in bce_sysctl_dump_rx_bd_chain()
8637 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_rx_bd_chain()
8655 struct bce_softc *sc; in bce_sysctl_dump_rx_mbuf_chain()
8664 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_rx_mbuf_chain()
8682 struct bce_softc *sc; in bce_sysctl_dump_tx_chain()
8691 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_tx_chain()
8709 struct bce_softc *sc; in bce_sysctl_dump_pg_chain()
8718 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_pg_chain()
8735 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_nvram_read()
8763 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_reg_read()
8794 struct bce_softc *sc; in bce_sysctl_phy_read()
8806 sc = (struct bce_softc *)arg1; in bce_sysctl_phy_read()
8824 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_nvram_dump()
8854 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_nvram_write()
8884 struct bce_softc *sc; in bce_sysctl_dump_ctx()
8894 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_ctx()
8913 struct bce_softc *sc; in bce_sysctl_breakpoint()
8922 sc = (struct bce_softc *)arg1; in bce_sysctl_breakpoint()
8937 bce_add_sysctls(struct bce_softc *sc) in bce_add_sysctls()
9501 bce_freeze_controller(struct bce_softc *sc) in bce_freeze_controller()
9517 bce_unfreeze_controller(struct bce_softc *sc) in bce_unfreeze_controller()
9534 bce_dump_enet(struct bce_softc *sc, struct mbuf *m) in bce_dump_enet()
9636 bce_dump_mbuf(struct bce_softc *sc, struct mbuf *m) in bce_dump_mbuf()
9697 bce_dump_tx_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) in bce_dump_tx_mbuf_chain()
9726 bce_dump_rx_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) in bce_dump_rx_mbuf_chain()
9755 bce_dump_pg_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) in bce_dump_pg_mbuf_chain()
9784 bce_dump_txbd(struct bce_softc *sc, int idx, struct tx_bd *txbd) in bce_dump_txbd()
9898 bce_dump_rxbd(struct bce_softc *sc, int idx, struct rx_bd *rxbd) in bce_dump_rxbd()
9923 bce_dump_pgbd(struct bce_softc *sc, int idx, struct rx_bd *pgbd) in bce_dump_pgbd()
9947 bce_dump_l2fhdr(struct bce_softc *sc, int idx, struct l2_fhdr *l2fhdr) in bce_dump_l2fhdr()
9964 bce_dump_ctx(struct bce_softc *sc, u16 cid) in bce_dump_ctx()
10084 bce_dump_ftqs(struct bce_softc *sc) in bce_dump_ftqs()
10329 bce_dump_tx_chain(struct bce_softc *sc, u16 tx_prod, int count) in bce_dump_tx_chain()
10370 bce_dump_rx_bd_chain(struct bce_softc *sc, u16 rx_prod, int count) in bce_dump_rx_bd_chain()
10413 bce_dump_pg_chain(struct bce_softc *sc, u16 pg_prod, int count) in bce_dump_pg_chain()
10470 bce_dump_status_block(struct bce_softc *sc) in bce_dump_status_block()
10533 bce_dump_stats_block(struct bce_softc *sc) in bce_dump_stats_block()
10615 bce_dump_driver_state(struct bce_softc *sc) in bce_dump_driver_state()
10773 bce_dump_hw_state(struct bce_softc *sc) in bce_dump_hw_state()
10884 bce_dump_shmem_state(struct bce_softc *sc) in bce_dump_shmem_state()
10920 bce_dump_mq_regs(struct bce_softc *sc) in bce_dump_mq_regs()
10951 bce_dump_bc_state(struct bce_softc *sc) in bce_dump_bc_state()
10991 bce_dump_txp_state(struct bce_softc *sc, int regs) in bce_dump_txp_state()
11049 bce_dump_rxp_state(struct bce_softc *sc, int regs) in bce_dump_rxp_state()
11108 bce_dump_tpat_state(struct bce_softc *sc, int regs) in bce_dump_tpat_state()
11167 bce_dump_cp_state(struct bce_softc *sc, int regs) in bce_dump_cp_state()
11226 bce_dump_com_state(struct bce_softc *sc, int regs) in bce_dump_com_state()
11283 bce_dump_rv2p_state(struct bce_softc *sc) in bce_dump_rv2p_state()
11350 bce_breakpoint(struct bce_softc *sc) in bce_breakpoint()