Lines Matching defs:bp

251 static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr)  in bnx2_tx_avail()
271 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()
292 bnx2_shmem_wr(struct bnx2 *bp, u32 offset, u32 val) in bnx2_shmem_wr()
298 bnx2_shmem_rd(struct bnx2 *bp, u32 offset) in bnx2_shmem_rd()
304 bnx2_ctx_wr(struct bnx2 *bp, u32 cid_addr, u32 offset, u32 val) in bnx2_ctx_wr()
331 struct bnx2 *bp = netdev_priv(dev); in bnx2_drv_ctl() local
350 static void bnx2_setup_cnic_irq_info(struct bnx2 *bp) in bnx2_setup_cnic_irq_info()
380 struct bnx2 *bp = netdev_priv(dev); in bnx2_register_cnic() local
405 struct bnx2 *bp = netdev_priv(dev); in bnx2_unregister_cnic() local
420 struct bnx2 *bp = netdev_priv(dev); in bnx2_cnic_probe() local
439 bnx2_cnic_stop(struct bnx2 *bp) in bnx2_cnic_stop()
455 bnx2_cnic_start(struct bnx2 *bp) in bnx2_cnic_start()
478 bnx2_cnic_stop(struct bnx2 *bp) in bnx2_cnic_stop()
483 bnx2_cnic_start(struct bnx2 *bp) in bnx2_cnic_start()
490 bnx2_read_phy(struct bnx2 *bp, u32 reg, u32 *val) in bnx2_read_phy()
547 bnx2_write_phy(struct bnx2 *bp, u32 reg, u32 val) in bnx2_write_phy()
596 bnx2_disable_int(struct bnx2 *bp) in bnx2_disable_int()
610 bnx2_enable_int(struct bnx2 *bp) in bnx2_enable_int()
631 bnx2_disable_int_sync(struct bnx2 *bp) in bnx2_disable_int_sync()
645 bnx2_napi_disable(struct bnx2 *bp) in bnx2_napi_disable()
654 bnx2_napi_enable(struct bnx2 *bp) in bnx2_napi_enable()
663 bnx2_netif_stop(struct bnx2 *bp, bool stop_cnic) in bnx2_netif_stop()
676 bnx2_netif_start(struct bnx2 *bp, bool start_cnic) in bnx2_netif_start()
694 bnx2_free_tx_mem(struct bnx2 *bp) in bnx2_free_tx_mem()
714 bnx2_free_rx_mem(struct bnx2 *bp) in bnx2_free_rx_mem()
746 bnx2_alloc_tx_mem(struct bnx2 *bp) in bnx2_alloc_tx_mem()
768 bnx2_alloc_rx_mem(struct bnx2 *bp) in bnx2_alloc_rx_mem()
816 bnx2_free_mem(struct bnx2 *bp) in bnx2_free_mem()
842 bnx2_alloc_mem(struct bnx2 *bp) in bnx2_alloc_mem()
920 bnx2_report_fw_link(struct bnx2 *bp) in bnx2_report_fw_link()
979 bnx2_xceiver_str(struct bnx2 *bp) in bnx2_xceiver_str()
987 bnx2_report_link(struct bnx2 *bp) in bnx2_report_link()
1018 bnx2_resolve_flow_ctrl(struct bnx2 *bp) in bnx2_resolve_flow_ctrl()
1094 bnx2_5709s_linkup(struct bnx2 *bp) in bnx2_5709s_linkup()
1133 bnx2_5708s_linkup(struct bnx2 *bp) in bnx2_5708s_linkup()
1162 bnx2_5706s_linkup(struct bnx2 *bp) in bnx2_5706s_linkup()
1199 bnx2_copper_linkup(struct bnx2 *bp) in bnx2_copper_linkup()
1265 bnx2_init_rx_context(struct bnx2 *bp, u32 cid) in bnx2_init_rx_context()
1280 bnx2_init_all_rx_contexts(struct bnx2 *bp) in bnx2_init_all_rx_contexts()
1293 bnx2_set_mac_link(struct bnx2 *bp) in bnx2_set_mac_link()
1360 bnx2_enable_bmsr1(struct bnx2 *bp) in bnx2_enable_bmsr1()
1369 bnx2_disable_bmsr1(struct bnx2 *bp) in bnx2_disable_bmsr1()
1378 bnx2_test_and_enable_2g5(struct bnx2 *bp) in bnx2_test_and_enable_2g5()
1407 bnx2_test_and_disable_2g5(struct bnx2 *bp) in bnx2_test_and_disable_2g5()
1433 bnx2_enable_forced_2g5(struct bnx2 *bp) in bnx2_enable_forced_2g5()
1477 bnx2_disable_forced_2g5(struct bnx2 *bp) in bnx2_disable_forced_2g5()
1516 bnx2_5706s_force_link_dn(struct bnx2 *bp, int start) in bnx2_5706s_force_link_dn()
1529 bnx2_set_link(struct bnx2 *bp) in bnx2_set_link()
1613 bnx2_reset_phy(struct bnx2 *bp) in bnx2_reset_phy()
1637 bnx2_phy_get_pause_adv(struct bnx2 *bp) in bnx2_phy_get_pause_adv()
1673 bnx2_setup_remote_phy(struct bnx2 *bp, u8 port) in bnx2_setup_remote_phy()
1732 bnx2_setup_serdes_phy(struct bnx2 *bp, u8 port) in bnx2_setup_serdes_phy()
1864 bnx2_set_default_remote_link(struct bnx2 *bp) in bnx2_set_default_remote_link()
1911 bnx2_set_default_link(struct bnx2 *bp) in bnx2_set_default_link()
1937 bnx2_send_heart_beat(struct bnx2 *bp) in bnx2_send_heart_beat()
1951 bnx2_remote_phy_event(struct bnx2 *bp) in bnx2_remote_phy_event()
2028 bnx2_set_remote_link(struct bnx2 *bp) in bnx2_set_remote_link()
2046 bnx2_setup_copper_phy(struct bnx2 *bp) in bnx2_setup_copper_phy()
2136 bnx2_setup_phy(struct bnx2 *bp, u8 port) in bnx2_setup_phy()
2152 bnx2_init_5709s_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_5709s_phy()
2202 bnx2_init_5708s_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_5708s_phy()
2260 bnx2_init_5706s_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_5706s_phy()
2298 bnx2_init_copper_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_copper_phy()
2351 bnx2_init_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_phy()
2397 bnx2_set_mac_loopback(struct bnx2 *bp) in bnx2_set_mac_loopback()
2412 bnx2_set_phy_loopback(struct bnx2 *bp) in bnx2_set_phy_loopback()
2442 bnx2_dump_mcp_state(struct bnx2 *bp) in bnx2_dump_mcp_state()
2484 bnx2_fw_sync(struct bnx2 *bp, u32 msg_data, int ack, int silent) in bnx2_fw_sync()
2530 bnx2_init_5709_context(struct bnx2 *bp) in bnx2_init_5709_context()
2578 bnx2_init_context(struct bnx2 *bp) in bnx2_init_context()
2621 bnx2_alloc_bad_rbuf(struct bnx2 *bp) in bnx2_alloc_bad_rbuf()
2672 bnx2_set_mac_addr(struct bnx2 *bp, u8 *mac_addr, u32 pos) in bnx2_set_mac_addr()
2687 bnx2_alloc_rx_page(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index, gfp_t gfp) in bnx2_alloc_rx_page()
2712 bnx2_free_rx_page(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index) in bnx2_free_rx_page()
2728 bnx2_alloc_rx_data(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index, gfp_t gfp) in bnx2_alloc_rx_data()
2760 bnx2_phy_event_is_set(struct bnx2 *bp, struct bnx2_napi *bnapi, u32 event) in bnx2_phy_event_is_set()
2780 bnx2_phy_int(struct bnx2 *bp, struct bnx2_napi *bnapi) in bnx2_phy_int()
2808 bnx2_tx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) in bnx2_tx_int()
2902 bnx2_reuse_rx_skb_pages(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, in bnx2_reuse_rx_skb_pages()
2958 bnx2_reuse_rx_data(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, in bnx2_reuse_rx_data()
2988 bnx2_rx_skb(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u8 *data, in bnx2_rx_skb()
3107 bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) in bnx2_rx_int()
3274 struct bnx2 *bp = bnapi->bp; in bnx2_msi() local
3294 struct bnx2 *bp = bnapi->bp; in bnx2_msi_1shot() local
3311 struct bnx2 *bp = bnapi->bp; in bnx2_interrupt() local
3382 bnx2_chk_missed_msi(struct bnx2 *bp) in bnx2_chk_missed_msi()
3404 static void bnx2_poll_cnic(struct bnx2 *bp, struct bnx2_napi *bnapi) in bnx2_poll_cnic()
3420 static void bnx2_poll_link(struct bnx2 *bp, struct bnx2_napi *bnapi) in bnx2_poll_link()
3440 static int bnx2_poll_work(struct bnx2 *bp, struct bnx2_napi *bnapi, in bnx2_poll_work()
3458 struct bnx2 *bp = bnapi->bp; in bnx2_poll_msix() local
3485 struct bnx2 *bp = bnapi->bp; in bnx2_poll() local
3537 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_rx_mode() local
3647 static void bnx2_release_firmware(struct bnx2 *bp) in bnx2_release_firmware()
3656 static int bnx2_request_uncached_firmware(struct bnx2 *bp) in bnx2_request_uncached_firmware()
3716 static int bnx2_request_firmware(struct bnx2 *bp) in bnx2_request_firmware()
3734 load_rv2p_fw(struct bnx2 *bp, u32 rv2p_proc, in load_rv2p_fw()
3794 load_cpu_fw(struct bnx2 *bp, const struct cpu_reg *cpu_reg, in load_cpu_fw()
3866 bnx2_init_cpus(struct bnx2 *bp) in bnx2_init_cpus()
3906 bnx2_set_power_state(struct bnx2 *bp, pci_power_t state) in bnx2_set_power_state()
4044 bnx2_acquire_nvram_lock(struct bnx2 *bp) in bnx2_acquire_nvram_lock()
4066 bnx2_release_nvram_lock(struct bnx2 *bp) in bnx2_release_nvram_lock()
4090 bnx2_enable_nvram_write(struct bnx2 *bp) in bnx2_enable_nvram_write()
4119 bnx2_disable_nvram_write(struct bnx2 *bp) in bnx2_disable_nvram_write()
4129 bnx2_enable_nvram_access(struct bnx2 *bp) in bnx2_enable_nvram_access()
4140 bnx2_disable_nvram_access(struct bnx2 *bp) in bnx2_disable_nvram_access()
4152 bnx2_nvram_erase_page(struct bnx2 *bp, u32 offset) in bnx2_nvram_erase_page()
4192 bnx2_nvram_read_dword(struct bnx2 *bp, u32 offset, u8 *ret_val, u32 cmd_flags) in bnx2_nvram_read_dword()
4237 bnx2_nvram_write_dword(struct bnx2 *bp, u32 offset, u8 *val, u32 cmd_flags) in bnx2_nvram_write_dword()
4281 bnx2_init_nvram(struct bnx2 *bp) in bnx2_init_nvram()
4364 bnx2_nvram_read(struct bnx2 *bp, u32 offset, u8 *ret_buf, in bnx2_nvram_read()
4474 bnx2_nvram_write(struct bnx2 *bp, u32 offset, u8 *data_buf, in bnx2_nvram_write()
4654 bnx2_init_fw_cap(struct bnx2 *bp) in bnx2_init_fw_cap()
4694 bnx2_setup_msix_tbl(struct bnx2 *bp) in bnx2_setup_msix_tbl()
4703 bnx2_reset_chip(struct bnx2 *bp, u32 reset_code) in bnx2_reset_chip()
4828 bnx2_init_chip(struct bnx2 *bp) in bnx2_init_chip()
5058 bnx2_clear_ring_states(struct bnx2 *bp) in bnx2_clear_ring_states()
5081 bnx2_init_tx_context(struct bnx2 *bp, u32 cid, struct bnx2_tx_ring_info *txr) in bnx2_init_tx_context()
5111 bnx2_init_tx_ring(struct bnx2 *bp, int ring_num) in bnx2_init_tx_ring()
5167 bnx2_init_rx_ring(struct bnx2 *bp, int ring_num) in bnx2_init_rx_ring()
5253 bnx2_init_all_rings(struct bnx2 *bp) in bnx2_init_all_rings()
5319 bnx2_set_rx_ring_size(struct bnx2 *bp, u32 size) in bnx2_set_rx_ring_size()
5359 bnx2_free_tx_skbs(struct bnx2 *bp) in bnx2_free_tx_skbs()
5404 bnx2_free_rx_skbs(struct bnx2 *bp) in bnx2_free_rx_skbs()
5438 bnx2_free_skbs(struct bnx2 *bp) in bnx2_free_skbs()
5445 bnx2_reset_nic(struct bnx2 *bp, u32 reset_code) in bnx2_reset_nic()
5462 bnx2_init_nic(struct bnx2 *bp, int reset_phy) in bnx2_init_nic()
5479 bnx2_shutdown_chip(struct bnx2 *bp) in bnx2_shutdown_chip()
5494 bnx2_test_registers(struct bnx2 *bp) in bnx2_test_registers()
5665 bnx2_do_mem_test(struct bnx2 *bp, u32 start, u32 size) in bnx2_do_mem_test()
5688 bnx2_test_memory(struct bnx2 *bp) in bnx2_test_memory()
5733 bnx2_run_loopback(struct bnx2 *bp, int loopback_mode) in bnx2_run_loopback()
5871 bnx2_test_loopback(struct bnx2 *bp) in bnx2_test_loopback()
5893 bnx2_test_nvram(struct bnx2 *bp) in bnx2_test_nvram()
5928 bnx2_test_link(struct bnx2 *bp) in bnx2_test_link()
5954 bnx2_test_intr(struct bnx2 *bp) in bnx2_test_intr()
5985 bnx2_5706_serdes_has_link(struct bnx2 *bp) in bnx2_5706_serdes_has_link()
6016 bnx2_5706_serdes_timer(struct bnx2 *bp) in bnx2_5706_serdes_timer()
6078 bnx2_5708_serdes_timer(struct bnx2 *bp) in bnx2_5708_serdes_timer()
6113 struct bnx2 *bp = (struct bnx2 *) data; in bnx2_timer() local
6147 bnx2_request_irq(struct bnx2 *bp) in bnx2_request_irq()
6170 __bnx2_free_irq(struct bnx2 *bp) in __bnx2_free_irq()
6184 bnx2_free_irq(struct bnx2 *bp) in bnx2_free_irq()
6197 bnx2_enable_msix(struct bnx2 *bp, int msix_vecs) in bnx2_enable_msix()
6248 bnx2_setup_int_mode(struct bnx2 *bp, int dis_msi) in bnx2_setup_int_mode()
6286 struct bnx2 *bp = netdev_priv(dev); in bnx2_open() local
6369 struct bnx2 *bp = container_of(work, struct bnx2, reset_task); in bnx2_reset_task() local
6395 bnx2_dump_state(struct bnx2 *bp) in bnx2_dump_state()
6421 struct bnx2 *bp = netdev_priv(dev); in bnx2_tx_timeout() local
6437 struct bnx2 *bp = netdev_priv(dev); in bnx2_start_xmit() local
6609 struct bnx2 *bp = netdev_priv(dev); in bnx2_close() local
6626 bnx2_save_stats(struct bnx2 *bp) in bnx2_save_stats()
6663 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_stats64() local
6738 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_settings() local
6796 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_settings() local
6874 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_drvinfo() local
6895 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_regs() local
6945 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_wol() local
6964 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_wol() local
6984 struct bnx2 *bp = netdev_priv(dev); in bnx2_nway_reset() local
7030 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_link() local
7038 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_eeprom_len() local
7050 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_eeprom() local
7067 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_eeprom() local
7083 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_coalesce() local
7105 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_coalesce() local
7154 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_ringparam() local
7167 bnx2_change_ring_size(struct bnx2 *bp, u32 rx, u32 tx) in bnx2_change_ring_size()
7213 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_ringparam() local
7229 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_pauseparam() local
7239 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_pauseparam() local
7418 struct bnx2 *bp = netdev_priv(dev); in bnx2_self_test() local
7493 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_ethtool_stats() local
7539 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_phys_id() local
7577 struct bnx2 *bp = netdev_priv(dev); in bnx2_fix_features() local
7588 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_features() local
7641 struct bnx2 *bp = netdev_priv(dev); in bnx2_ioctl() local
7692 struct bnx2 *bp = netdev_priv(dev); in bnx2_change_mac_addr() local
7708 struct bnx2 *bp = netdev_priv(dev); in bnx2_change_mtu() local
7722 struct bnx2 *bp = netdev_priv(dev); in poll_bnx2() local
7736 bnx2_get_5709_media(struct bnx2 *bp) in bnx2_get_5709_media()
7774 bnx2_get_pci_speed(struct bnx2 *bp) in bnx2_get_pci_speed()
7826 bnx2_read_vpd_fw_ver(struct bnx2 *bp) in bnx2_read_vpd_fw_ver()
7896 struct bnx2 *bp; in bnx2_init_board() local
8284 bnx2_bus_string(struct bnx2 *bp, char *str) in bnx2_bus_string()
8304 bnx2_del_napi(struct bnx2 *bp) in bnx2_del_napi()
8313 bnx2_init_napi(struct bnx2 *bp) in bnx2_init_napi()
8354 struct bnx2 *bp; in bnx2_init_one() local
8425 struct bnx2 *bp = netdev_priv(dev); in bnx2_remove_one() local
8455 struct bnx2 *bp = netdev_priv(dev); in bnx2_suspend() local
8479 struct bnx2 *bp = netdev_priv(dev); in bnx2_resume() local
8504 struct bnx2 *bp = netdev_priv(dev); in bnx2_io_error_detected() local
8536 struct bnx2 *bp = netdev_priv(dev); in bnx2_io_slot_reset() local
8581 struct bnx2 *bp = netdev_priv(dev); in bnx2_io_resume() local