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()
1569 struct bce_softc *sc = device_get_softc(dev); in bce_shutdown()
1596 bce_reg_rd(struct bce_softc *sc, u32 offset) in bce_reg_rd()
1611 bce_reg_wr16(struct bce_softc *sc, u32 offset, u16 val) in bce_reg_wr16()
1625 bce_reg_wr(struct bce_softc *sc, u32 offset, u32 val) in bce_reg_wr()
1644 bce_reg_rd_ind(struct bce_softc *sc, u32 offset) in bce_reg_rd_ind()
1674 bce_reg_wr_ind(struct bce_softc *sc, u32 offset, u32 val) in bce_reg_wr_ind()
1695 bce_shmem_wr(struct bce_softc *sc, u32 offset, u32 val) in bce_shmem_wr()
1712 bce_shmem_rd(struct bce_softc *sc, u32 offset) in bce_shmem_rd()
1733 bce_ctx_rd(struct bce_softc *sc, u32 cid_addr, u32 ctx_offset) in bce_ctx_rd()
1781 bce_ctx_wr(struct bce_softc *sc, u32 cid_addr, u32 ctx_offset, u32 ctx_val) in bce_ctx_wr()
1826 struct bce_softc *sc; in bce_miibus_read_reg()
1904 struct bce_softc *sc; in bce_miibus_write_reg()
1976 struct bce_softc *sc; in bce_miibus_statchg()
2087 bce_acquire_nvram_lock(struct bce_softc *sc) in bce_acquire_nvram_lock()
2124 bce_release_nvram_lock(struct bce_softc *sc) in bce_release_nvram_lock()
2163 bce_enable_nvram_write(struct bce_softc *sc) in bce_enable_nvram_write()
2207 bce_disable_nvram_write(struct bce_softc *sc) in bce_disable_nvram_write()
2231 bce_enable_nvram_access(struct bce_softc *sc) in bce_enable_nvram_access()
2254 bce_disable_nvram_access(struct bce_softc *sc) in bce_disable_nvram_access()
2280 bce_nvram_erase_page(struct bce_softc *sc, u32 offset) in bce_nvram_erase_page()
2335 bce_nvram_read_dword(struct bce_softc *sc, in bce_nvram_read_dword()
2400 bce_nvram_write_dword(struct bce_softc *sc, u32 offset, u8 *val, in bce_nvram_write_dword()
2457 bce_init_nvram(struct bce_softc *sc) in bce_init_nvram()
2569 bce_nvram_read(struct bce_softc *sc, u32 offset, u8 *ret_buf, in bce_nvram_read()
2694 bce_nvram_write(struct bce_softc *sc, u32 offset, u8 *data_buf, in bce_nvram_write()
2890 bce_nvram_test(struct bce_softc *sc) in bce_nvram_test()
2962 bce_get_rx_buffer_sizes(struct bce_softc *sc, int mtu) in bce_get_rx_buffer_sizes()
3013 bce_get_media(struct bce_softc *sc) in bce_get_media()
3119 bce_init_media(struct bce_softc *sc) in bce_init_media()
3152 bce_dma_free(struct bce_softc *sc) in bce_dma_free()
3422 struct bce_softc *sc; in bce_dma_alloc()
3808 bce_release_resources(struct bce_softc *sc) in bce_release_resources()
3861 bce_fw_sync(struct bce_softc *sc, u32 msg_data) in bce_fw_sync()
3920 bce_load_rv2p_fw(struct bce_softc *sc, const u32 *rv2p_code, in bce_load_rv2p_fw()
3970 bce_load_cpu_fw(struct bce_softc *sc, struct cpu_reg *cpu_reg, in bce_load_cpu_fw()
4046 bce_start_cpu(struct bce_softc *sc, struct cpu_reg *cpu_reg) in bce_start_cpu()
4068 bce_halt_cpu(struct bce_softc *sc, struct cpu_reg *cpu_reg) in bce_halt_cpu()
4090 bce_start_rxp_cpu(struct bce_softc *sc) in bce_start_rxp_cpu()
4122 bce_init_rxp_cpu(struct bce_softc *sc) in bce_init_rxp_cpu()
4219 bce_init_txp_cpu(struct bce_softc *sc) in bce_init_txp_cpu()
4315 bce_init_tpat_cpu(struct bce_softc *sc) in bce_init_tpat_cpu()
4411 bce_init_cp_cpu(struct bce_softc *sc) in bce_init_cp_cpu()
4507 bce_init_com_cpu(struct bce_softc *sc) in bce_init_com_cpu()
4605 bce_init_cpus(struct bce_softc *sc) in bce_init_cpus()
4647 bce_init_ctx(struct bce_softc *sc) in bce_init_ctx()
4745 bce_get_mac_addr(struct bce_softc *sc) in bce_get_mac_addr()
4787 bce_set_mac_addr(struct bce_softc *sc) in bce_set_mac_addr()
4817 bce_stop(struct bce_softc *sc) in bce_stop()
4855 bce_reset(struct bce_softc *sc, u32 reset_code) in bce_reset()
4977 bce_chipinit(struct bce_softc *sc) in bce_chipinit()
5083 bce_blockinit(struct bce_softc *sc) in bce_blockinit()
5252 bce_get_rx_buf(struct bce_softc *sc, u16 prod, u16 chain_prod, u32 *prod_bseq) in bce_get_rx_buf()
5366 bce_get_pg_buf(struct bce_softc *sc, u16 prod, u16 prod_idx) in bce_get_pg_buf()
5469 bce_init_tx_context(struct bce_softc *sc) in bce_init_tx_context()
5518 bce_init_tx_chain(struct bce_softc *sc) in bce_init_tx_chain()
5577 bce_free_tx_chain(struct bce_softc *sc) in bce_free_tx_chain()
5618 bce_init_rx_context(struct bce_softc *sc) in bce_init_rx_context()
5691 bce_init_rx_chain(struct bce_softc *sc) in bce_init_rx_chain()
5755 bce_fill_rx_chain(struct bce_softc *sc) in bce_fill_rx_chain()
5801 bce_free_rx_chain(struct bce_softc *sc) in bce_free_rx_chain()
5844 bce_init_pg_chain(struct bce_softc *sc) in bce_init_pg_chain()
5923 bce_fill_pg_chain(struct bce_softc *sc) in bce_fill_pg_chain()
5968 bce_free_pg_chain(struct bce_softc *sc) in bce_free_pg_chain()
6002 bce_get_rphy_link(struct bce_softc *sc) in bce_get_rphy_link()
6058 struct bce_softc *sc = if_getsoftc(ifp); in bce_ifmedia_upd()
6080 struct bce_softc *sc = if_getsoftc(ifp); in bce_ifmedia_upd_locked()
6194 bce_ifmedia_sts_rphy(struct bce_softc *sc, struct ifmediareq *ifmr) in bce_ifmedia_sts_rphy()
6280 struct bce_softc *sc = if_getsoftc(ifp); in bce_ifmedia_sts()
6313 bce_phy_intr(struct bce_softc *sc) in bce_phy_intr()
6378 bce_get_hw_rx_cons(struct bce_softc *sc) in bce_get_hw_rx_cons()
6397 bce_rx_intr(struct bce_softc *sc) in bce_rx_intr()
6748 bce_get_hw_tx_cons(struct bce_softc *sc) in bce_get_hw_tx_cons()
6767 bce_tx_intr(struct bce_softc *sc) in bce_tx_intr()
6884 bce_disable_intr(struct bce_softc *sc) in bce_disable_intr()
6901 bce_enable_intr(struct bce_softc *sc, int coal_now) in bce_enable_intr()
6926 bce_init_locked(struct bce_softc *sc) in bce_init_locked()
7039 bce_mgmt_init_locked(struct bce_softc *sc) in bce_mgmt_init_locked()
7076 struct bce_softc *sc = xsc; in bce_init()
7094 bce_tso_setup(struct bce_softc *sc, struct mbuf **m_head, u16 *flags) in bce_tso_setup()
7214 bce_tx_encap(struct bce_softc *sc, struct mbuf **m_head) in bce_tx_encap()
7411 struct bce_softc *sc = if_getsoftc(ifp); in bce_start_locked()
7504 struct bce_softc *sc = if_getsoftc(ifp); in bce_start()
7524 struct bce_softc *sc = if_getsoftc(ifp); in bce_ioctl()
7685 bce_watchdog(struct bce_softc *sc) in bce_watchdog()
7764 struct bce_softc *sc; in bce_intr()
7913 bce_set_rx_mode(struct bce_softc *sc) in bce_set_rx_mode()
7994 bce_stats_update(struct bce_softc *sc) in bce_stats_update()
8193 struct bce_softc *sc; in bce_get_counter()
8240 struct bce_softc *sc = xsc; in bce_pulse()
8295 struct bce_softc *sc = xsc; in bce_tick()
8363 bce_fw_cap_init(struct bce_softc *sc) in bce_fw_cap_init()
8403 struct bce_softc *sc; in bce_sysctl_driver_state()
8412 sc = (struct bce_softc *)arg1; in bce_sysctl_driver_state()
8430 struct bce_softc *sc; in bce_sysctl_hw_state()
8439 sc = (struct bce_softc *)arg1; in bce_sysctl_hw_state()
8457 struct bce_softc *sc; in bce_sysctl_status_block()
8466 sc = (struct bce_softc *)arg1; in bce_sysctl_status_block()
8484 struct bce_softc *sc; in bce_sysctl_stats_block()
8493 sc = (struct bce_softc *)arg1; in bce_sysctl_stats_block()
8512 struct bce_softc *sc; in bce_sysctl_stats_clear()
8521 sc = (struct bce_softc *)arg1; in bce_sysctl_stats_clear()
8575 struct bce_softc *sc; in bce_sysctl_shmem_state()
8584 sc = (struct bce_softc *)arg1; in bce_sysctl_shmem_state()
8602 struct bce_softc *sc; in bce_sysctl_bc_state()
8611 sc = (struct bce_softc *)arg1; in bce_sysctl_bc_state()
8629 struct bce_softc *sc; in bce_sysctl_dump_rx_bd_chain()
8638 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_rx_bd_chain()
8656 struct bce_softc *sc; in bce_sysctl_dump_rx_mbuf_chain()
8665 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_rx_mbuf_chain()
8683 struct bce_softc *sc; in bce_sysctl_dump_tx_chain()
8692 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_tx_chain()
8710 struct bce_softc *sc; in bce_sysctl_dump_pg_chain()
8719 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_pg_chain()
8736 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_nvram_read()
8764 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_reg_read()
8795 struct bce_softc *sc; in bce_sysctl_phy_read()
8807 sc = (struct bce_softc *)arg1; in bce_sysctl_phy_read()
8825 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_nvram_dump()
8855 struct bce_softc *sc = (struct bce_softc *)arg1; in bce_sysctl_nvram_write()
8885 struct bce_softc *sc; in bce_sysctl_dump_ctx()
8895 sc = (struct bce_softc *)arg1; in bce_sysctl_dump_ctx()
8914 struct bce_softc *sc; in bce_sysctl_breakpoint()
8923 sc = (struct bce_softc *)arg1; in bce_sysctl_breakpoint()
8938 bce_add_sysctls(struct bce_softc *sc) in bce_add_sysctls()
9502 bce_freeze_controller(struct bce_softc *sc) in bce_freeze_controller()
9518 bce_unfreeze_controller(struct bce_softc *sc) in bce_unfreeze_controller()
9535 bce_dump_enet(struct bce_softc *sc, struct mbuf *m) in bce_dump_enet()
9637 bce_dump_mbuf(struct bce_softc *sc, struct mbuf *m) in bce_dump_mbuf()
9698 bce_dump_tx_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) in bce_dump_tx_mbuf_chain()
9727 bce_dump_rx_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) in bce_dump_rx_mbuf_chain()
9756 bce_dump_pg_mbuf_chain(struct bce_softc *sc, u16 chain_prod, int count) in bce_dump_pg_mbuf_chain()
9785 bce_dump_txbd(struct bce_softc *sc, int idx, struct tx_bd *txbd) in bce_dump_txbd()
9899 bce_dump_rxbd(struct bce_softc *sc, int idx, struct rx_bd *rxbd) in bce_dump_rxbd()
9924 bce_dump_pgbd(struct bce_softc *sc, int idx, struct rx_bd *pgbd) in bce_dump_pgbd()
9948 bce_dump_l2fhdr(struct bce_softc *sc, int idx, struct l2_fhdr *l2fhdr) in bce_dump_l2fhdr()
9965 bce_dump_ctx(struct bce_softc *sc, u16 cid) in bce_dump_ctx()
10085 bce_dump_ftqs(struct bce_softc *sc) in bce_dump_ftqs()
10330 bce_dump_tx_chain(struct bce_softc *sc, u16 tx_prod, int count) in bce_dump_tx_chain()
10371 bce_dump_rx_bd_chain(struct bce_softc *sc, u16 rx_prod, int count) in bce_dump_rx_bd_chain()
10414 bce_dump_pg_chain(struct bce_softc *sc, u16 pg_prod, int count) in bce_dump_pg_chain()
10471 bce_dump_status_block(struct bce_softc *sc) in bce_dump_status_block()
10534 bce_dump_stats_block(struct bce_softc *sc) in bce_dump_stats_block()
10616 bce_dump_driver_state(struct bce_softc *sc) in bce_dump_driver_state()
10774 bce_dump_hw_state(struct bce_softc *sc) in bce_dump_hw_state()
10885 bce_dump_shmem_state(struct bce_softc *sc) in bce_dump_shmem_state()
10921 bce_dump_mq_regs(struct bce_softc *sc) in bce_dump_mq_regs()
10952 bce_dump_bc_state(struct bce_softc *sc) in bce_dump_bc_state()
10992 bce_dump_txp_state(struct bce_softc *sc, int regs) in bce_dump_txp_state()
11050 bce_dump_rxp_state(struct bce_softc *sc, int regs) in bce_dump_rxp_state()
11109 bce_dump_tpat_state(struct bce_softc *sc, int regs) in bce_dump_tpat_state()
11168 bce_dump_cp_state(struct bce_softc *sc, int regs) in bce_dump_cp_state()
11227 bce_dump_com_state(struct bce_softc *sc, int regs) in bce_dump_com_state()
11284 bce_dump_rv2p_state(struct bce_softc *sc) in bce_dump_rv2p_state()
11351 bce_breakpoint(struct bce_softc *sc) in bce_breakpoint()