Lines Matching refs:bnx2
0 /* bnx2.c: QLogic bnx2 network driver.
57 #include "bnx2.h"
60 #define DRV_MODULE_NAME "bnx2"
61 #define FW_MIPS_FILE_06 "bnx2/bnx2-mips-06-6.2.3.fw"
62 #define FW_RV2P_FILE_06 "bnx2/bnx2-rv2p-06-6.0.15.fw"
63 #define FW_MIPS_FILE_09 "bnx2/bnx2-mips-09-6.2.1b.fw"
64 #define FW_RV2P_FILE_09_Ax "bnx2/bnx2-rv2p-09ax-6.0.17.fw"
65 #define FW_RV2P_FILE_09 "bnx2/bnx2-rv2p-09-6.0.17.fw"
243 static void bnx2_init_napi(struct bnx2 *bp);
244 static void bnx2_del_napi(struct bnx2 *bp);
246 static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr)
263 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset)
276 bnx2_reg_wr_ind(struct bnx2 *bp, u32 offset, u32 val)
287 bnx2_shmem_wr(struct bnx2 *bp, u32 offset, u32 val)
293 bnx2_shmem_rd(struct bnx2 *bp, u32 offset)
299 bnx2_ctx_wr(struct bnx2 *bp, u32 cid_addr, u32 offset, u32 val)
328 struct bnx2 *bp = netdev_priv(dev);
347 static void bnx2_setup_cnic_irq_info(struct bnx2 *bp)
377 struct bnx2 *bp = netdev_priv(dev);
402 struct bnx2 *bp = netdev_priv(dev);
417 struct bnx2 *bp = netdev_priv(dev);
435 bnx2_cnic_stop(struct bnx2 *bp)
451 bnx2_cnic_start(struct bnx2 *bp)
474 bnx2_cnic_stop(struct bnx2 *bp)
479 bnx2_cnic_start(struct bnx2 *bp)
486 bnx2_read_phy(struct bnx2 *bp, u32 reg, u32 *val)
543 bnx2_write_phy(struct bnx2 *bp, u32 reg, u32 val)
592 bnx2_disable_int(struct bnx2 *bp)
606 bnx2_enable_int(struct bnx2 *bp)
627 bnx2_disable_int_sync(struct bnx2 *bp)
641 bnx2_napi_disable(struct bnx2 *bp)
650 bnx2_napi_enable(struct bnx2 *bp)
659 bnx2_netif_stop(struct bnx2 *bp, bool stop_cnic)
672 bnx2_netif_start(struct bnx2 *bp, bool start_cnic)
690 bnx2_free_tx_mem(struct bnx2 *bp)
710 bnx2_free_rx_mem(struct bnx2 *bp)
742 bnx2_alloc_tx_mem(struct bnx2 *bp)
764 bnx2_alloc_rx_mem(struct bnx2 *bp)
815 struct bnx2 *bp = netdev_priv(dev);
831 struct bnx2 *bp = netdev_priv(dev);
853 bnx2_free_mem(struct bnx2 *bp)
875 bnx2_alloc_mem(struct bnx2 *bp)
932 bnx2_report_fw_link(struct bnx2 *bp)
991 bnx2_xceiver_str(struct bnx2 *bp)
999 bnx2_report_link(struct bnx2 *bp)
1030 bnx2_resolve_flow_ctrl(struct bnx2 *bp)
1106 bnx2_5709s_linkup(struct bnx2 *bp)
1145 bnx2_5708s_linkup(struct bnx2 *bp)
1174 bnx2_5706s_linkup(struct bnx2 *bp)
1211 bnx2_copper_linkup(struct bnx2 *bp)
1287 bnx2_init_rx_context(struct bnx2 *bp, u32 cid)
1302 bnx2_init_all_rx_contexts(struct bnx2 *bp)
1315 bnx2_set_mac_link(struct bnx2 *bp)
1382 bnx2_enable_bmsr1(struct bnx2 *bp)
1391 bnx2_disable_bmsr1(struct bnx2 *bp)
1400 bnx2_test_and_enable_2g5(struct bnx2 *bp)
1429 bnx2_test_and_disable_2g5(struct bnx2 *bp)
1455 bnx2_enable_forced_2g5(struct bnx2 *bp)
1499 bnx2_disable_forced_2g5(struct bnx2 *bp)
1538 bnx2_5706s_force_link_dn(struct bnx2 *bp, int start)
1551 bnx2_set_link(struct bnx2 *bp)
1635 bnx2_reset_phy(struct bnx2 *bp)
1659 bnx2_phy_get_pause_adv(struct bnx2 *bp)
1692 static int bnx2_fw_sync(struct bnx2 *, u32, int, int);
1695 bnx2_setup_remote_phy(struct bnx2 *bp, u8 port)
1754 bnx2_setup_serdes_phy(struct bnx2 *bp, u8 port)
1886 bnx2_set_default_remote_link(struct bnx2 *bp)
1933 bnx2_set_default_link(struct bnx2 *bp)
1959 bnx2_send_heart_beat(struct bnx2 *bp)
1973 bnx2_remote_phy_event(struct bnx2 *bp)
2054 bnx2_set_remote_link(struct bnx2 *bp)
2072 bnx2_setup_copper_phy(struct bnx2 *bp)
2164 bnx2_setup_phy(struct bnx2 *bp, u8 port)
2180 bnx2_init_5709s_phy(struct bnx2 *bp, int reset_phy)
2230 bnx2_init_5708s_phy(struct bnx2 *bp, int reset_phy)
2288 bnx2_init_5706s_phy(struct bnx2 *bp, int reset_phy)
2326 bnx2_init_copper_phy(struct bnx2 *bp, int reset_phy)
2385 bnx2_init_phy(struct bnx2 *bp, int reset_phy)
2431 bnx2_set_mac_loopback(struct bnx2 *bp)
2443 static int bnx2_test_link(struct bnx2 *);
2446 bnx2_set_phy_loopback(struct bnx2 *bp)
2476 bnx2_dump_mcp_state(struct bnx2 *bp)
2519 bnx2_fw_sync(struct bnx2 *bp, u32 msg_data, int ack, int silent)
2566 bnx2_init_5709_context(struct bnx2 *bp)
2614 bnx2_init_context(struct bnx2 *bp)
2657 bnx2_alloc_bad_rbuf(struct bnx2 *bp)
2706 bnx2_set_mac_addr(struct bnx2 *bp, const u8 *mac_addr, u32 pos)
2721 bnx2_alloc_rx_page(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index, gfp_t gfp)
2746 bnx2_free_rx_page(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index)
2762 bnx2_alloc_rx_data(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index, gfp_t gfp)
2795 bnx2_phy_event_is_set(struct bnx2 *bp, struct bnx2_napi *bnapi, u32 event)
2815 bnx2_phy_int(struct bnx2 *bp, struct bnx2_napi *bnapi)
2841 bnx2_tx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget)
2936 bnx2_reuse_rx_skb_pages(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr,
2993 bnx2_reuse_rx_data(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr,
3023 bnx2_rx_skb(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u8 *data,
3140 bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget)
3311 struct bnx2 *bp = bnapi->bp;
3331 struct bnx2 *bp = bnapi->bp;
3348 struct bnx2 *bp = bnapi->bp;
3419 bnx2_chk_missed_msi(struct bnx2 *bp)
3441 static void bnx2_poll_cnic(struct bnx2 *bp, struct bnx2_napi *bnapi)
3457 static void bnx2_poll_link(struct bnx2 *bp, struct bnx2_napi *bnapi)
3477 static int bnx2_poll_work(struct bnx2 *bp, struct bnx2_napi *bnapi,
3495 struct bnx2 *bp = bnapi->bp;
3522 struct bnx2 *bp = bnapi->bp;
3574 struct bnx2 *bp = netdev_priv(dev);
3684 static void bnx2_release_firmware(struct bnx2 *bp)
3693 static int bnx2_request_uncached_firmware(struct bnx2 *bp)
3753 static int bnx2_request_firmware(struct bnx2 *bp)
3771 load_rv2p_fw(struct bnx2 *bp, u32 rv2p_proc,
3831 load_cpu_fw(struct bnx2 *bp, const struct cpu_reg *cpu_reg,
3901 bnx2_init_cpus(struct bnx2 *bp)
3929 bnx2_setup_wol(struct bnx2 *bp)
4024 bnx2_set_power_state(struct bnx2 *bp, pci_power_t state)
4080 bnx2_acquire_nvram_lock(struct bnx2 *bp)
4102 bnx2_release_nvram_lock(struct bnx2 *bp)
4126 bnx2_enable_nvram_write(struct bnx2 *bp)
4155 bnx2_disable_nvram_write(struct bnx2 *bp)
4165 bnx2_enable_nvram_access(struct bnx2 *bp)
4176 bnx2_disable_nvram_access(struct bnx2 *bp)
4188 bnx2_nvram_erase_page(struct bnx2 *bp, u32 offset)
4228 bnx2_nvram_read_dword(struct bnx2 *bp, u32 offset, u8 *ret_val, u32 cmd_flags)
4273 bnx2_nvram_write_dword(struct bnx2 *bp, u32 offset, u8 *val, u32 cmd_flags)
4317 bnx2_init_nvram(struct bnx2 *bp)
4400 bnx2_nvram_read(struct bnx2 *bp, u32 offset, u8 *ret_buf,
4510 bnx2_nvram_write(struct bnx2 *bp, u32 offset, u8 *data_buf,
4690 bnx2_init_fw_cap(struct bnx2 *bp)
4730 bnx2_setup_msix_tbl(struct bnx2 *bp)
4739 bnx2_wait_dma_complete(struct bnx2 *bp)
4776 bnx2_reset_chip(struct bnx2 *bp, u32 reset_code)
4880 bnx2_init_chip(struct bnx2 *bp)
5108 bnx2_clear_ring_states(struct bnx2 *bp)
5131 bnx2_init_tx_context(struct bnx2 *bp, u32 cid, struct bnx2_tx_ring_info *txr)
5161 bnx2_init_tx_ring(struct bnx2 *bp, int ring_num)
5217 bnx2_init_rx_ring(struct bnx2 *bp, int ring_num)
5303 bnx2_init_all_rings(struct bnx2 *bp)
5369 bnx2_set_rx_ring_size(struct bnx2 *bp, u32 size)
5411 bnx2_free_tx_skbs(struct bnx2 *bp)
5456 bnx2_free_rx_skbs(struct bnx2 *bp)
5490 bnx2_free_skbs(struct bnx2 *bp)
5497 bnx2_reset_nic(struct bnx2 *bp, u32 reset_code)
5514 bnx2_init_nic(struct bnx2 *bp, int reset_phy)
5531 bnx2_shutdown_chip(struct bnx2 *bp)
5546 bnx2_test_registers(struct bnx2 *bp)
5717 bnx2_do_mem_test(struct bnx2 *bp, u32 start, u32 size)
5740 bnx2_test_memory(struct bnx2 *bp)
5785 bnx2_run_loopback(struct bnx2 *bp, int loopback_mode)
5923 bnx2_test_loopback(struct bnx2 *bp)
5945 bnx2_test_nvram(struct bnx2 *bp)
5980 bnx2_test_link(struct bnx2 *bp)
6006 bnx2_test_intr(struct bnx2 *bp)
6037 bnx2_5706_serdes_has_link(struct bnx2 *bp)
6068 bnx2_5706_serdes_timer(struct bnx2 *bp)
6130 bnx2_5708_serdes_timer(struct bnx2 *bp)
6165 struct bnx2 *bp = from_timer(bp, t, timer);
6199 bnx2_request_irq(struct bnx2 *bp)
6222 __bnx2_free_irq(struct bnx2 *bp)
6236 bnx2_free_irq(struct bnx2 *bp)
6249 bnx2_enable_msix(struct bnx2 *bp, int msix_vecs)
6293 bnx2_setup_int_mode(struct bnx2 *bp, int dis_msi)
6348 struct bnx2 *bp = netdev_priv(dev);
6430 struct bnx2 *bp = container_of(work, struct bnx2, reset_task);
6465 bnx2_dump_ftq(struct bnx2 *bp)
6532 bnx2_dump_state(struct bnx2 *bp)
6558 struct bnx2 *bp = netdev_priv(dev);
6575 struct bnx2 *bp = netdev_priv(dev);
6749 struct bnx2 *bp = netdev_priv(dev);
6766 bnx2_save_stats(struct bnx2 *bp)
6803 struct bnx2 *bp = netdev_priv(dev);
6878 struct bnx2 *bp = netdev_priv(dev);
6946 struct bnx2 *bp = netdev_priv(dev);
7027 struct bnx2 *bp = netdev_priv(dev);
7047 struct bnx2 *bp = netdev_priv(dev);
7097 struct bnx2 *bp = netdev_priv(dev);
7116 struct bnx2 *bp = netdev_priv(dev);
7139 struct bnx2 *bp = netdev_priv(dev);
7185 struct bnx2 *bp = netdev_priv(dev);
7193 struct bnx2 *bp = netdev_priv(dev);
7205 struct bnx2 *bp = netdev_priv(dev);
7219 struct bnx2 *bp = netdev_priv(dev);
7234 struct bnx2 *bp = netdev_priv(dev);
7258 struct bnx2 *bp = netdev_priv(dev);
7309 struct bnx2 *bp = netdev_priv(dev);
7322 bnx2_change_ring_size(struct bnx2 *bp, u32 rx, u32 tx, bool reset_irq)
7382 struct bnx2 *bp = netdev_priv(dev);
7399 struct bnx2 *bp = netdev_priv(dev);
7409 struct bnx2 *bp = netdev_priv(dev);
7587 struct bnx2 *bp = netdev_priv(dev);
7658 struct bnx2 *bp = netdev_priv(dev);
7704 struct bnx2 *bp = netdev_priv(dev);
7737 struct bnx2 *bp = netdev_priv(dev);
7762 struct bnx2 *bp = netdev_priv(dev);
7784 struct bnx2 *bp = netdev_priv(dev);
7845 struct bnx2 *bp = netdev_priv(dev);
7896 struct bnx2 *bp = netdev_priv(dev);
7912 struct bnx2 *bp = netdev_priv(dev);
7923 struct bnx2 *bp = netdev_priv(dev);
7937 bnx2_get_5709_media(struct bnx2 *bp)
7975 bnx2_get_pci_speed(struct bnx2 *bp)
8027 bnx2_read_vpd_fw_ver(struct bnx2 *bp)
8075 struct bnx2 *bp;
8455 bnx2_bus_string(struct bnx2 *bp, char *str)
8475 bnx2_del_napi(struct bnx2 *bp)
8484 bnx2_init_napi(struct bnx2 *bp)
8523 struct bnx2 *bp;
8546 * New io-page table has been created before bnx2 does reset at open stage.
8600 struct bnx2 *bp = netdev_priv(dev);
8625 struct bnx2 *bp = netdev_priv(dev);
8644 struct bnx2 *bp = netdev_priv(dev);
8677 struct bnx2 *bp = netdev_priv(dev);
8709 struct bnx2 *bp = netdev_priv(dev);
8748 struct bnx2 *bp = netdev_priv(dev);
8761 struct bnx2 *bp;