Lines Matching refs:bnx2

247 static void bnx2_init_napi(struct bnx2 *bp);
248 static void bnx2_del_napi(struct bnx2 *bp);
250 static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr) in bnx2_tx_avail()
270 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset) in bnx2_reg_rd_ind()
282 bnx2_reg_wr_ind(struct bnx2 *bp, u32 offset, u32 val) in bnx2_reg_wr_ind()
291 bnx2_shmem_wr(struct bnx2 *bp, u32 offset, u32 val) in bnx2_shmem_wr()
297 bnx2_shmem_rd(struct bnx2 *bp, u32 offset) in bnx2_shmem_rd()
303 bnx2_ctx_wr(struct bnx2 *bp, u32 cid_addr, u32 offset, u32 val) in bnx2_ctx_wr()
330 struct bnx2 *bp = netdev_priv(dev); in bnx2_drv_ctl()
349 static void bnx2_setup_cnic_irq_info(struct bnx2 *bp) in bnx2_setup_cnic_irq_info()
379 struct bnx2 *bp = netdev_priv(dev); in bnx2_register_cnic()
401 struct bnx2 *bp = netdev_priv(dev); in bnx2_unregister_cnic()
416 struct bnx2 *bp = netdev_priv(dev); in bnx2_cnic_probe()
432 bnx2_cnic_stop(struct bnx2 *bp) in bnx2_cnic_stop()
448 bnx2_cnic_start(struct bnx2 *bp) in bnx2_cnic_start()
471 bnx2_cnic_stop(struct bnx2 *bp) in bnx2_cnic_stop()
476 bnx2_cnic_start(struct bnx2 *bp) in bnx2_cnic_start()
483 bnx2_read_phy(struct bnx2 *bp, u32 reg, u32 *val) in bnx2_read_phy()
540 bnx2_write_phy(struct bnx2 *bp, u32 reg, u32 val) in bnx2_write_phy()
589 bnx2_disable_int(struct bnx2 *bp) in bnx2_disable_int()
603 bnx2_enable_int(struct bnx2 *bp) in bnx2_enable_int()
624 bnx2_disable_int_sync(struct bnx2 *bp) in bnx2_disable_int_sync()
638 bnx2_napi_disable(struct bnx2 *bp) in bnx2_napi_disable()
647 bnx2_napi_enable(struct bnx2 *bp) in bnx2_napi_enable()
656 bnx2_netif_stop(struct bnx2 *bp, bool stop_cnic) in bnx2_netif_stop()
669 bnx2_netif_start(struct bnx2 *bp, bool start_cnic) in bnx2_netif_start()
687 bnx2_free_tx_mem(struct bnx2 *bp) in bnx2_free_tx_mem()
707 bnx2_free_rx_mem(struct bnx2 *bp) in bnx2_free_rx_mem()
739 bnx2_alloc_tx_mem(struct bnx2 *bp) in bnx2_alloc_tx_mem()
761 bnx2_alloc_rx_mem(struct bnx2 *bp) in bnx2_alloc_rx_mem()
809 bnx2_free_mem(struct bnx2 *bp) in bnx2_free_mem()
835 bnx2_alloc_mem(struct bnx2 *bp) in bnx2_alloc_mem()
913 bnx2_report_fw_link(struct bnx2 *bp) in bnx2_report_fw_link()
972 bnx2_xceiver_str(struct bnx2 *bp) in bnx2_xceiver_str()
980 bnx2_report_link(struct bnx2 *bp) in bnx2_report_link()
1011 bnx2_resolve_flow_ctrl(struct bnx2 *bp) in bnx2_resolve_flow_ctrl()
1087 bnx2_5709s_linkup(struct bnx2 *bp) in bnx2_5709s_linkup()
1126 bnx2_5708s_linkup(struct bnx2 *bp) in bnx2_5708s_linkup()
1155 bnx2_5706s_linkup(struct bnx2 *bp) in bnx2_5706s_linkup()
1192 bnx2_copper_linkup(struct bnx2 *bp) in bnx2_copper_linkup()
1258 bnx2_init_rx_context(struct bnx2 *bp, u32 cid) in bnx2_init_rx_context()
1273 bnx2_init_all_rx_contexts(struct bnx2 *bp) in bnx2_init_all_rx_contexts()
1286 bnx2_set_mac_link(struct bnx2 *bp) in bnx2_set_mac_link()
1353 bnx2_enable_bmsr1(struct bnx2 *bp) in bnx2_enable_bmsr1()
1362 bnx2_disable_bmsr1(struct bnx2 *bp) in bnx2_disable_bmsr1()
1371 bnx2_test_and_enable_2g5(struct bnx2 *bp) in bnx2_test_and_enable_2g5()
1400 bnx2_test_and_disable_2g5(struct bnx2 *bp) in bnx2_test_and_disable_2g5()
1426 bnx2_enable_forced_2g5(struct bnx2 *bp) in bnx2_enable_forced_2g5()
1470 bnx2_disable_forced_2g5(struct bnx2 *bp) in bnx2_disable_forced_2g5()
1509 bnx2_5706s_force_link_dn(struct bnx2 *bp, int start) in bnx2_5706s_force_link_dn()
1522 bnx2_set_link(struct bnx2 *bp) in bnx2_set_link()
1606 bnx2_reset_phy(struct bnx2 *bp) in bnx2_reset_phy()
1630 bnx2_phy_get_pause_adv(struct bnx2 *bp) in bnx2_phy_get_pause_adv()
1663 static int bnx2_fw_sync(struct bnx2 *, u32, int, int);
1666 bnx2_setup_remote_phy(struct bnx2 *bp, u8 port) in bnx2_setup_remote_phy()
1725 bnx2_setup_serdes_phy(struct bnx2 *bp, u8 port) in bnx2_setup_serdes_phy()
1857 bnx2_set_default_remote_link(struct bnx2 *bp) in bnx2_set_default_remote_link()
1904 bnx2_set_default_link(struct bnx2 *bp) in bnx2_set_default_link()
1930 bnx2_send_heart_beat(struct bnx2 *bp) in bnx2_send_heart_beat()
1944 bnx2_remote_phy_event(struct bnx2 *bp) in bnx2_remote_phy_event()
2021 bnx2_set_remote_link(struct bnx2 *bp) in bnx2_set_remote_link()
2039 bnx2_setup_copper_phy(struct bnx2 *bp) in bnx2_setup_copper_phy()
2138 bnx2_setup_phy(struct bnx2 *bp, u8 port) in bnx2_setup_phy()
2154 bnx2_init_5709s_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_5709s_phy()
2204 bnx2_init_5708s_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_5708s_phy()
2262 bnx2_init_5706s_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_5706s_phy()
2300 bnx2_init_copper_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_copper_phy()
2353 bnx2_init_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_phy()
2399 bnx2_set_mac_loopback(struct bnx2 *bp) in bnx2_set_mac_loopback()
2411 static int bnx2_test_link(struct bnx2 *);
2414 bnx2_set_phy_loopback(struct bnx2 *bp) in bnx2_set_phy_loopback()
2444 bnx2_fw_sync(struct bnx2 *bp, u32 msg_data, int ack, int silent) in bnx2_fw_sync()
2489 bnx2_init_5709_context(struct bnx2 *bp) in bnx2_init_5709_context()
2537 bnx2_init_context(struct bnx2 *bp) in bnx2_init_context()
2580 bnx2_alloc_bad_rbuf(struct bnx2 *bp) in bnx2_alloc_bad_rbuf()
2631 bnx2_set_mac_addr(struct bnx2 *bp, u8 *mac_addr, u32 pos) in bnx2_set_mac_addr()
2646 bnx2_alloc_rx_page(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index, gfp_t gfp) in bnx2_alloc_rx_page()
2671 bnx2_free_rx_page(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index) in bnx2_free_rx_page()
2687 bnx2_alloc_rx_skb(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index, gfp_t gfp) in bnx2_alloc_rx_skb()
2723 bnx2_phy_event_is_set(struct bnx2 *bp, struct bnx2_napi *bnapi, u32 event) in bnx2_phy_event_is_set()
2743 bnx2_phy_int(struct bnx2 *bp, struct bnx2_napi *bnapi) in bnx2_phy_int()
2771 bnx2_tx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) in bnx2_tx_int()
2862 bnx2_reuse_rx_skb_pages(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, in bnx2_reuse_rx_skb_pages()
2918 bnx2_reuse_rx_skb(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, in bnx2_reuse_rx_skb()
2949 bnx2_rx_skb(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, struct sk_buff *skb, in bnx2_rx_skb()
3063 bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) in bnx2_rx_int()
3230 struct bnx2 *bp = bnapi->bp; in bnx2_msi()
3250 struct bnx2 *bp = bnapi->bp; in bnx2_msi_1shot()
3267 struct bnx2 *bp = bnapi->bp; in bnx2_interrupt()
3338 bnx2_chk_missed_msi(struct bnx2 *bp) in bnx2_chk_missed_msi()
3360 static void bnx2_poll_cnic(struct bnx2 *bp, struct bnx2_napi *bnapi) in bnx2_poll_cnic()
3376 static void bnx2_poll_link(struct bnx2 *bp, struct bnx2_napi *bnapi) in bnx2_poll_link()
3396 static int bnx2_poll_work(struct bnx2 *bp, struct bnx2_napi *bnapi, in bnx2_poll_work()
3414 struct bnx2 *bp = bnapi->bp; in bnx2_poll_msix()
3441 struct bnx2 *bp = bnapi->bp; in bnx2_poll()
3493 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_rx_mode()
3604 bnx2_request_firmware(struct bnx2 *bp) in bnx2_request_firmware()
3668 load_rv2p_fw(struct bnx2 *bp, u32 rv2p_proc, in load_rv2p_fw()
3728 load_cpu_fw(struct bnx2 *bp, const struct cpu_reg *cpu_reg, in load_cpu_fw()
3800 bnx2_init_cpus(struct bnx2 *bp) in bnx2_init_cpus()
3840 bnx2_set_power_state(struct bnx2 *bp, pci_power_t state) in bnx2_set_power_state()
3978 bnx2_acquire_nvram_lock(struct bnx2 *bp) in bnx2_acquire_nvram_lock()
4000 bnx2_release_nvram_lock(struct bnx2 *bp) in bnx2_release_nvram_lock()
4024 bnx2_enable_nvram_write(struct bnx2 *bp) in bnx2_enable_nvram_write()
4053 bnx2_disable_nvram_write(struct bnx2 *bp) in bnx2_disable_nvram_write()
4063 bnx2_enable_nvram_access(struct bnx2 *bp) in bnx2_enable_nvram_access()
4074 bnx2_disable_nvram_access(struct bnx2 *bp) in bnx2_disable_nvram_access()
4086 bnx2_nvram_erase_page(struct bnx2 *bp, u32 offset) in bnx2_nvram_erase_page()
4126 bnx2_nvram_read_dword(struct bnx2 *bp, u32 offset, u8 *ret_val, u32 cmd_flags) in bnx2_nvram_read_dword()
4171 bnx2_nvram_write_dword(struct bnx2 *bp, u32 offset, u8 *val, u32 cmd_flags) in bnx2_nvram_write_dword()
4215 bnx2_init_nvram(struct bnx2 *bp) in bnx2_init_nvram()
4298 bnx2_nvram_read(struct bnx2 *bp, u32 offset, u8 *ret_buf, in bnx2_nvram_read()
4408 bnx2_nvram_write(struct bnx2 *bp, u32 offset, u8 *data_buf, in bnx2_nvram_write()
4588 bnx2_init_fw_cap(struct bnx2 *bp) in bnx2_init_fw_cap()
4628 bnx2_setup_msix_tbl(struct bnx2 *bp) in bnx2_setup_msix_tbl()
4637 bnx2_reset_chip(struct bnx2 *bp, u32 reset_code) in bnx2_reset_chip()
4762 bnx2_init_chip(struct bnx2 *bp) in bnx2_init_chip()
4992 bnx2_clear_ring_states(struct bnx2 *bp) in bnx2_clear_ring_states()
5015 bnx2_init_tx_context(struct bnx2 *bp, u32 cid, struct bnx2_tx_ring_info *txr) in bnx2_init_tx_context()
5045 bnx2_init_tx_ring(struct bnx2 *bp, int ring_num) in bnx2_init_tx_ring()
5101 bnx2_init_rx_ring(struct bnx2 *bp, int ring_num) in bnx2_init_rx_ring()
5187 bnx2_init_all_rings(struct bnx2 *bp) in bnx2_init_all_rings()
5253 bnx2_set_rx_ring_size(struct bnx2 *bp, u32 size) in bnx2_set_rx_ring_size()
5292 bnx2_free_tx_skbs(struct bnx2 *bp) in bnx2_free_tx_skbs()
5336 bnx2_free_rx_skbs(struct bnx2 *bp) in bnx2_free_rx_skbs()
5370 bnx2_free_skbs(struct bnx2 *bp) in bnx2_free_skbs()
5377 bnx2_reset_nic(struct bnx2 *bp, u32 reset_code) in bnx2_reset_nic()
5394 bnx2_init_nic(struct bnx2 *bp, int reset_phy) in bnx2_init_nic()
5411 bnx2_shutdown_chip(struct bnx2 *bp) in bnx2_shutdown_chip()
5426 bnx2_test_registers(struct bnx2 *bp) in bnx2_test_registers()
5597 bnx2_do_mem_test(struct bnx2 *bp, u32 start, u32 size) in bnx2_do_mem_test()
5620 bnx2_test_memory(struct bnx2 *bp) in bnx2_test_memory()
5665 bnx2_run_loopback(struct bnx2 *bp, int loopback_mode) in bnx2_run_loopback()
5802 bnx2_test_loopback(struct bnx2 *bp) in bnx2_test_loopback()
5824 bnx2_test_nvram(struct bnx2 *bp) in bnx2_test_nvram()
5859 bnx2_test_link(struct bnx2 *bp) in bnx2_test_link()
5885 bnx2_test_intr(struct bnx2 *bp) in bnx2_test_intr()
5916 bnx2_5706_serdes_has_link(struct bnx2 *bp) in bnx2_5706_serdes_has_link()
5947 bnx2_5706_serdes_timer(struct bnx2 *bp) in bnx2_5706_serdes_timer()
6009 bnx2_5708_serdes_timer(struct bnx2 *bp) in bnx2_5708_serdes_timer()
6044 struct bnx2 *bp = (struct bnx2 *) data; in bnx2_timer()
6078 bnx2_request_irq(struct bnx2 *bp) in bnx2_request_irq()
6101 __bnx2_free_irq(struct bnx2 *bp) in __bnx2_free_irq()
6115 bnx2_free_irq(struct bnx2 *bp) in bnx2_free_irq()
6128 bnx2_enable_msix(struct bnx2 *bp, int msix_vecs) in bnx2_enable_msix()
6179 bnx2_setup_int_mode(struct bnx2 *bp, int dis_msi) in bnx2_setup_int_mode()
6217 struct bnx2 *bp = netdev_priv(dev); in bnx2_open()
6295 struct bnx2 *bp = container_of(work, struct bnx2, reset_task); in bnx2_reset_task()
6313 bnx2_dump_state(struct bnx2 *bp) in bnx2_dump_state()
6348 struct bnx2 *bp = netdev_priv(dev); in bnx2_tx_timeout()
6363 struct bnx2 *bp = netdev_priv(dev); in bnx2_start_xmit()
6533 struct bnx2 *bp = netdev_priv(dev); in bnx2_close()
6552 bnx2_save_stats(struct bnx2 *bp) in bnx2_save_stats()
6589 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_stats64()
6664 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_settings()
6723 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_settings()
6801 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_drvinfo()
6822 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_regs()
6872 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_wol()
6891 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_wol()
6911 struct bnx2 *bp = netdev_priv(dev); in bnx2_nway_reset()
6957 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_link()
6965 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_eeprom_len()
6977 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_eeprom()
6994 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_eeprom()
7010 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_coalesce()
7032 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_coalesce()
7081 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_ringparam()
7096 bnx2_change_ring_size(struct bnx2 *bp, u32 rx, u32 tx) in bnx2_change_ring_size()
7142 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_ringparam()
7158 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_pauseparam()
7168 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_pauseparam()
7195 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_rx_csum()
7203 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_rx_csum()
7212 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_tso()
7379 struct bnx2 *bp = netdev_priv(dev); in bnx2_self_test()
7454 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_ethtool_stats()
7500 struct bnx2 *bp = netdev_priv(dev); in bnx2_phys_id()
7540 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_tx_csum()
7551 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_flags()
7617 struct bnx2 *bp = netdev_priv(dev); in bnx2_ioctl()
7668 struct bnx2 *bp = netdev_priv(dev); in bnx2_change_mac_addr()
7684 struct bnx2 *bp = netdev_priv(dev); in bnx2_change_mtu()
7698 struct bnx2 *bp = netdev_priv(dev); in poll_bnx2()
7712 bnx2_get_5709_media(struct bnx2 *bp) in bnx2_get_5709_media()
7750 bnx2_get_pci_speed(struct bnx2 *bp) in bnx2_get_pci_speed()
7802 bnx2_read_vpd_fw_ver(struct bnx2 *bp) in bnx2_read_vpd_fw_ver()
7872 struct bnx2 *bp; in bnx2_init_board()
8257 bnx2_bus_string(struct bnx2 *bp, char *str) in bnx2_bus_string()
8277 bnx2_del_napi(struct bnx2 *bp) in bnx2_del_napi()
8286 bnx2_init_napi(struct bnx2 *bp) in bnx2_init_napi()
8330 struct bnx2 *bp; in bnx2_init_one()
8412 struct bnx2 *bp = netdev_priv(dev); in bnx2_remove_one()
8444 struct bnx2 *bp = netdev_priv(dev); in bnx2_suspend()
8468 struct bnx2 *bp = netdev_priv(dev); in bnx2_resume()
8493 struct bnx2 *bp = netdev_priv(dev); in bnx2_io_error_detected()
8525 struct bnx2 *bp = netdev_priv(dev); in bnx2_io_slot_reset()
8570 struct bnx2 *bp = netdev_priv(dev); in bnx2_io_resume()