Lines Matching refs:bce_softc

330 static u32  bce_reg_rd				(struct bce_softc *, u32);
331 static void bce_reg_wr (struct bce_softc *, u32, u32);
332 static void bce_reg_wr16 (struct bce_softc *, u32, u16);
333 static u32 bce_ctx_rd (struct bce_softc *, u32, u32);
334 static void bce_dump_enet (struct bce_softc *, struct mbuf *);
335 static void bce_dump_mbuf (struct bce_softc *, struct mbuf *);
336 static void bce_dump_tx_mbuf_chain (struct bce_softc *, u16, int);
337 static void bce_dump_rx_mbuf_chain (struct bce_softc *, u16, int);
338 static void bce_dump_pg_mbuf_chain (struct bce_softc *, u16, int);
339 static void bce_dump_txbd (struct bce_softc *,
341 static void bce_dump_rxbd (struct bce_softc *,
343 static void bce_dump_pgbd (struct bce_softc *,
345 static void bce_dump_l2fhdr (struct bce_softc *,
347 static void bce_dump_ctx (struct bce_softc *, u16);
348 static void bce_dump_ftqs (struct bce_softc *);
349 static void bce_dump_tx_chain (struct bce_softc *, u16, int);
350 static void bce_dump_rx_bd_chain (struct bce_softc *, u16, int);
351 static void bce_dump_pg_chain (struct bce_softc *, u16, int);
352 static void bce_dump_status_block (struct bce_softc *);
353 static void bce_dump_stats_block (struct bce_softc *);
354 static void bce_dump_driver_state (struct bce_softc *);
355 static void bce_dump_hw_state (struct bce_softc *);
356 static void bce_dump_shmem_state (struct bce_softc *);
357 static void bce_dump_mq_regs (struct bce_softc *);
358 static void bce_dump_bc_state (struct bce_softc *);
359 static void bce_dump_txp_state (struct bce_softc *, int);
360 static void bce_dump_rxp_state (struct bce_softc *, int);
361 static void bce_dump_tpat_state (struct bce_softc *, int);
362 static void bce_dump_cp_state (struct bce_softc *, int);
363 static void bce_dump_com_state (struct bce_softc *, int);
364 static void bce_dump_rv2p_state (struct bce_softc *);
365 static void bce_breakpoint (struct bce_softc *);
372 static u32 bce_reg_rd_ind (struct bce_softc *, u32);
373 static void bce_reg_wr_ind (struct bce_softc *, u32, u32);
374 static void bce_shmem_wr (struct bce_softc *, u32, u32);
375 static u32 bce_shmem_rd (struct bce_softc *, u32);
376 static void bce_ctx_wr (struct bce_softc *, u32, u32, u32);
391 static int bce_acquire_nvram_lock (struct bce_softc *);
392 static int bce_release_nvram_lock (struct bce_softc *);
393 static void bce_enable_nvram_access(struct bce_softc *);
394 static void bce_disable_nvram_access(struct bce_softc *);
395 static int bce_nvram_read_dword (struct bce_softc *, u32, u8 *, u32);
396 static int bce_init_nvram (struct bce_softc *);
397 static int bce_nvram_read (struct bce_softc *, u32, u8 *, int);
398 static int bce_nvram_test (struct bce_softc *);
400 static int bce_enable_nvram_write (struct bce_softc *);
401 static void bce_disable_nvram_write(struct bce_softc *);
402 static int bce_nvram_erase_page (struct bce_softc *, u32);
403 static int bce_nvram_write_dword (struct bce_softc *, u32, u8 *, u32);
404 static int bce_nvram_write (struct bce_softc *, u32, u8 *, int);
410 static void bce_get_rx_buffer_sizes(struct bce_softc *, int);
411 static void bce_get_media (struct bce_softc *);
412 static void bce_init_media (struct bce_softc *);
413 static u32 bce_get_rphy_link (struct bce_softc *);
416 static void bce_dma_free (struct bce_softc *);
417 static void bce_release_resources (struct bce_softc *);
422 static void bce_fw_cap_init (struct bce_softc *);
423 static int bce_fw_sync (struct bce_softc *, u32);
424 static void bce_load_rv2p_fw (struct bce_softc *, const u32 *, u32,
426 static void bce_load_cpu_fw (struct bce_softc *,
428 static void bce_start_cpu (struct bce_softc *, struct cpu_reg *);
429 static void bce_halt_cpu (struct bce_softc *, struct cpu_reg *);
430 static void bce_start_rxp_cpu (struct bce_softc *);
431 static void bce_init_rxp_cpu (struct bce_softc *);
432 static void bce_init_txp_cpu (struct bce_softc *);
433 static void bce_init_tpat_cpu (struct bce_softc *);
434 static void bce_init_cp_cpu (struct bce_softc *);
435 static void bce_init_com_cpu (struct bce_softc *);
436 static void bce_init_cpus (struct bce_softc *);
438 static void bce_print_adapter_info (struct bce_softc *);
439 static void bce_probe_pci_caps (device_t, struct bce_softc *);
440 static void bce_stop (struct bce_softc *);
441 static int bce_reset (struct bce_softc *, u32);
442 static int bce_chipinit (struct bce_softc *);
443 static int bce_blockinit (struct bce_softc *);
445 static int bce_init_tx_chain (struct bce_softc *);
446 static void bce_free_tx_chain (struct bce_softc *);
448 static int bce_get_rx_buf (struct bce_softc *, u16, u16, u32 *);
449 static int bce_init_rx_chain (struct bce_softc *);
450 static void bce_fill_rx_chain (struct bce_softc *);
451 static void bce_free_rx_chain (struct bce_softc *);
453 static int bce_get_pg_buf (struct bce_softc *, u16, u16);
454 static int bce_init_pg_chain (struct bce_softc *);
455 static void bce_fill_pg_chain (struct bce_softc *);
456 static void bce_free_pg_chain (struct bce_softc *);
458 static struct mbuf *bce_tso_setup (struct bce_softc *,
460 static int bce_tx_encap (struct bce_softc *, struct mbuf **);
465 static void bce_watchdog (struct bce_softc *);
469 static void bce_ifmedia_sts_rphy (struct bce_softc *, struct ifmediareq *);
470 static void bce_init_locked (struct bce_softc *);
472 static void bce_mgmt_init_locked (struct bce_softc *sc);
474 static int bce_init_ctx (struct bce_softc *);
475 static void bce_get_mac_addr (struct bce_softc *);
476 static void bce_set_mac_addr (struct bce_softc *);
477 static void bce_phy_intr (struct bce_softc *);
478 static inline u16 bce_get_hw_rx_cons (struct bce_softc *);
479 static void bce_rx_intr (struct bce_softc *);
480 static void bce_tx_intr (struct bce_softc *);
481 static void bce_disable_intr (struct bce_softc *);
482 static void bce_enable_intr (struct bce_softc *, int);
485 static void bce_set_rx_mode (struct bce_softc *);
486 static void bce_stats_update (struct bce_softc *);
489 static void bce_add_sysctls (struct bce_softc *);
521 sizeof(struct bce_softc)
683 struct bce_softc *sc; in bce_probe()
742 bce_print_adapter_info(struct bce_softc *sc) in bce_print_adapter_info()
834 bce_probe_pci_caps(device_t dev, struct bce_softc *sc) in bce_probe_pci_caps()
882 bce_set_tunables(struct bce_softc *sc) in bce_set_tunables()
1070 struct bce_softc *sc; in bce_attach()
1565 struct bce_softc *sc = device_get_softc(dev); in bce_detach()
1618 struct bce_softc *sc = device_get_softc(dev); in bce_shutdown()
1646 bce_reg_rd(struct bce_softc *sc, u32 offset) in bce_reg_rd()
1662 bce_reg_wr16(struct bce_softc *sc, u32 offset, u16 val) in bce_reg_wr16()
1677 bce_reg_wr(struct bce_softc *sc, u32 offset, u32 val) in bce_reg_wr()
1696 bce_reg_rd_ind(struct bce_softc *sc, u32 offset) in bce_reg_rd_ind()
1727 bce_reg_wr_ind(struct bce_softc *sc, u32 offset, u32 val) in bce_reg_wr_ind()
1749 bce_shmem_wr(struct bce_softc *sc, u32 offset, u32 val) in bce_shmem_wr()
1767 bce_shmem_rd(struct bce_softc *sc, u32 offset) in bce_shmem_rd()
1789 bce_ctx_rd(struct bce_softc *sc, u32 cid_addr, u32 ctx_offset) in bce_ctx_rd()
1839 bce_ctx_wr(struct bce_softc *sc, u32 cid_addr, u32 ctx_offset, u32 ctx_val) in bce_ctx_wr()
1886 struct bce_softc *sc; in bce_miibus_read_reg()
1967 struct bce_softc *sc; in bce_miibus_write_reg()
2040 struct bce_softc *sc; in bce_miibus_statchg()
2152 bce_acquire_nvram_lock(struct bce_softc *sc) in bce_acquire_nvram_lock()
2190 bce_release_nvram_lock(struct bce_softc *sc) in bce_release_nvram_lock()
2230 bce_enable_nvram_write(struct bce_softc *sc) in bce_enable_nvram_write()
2275 bce_disable_nvram_write(struct bce_softc *sc) in bce_disable_nvram_write()
2300 bce_enable_nvram_access(struct bce_softc *sc) in bce_enable_nvram_access()
2324 bce_disable_nvram_access(struct bce_softc *sc) in bce_disable_nvram_access()
2351 bce_nvram_erase_page(struct bce_softc *sc, u32 offset) in bce_nvram_erase_page()
2407 bce_nvram_read_dword(struct bce_softc *sc, in bce_nvram_read_dword()
2473 bce_nvram_write_dword(struct bce_softc *sc, u32 offset, u8 *val, in bce_nvram_write_dword()
2531 bce_init_nvram(struct bce_softc *sc) in bce_init_nvram()
2645 bce_nvram_read(struct bce_softc *sc, u32 offset, u8 *ret_buf, in bce_nvram_read()
2771 bce_nvram_write(struct bce_softc *sc, u32 offset, u8 *data_buf, in bce_nvram_write()
2971 bce_nvram_test(struct bce_softc *sc) in bce_nvram_test()
3044 bce_get_rx_buffer_sizes(struct bce_softc *sc, int mtu) in bce_get_rx_buffer_sizes()
3095 bce_get_media(struct bce_softc *sc) in bce_get_media()
3203 bce_init_media(struct bce_softc *sc) in bce_init_media()
3237 bce_dma_free(struct bce_softc *sc) in bce_dma_free()
3515 struct bce_softc *sc; in bce_dma_alloc()
3905 bce_release_resources(struct bce_softc *sc) in bce_release_resources()
3959 bce_fw_sync(struct bce_softc *sc, u32 msg_data) in bce_fw_sync()
4020 bce_load_rv2p_fw(struct bce_softc *sc, const u32 *rv2p_code, in bce_load_rv2p_fw()
4071 bce_load_cpu_fw(struct bce_softc *sc, struct cpu_reg *cpu_reg, in bce_load_cpu_fw()
4148 bce_start_cpu(struct bce_softc *sc, struct cpu_reg *cpu_reg) in bce_start_cpu()
4171 bce_halt_cpu(struct bce_softc *sc, struct cpu_reg *cpu_reg) in bce_halt_cpu()
4194 bce_start_rxp_cpu(struct bce_softc *sc) in bce_start_rxp_cpu()
4227 bce_init_rxp_cpu(struct bce_softc *sc) in bce_init_rxp_cpu()
4325 bce_init_txp_cpu(struct bce_softc *sc) in bce_init_txp_cpu()
4422 bce_init_tpat_cpu(struct bce_softc *sc) in bce_init_tpat_cpu()
4519 bce_init_cp_cpu(struct bce_softc *sc) in bce_init_cp_cpu()
4616 bce_init_com_cpu(struct bce_softc *sc) in bce_init_com_cpu()
4715 bce_init_cpus(struct bce_softc *sc) in bce_init_cpus()
4759 bce_init_ctx(struct bce_softc *sc) in bce_init_ctx()
4861 bce_get_mac_addr(struct bce_softc *sc) in bce_get_mac_addr()
4904 bce_set_mac_addr(struct bce_softc *sc) in bce_set_mac_addr()
4935 bce_stop(struct bce_softc *sc) in bce_stop()
4974 bce_reset(struct bce_softc *sc, u32 reset_code) in bce_reset()
5097 bce_chipinit(struct bce_softc *sc) in bce_chipinit()
5204 bce_blockinit(struct bce_softc *sc) in bce_blockinit()
5374 bce_get_rx_buf(struct bce_softc *sc, u16 prod, u16 chain_prod, u32 *prod_bseq) in bce_get_rx_buf()
5489 bce_get_pg_buf(struct bce_softc *sc, u16 prod, u16 prod_idx) in bce_get_pg_buf()
5593 bce_init_tx_context(struct bce_softc *sc) in bce_init_tx_context()
5643 bce_init_tx_chain(struct bce_softc *sc) in bce_init_tx_chain()
5703 bce_free_tx_chain(struct bce_softc *sc) in bce_free_tx_chain()
5745 bce_init_rx_context(struct bce_softc *sc) in bce_init_rx_context()
5819 bce_init_rx_chain(struct bce_softc *sc) in bce_init_rx_chain()
5884 bce_fill_rx_chain(struct bce_softc *sc) in bce_fill_rx_chain()
5931 bce_free_rx_chain(struct bce_softc *sc) in bce_free_rx_chain()
5975 bce_init_pg_chain(struct bce_softc *sc) in bce_init_pg_chain()
6055 bce_fill_pg_chain(struct bce_softc *sc) in bce_fill_pg_chain()
6101 bce_free_pg_chain(struct bce_softc *sc) in bce_free_pg_chain()
6136 bce_get_rphy_link(struct bce_softc *sc) in bce_get_rphy_link()
6193 struct bce_softc *sc = ifp->if_softc; in bce_ifmedia_upd()
6216 struct bce_softc *sc = ifp->if_softc; in bce_ifmedia_upd_locked()
6331 bce_ifmedia_sts_rphy(struct bce_softc *sc, struct ifmediareq *ifmr) in bce_ifmedia_sts_rphy()
6418 struct bce_softc *sc = ifp->if_softc; in bce_ifmedia_sts()
6452 bce_phy_intr(struct bce_softc *sc) in bce_phy_intr()
6519 bce_get_hw_rx_cons(struct bce_softc *sc) in bce_get_hw_rx_cons()
6538 bce_rx_intr(struct bce_softc *sc) in bce_rx_intr()
6897 bce_get_hw_tx_cons(struct bce_softc *sc) in bce_get_hw_tx_cons()
6917 bce_tx_intr(struct bce_softc *sc) in bce_tx_intr()
7036 bce_disable_intr(struct bce_softc *sc) in bce_disable_intr()
7054 bce_enable_intr(struct bce_softc *sc, int coal_now) in bce_enable_intr()
7080 bce_init_locked(struct bce_softc *sc) in bce_init_locked()
7194 bce_mgmt_init_locked(struct bce_softc *sc) in bce_mgmt_init_locked()
7232 struct bce_softc *sc = xsc; in bce_init()
7251 bce_tso_setup(struct bce_softc *sc, struct mbuf **m_head, u16 *flags) in bce_tso_setup()
7371 bce_tx_encap(struct bce_softc *sc, struct mbuf **m_head) in bce_tx_encap()
7570 struct bce_softc *sc = ifp->if_softc; in bce_start_locked()
7665 struct bce_softc *sc = ifp->if_softc; in bce_start()
7686 struct bce_softc *sc = ifp->if_softc; in bce_ioctl()
7849 bce_watchdog(struct bce_softc *sc) in bce_watchdog()
7929 struct bce_softc *sc; in bce_intr()
8069 bce_set_rx_mode(struct bce_softc *sc) in bce_set_rx_mode()
8161 bce_stats_update(struct bce_softc *sc) in bce_stats_update()
8360 struct bce_softc *sc; in bce_get_counter()
8408 struct bce_softc *sc = xsc; in bce_pulse()
8465 struct bce_softc *sc = xsc; in bce_tick()
8534 bce_fw_cap_init(struct bce_softc *sc) in bce_fw_cap_init()
8575 struct bce_softc *sc; in bce_sysctl_driver_state()
8584 sc = (struct bce_softc *)arg1; in bce_sysctl_driver_state()
8603 struct bce_softc *sc; in bce_sysctl_hw_state()
8612 sc = (struct bce_softc *)arg1; in bce_sysctl_hw_state()
8631 struct bce_softc *sc; in bce_sysctl_status_block()
8640 sc = (struct bce_softc *)arg1; in bce_sysctl_status_block()
8659 struct bce_softc *sc; in bce_sysctl_stats_block()
8668 sc = (struct bce_softc *)arg1; in bce_sysctl_stats_block()
8688 struct bce_softc *sc; in bce_sysctl_stats_clear()
8697 sc = (struct bce_softc *)arg1; in bce_sysctl_stats_clear()
8752 struct bce_softc *sc; in bce_sysctl_shmem_state()
8761 sc = (struct bce_softc *)arg1; in bce_sysctl_shmem_state()
8780 struct bce_softc *sc; in bce_sysctl_bc_state()
8789 sc = (struct bce_softc *)arg1; in bce_sysctl_bc_state()
8808 struct bce_softc *sc; in bce_sysctl_dump_rx_bd_chain()
8817 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_rx_bd_chain()
8836 struct bce_softc *sc; in bce_sysctl_dump_rx_mbuf_chain()
8845 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_rx_mbuf_chain()
8864 struct bce_softc *sc; in bce_sysctl_dump_tx_chain()
8873 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_tx_chain()
8892 struct bce_softc *sc; in bce_sysctl_dump_pg_chain()
8901 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_pg_chain()
8918 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_nvram_read()
8947 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_reg_read()
8979 struct bce_softc *sc; in bce_sysctl_phy_read()
8991 sc = (struct bce_softc *)arg1; in bce_sysctl_phy_read()
9010 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_nvram_dump()
9040 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_nvram_write()
9072 struct bce_softc *sc; in bce_sysctl_dump_ctx()
9082 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_ctx()
9102 struct bce_softc *sc; in bce_sysctl_breakpoint()
9111 sc = (struct bce_softc *)arg1; in bce_sysctl_breakpoint()
9126 bce_add_sysctls(struct bce_softc *sc) in bce_add_sysctls()
9690 bce_freeze_controller(struct bce_softc *sc) in bce_freeze_controller()
9707 bce_unfreeze_controller(struct bce_softc *sc) in bce_unfreeze_controller()
9725 bce_dump_enet(struct bce_softc *sc, struct mbuf *m) in bce_dump_enet()
9828 bce_dump_mbuf(struct bce_softc *sc, struct mbuf *m) in bce_dump_mbuf()
9890 bce_dump_tx_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) in bce_dump_tx_mbuf_chain()
9920 bce_dump_rx_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) in bce_dump_rx_mbuf_chain()
9951 bce_dump_pg_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) in bce_dump_pg_mbuf_chain()
9982 bce_dump_txbd(struct bce_softc *sc, int idx, struct tx_bd *txbd) in bce_dump_txbd()
10097 bce_dump_rxbd(struct bce_softc *sc, int idx, struct rx_bd *rxbd) in bce_dump_rxbd()
10123 bce_dump_pgbd(struct bce_softc *sc, int idx, struct rx_bd *pgbd) in bce_dump_pgbd()
10148 bce_dump_l2fhdr(struct bce_softc *sc, int idx, struct l2_fhdr *l2fhdr) in bce_dump_l2fhdr()
10166 bce_dump_ctx(struct bce_softc *sc, u16 cid) in bce_dump_ctx()
10288 bce_dump_ftqs(struct bce_softc *sc) in bce_dump_ftqs()
10534 bce_dump_tx_chain(struct bce_softc *sc, u16 tx_prod, int count) in bce_dump_tx_chain()
10576 bce_dump_rx_bd_chain(struct bce_softc *sc, u16 rx_prod, int count) in bce_dump_rx_bd_chain()
10620 bce_dump_pg_chain(struct bce_softc *sc, u16 pg_prod, int count) in bce_dump_pg_chain()
10679 bce_dump_status_block(struct bce_softc *sc) in bce_dump_status_block()
10743 bce_dump_stats_block(struct bce_softc *sc) in bce_dump_stats_block()
10826 bce_dump_driver_state(struct bce_softc *sc) in bce_dump_driver_state()
10985 bce_dump_hw_state(struct bce_softc *sc) in bce_dump_hw_state()
11097 bce_dump_shmem_state(struct bce_softc *sc) in bce_dump_shmem_state()
11134 bce_dump_mq_regs(struct bce_softc *sc) in bce_dump_mq_regs()
11166 bce_dump_bc_state(struct bce_softc *sc) in bce_dump_bc_state()
11207 bce_dump_txp_state(struct bce_softc *sc, int regs) in bce_dump_txp_state()
11266 bce_dump_rxp_state(struct bce_softc *sc, int regs) in bce_dump_rxp_state()
11326 bce_dump_tpat_state(struct bce_softc *sc, int regs) in bce_dump_tpat_state()
11386 bce_dump_cp_state(struct bce_softc *sc, int regs) in bce_dump_cp_state()
11446 bce_dump_com_state(struct bce_softc *sc, int regs) in bce_dump_com_state()
11504 bce_dump_rv2p_state(struct bce_softc *sc) in bce_dump_rv2p_state()
11572 bce_breakpoint(struct bce_softc *sc) in bce_breakpoint()