Lines Matching defs:bp

252 static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr)  in bnx2_tx_avail()
272 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset) in bnx2_reg_rd_ind()
284 bnx2_reg_wr_ind(struct bnx2 *bp, u32 offset, u32 val) in bnx2_reg_wr_ind()
293 bnx2_shmem_wr(struct bnx2 *bp, u32 offset, u32 val) in bnx2_shmem_wr()
299 bnx2_shmem_rd(struct bnx2 *bp, u32 offset) in bnx2_shmem_rd()
305 bnx2_ctx_wr(struct bnx2 *bp, u32 cid_addr, u32 offset, u32 val) in bnx2_ctx_wr()
332 struct bnx2 *bp = netdev_priv(dev); in bnx2_drv_ctl() local
351 static void bnx2_setup_cnic_irq_info(struct bnx2 *bp) in bnx2_setup_cnic_irq_info()
381 struct bnx2 *bp = netdev_priv(dev); in bnx2_register_cnic() local
406 struct bnx2 *bp = netdev_priv(dev); in bnx2_unregister_cnic() local
421 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()
917 bnx2_report_fw_link(struct bnx2 *bp) in bnx2_report_fw_link()
976 bnx2_xceiver_str(struct bnx2 *bp) in bnx2_xceiver_str()
984 bnx2_report_link(struct bnx2 *bp) in bnx2_report_link()
1015 bnx2_resolve_flow_ctrl(struct bnx2 *bp) in bnx2_resolve_flow_ctrl()
1091 bnx2_5709s_linkup(struct bnx2 *bp) in bnx2_5709s_linkup()
1130 bnx2_5708s_linkup(struct bnx2 *bp) in bnx2_5708s_linkup()
1159 bnx2_5706s_linkup(struct bnx2 *bp) in bnx2_5706s_linkup()
1196 bnx2_copper_linkup(struct bnx2 *bp) in bnx2_copper_linkup()
1272 bnx2_init_rx_context(struct bnx2 *bp, u32 cid) in bnx2_init_rx_context()
1287 bnx2_init_all_rx_contexts(struct bnx2 *bp) in bnx2_init_all_rx_contexts()
1300 bnx2_set_mac_link(struct bnx2 *bp) in bnx2_set_mac_link()
1367 bnx2_enable_bmsr1(struct bnx2 *bp) in bnx2_enable_bmsr1()
1376 bnx2_disable_bmsr1(struct bnx2 *bp) in bnx2_disable_bmsr1()
1385 bnx2_test_and_enable_2g5(struct bnx2 *bp) in bnx2_test_and_enable_2g5()
1414 bnx2_test_and_disable_2g5(struct bnx2 *bp) in bnx2_test_and_disable_2g5()
1440 bnx2_enable_forced_2g5(struct bnx2 *bp) in bnx2_enable_forced_2g5()
1484 bnx2_disable_forced_2g5(struct bnx2 *bp) in bnx2_disable_forced_2g5()
1523 bnx2_5706s_force_link_dn(struct bnx2 *bp, int start) in bnx2_5706s_force_link_dn()
1536 bnx2_set_link(struct bnx2 *bp) in bnx2_set_link()
1620 bnx2_reset_phy(struct bnx2 *bp) in bnx2_reset_phy()
1644 bnx2_phy_get_pause_adv(struct bnx2 *bp) in bnx2_phy_get_pause_adv()
1680 bnx2_setup_remote_phy(struct bnx2 *bp, u8 port) in bnx2_setup_remote_phy()
1739 bnx2_setup_serdes_phy(struct bnx2 *bp, u8 port) in bnx2_setup_serdes_phy()
1871 bnx2_set_default_remote_link(struct bnx2 *bp) in bnx2_set_default_remote_link()
1918 bnx2_set_default_link(struct bnx2 *bp) in bnx2_set_default_link()
1944 bnx2_send_heart_beat(struct bnx2 *bp) in bnx2_send_heart_beat()
1958 bnx2_remote_phy_event(struct bnx2 *bp) in bnx2_remote_phy_event()
2039 bnx2_set_remote_link(struct bnx2 *bp) in bnx2_set_remote_link()
2057 bnx2_setup_copper_phy(struct bnx2 *bp) in bnx2_setup_copper_phy()
2149 bnx2_setup_phy(struct bnx2 *bp, u8 port) in bnx2_setup_phy()
2165 bnx2_init_5709s_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_5709s_phy()
2215 bnx2_init_5708s_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_5708s_phy()
2273 bnx2_init_5706s_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_5706s_phy()
2311 bnx2_init_copper_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_copper_phy()
2370 bnx2_init_phy(struct bnx2 *bp, int reset_phy) in bnx2_init_phy()
2416 bnx2_set_mac_loopback(struct bnx2 *bp) in bnx2_set_mac_loopback()
2431 bnx2_set_phy_loopback(struct bnx2 *bp) in bnx2_set_phy_loopback()
2461 bnx2_dump_mcp_state(struct bnx2 *bp) in bnx2_dump_mcp_state()
2504 bnx2_fw_sync(struct bnx2 *bp, u32 msg_data, int ack, int silent) in bnx2_fw_sync()
2551 bnx2_init_5709_context(struct bnx2 *bp) in bnx2_init_5709_context()
2599 bnx2_init_context(struct bnx2 *bp) in bnx2_init_context()
2642 bnx2_alloc_bad_rbuf(struct bnx2 *bp) in bnx2_alloc_bad_rbuf()
2691 bnx2_set_mac_addr(struct bnx2 *bp, u8 *mac_addr, u32 pos) in bnx2_set_mac_addr()
2706 bnx2_alloc_rx_page(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index, gfp_t gfp) in bnx2_alloc_rx_page()
2731 bnx2_free_rx_page(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index) in bnx2_free_rx_page()
2747 bnx2_alloc_rx_data(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u16 index, gfp_t gfp) in bnx2_alloc_rx_data()
2780 bnx2_phy_event_is_set(struct bnx2 *bp, struct bnx2_napi *bnapi, u32 event) in bnx2_phy_event_is_set()
2800 bnx2_phy_int(struct bnx2 *bp, struct bnx2_napi *bnapi) in bnx2_phy_int()
2828 bnx2_tx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) in bnx2_tx_int()
2923 bnx2_reuse_rx_skb_pages(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, in bnx2_reuse_rx_skb_pages()
2981 bnx2_reuse_rx_data(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, in bnx2_reuse_rx_data()
3011 bnx2_rx_skb(struct bnx2 *bp, struct bnx2_rx_ring_info *rxr, u8 *data, in bnx2_rx_skb()
3130 bnx2_rx_int(struct bnx2 *bp, struct bnx2_napi *bnapi, int budget) in bnx2_rx_int()
3303 struct bnx2 *bp = bnapi->bp; in bnx2_msi() local
3323 struct bnx2 *bp = bnapi->bp; in bnx2_msi_1shot() local
3340 struct bnx2 *bp = bnapi->bp; in bnx2_interrupt() local
3411 bnx2_chk_missed_msi(struct bnx2 *bp) in bnx2_chk_missed_msi()
3433 static void bnx2_poll_cnic(struct bnx2 *bp, struct bnx2_napi *bnapi) in bnx2_poll_cnic()
3449 static void bnx2_poll_link(struct bnx2 *bp, struct bnx2_napi *bnapi) in bnx2_poll_link()
3469 static int bnx2_poll_work(struct bnx2 *bp, struct bnx2_napi *bnapi, in bnx2_poll_work()
3487 struct bnx2 *bp = bnapi->bp; in bnx2_poll_msix() local
3514 struct bnx2 *bp = bnapi->bp; in bnx2_poll() local
3566 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_rx_mode() local
3676 static void bnx2_release_firmware(struct bnx2 *bp) in bnx2_release_firmware()
3685 static int bnx2_request_uncached_firmware(struct bnx2 *bp) in bnx2_request_uncached_firmware()
3745 static int bnx2_request_firmware(struct bnx2 *bp) in bnx2_request_firmware()
3763 load_rv2p_fw(struct bnx2 *bp, u32 rv2p_proc, in load_rv2p_fw()
3823 load_cpu_fw(struct bnx2 *bp, const struct cpu_reg *cpu_reg, in load_cpu_fw()
3895 bnx2_init_cpus(struct bnx2 *bp) in bnx2_init_cpus()
3935 bnx2_setup_wol(struct bnx2 *bp) in bnx2_setup_wol()
4030 bnx2_set_power_state(struct bnx2 *bp, pci_power_t state) in bnx2_set_power_state()
4086 bnx2_acquire_nvram_lock(struct bnx2 *bp) in bnx2_acquire_nvram_lock()
4108 bnx2_release_nvram_lock(struct bnx2 *bp) in bnx2_release_nvram_lock()
4132 bnx2_enable_nvram_write(struct bnx2 *bp) in bnx2_enable_nvram_write()
4161 bnx2_disable_nvram_write(struct bnx2 *bp) in bnx2_disable_nvram_write()
4171 bnx2_enable_nvram_access(struct bnx2 *bp) in bnx2_enable_nvram_access()
4182 bnx2_disable_nvram_access(struct bnx2 *bp) in bnx2_disable_nvram_access()
4194 bnx2_nvram_erase_page(struct bnx2 *bp, u32 offset) in bnx2_nvram_erase_page()
4234 bnx2_nvram_read_dword(struct bnx2 *bp, u32 offset, u8 *ret_val, u32 cmd_flags) in bnx2_nvram_read_dword()
4279 bnx2_nvram_write_dword(struct bnx2 *bp, u32 offset, u8 *val, u32 cmd_flags) in bnx2_nvram_write_dword()
4323 bnx2_init_nvram(struct bnx2 *bp) in bnx2_init_nvram()
4406 bnx2_nvram_read(struct bnx2 *bp, u32 offset, u8 *ret_buf, in bnx2_nvram_read()
4516 bnx2_nvram_write(struct bnx2 *bp, u32 offset, u8 *data_buf, in bnx2_nvram_write()
4696 bnx2_init_fw_cap(struct bnx2 *bp) in bnx2_init_fw_cap()
4736 bnx2_setup_msix_tbl(struct bnx2 *bp) in bnx2_setup_msix_tbl()
4745 bnx2_reset_chip(struct bnx2 *bp, u32 reset_code) in bnx2_reset_chip()
4870 bnx2_init_chip(struct bnx2 *bp) in bnx2_init_chip()
5099 bnx2_clear_ring_states(struct bnx2 *bp) in bnx2_clear_ring_states()
5122 bnx2_init_tx_context(struct bnx2 *bp, u32 cid, struct bnx2_tx_ring_info *txr) in bnx2_init_tx_context()
5152 bnx2_init_tx_ring(struct bnx2 *bp, int ring_num) in bnx2_init_tx_ring()
5208 bnx2_init_rx_ring(struct bnx2 *bp, int ring_num) in bnx2_init_rx_ring()
5294 bnx2_init_all_rings(struct bnx2 *bp) in bnx2_init_all_rings()
5360 bnx2_set_rx_ring_size(struct bnx2 *bp, u32 size) in bnx2_set_rx_ring_size()
5401 bnx2_free_tx_skbs(struct bnx2 *bp) in bnx2_free_tx_skbs()
5446 bnx2_free_rx_skbs(struct bnx2 *bp) in bnx2_free_rx_skbs()
5480 bnx2_free_skbs(struct bnx2 *bp) in bnx2_free_skbs()
5487 bnx2_reset_nic(struct bnx2 *bp, u32 reset_code) in bnx2_reset_nic()
5504 bnx2_init_nic(struct bnx2 *bp, int reset_phy) in bnx2_init_nic()
5521 bnx2_shutdown_chip(struct bnx2 *bp) in bnx2_shutdown_chip()
5536 bnx2_test_registers(struct bnx2 *bp) in bnx2_test_registers()
5707 bnx2_do_mem_test(struct bnx2 *bp, u32 start, u32 size) in bnx2_do_mem_test()
5730 bnx2_test_memory(struct bnx2 *bp) in bnx2_test_memory()
5775 bnx2_run_loopback(struct bnx2 *bp, int loopback_mode) in bnx2_run_loopback()
5913 bnx2_test_loopback(struct bnx2 *bp) in bnx2_test_loopback()
5935 bnx2_test_nvram(struct bnx2 *bp) in bnx2_test_nvram()
5970 bnx2_test_link(struct bnx2 *bp) in bnx2_test_link()
5996 bnx2_test_intr(struct bnx2 *bp) in bnx2_test_intr()
6027 bnx2_5706_serdes_has_link(struct bnx2 *bp) in bnx2_5706_serdes_has_link()
6058 bnx2_5706_serdes_timer(struct bnx2 *bp) in bnx2_5706_serdes_timer()
6120 bnx2_5708_serdes_timer(struct bnx2 *bp) in bnx2_5708_serdes_timer()
6155 struct bnx2 *bp = (struct bnx2 *) data; in bnx2_timer() local
6189 bnx2_request_irq(struct bnx2 *bp) in bnx2_request_irq()
6212 __bnx2_free_irq(struct bnx2 *bp) in __bnx2_free_irq()
6226 bnx2_free_irq(struct bnx2 *bp) in bnx2_free_irq()
6239 bnx2_enable_msix(struct bnx2 *bp, int msix_vecs) in bnx2_enable_msix()
6283 bnx2_setup_int_mode(struct bnx2 *bp, int dis_msi) in bnx2_setup_int_mode()
6338 struct bnx2 *bp = netdev_priv(dev); in bnx2_open() local
6420 struct bnx2 *bp = container_of(work, struct bnx2, reset_task); in bnx2_reset_task() local
6455 bnx2_dump_ftq(struct bnx2 *bp) in bnx2_dump_ftq()
6522 bnx2_dump_state(struct bnx2 *bp) in bnx2_dump_state()
6548 struct bnx2 *bp = netdev_priv(dev); in bnx2_tx_timeout() local
6565 struct bnx2 *bp = netdev_priv(dev); in bnx2_start_xmit() local
6740 struct bnx2 *bp = netdev_priv(dev); in bnx2_close() local
6757 bnx2_save_stats(struct bnx2 *bp) in bnx2_save_stats()
6794 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_stats64() local
6869 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_settings() local
6933 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_settings() local
7011 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_drvinfo() local
7032 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_regs() local
7082 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_wol() local
7101 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_wol() local
7124 struct bnx2 *bp = netdev_priv(dev); in bnx2_nway_reset() local
7170 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_link() local
7178 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_eeprom_len() local
7190 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_eeprom() local
7204 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_eeprom() local
7217 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_coalesce() local
7239 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_coalesce() local
7288 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_ringparam() local
7301 bnx2_change_ring_size(struct bnx2 *bp, u32 rx, u32 tx, bool reset_irq) in bnx2_change_ring_size()
7359 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_ringparam() local
7376 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_pauseparam() local
7386 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_pauseparam() local
7564 struct bnx2 *bp = netdev_priv(dev); in bnx2_self_test() local
7635 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_ethtool_stats() local
7681 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_phys_id() local
7714 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_features() local
7739 struct bnx2 *bp = netdev_priv(dev); in bnx2_get_channels() local
7761 struct bnx2 *bp = netdev_priv(dev); in bnx2_set_channels() local
7817 struct bnx2 *bp = netdev_priv(dev); in bnx2_ioctl() local
7868 struct bnx2 *bp = netdev_priv(dev); in bnx2_change_mac_addr() local
7884 struct bnx2 *bp = netdev_priv(dev); in bnx2_change_mtu() local
7899 struct bnx2 *bp = netdev_priv(dev); in poll_bnx2() local
7913 bnx2_get_5709_media(struct bnx2 *bp) in bnx2_get_5709_media()
7951 bnx2_get_pci_speed(struct bnx2 *bp) in bnx2_get_pci_speed()
8003 bnx2_read_vpd_fw_ver(struct bnx2 *bp) in bnx2_read_vpd_fw_ver()
8073 struct bnx2 *bp; in bnx2_init_board() local
8460 bnx2_bus_string(struct bnx2 *bp, char *str) in bnx2_bus_string()
8480 bnx2_del_napi(struct bnx2 *bp) in bnx2_del_napi()
8489 bnx2_init_napi(struct bnx2 *bp) in bnx2_init_napi()
8529 struct bnx2 *bp; in bnx2_init_one() local
8597 struct bnx2 *bp = netdev_priv(dev); in bnx2_remove_one() local
8627 struct bnx2 *bp = netdev_priv(dev); in bnx2_suspend() local
8647 struct bnx2 *bp = netdev_priv(dev); in bnx2_resume() local
8680 struct bnx2 *bp = netdev_priv(dev); in bnx2_io_error_detected() local
8712 struct bnx2 *bp = netdev_priv(dev); in bnx2_io_slot_reset() local
8761 struct bnx2 *bp = netdev_priv(dev); in bnx2_io_resume() local
8774 struct bnx2 *bp; in bnx2_shutdown() local