Lines Matching defs:bp
253 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()
283 bnx2_reg_wr_ind(struct bnx2 *bp, u32 offset, u32 val) in bnx2_reg_wr_ind()
294 bnx2_shmem_wr(struct bnx2 *bp, u32 offset, u32 val) in bnx2_shmem_wr()
300 bnx2_shmem_rd(struct bnx2 *bp, u32 offset) in bnx2_shmem_rd()
306 bnx2_ctx_wr(struct bnx2 *bp, u32 cid_addr, u32 offset, u32 val) in bnx2_ctx_wr()
335 struct bnx2 *bp = netdev_priv(dev); in bnx2_drv_ctl() local
354 static void bnx2_setup_cnic_irq_info(struct bnx2 *bp) in bnx2_setup_cnic_irq_info()
384 struct bnx2 *bp = netdev_priv(dev); in bnx2_register_cnic() local
409 struct bnx2 *bp = netdev_priv(dev); in bnx2_unregister_cnic() local
424 struct bnx2 *bp = netdev_priv(dev); in bnx2_cnic_probe() local
442 bnx2_cnic_stop(struct bnx2 *bp) in bnx2_cnic_stop()
458 bnx2_cnic_start(struct bnx2 *bp) in bnx2_cnic_start()
481 bnx2_cnic_stop(struct bnx2 *bp) in bnx2_cnic_stop()
486 bnx2_cnic_start(struct bnx2 *bp) in bnx2_cnic_start()
493 bnx2_read_phy(struct bnx2 *bp, u32 reg, u32 *val) in bnx2_read_phy()
550 bnx2_write_phy(struct bnx2 *bp, u32 reg, u32 val) in bnx2_write_phy()
599 bnx2_disable_int(struct bnx2 *bp) in bnx2_disable_int()
613 bnx2_enable_int(struct bnx2 *bp) in bnx2_enable_int()
634 bnx2_disable_int_sync(struct bnx2 *bp) in bnx2_disable_int_sync()
648 bnx2_napi_disable(struct bnx2 *bp) in bnx2_napi_disable()
657 bnx2_napi_enable(struct bnx2 *bp) in bnx2_napi_enable()
666 bnx2_netif_stop(struct bnx2 *bp, bool stop_cnic) in bnx2_netif_stop()
679 bnx2_netif_start(struct bnx2 *bp, bool start_cnic) in bnx2_netif_start()
697 bnx2_free_tx_mem(struct bnx2 *bp) in bnx2_free_tx_mem()
717 bnx2_free_rx_mem(struct bnx2 *bp) in bnx2_free_rx_mem()
749 bnx2_alloc_tx_mem(struct bnx2 *bp) in bnx2_alloc_tx_mem()
771 bnx2_alloc_rx_mem(struct bnx2 *bp) in bnx2_alloc_rx_mem()
822 struct bnx2 *bp = netdev_priv(dev); in bnx2_free_stats_blk() local
838 struct bnx2 *bp = netdev_priv(dev); in bnx2_alloc_stats_blk() local
860 bnx2_free_mem(struct bnx2 *bp) in bnx2_free_mem()
882 bnx2_alloc_mem(struct bnx2 *bp) in bnx2_alloc_mem()
939 bnx2_report_fw_link(struct bnx2 *bp) in bnx2_report_fw_link()
998 bnx2_xceiver_str(struct bnx2 *bp) in bnx2_xceiver_str()
1006 bnx2_report_link(struct bnx2 *bp) in bnx2_report_link()
1037 bnx2_resolve_flow_ctrl(struct bnx2 *bp) in bnx2_resolve_flow_ctrl()
1113 bnx2_5709s_linkup(struct bnx2 *bp) in bnx2_5709s_linkup()
1152 bnx2_5708s_linkup(struct bnx2 *bp) in bnx2_5708s_linkup()
1181 bnx2_5706s_linkup(struct bnx2 *bp) in bnx2_5706s_linkup()
1218 bnx2_copper_linkup(struct bnx2 *bp) in bnx2_copper_linkup()
1294 bnx2_init_rx_context(struct bnx2 *bp, u32 cid) in bnx2_init_rx_context()
1309 bnx2_init_all_rx_contexts(struct bnx2 *bp) in bnx2_init_all_rx_contexts()
1322 bnx2_set_mac_link(struct bnx2 *bp) in bnx2_set_mac_link()
1389 bnx2_enable_bmsr1(struct bnx2 *bp) in bnx2_enable_bmsr1()
1398 bnx2_disable_bmsr1(struct bnx2 *bp) in bnx2_disable_bmsr1()
1407 bnx2_test_and_enable_2g5(struct bnx2 *bp) in bnx2_test_and_enable_2g5()
1436 bnx2_test_and_disable_2g5(struct bnx2 *bp) in bnx2_test_and_disable_2g5()
1462 bnx2_enable_forced_2g5(struct bnx2 *bp) in bnx2_enable_forced_2g5()
1506 bnx2_disable_forced_2g5(struct bnx2 *bp) in bnx2_disable_forced_2g5()
1545 bnx2_5706s_force_link_dn(struct bnx2 *bp, int start) in bnx2_5706s_force_link_dn()
1558 bnx2_set_link(struct bnx2 *bp) in bnx2_set_link()
1642 bnx2_reset_phy(struct bnx2 *bp) in bnx2_reset_phy()
1666 bnx2_phy_get_pause_adv(struct bnx2 *bp) in bnx2_phy_get_pause_adv()
1702 bnx2_setup_remote_phy(struct bnx2 *bp, u8 port) in bnx2_setup_remote_phy()
1761 bnx2_setup_serdes_phy(struct bnx2 *bp, u8 port) in bnx2_setup_serdes_phy()
1893 bnx2_set_default_remote_link(struct bnx2 *bp) in bnx2_set_default_remote_link()
1940 bnx2_set_default_link(struct bnx2 *bp) in bnx2_set_default_link()
1966 bnx2_send_heart_beat(struct bnx2 *bp) in bnx2_send_heart_beat()
1980 bnx2_remote_phy_event(struct bnx2 *bp) in bnx2_remote_phy_event()
2061 bnx2_set_remote_link(struct bnx2 *bp) in bnx2_set_remote_link()
2079 bnx2_setup_copper_phy(struct bnx2 *bp) in bnx2_setup_copper_phy()
2171 bnx2_setup_phy(struct bnx2 *bp, u8 port) in bnx2_setup_phy()
2187 bnx2_init_5709s_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_5709s_phy()
2237 bnx2_init_5708s_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_5708s_phy()
2295 bnx2_init_5706s_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_5706s_phy()
2333 bnx2_init_copper_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_copper_phy()
2392 bnx2_init_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_phy()
2438 bnx2_set_mac_loopback(struct bnx2 *bp) in bnx2_set_mac_loopback()
2453 bnx2_set_phy_loopback(struct bnx2 *bp) in bnx2_set_phy_loopback()
2483 bnx2_dump_mcp_state(struct bnx2 *bp) in bnx2_dump_mcp_state()
2526 bnx2_fw_sync(struct bnx2 *bp, u32 msg_data, int ack, int silent) in bnx2_fw_sync()
2573 bnx2_init_5709_context(struct bnx2 *bp) in bnx2_init_5709_context()
2621 bnx2_init_context(struct bnx2 *bp) in bnx2_init_context()
2664 bnx2_alloc_bad_rbuf(struct bnx2 *bp) in bnx2_alloc_bad_rbuf()
2713 bnx2_set_mac_addr(struct bnx2 *bp, u8 *mac_addr, u32 pos) in bnx2_set_mac_addr()
2728 bnx2_alloc_rx_page(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index, gfp_t gfp) in bnx2_alloc_rx_page()
2753 bnx2_free_rx_page(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index) in bnx2_free_rx_page()
2769 bnx2_alloc_rx_data(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index, gfp_t gfp) in bnx2_alloc_rx_data()
2802 bnx2_phy_event_is_set(struct bnx2 *bp, struct bnx2_napi *bnapi, u32 event) in bnx2_phy_event_is_set()
2822 bnx2_phy_int(struct bnx2 *bp, struct bnx2_napi *bnapi) in bnx2_phy_int()
2848 bnx2_tx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) in bnx2_tx_int()
2943 bnx2_reuse_rx_skb_pages(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, in bnx2_reuse_rx_skb_pages()
3001 bnx2_reuse_rx_data(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, in bnx2_reuse_rx_data()
3031 bnx2_rx_skb(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u8 *data, in bnx2_rx_skb()
3148 bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) in bnx2_rx_int()
3319 struct bnx2 *bp = bnapi->bp; in bnx2_msi() local
3339 struct bnx2 *bp = bnapi->bp; in bnx2_msi_1shot() local
3356 struct bnx2 *bp = bnapi->bp; in bnx2_interrupt() local
3427 bnx2_chk_missed_msi(struct bnx2 *bp) in bnx2_chk_missed_msi()
3449 static void bnx2_poll_cnic(struct bnx2 *bp, struct bnx2_napi *bnapi) in bnx2_poll_cnic()
3465 static void bnx2_poll_link(struct bnx2 *bp, struct bnx2_napi *bnapi) in bnx2_poll_link()
3485 static int bnx2_poll_work(struct bnx2 *bp, struct bnx2_napi *bnapi, in bnx2_poll_work()
3503 struct bnx2 *bp = bnapi->bp; in bnx2_poll_msix() local
3530 struct bnx2 *bp = bnapi->bp; in bnx2_poll() local
3582 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_rx_mode() local
3692 static void bnx2_release_firmware(struct bnx2 *bp) in bnx2_release_firmware()
3701 static int bnx2_request_uncached_firmware(struct bnx2 *bp) in bnx2_request_uncached_firmware()
3761 static int bnx2_request_firmware(struct bnx2 *bp) in bnx2_request_firmware()
3779 load_rv2p_fw(struct bnx2 *bp, u32 rv2p_proc, in load_rv2p_fw()
3839 load_cpu_fw(struct bnx2 *bp, const struct cpu_reg *cpu_reg, in load_cpu_fw()
3911 bnx2_init_cpus(struct bnx2 *bp) in bnx2_init_cpus()
3951 bnx2_setup_wol(struct bnx2 *bp) in bnx2_setup_wol()
4046 bnx2_set_power_state(struct bnx2 *bp, pci_power_t state) in bnx2_set_power_state()
4102 bnx2_acquire_nvram_lock(struct bnx2 *bp) in bnx2_acquire_nvram_lock()
4124 bnx2_release_nvram_lock(struct bnx2 *bp) in bnx2_release_nvram_lock()
4148 bnx2_enable_nvram_write(struct bnx2 *bp) in bnx2_enable_nvram_write()
4177 bnx2_disable_nvram_write(struct bnx2 *bp) in bnx2_disable_nvram_write()
4187 bnx2_enable_nvram_access(struct bnx2 *bp) in bnx2_enable_nvram_access()
4198 bnx2_disable_nvram_access(struct bnx2 *bp) in bnx2_disable_nvram_access()
4210 bnx2_nvram_erase_page(struct bnx2 *bp, u32 offset) in bnx2_nvram_erase_page()
4250 bnx2_nvram_read_dword(struct bnx2 *bp, u32 offset, u8 *ret_val, u32 cmd_flags) in bnx2_nvram_read_dword()
4295 bnx2_nvram_write_dword(struct bnx2 *bp, u32 offset, u8 *val, u32 cmd_flags) in bnx2_nvram_write_dword()
4339 bnx2_init_nvram(struct bnx2 *bp) in bnx2_init_nvram()
4422 bnx2_nvram_read(struct bnx2 *bp, u32 offset, u8 *ret_buf, in bnx2_nvram_read()
4532 bnx2_nvram_write(struct bnx2 *bp, u32 offset, u8 *data_buf, in bnx2_nvram_write()
4712 bnx2_init_fw_cap(struct bnx2 *bp) in bnx2_init_fw_cap()
4752 bnx2_setup_msix_tbl(struct bnx2 *bp) in bnx2_setup_msix_tbl()
4761 bnx2_wait_dma_complete(struct bnx2 *bp) in bnx2_wait_dma_complete()
4798 bnx2_reset_chip(struct bnx2 *bp, u32 reset_code) in bnx2_reset_chip()
4902 bnx2_init_chip(struct bnx2 *bp) in bnx2_init_chip()
5131 bnx2_clear_ring_states(struct bnx2 *bp) in bnx2_clear_ring_states()
5154 bnx2_init_tx_context(struct bnx2 *bp, u32 cid, struct bnx2_tx_ring_info *txr) in bnx2_init_tx_context()
5184 bnx2_init_tx_ring(struct bnx2 *bp, int ring_num) in bnx2_init_tx_ring()
5240 bnx2_init_rx_ring(struct bnx2 *bp, int ring_num) in bnx2_init_rx_ring()
5326 bnx2_init_all_rings(struct bnx2 *bp) in bnx2_init_all_rings()
5392 bnx2_set_rx_ring_size(struct bnx2 *bp, u32 size) in bnx2_set_rx_ring_size()
5433 bnx2_free_tx_skbs(struct bnx2 *bp) in bnx2_free_tx_skbs()
5478 bnx2_free_rx_skbs(struct bnx2 *bp) in bnx2_free_rx_skbs()
5512 bnx2_free_skbs(struct bnx2 *bp) in bnx2_free_skbs()
5519 bnx2_reset_nic(struct bnx2 *bp, u32 reset_code) in bnx2_reset_nic()
5536 bnx2_init_nic(struct bnx2 *bp, int reset_phy) in bnx2_init_nic()
5553 bnx2_shutdown_chip(struct bnx2 *bp) in bnx2_shutdown_chip()
5568 bnx2_test_registers(struct bnx2 *bp) in bnx2_test_registers()
5739 bnx2_do_mem_test(struct bnx2 *bp, u32 start, u32 size) in bnx2_do_mem_test()
5762 bnx2_test_memory(struct bnx2 *bp) in bnx2_test_memory()
5807 bnx2_run_loopback(struct bnx2 *bp, int loopback_mode) in bnx2_run_loopback()
5945 bnx2_test_loopback(struct bnx2 *bp) in bnx2_test_loopback()
5967 bnx2_test_nvram(struct bnx2 *bp) in bnx2_test_nvram()
6002 bnx2_test_link(struct bnx2 *bp) in bnx2_test_link()
6028 bnx2_test_intr(struct bnx2 *bp) in bnx2_test_intr()
6059 bnx2_5706_serdes_has_link(struct bnx2 *bp) in bnx2_5706_serdes_has_link()
6090 bnx2_5706_serdes_timer(struct bnx2 *bp) in bnx2_5706_serdes_timer()
6152 bnx2_5708_serdes_timer(struct bnx2 *bp) in bnx2_5708_serdes_timer()
6187 struct bnx2 *bp = from_timer(bp, t, timer); in bnx2_timer() local
6221 bnx2_request_irq(struct bnx2 *bp) in bnx2_request_irq()
6244 __bnx2_free_irq(struct bnx2 *bp) in __bnx2_free_irq()
6258 bnx2_free_irq(struct bnx2 *bp) in bnx2_free_irq()
6271 bnx2_enable_msix(struct bnx2 *bp, int msix_vecs) in bnx2_enable_msix()
6315 bnx2_setup_int_mode(struct bnx2 *bp, int dis_msi) in bnx2_setup_int_mode()
6370 struct bnx2 *bp = netdev_priv(dev); in bnx2_open() local
6452 struct bnx2 *bp = container_of(work, struct bnx2, reset_task); in bnx2_reset_task() local
6487 bnx2_dump_ftq(struct bnx2 *bp) in bnx2_dump_ftq()
6554 bnx2_dump_state(struct bnx2 *bp) in bnx2_dump_state()
6580 struct bnx2 *bp = netdev_priv(dev); in bnx2_tx_timeout() local
6597 struct bnx2 *bp = netdev_priv(dev); in bnx2_start_xmit() local
6770 struct bnx2 *bp = netdev_priv(dev); in bnx2_close() local
6787 bnx2_save_stats(struct bnx2 *bp) in bnx2_save_stats()
6824 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_stats64() local
6899 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_link_ksettings() local
6967 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_link_ksettings() local
7048 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_drvinfo() local
7069 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_regs() local
7119 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_wol() local
7138 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_wol() local
7161 struct bnx2 *bp = netdev_priv(dev); in bnx2_nway_reset() local
7207 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_link() local
7215 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_eeprom_len() local
7227 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_eeprom() local
7241 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_eeprom() local
7254 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_coalesce() local
7276 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_coalesce() local
7325 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_ringparam() local
7338 bnx2_change_ring_size(struct bnx2 *bp, u32 rx, u32 tx, bool reset_irq) in bnx2_change_ring_size()
7396 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_ringparam() local
7413 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_pauseparam() local
7423 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_pauseparam() local
7601 struct bnx2 *bp = netdev_priv(dev); in bnx2_self_test() local
7672 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_ethtool_stats() local
7718 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_phys_id() local
7751 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_features() local
7776 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_channels() local
7798 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_channels() local
7854 struct bnx2 *bp = netdev_priv(dev); in bnx2_ioctl() local
7905 struct bnx2 *bp = netdev_priv(dev); in bnx2_change_mac_addr() local
7921 struct bnx2 *bp = netdev_priv(dev); in bnx2_change_mtu() local
7932 struct bnx2 *bp = netdev_priv(dev); in poll_bnx2() local
7946 bnx2_get_5709_media(struct bnx2 *bp) in bnx2_get_5709_media()
7984 bnx2_get_pci_speed(struct bnx2 *bp) in bnx2_get_pci_speed()
8036 bnx2_read_vpd_fw_ver(struct bnx2 *bp) in bnx2_read_vpd_fw_ver()
8106 struct bnx2 *bp; in bnx2_init_board() local
8498 bnx2_bus_string(struct bnx2 *bp, char *str) in bnx2_bus_string()
8518 bnx2_del_napi(struct bnx2 *bp) in bnx2_del_napi()
8527 bnx2_init_napi(struct bnx2 *bp) in bnx2_init_napi()
8567 struct bnx2 *bp; in bnx2_init_one() local
8647 struct bnx2 *bp = netdev_priv(dev); in bnx2_remove_one() local
8677 struct bnx2 *bp = netdev_priv(dev); in bnx2_suspend() local
8696 struct bnx2 *bp = netdev_priv(dev); in bnx2_resume() local
8729 struct bnx2 *bp = netdev_priv(dev); in bnx2_io_error_detected() local
8761 struct bnx2 *bp = netdev_priv(dev); in bnx2_io_slot_reset() local
8803 struct bnx2 *bp = netdev_priv(dev); in bnx2_io_resume() local
8816 struct bnx2 *bp; in bnx2_shutdown() local