Lines Matching refs:bnx2

0 /* bnx2.c: QLogic bnx2 network driver.
58 #include "bnx2.h"
61 #define DRV_MODULE_NAME "bnx2"
62 #define FW_MIPS_FILE_06 "bnx2/bnx2-mips-06-6.2.3.fw"
63 #define FW_RV2P_FILE_06 "bnx2/bnx2-rv2p-06-6.0.15.fw"
64 #define FW_MIPS_FILE_09 "bnx2/bnx2-mips-09-6.2.1b.fw"
65 #define FW_RV2P_FILE_09_Ax "bnx2/bnx2-rv2p-09ax-6.0.17.fw"
66 #define FW_RV2P_FILE_09 "bnx2/bnx2-rv2p-09-6.0.17.fw"
244 static void bnx2_init_napi(struct bnx2 *bp);
245 static void bnx2_del_napi(struct bnx2 *bp);
247 static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr)
264 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset)
277 bnx2_reg_wr_ind(struct bnx2 *bp, u32 offset, u32 val)
288 bnx2_shmem_wr(struct bnx2 *bp, u32 offset, u32 val)
294 bnx2_shmem_rd(struct bnx2 *bp, u32 offset)
300 bnx2_ctx_wr(struct bnx2 *bp, u32 cid_addr, u32 offset, u32 val)
329 struct bnx2 *bp = netdev_priv(dev);
348 static void bnx2_setup_cnic_irq_info(struct bnx2 *bp)
378 struct bnx2 *bp = netdev_priv(dev);
403 struct bnx2 *bp = netdev_priv(dev);
418 struct bnx2 *bp = netdev_priv(dev);
436 bnx2_cnic_stop(struct bnx2 *bp)
452 bnx2_cnic_start(struct bnx2 *bp)
475 bnx2_cnic_stop(struct bnx2 *bp)
480 bnx2_cnic_start(struct bnx2 *bp)
487 bnx2_read_phy(struct bnx2 *bp, u32 reg, u32 *val)
544 bnx2_write_phy(struct bnx2 *bp, u32 reg, u32 val)
593 bnx2_disable_int(struct bnx2 *bp)
607 bnx2_enable_int(struct bnx2 *bp)
628 bnx2_disable_int_sync(struct bnx2 *bp)
642 bnx2_napi_disable(struct bnx2 *bp)
651 bnx2_napi_enable(struct bnx2 *bp)
660 bnx2_netif_stop(struct bnx2 *bp, bool stop_cnic)
673 bnx2_netif_start(struct bnx2 *bp, bool start_cnic)
691 bnx2_free_tx_mem(struct bnx2 *bp)
711 bnx2_free_rx_mem(struct bnx2 *bp)
743 bnx2_alloc_tx_mem(struct bnx2 *bp)
765 bnx2_alloc_rx_mem(struct bnx2 *bp)
816 struct bnx2 *bp = netdev_priv(dev);
832 struct bnx2 *bp = netdev_priv(dev);
854 bnx2_free_mem(struct bnx2 *bp)
876 bnx2_alloc_mem(struct bnx2 *bp)
933 bnx2_report_fw_link(struct bnx2 *bp)
992 bnx2_xceiver_str(struct bnx2 *bp)
1000 bnx2_report_link(struct bnx2 *bp)
1031 bnx2_resolve_flow_ctrl(struct bnx2 *bp)
1107 bnx2_5709s_linkup(struct bnx2 *bp)
1146 bnx2_5708s_linkup(struct bnx2 *bp)
1175 bnx2_5706s_linkup(struct bnx2 *bp)
1212 bnx2_copper_linkup(struct bnx2 *bp)
1288 bnx2_init_rx_context(struct bnx2 *bp, u32 cid)
1303 bnx2_init_all_rx_contexts(struct bnx2 *bp)
1316 bnx2_set_mac_link(struct bnx2 *bp)
1383 bnx2_enable_bmsr1(struct bnx2 *bp)
1392 bnx2_disable_bmsr1(struct bnx2 *bp)
1401 bnx2_test_and_enable_2g5(struct bnx2 *bp)
1430 bnx2_test_and_disable_2g5(struct bnx2 *bp)
1456 bnx2_enable_forced_2g5(struct bnx2 *bp)
1500 bnx2_disable_forced_2g5(struct bnx2 *bp)
1539 bnx2_5706s_force_link_dn(struct bnx2 *bp, int start)
1552 bnx2_set_link(struct bnx2 *bp)
1636 bnx2_reset_phy(struct bnx2 *bp)
1660 bnx2_phy_get_pause_adv(struct bnx2 *bp)
1693 static int bnx2_fw_sync(struct bnx2 *, u32, int, int);
1696 bnx2_setup_remote_phy(struct bnx2 *bp, u8 port)
1755 bnx2_setup_serdes_phy(struct bnx2 *bp, u8 port)
1887 bnx2_set_default_remote_link(struct bnx2 *bp)
1934 bnx2_set_default_link(struct bnx2 *bp)
1960 bnx2_send_heart_beat(struct bnx2 *bp)
1974 bnx2_remote_phy_event(struct bnx2 *bp)
2055 bnx2_set_remote_link(struct bnx2 *bp)
2073 bnx2_setup_copper_phy(struct bnx2 *bp)
2165 bnx2_setup_phy(struct bnx2 *bp, u8 port)
2181 bnx2_init_5709s_phy(struct bnx2 *bp, int reset_phy)
2231 bnx2_init_5708s_phy(struct bnx2 *bp, int reset_phy)
2289 bnx2_init_5706s_phy(struct bnx2 *bp, int reset_phy)
2327 bnx2_init_copper_phy(struct bnx2 *bp, int reset_phy)
2386 bnx2_init_phy(struct bnx2 *bp, int reset_phy)
2432 bnx2_set_mac_loopback(struct bnx2 *bp)
2444 static int bnx2_test_link(struct bnx2 *);
2447 bnx2_set_phy_loopback(struct bnx2 *bp)
2477 bnx2_dump_mcp_state(struct bnx2 *bp)
2520 bnx2_fw_sync(struct bnx2 *bp, u32 msg_data, int ack, int silent)
2567 bnx2_init_5709_context(struct bnx2 *bp)
2615 bnx2_init_context(struct bnx2 *bp)
2658 bnx2_alloc_bad_rbuf(struct bnx2 *bp)
2707 bnx2_set_mac_addr(struct bnx2 *bp, u8 *mac_addr, u32 pos)
2722 bnx2_alloc_rx_page(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index, gfp_t gfp)
2747 bnx2_free_rx_page(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index)
2763 bnx2_alloc_rx_data(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index, gfp_t gfp)
2796 bnx2_phy_event_is_set(struct bnx2 *bp, struct bnx2_napi *bnapi, u32 event)
2816 bnx2_phy_int(struct bnx2 *bp, struct bnx2_napi *bnapi)
2842 bnx2_tx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget)
2937 bnx2_reuse_rx_skb_pages(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr,
2995 bnx2_reuse_rx_data(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr,
3025 bnx2_rx_skb(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u8 *data,
3142 bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget)
3313 struct bnx2 *bp = bnapi->bp;
3333 struct bnx2 *bp = bnapi->bp;
3350 struct bnx2 *bp = bnapi->bp;
3421 bnx2_chk_missed_msi(struct bnx2 *bp)
3443 static void bnx2_poll_cnic(struct bnx2 *bp, struct bnx2_napi *bnapi)
3459 static void bnx2_poll_link(struct bnx2 *bp, struct bnx2_napi *bnapi)
3479 static int bnx2_poll_work(struct bnx2 *bp, struct bnx2_napi *bnapi,
3497 struct bnx2 *bp = bnapi->bp;
3524 struct bnx2 *bp = bnapi->bp;
3576 struct bnx2 *bp = netdev_priv(dev);
3686 static void bnx2_release_firmware(struct bnx2 *bp)
3695 static int bnx2_request_uncached_firmware(struct bnx2 *bp)
3755 static int bnx2_request_firmware(struct bnx2 *bp)
3773 load_rv2p_fw(struct bnx2 *bp, u32 rv2p_proc,
3833 load_cpu_fw(struct bnx2 *bp, const struct cpu_reg *cpu_reg,
3905 bnx2_init_cpus(struct bnx2 *bp)
3945 bnx2_setup_wol(struct bnx2 *bp)
4040 bnx2_set_power_state(struct bnx2 *bp, pci_power_t state)
4096 bnx2_acquire_nvram_lock(struct bnx2 *bp)
4118 bnx2_release_nvram_lock(struct bnx2 *bp)
4142 bnx2_enable_nvram_write(struct bnx2 *bp)
4171 bnx2_disable_nvram_write(struct bnx2 *bp)
4181 bnx2_enable_nvram_access(struct bnx2 *bp)
4192 bnx2_disable_nvram_access(struct bnx2 *bp)
4204 bnx2_nvram_erase_page(struct bnx2 *bp, u32 offset)
4244 bnx2_nvram_read_dword(struct bnx2 *bp, u32 offset, u8 *ret_val, u32 cmd_flags)
4289 bnx2_nvram_write_dword(struct bnx2 *bp, u32 offset, u8 *val, u32 cmd_flags)
4333 bnx2_init_nvram(struct bnx2 *bp)
4416 bnx2_nvram_read(struct bnx2 *bp, u32 offset, u8 *ret_buf,
4526 bnx2_nvram_write(struct bnx2 *bp, u32 offset, u8 *data_buf,
4706 bnx2_init_fw_cap(struct bnx2 *bp)
4746 bnx2_setup_msix_tbl(struct bnx2 *bp)
4755 bnx2_wait_dma_complete(struct bnx2 *bp)
4792 bnx2_reset_chip(struct bnx2 *bp, u32 reset_code)
4896 bnx2_init_chip(struct bnx2 *bp)
5125 bnx2_clear_ring_states(struct bnx2 *bp)
5148 bnx2_init_tx_context(struct bnx2 *bp, u32 cid, struct bnx2_tx_ring_info *txr)
5178 bnx2_init_tx_ring(struct bnx2 *bp, int ring_num)
5234 bnx2_init_rx_ring(struct bnx2 *bp, int ring_num)
5320 bnx2_init_all_rings(struct bnx2 *bp)
5386 bnx2_set_rx_ring_size(struct bnx2 *bp, u32 size)
5427 bnx2_free_tx_skbs(struct bnx2 *bp)
5472 bnx2_free_rx_skbs(struct bnx2 *bp)
5506 bnx2_free_skbs(struct bnx2 *bp)
5513 bnx2_reset_nic(struct bnx2 *bp, u32 reset_code)
5530 bnx2_init_nic(struct bnx2 *bp, int reset_phy)
5547 bnx2_shutdown_chip(struct bnx2 *bp)
5562 bnx2_test_registers(struct bnx2 *bp)
5733 bnx2_do_mem_test(struct bnx2 *bp, u32 start, u32 size)
5756 bnx2_test_memory(struct bnx2 *bp)
5801 bnx2_run_loopback(struct bnx2 *bp, int loopback_mode)
5939 bnx2_test_loopback(struct bnx2 *bp)
5961 bnx2_test_nvram(struct bnx2 *bp)
5996 bnx2_test_link(struct bnx2 *bp)
6022 bnx2_test_intr(struct bnx2 *bp)
6053 bnx2_5706_serdes_has_link(struct bnx2 *bp)
6084 bnx2_5706_serdes_timer(struct bnx2 *bp)
6146 bnx2_5708_serdes_timer(struct bnx2 *bp)
6181 struct bnx2 *bp = from_timer(bp, t, timer);
6215 bnx2_request_irq(struct bnx2 *bp)
6238 __bnx2_free_irq(struct bnx2 *bp)
6252 bnx2_free_irq(struct bnx2 *bp)
6265 bnx2_enable_msix(struct bnx2 *bp, int msix_vecs)
6309 bnx2_setup_int_mode(struct bnx2 *bp, int dis_msi)
6364 struct bnx2 *bp = netdev_priv(dev);
6446 struct bnx2 *bp = container_of(work, struct bnx2, reset_task);
6481 bnx2_dump_ftq(struct bnx2 *bp)
6548 bnx2_dump_state(struct bnx2 *bp)
6574 struct bnx2 *bp = netdev_priv(dev);
6591 struct bnx2 *bp = netdev_priv(dev);
6764 struct bnx2 *bp = netdev_priv(dev);
6781 bnx2_save_stats(struct bnx2 *bp)
6818 struct bnx2 *bp = netdev_priv(dev);
6893 struct bnx2 *bp = netdev_priv(dev);
6961 struct bnx2 *bp = netdev_priv(dev);
7042 struct bnx2 *bp = netdev_priv(dev);
7062 struct bnx2 *bp = netdev_priv(dev);
7112 struct bnx2 *bp = netdev_priv(dev);
7131 struct bnx2 *bp = netdev_priv(dev);
7154 struct bnx2 *bp = netdev_priv(dev);
7200 struct bnx2 *bp = netdev_priv(dev);
7208 struct bnx2 *bp = netdev_priv(dev);
7220 struct bnx2 *bp = netdev_priv(dev);
7234 struct bnx2 *bp = netdev_priv(dev);
7247 struct bnx2 *bp = netdev_priv(dev);
7269 struct bnx2 *bp = netdev_priv(dev);
7318 struct bnx2 *bp = netdev_priv(dev);
7331 bnx2_change_ring_size(struct bnx2 *bp, u32 rx, u32 tx, bool reset_irq)
7389 struct bnx2 *bp = netdev_priv(dev);
7406 struct bnx2 *bp = netdev_priv(dev);
7416 struct bnx2 *bp = netdev_priv(dev);
7594 struct bnx2 *bp = netdev_priv(dev);
7665 struct bnx2 *bp = netdev_priv(dev);
7711 struct bnx2 *bp = netdev_priv(dev);
7744 struct bnx2 *bp = netdev_priv(dev);
7769 struct bnx2 *bp = netdev_priv(dev);
7791 struct bnx2 *bp = netdev_priv(dev);
7852 struct bnx2 *bp = netdev_priv(dev);
7903 struct bnx2 *bp = netdev_priv(dev);
7919 struct bnx2 *bp = netdev_priv(dev);
7930 struct bnx2 *bp = netdev_priv(dev);
7944 bnx2_get_5709_media(struct bnx2 *bp)
7982 bnx2_get_pci_speed(struct bnx2 *bp)
8034 bnx2_read_vpd_fw_ver(struct bnx2 *bp)
8104 struct bnx2 *bp;
8496 bnx2_bus_string(struct bnx2 *bp, char *str)
8516 bnx2_del_napi(struct bnx2 *bp)
8525 bnx2_init_napi(struct bnx2 *bp)
8564 struct bnx2 *bp;
8587 * New io-page table has been created before bnx2 does reset at open stage.
8641 struct bnx2 *bp = netdev_priv(dev);
8671 struct bnx2 *bp = netdev_priv(dev);
8690 struct bnx2 *bp = netdev_priv(dev);
8723 struct bnx2 *bp = netdev_priv(dev);
8755 struct bnx2 *bp = netdev_priv(dev);
8797 struct bnx2 *bp = netdev_priv(dev);
8810 struct bnx2 *bp;