Lines Matching defs:bp

300 static void __storm_memset_dma_mapping(struct bnx2x *bp,  in __storm_memset_dma_mapping()
307 static void storm_memset_spq_addr(struct bnx2x *bp, in storm_memset_spq_addr()
316 static void storm_memset_vf_to_pf(struct bnx2x *bp, u16 abs_fid, in storm_memset_vf_to_pf()
329 static void storm_memset_func_en(struct bnx2x *bp, u16 abs_fid, in storm_memset_func_en()
342 static void storm_memset_eq_data(struct bnx2x *bp, in storm_memset_eq_data()
353 static void storm_memset_eq_prod(struct bnx2x *bp, u16 eq_prod, in storm_memset_eq_prod()
363 static void bnx2x_reg_wr_ind(struct bnx2x *bp, u32 addr, u32 val) in bnx2x_reg_wr_ind()
371 static u32 bnx2x_reg_rd_ind(struct bnx2x *bp, u32 addr) in bnx2x_reg_rd_ind()
389 static void bnx2x_dp_dmae(struct bnx2x *bp, in bnx2x_dp_dmae()
456 void bnx2x_post_dmae(struct bnx2x *bp, struct dmae_command *dmae, int idx) in bnx2x_post_dmae()
479 u32 bnx2x_dmae_opcode(struct bnx2x *bp, u8 src_type, u8 dst_type, in bnx2x_dmae_opcode()
504 void bnx2x_prep_dmae_with_comp(struct bnx2x *bp, in bnx2x_prep_dmae_with_comp()
521 int bnx2x_issue_dmae_with_comp(struct bnx2x *bp, struct dmae_command *dmae, in bnx2x_issue_dmae_with_comp()
568 void bnx2x_write_dmae(struct bnx2x *bp, dma_addr_t dma_addr, u32 dst_addr, in bnx2x_write_dmae()
604 void bnx2x_read_dmae(struct bnx2x *bp, u32 src_addr, u32 len32) in bnx2x_read_dmae()
643 static void bnx2x_write_dmae_phys_len(struct bnx2x *bp, dma_addr_t phys_addr, in bnx2x_write_dmae_phys_len()
670 static inline int bnx2x_get_assert_list_entry(struct bnx2x *bp, in bnx2x_get_assert_list_entry()
690 static int bnx2x_mc_assert(struct bnx2x *bp) in bnx2x_mc_assert()
756 #define SCRATCH_BUFFER_SIZE(bp) \ argument
759 void bnx2x_fw_dump_lvl(struct bnx2x *bp, const char *lvl) in bnx2x_fw_dump_lvl()
837 static void bnx2x_fw_dump(struct bnx2x *bp) in bnx2x_fw_dump()
842 static void bnx2x_hc_int_disable(struct bnx2x *bp) in bnx2x_hc_int_disable()
877 static void bnx2x_igu_int_disable(struct bnx2x *bp) in bnx2x_igu_int_disable()
892 static void bnx2x_int_disable(struct bnx2x *bp) in bnx2x_int_disable()
900 void bnx2x_panic_dump(struct bnx2x *bp, bool disable_int) in bnx2x_panic_dump()
1206 static void bnx2x_pbf_pN_buf_flushed(struct bnx2x *bp, in bnx2x_pbf_pN_buf_flushed()
1241 static void bnx2x_pbf_pN_cmd_flushed(struct bnx2x *bp, in bnx2x_pbf_pN_cmd_flushed()
1273 static u32 bnx2x_flr_clnup_reg_poll(struct bnx2x *bp, u32 reg, in bnx2x_flr_clnup_reg_poll()
1285 int bnx2x_flr_clnup_poll_hw_counter(struct bnx2x *bp, u32 reg, in bnx2x_flr_clnup_poll_hw_counter()
1297 u32 bnx2x_flr_clnup_poll_count(struct bnx2x *bp) in bnx2x_flr_clnup_poll_count()
1309 void bnx2x_tx_hw_flushed(struct bnx2x *bp, u32 poll_count) in bnx2x_tx_hw_flushed()
1382 int bnx2x_send_final_clnup(struct bnx2x *bp, u8 clnup_func, u32 poll_cnt) in bnx2x_send_final_clnup()
1425 static int bnx2x_poll_hw_usage_counters(struct bnx2x *bp, u32 poll_cnt) in bnx2x_poll_hw_usage_counters()
1470 static void bnx2x_hw_enable_status(struct bnx2x *bp) in bnx2x_hw_enable_status()
1500 static int bnx2x_pf_flr_clnup(struct bnx2x *bp) in bnx2x_pf_flr_clnup()
1544 static void bnx2x_hc_int_enable(struct bnx2x *bp) in bnx2x_hc_int_enable()
1609 static void bnx2x_igu_int_enable(struct bnx2x *bp) in bnx2x_igu_int_enable()
1669 void bnx2x_int_enable(struct bnx2x *bp) in bnx2x_int_enable()
1677 void bnx2x_int_disable_sync(struct bnx2x *bp, int disable_hw) in bnx2x_int_disable_sync()
1710 static bool bnx2x_trylock_hw_lock(struct bnx2x *bp, u32 resource) in bnx2x_trylock_hw_lock()
1753 static int bnx2x_get_leader_lock_resource(struct bnx2x *bp) in bnx2x_get_leader_lock_resource()
1768 static bool bnx2x_trylock_leader_lock(struct bnx2x *bp) in bnx2x_trylock_leader_lock()
1776 static int bnx2x_schedule_sp_task(struct bnx2x *bp) in bnx2x_schedule_sp_task()
1796 struct bnx2x *bp = fp->bp; in bnx2x_sp_event() local
1904 struct bnx2x *bp = netdev_priv(dev_instance); in bnx2x_interrupt() local
1977 int bnx2x_acquire_hw_lock(struct bnx2x *bp, u32 resource) in bnx2x_acquire_hw_lock()
2021 int bnx2x_release_leader_lock(struct bnx2x *bp) in bnx2x_release_leader_lock()
2026 int bnx2x_release_hw_lock(struct bnx2x *bp, u32 resource) in bnx2x_release_hw_lock()
2059 int bnx2x_get_gpio(struct bnx2x *bp, int gpio_num, u8 port) in bnx2x_get_gpio()
2087 int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port) in bnx2x_set_gpio()
2143 int bnx2x_set_mult_gpio(struct bnx2x *bp, u8 pins, u32 mode) in bnx2x_set_mult_gpio()
2190 int bnx2x_set_gpio_int(struct bnx2x *bp, int gpio_num, u32 mode, u8 port) in bnx2x_set_gpio_int()
2238 static int bnx2x_set_spio(struct bnx2x *bp, int spio, u32 mode) in bnx2x_set_spio()
2283 void bnx2x_calc_fc_adv(struct bnx2x *bp) in bnx2x_calc_fc_adv()
2305 static void bnx2x_set_requested_fc(struct bnx2x *bp) in bnx2x_set_requested_fc()
2317 static void bnx2x_init_dropless_fc(struct bnx2x *bp) in bnx2x_init_dropless_fc()
2334 int bnx2x_initial_phy_init(struct bnx2x *bp, int load_mode) in bnx2x_initial_phy_init()
2387 void bnx2x_link_set(struct bnx2x *bp) in bnx2x_link_set()
2401 static void bnx2x__link_reset(struct bnx2x *bp) in bnx2x__link_reset()
2411 void bnx2x_force_link_reset(struct bnx2x *bp) in bnx2x_force_link_reset()
2418 u8 bnx2x_link_test(struct bnx2x *bp, u8 is_serdes) in bnx2x_link_test()
2442 static void bnx2x_calc_vn_min(struct bnx2x *bp, in bnx2x_calc_vn_min()
2480 static void bnx2x_calc_vn_max(struct bnx2x *bp, int vn, in bnx2x_calc_vn_max()
2504 static int bnx2x_get_cmng_fns_mode(struct bnx2x *bp) in bnx2x_get_cmng_fns_mode()
2514 void bnx2x_read_mf_cfg(struct bnx2x *bp) in bnx2x_read_mf_cfg()
2550 static void bnx2x_cmng_fns_init(struct bnx2x *bp, u8 read_cfg, u8 cmng_type) in bnx2x_cmng_fns_init()
2585 static void storm_memset_cmng(struct bnx2x *bp, in storm_memset_cmng()
2615 void bnx2x_set_local_cmng(struct bnx2x *bp) in bnx2x_set_local_cmng()
2630 static void bnx2x_link_attn(struct bnx2x *bp) in bnx2x_link_attn()
2662 void bnx2x__link_status_update(struct bnx2x *bp) in bnx2x__link_status_update()
2721 static int bnx2x_afex_func_update(struct bnx2x *bp, u16 vifid, in bnx2x_afex_func_update()
2746 static int bnx2x_afex_handle_vif_list_cmd(struct bnx2x *bp, u8 cmd_type, in bnx2x_afex_handle_vif_list_cmd()
2784 static void bnx2x_handle_afex_cmd(struct bnx2x *bp, u32 cmd) in bnx2x_handle_afex_cmd()
2905 static void bnx2x_handle_update_svid_cmd(struct bnx2x *bp) in bnx2x_handle_update_svid_cmd()
2960 static void bnx2x_pmf_update(struct bnx2x *bp) in bnx2x_pmf_update()
3001 u32 bnx2x_fw_command(struct bnx2x *bp, u32 command, u32 param) in bnx2x_fw_command()
3043 static void storm_memset_func_cfg(struct bnx2x *bp, in storm_memset_func_cfg()
3055 void bnx2x_func_init(struct bnx2x *bp, struct bnx2x_func_init_params *p) in bnx2x_func_init()
3084 static unsigned long bnx2x_get_common_flags(struct bnx2x *bp, in bnx2x_get_common_flags()
3115 static unsigned long bnx2x_get_q_flags(struct bnx2x *bp, in bnx2x_get_q_flags()
3153 static void bnx2x_pf_q_prep_general(struct bnx2x *bp, in bnx2x_pf_q_prep_general()
3171 static void bnx2x_pf_rx_q_prep(struct bnx2x *bp, in bnx2x_pf_rx_q_prep()
3259 static void bnx2x_pf_tx_q_prep(struct bnx2x *bp, in bnx2x_pf_tx_q_prep()
3280 static void bnx2x_pf_init(struct bnx2x *bp) in bnx2x_pf_init()
3332 static void bnx2x_e1h_disable(struct bnx2x *bp) in bnx2x_e1h_disable()
3341 static void bnx2x_e1h_enable(struct bnx2x *bp) in bnx2x_e1h_enable()
3359 static void bnx2x_drv_info_ether_stat(struct bnx2x *bp) in bnx2x_drv_info_ether_stat()
3402 static void bnx2x_drv_info_fcoe_stat(struct bnx2x *bp) in bnx2x_drv_info_fcoe_stat()
3504 static void bnx2x_drv_info_iscsi_stat(struct bnx2x *bp) in bnx2x_drv_info_iscsi_stat()
3528 static void bnx2x_config_mf_bw(struct bnx2x *bp) in bnx2x_config_mf_bw()
3547 static void bnx2x_set_mf_bw(struct bnx2x *bp) in bnx2x_set_mf_bw()
3553 static void bnx2x_handle_eee_event(struct bnx2x *bp) in bnx2x_handle_eee_event()
3562 static void bnx2x_handle_drv_info_req(struct bnx2x *bp) in bnx2x_handle_drv_info_req()
3663 void bnx2x_update_mng_version(struct bnx2x *bp) in bnx2x_update_mng_version()
3711 void bnx2x_update_mfw_dump(struct bnx2x *bp) in bnx2x_update_mfw_dump()
3737 static void bnx2x_oem_event(struct bnx2x *bp, u32 event) in bnx2x_oem_event()
3794 static struct eth_spe *bnx2x_sp_get_next(struct bnx2x *bp) in bnx2x_sp_get_next()
3810 static void bnx2x_sp_prod_update(struct bnx2x *bp) in bnx2x_sp_prod_update()
3859 int bnx2x_sp_post(struct bnx2x *bp, int command, int cid, in bnx2x_sp_post()
3938 static int bnx2x_acquire_alr(struct bnx2x *bp) in bnx2x_acquire_alr()
3961 static void bnx2x_release_alr(struct bnx2x *bp) in bnx2x_release_alr()
3969 static u16 bnx2x_update_dsb_idx(struct bnx2x *bp) in bnx2x_update_dsb_idx()
3994 static void bnx2x_attn_int_asserted(struct bnx2x *bp, u32 asserted) in bnx2x_attn_int_asserted()
4116 static void bnx2x_fan_failure(struct bnx2x *bp) in bnx2x_fan_failure()
4141 static void bnx2x_attn_int_deasserted0(struct bnx2x *bp, u32 attn) in bnx2x_attn_int_deasserted0()
4181 static void bnx2x_attn_int_deasserted1(struct bnx2x *bp, u32 attn) in bnx2x_attn_int_deasserted1()
4212 static void bnx2x_attn_int_deasserted2(struct bnx2x *bp, u32 attn) in bnx2x_attn_int_deasserted2()
4256 static void bnx2x_attn_int_deasserted3(struct bnx2x *bp, u32 attn) in bnx2x_attn_int_deasserted3()
4387 void bnx2x_set_reset_global(struct bnx2x *bp) in bnx2x_set_reset_global()
4401 static void bnx2x_clear_reset_global(struct bnx2x *bp) in bnx2x_clear_reset_global()
4415 static bool bnx2x_reset_is_global(struct bnx2x *bp) in bnx2x_reset_is_global()
4428 static void bnx2x_set_reset_done(struct bnx2x *bp) in bnx2x_set_reset_done()
4448 void bnx2x_set_reset_in_progress(struct bnx2x *bp) in bnx2x_set_reset_in_progress()
4466 bool bnx2x_reset_is_done(struct bnx2x *bp, int engine) in bnx2x_reset_is_done()
4481 void bnx2x_set_pf_load(struct bnx2x *bp) in bnx2x_set_pf_load()
4519 bool bnx2x_clear_pf_load(struct bnx2x *bp) in bnx2x_clear_pf_load()
4553 static bool bnx2x_get_load_status(struct bnx2x *bp, int engine) in bnx2x_get_load_status()
4571 static void _print_parity(struct bnx2x *bp, u32 reg) in _print_parity()
4581 static bool bnx2x_check_blocks_with_parity0(struct bnx2x *bp, u32 sig, in bnx2x_check_blocks_with_parity0()
4645 static bool bnx2x_check_blocks_with_parity1(struct bnx2x *bp, u32 sig, in bnx2x_check_blocks_with_parity1()
4789 static bool bnx2x_check_blocks_with_parity2(struct bnx2x *bp, u32 sig, in bnx2x_check_blocks_with_parity2()
4863 static bool bnx2x_check_blocks_with_parity3(struct bnx2x *bp, u32 sig, in bnx2x_check_blocks_with_parity3()
4912 static bool bnx2x_check_blocks_with_parity4(struct bnx2x *bp, u32 sig, in bnx2x_check_blocks_with_parity4()
4948 static bool bnx2x_parity_attn(struct bnx2x *bp, bool *global, bool print, in bnx2x_parity_attn()
5004 bool bnx2x_chk_parity_attn(struct bnx2x *bp, bool *global, bool print) in bnx2x_chk_parity_attn()
5038 static void bnx2x_attn_int_deasserted4(struct bnx2x *bp, u32 attn) in bnx2x_attn_int_deasserted4()
5091 static void bnx2x_attn_int_deasserted(struct bnx2x *bp, u32 deasserted) in bnx2x_attn_int_deasserted()
5192 static void bnx2x_attn_int(struct bnx2x *bp) in bnx2x_attn_int()
5220 void bnx2x_igu_ack_sb(struct bnx2x *bp, u8 igu_sb_id, u8 segment, in bnx2x_igu_ack_sb()
5229 static void bnx2x_update_eq_prod(struct bnx2x *bp, u16 prod) in bnx2x_update_eq_prod()
5235 static int bnx2x_cnic_handle_cfc_del(struct bnx2x *bp, u32 cid, in bnx2x_cnic_handle_cfc_del()
5257 static void bnx2x_handle_mcast_eqe(struct bnx2x *bp) in bnx2x_handle_mcast_eqe()
5282 static void bnx2x_handle_classification_eqe(struct bnx2x *bp, in bnx2x_handle_classification_eqe()
5329 static void bnx2x_handle_rx_mode_eqe(struct bnx2x *bp) in bnx2x_handle_rx_mode_eqe()
5348 static void bnx2x_after_afex_vif_lists(struct bnx2x *bp, in bnx2x_after_afex_vif_lists()
5365 static void bnx2x_after_function_update(struct bnx2x *bp) in bnx2x_after_function_update()
5430 struct bnx2x *bp, u32 cid) in bnx2x_cid_to_q_obj()
5440 static void bnx2x_eq_int(struct bnx2x *bp) in bnx2x_eq_int()
5664 struct bnx2x *bp = container_of(work, struct bnx2x, sp_task.work); in bnx2x_sp_task() local
5728 struct bnx2x *bp = netdev_priv(dev); in bnx2x_msix_sp_int() local
5758 void bnx2x_drv_pulse(struct bnx2x *bp) in bnx2x_drv_pulse()
5766 struct bnx2x *bp = from_timer(bp, t, timer); in bnx2x_timer() local
5812 static void bnx2x_fill(struct bnx2x *bp, u32 addr, int fill, u32 len) in bnx2x_fill()
5824 static void bnx2x_wr_fp_sb_data(struct bnx2x *bp, in bnx2x_wr_fp_sb_data()
5837 static void bnx2x_zero_fp_sb(struct bnx2x *bp, int fw_sb_id) in bnx2x_zero_fp_sb()
5870 static void bnx2x_wr_sp_sb_data(struct bnx2x *bp, in bnx2x_wr_sp_sb_data()
5882 static void bnx2x_zero_sp_sb(struct bnx2x *bp) in bnx2x_zero_sp_sb()
5939 void bnx2x_init_sb(struct bnx2x *bp, dma_addr_t mapping, int vfid, in bnx2x_init_sb()
5999 static void bnx2x_update_coalesce_sb(struct bnx2x *bp, u8 fw_sb_id, in bnx2x_update_coalesce_sb()
6015 static void bnx2x_init_def_sb(struct bnx2x *bp) in bnx2x_init_def_sb()
6098 void bnx2x_update_coalesce(struct bnx2x *bp) in bnx2x_update_coalesce()
6107 static void bnx2x_init_sp_ring(struct bnx2x *bp) in bnx2x_init_sp_ring()
6118 static void bnx2x_init_eq_ring(struct bnx2x *bp) in bnx2x_init_eq_ring()
6141 static int bnx2x_set_q_rx_mode(struct bnx2x *bp, u8 cl_id, in bnx2x_set_q_rx_mode()
6181 static int bnx2x_fill_accept_flags(struct bnx2x *bp, u32 rx_mode, in bnx2x_fill_accept_flags()
6260 static int bnx2x_set_storm_rx_mode(struct bnx2x *bp) in bnx2x_set_storm_rx_mode()
6283 static void bnx2x_init_internal_common(struct bnx2x *bp) in bnx2x_init_internal_common()
6299 static void bnx2x_init_internal(struct bnx2x *bp, u32 load_code) in bnx2x_init_internal()
6340 static void bnx2x_init_eth_fp(struct bnx2x *bp, int fp_idx) in bnx2x_init_eth_fp()
6426 static void bnx2x_init_tx_rings_cnic(struct bnx2x *bp) in bnx2x_init_tx_rings_cnic()
6434 static void bnx2x_init_tx_rings(struct bnx2x *bp) in bnx2x_init_tx_rings()
6444 static void bnx2x_init_fcoe_fp(struct bnx2x *bp) in bnx2x_init_fcoe_fp()
6485 void bnx2x_nic_init_cnic(struct bnx2x *bp) in bnx2x_nic_init_cnic()
6503 void bnx2x_pre_irq_nic_init(struct bnx2x *bp) in bnx2x_pre_irq_nic_init()
6531 void bnx2x_post_irq_nic_init(struct bnx2x *bp, u32 load_code) in bnx2x_post_irq_nic_init()
6550 static int bnx2x_gunzip_init(struct bnx2x *bp) in bnx2x_gunzip_init()
6581 static void bnx2x_gunzip_end(struct bnx2x *bp) in bnx2x_gunzip_end()
6596 static int bnx2x_gunzip(struct bnx2x *bp, const u8 *zbuf, int len) in bnx2x_gunzip()
6649 static void bnx2x_lb_pckt(struct bnx2x *bp) in bnx2x_lb_pckt()
6670 static int bnx2x_int_mem_test(struct bnx2x *bp) in bnx2x_int_mem_test()
6815 static void bnx2x_enable_blocks_attention(struct bnx2x *bp) in bnx2x_enable_blocks_attention()
6875 static void bnx2x_reset_common(struct bnx2x *bp) in bnx2x_reset_common()
6891 static void bnx2x_setup_dmae(struct bnx2x *bp) in bnx2x_setup_dmae()
6897 static void bnx2x_init_pxp(struct bnx2x *bp) in bnx2x_init_pxp()
6915 static void bnx2x_setup_fan_failure_detection(struct bnx2x *bp) in bnx2x_setup_fan_failure_detection()
6965 void bnx2x_pf_disable(struct bnx2x *bp) in bnx2x_pf_disable()
6975 static void bnx2x__common_init_phy(struct bnx2x *bp) in bnx2x__common_init_phy()
6996 static void bnx2x_config_endianity(struct bnx2x *bp, u32 val) in bnx2x_config_endianity()
7013 static void bnx2x_set_endianity(struct bnx2x *bp) in bnx2x_set_endianity()
7022 static void bnx2x_reset_endianity(struct bnx2x *bp) in bnx2x_reset_endianity()
7032 static int bnx2x_init_hw_common(struct bnx2x *bp) in bnx2x_init_hw_common()
7478 static int bnx2x_init_hw_common_chip(struct bnx2x *bp) in bnx2x_init_hw_common_chip()
7492 static int bnx2x_init_hw_port(struct bnx2x *bp) in bnx2x_init_hw_port()
7720 static void bnx2x_ilt_wr(struct bnx2x *bp, u32 index, dma_addr_t addr) in bnx2x_ilt_wr()
7735 void bnx2x_igu_clear_sb_gen(struct bnx2x *bp, u8 func, u8 idu_sb_id, bool is_pf) in bnx2x_igu_clear_sb_gen()
7778 static void bnx2x_igu_clear_sb(struct bnx2x *bp, u8 idu_sb_id) in bnx2x_igu_clear_sb()
7783 static void bnx2x_clear_func_ilt(struct bnx2x *bp, u32 func) in bnx2x_clear_func_ilt()
7790 static void bnx2x_init_searcher(struct bnx2x *bp) in bnx2x_init_searcher()
7798 static inline int bnx2x_func_switch_update(struct bnx2x *bp, int suspend) in bnx2x_func_switch_update()
7824 static int bnx2x_reset_nic_mode(struct bnx2x *bp) in bnx2x_reset_nic_mode()
7896 int bnx2x_init_hw_func_cnic(struct bnx2x *bp) in bnx2x_init_hw_func_cnic()
7923 static void bnx2x_clean_pglue_errors(struct bnx2x *bp) in bnx2x_clean_pglue_errors()
7930 static int bnx2x_init_hw_func(struct bnx2x *bp) in bnx2x_init_hw_func()
8247 void bnx2x_free_mem_cnic(struct bnx2x *bp) in bnx2x_free_mem_cnic()
8261 void bnx2x_free_mem(struct bnx2x *bp) in bnx2x_free_mem()
8294 int bnx2x_alloc_mem_cnic(struct bnx2x *bp) in bnx2x_alloc_mem_cnic()
8331 int bnx2x_alloc_mem(struct bnx2x *bp) in bnx2x_alloc_mem()
8410 int bnx2x_set_mac_one(struct bnx2x *bp, u8 *mac, in bnx2x_set_mac_one()
8448 int bnx2x_set_vlan_one(struct bnx2x *bp, u16 vlan, in bnx2x_set_vlan_one()
8485 void bnx2x_clear_vlan_info(struct bnx2x *bp) in bnx2x_clear_vlan_info()
8496 static int bnx2x_del_all_vlans(struct bnx2x *bp) in bnx2x_del_all_vlans()
8513 int bnx2x_del_all_macs(struct bnx2x *bp, in bnx2x_del_all_macs()
8534 int bnx2x_set_eth_mac(struct bnx2x *bp, bool set) in bnx2x_set_eth_mac()
8550 int bnx2x_setup_leading(struct bnx2x *bp) in bnx2x_setup_leading()
8565 int bnx2x_set_int_mode(struct bnx2x *bp) in bnx2x_set_int_mode()
8610 static inline u16 bnx2x_cid_ilt_lines(struct bnx2x *bp) in bnx2x_cid_ilt_lines()
8617 void bnx2x_ilt_set_info(struct bnx2x *bp) in bnx2x_ilt_set_info()
8718 static void bnx2x_pf_q_prep_init(struct bnx2x *bp, in bnx2x_pf_q_prep_init()
8769 static int bnx2x_setup_tx_only(struct bnx2x *bp, struct bnx2x_fastpath *fp, in bnx2x_setup_tx_only()
8812 int bnx2x_setup_queue(struct bnx2x *bp, struct bnx2x_fastpath *fp, in bnx2x_setup_queue()
8896 static int bnx2x_stop_queue(struct bnx2x *bp, int index) in bnx2x_stop_queue()
8962 static void bnx2x_reset_func(struct bnx2x *bp) in bnx2x_reset_func()
9043 static void bnx2x_reset_port(struct bnx2x *bp) in bnx2x_reset_port()
9072 static int bnx2x_reset_hw(struct bnx2x *bp, u32 load_code) in bnx2x_reset_hw()
9087 static int bnx2x_func_stop(struct bnx2x *bp) in bnx2x_func_stop()
9125 u32 bnx2x_send_unload_req(struct bnx2x *bp, int unload_mode) in bnx2x_send_unload_req()
9197 void bnx2x_send_unload_done(struct bnx2x *bp, bool keep_link) in bnx2x_send_unload_done()
9206 static int bnx2x_func_wait_started(struct bnx2x *bp) in bnx2x_func_wait_started()
9273 static void bnx2x_disable_ptp(struct bnx2x *bp) in bnx2x_disable_ptp()
9297 static void bnx2x_stop_ptp(struct bnx2x *bp) in bnx2x_stop_ptp()
9315 void bnx2x_chip_cleanup(struct bnx2x *bp, int unload_mode, bool keep_link) in bnx2x_chip_cleanup()
9482 void bnx2x_disable_close_the_gate(struct bnx2x *bp) in bnx2x_disable_close_the_gate()
9505 static void bnx2x_set_234_gates(struct bnx2x *bp, bool close) in bnx2x_set_234_gates()
9545 static void bnx2x_clp_reset_prep(struct bnx2x *bp, u32 *magic_val) in bnx2x_clp_reset_prep()
9559 static void bnx2x_clp_reset_done(struct bnx2x *bp, u32 magic_val) in bnx2x_clp_reset_done()
9575 static void bnx2x_reset_mcp_prep(struct bnx2x *bp, u32 *magic_val) in bnx2x_reset_mcp_prep()
9604 static void bnx2x_mcp_wait_one(struct bnx2x *bp) in bnx2x_mcp_wait_one()
9617 static int bnx2x_init_shmem(struct bnx2x *bp) in bnx2x_init_shmem()
9648 static int bnx2x_reset_mcp_comp(struct bnx2x *bp, u32 magic_val) in bnx2x_reset_mcp_comp()
9659 static void bnx2x_pxp_prep(struct bnx2x *bp) in bnx2x_pxp_prep()
9677 static void bnx2x_process_kill_chip_reset(struct bnx2x *bp, bool global) in bnx2x_process_kill_chip_reset()
9781 static int bnx2x_er_poll_igu_vq(struct bnx2x *bp) in bnx2x_er_poll_igu_vq()
9804 static int bnx2x_process_kill(struct bnx2x *bp, bool global) in bnx2x_process_kill()
9891 static int bnx2x_leader_reset(struct bnx2x *bp) in bnx2x_leader_reset()
9951 static void bnx2x_recovery_failed(struct bnx2x *bp) in bnx2x_recovery_failed()
9977 static void bnx2x_parity_recover(struct bnx2x *bp) in bnx2x_parity_recover()
10132 static int bnx2x_udp_port_update(struct bnx2x *bp) in bnx2x_udp_port_update()
10181 static void __bnx2x_add_udp_port(struct bnx2x *bp, u16 port, in __bnx2x_add_udp_port()
10206 static void __bnx2x_del_udp_port(struct bnx2x *bp, u16 port, in __bnx2x_del_udp_port()
10236 struct bnx2x *bp = netdev_priv(netdev); in bnx2x_udp_tunnel_add() local
10254 struct bnx2x *bp = netdev_priv(netdev); in bnx2x_udp_tunnel_del() local
10276 struct bnx2x *bp = container_of(work, struct bnx2x, sp_rtnl_task.work); in bnx2x_sp_rtnl_task() local
10424 struct bnx2x *bp = container_of(work, struct bnx2x, period_task.work); in bnx2x_period_task() local
10457 static u32 bnx2x_get_pretend_reg(struct bnx2x *bp) in bnx2x_get_pretend_reg()
10464 static bool bnx2x_prev_unload_close_umac(struct bnx2x *bp, in bnx2x_prev_unload_close_umac()
10483 static void bnx2x_prev_unload_close_mac(struct bnx2x *bp, in bnx2x_prev_unload_close_mac()
10562 static bool bnx2x_prev_is_after_undi(struct bnx2x *bp) in bnx2x_prev_is_after_undi()
10579 static void bnx2x_prev_unload_undi_inc(struct bnx2x *bp, u8 inc) in bnx2x_prev_unload_undi_inc()
10600 static int bnx2x_prev_mcp_done(struct bnx2x *bp) in bnx2x_prev_mcp_done()
10613 bnx2x_prev_path_get_entry(struct bnx2x *bp) in bnx2x_prev_path_get_entry()
10626 static int bnx2x_prev_path_mark_eeh(struct bnx2x *bp) in bnx2x_prev_path_mark_eeh()
10651 static bool bnx2x_prev_is_path_marked(struct bnx2x *bp) in bnx2x_prev_is_path_marked()
10676 bool bnx2x_port_after_undi(struct bnx2x *bp) in bnx2x_port_after_undi()
10691 static int bnx2x_prev_mark_path(struct bnx2x *bp, bool after_undi) in bnx2x_prev_mark_path()
10744 static int bnx2x_do_flr(struct bnx2x *bp) in bnx2x_do_flr()
10769 static int bnx2x_prev_unload_uncommon(struct bnx2x *bp) in bnx2x_prev_unload_uncommon()
10814 static int bnx2x_prev_unload_common(struct bnx2x *bp) in bnx2x_prev_unload_common()
10911 static int bnx2x_prev_unload(struct bnx2x *bp) in bnx2x_prev_unload()
10994 static void bnx2x_get_common_hwinfo(struct bnx2x *bp) in bnx2x_get_common_hwinfo()
11183 static int bnx2x_get_igu_cam_info(struct bnx2x *bp) in bnx2x_get_igu_cam_info()
11242 static void bnx2x_link_settings_supported(struct bnx2x *bp, u32 switch_cfg) in bnx2x_link_settings_supported()
11343 static void bnx2x_link_settings_requested(struct bnx2x *bp) in bnx2x_link_settings_requested()
11550 static void bnx2x_get_port_hwinfo(struct bnx2x *bp) in bnx2x_get_port_hwinfo()
11634 void bnx2x_get_iscsi_info(struct bnx2x *bp) in bnx2x_get_iscsi_info()
11662 static void bnx2x_get_ext_wwn_info(struct bnx2x *bp, int func) in bnx2x_get_ext_wwn_info()
11677 static int bnx2x_shared_fcoe_funcs(struct bnx2x *bp) in bnx2x_shared_fcoe_funcs()
11719 static void bnx2x_get_fcoe_info(struct bnx2x *bp) in bnx2x_get_fcoe_info()
11788 static void bnx2x_get_cnic_info(struct bnx2x *bp) in bnx2x_get_cnic_info()
11799 static void bnx2x_get_cnic_mac_hwinfo(struct bnx2x *bp) in bnx2x_get_cnic_mac_hwinfo()
11891 static void bnx2x_get_mac_hwinfo(struct bnx2x *bp) in bnx2x_get_mac_hwinfo()
11939 static bool bnx2x_get_dropless_info(struct bnx2x *bp) in bnx2x_get_dropless_info()
11962 static void validate_set_si_mode(struct bnx2x *bp) in validate_set_si_mode()
11978 static int bnx2x_get_hwinfo(struct bnx2x *bp) in bnx2x_get_hwinfo()
12260 static void bnx2x_read_fwinfo(struct bnx2x *bp) in bnx2x_read_fwinfo()
12345 static void bnx2x_set_modes_bitmap(struct bnx2x *bp) in bnx2x_set_modes_bitmap()
12395 static int bnx2x_init_bp(struct bnx2x *bp) in bnx2x_init_bp()
12540 struct bnx2x *bp = netdev_priv(dev); in bnx2x_open() local
12613 struct bnx2x *bp = netdev_priv(dev); in bnx2x_close() local
12644 static int bnx2x_init_mcast_macs_list(struct bnx2x *bp, in bnx2x_init_mcast_macs_list()
12686 static int bnx2x_set_uc_list(struct bnx2x *bp) in bnx2x_set_uc_list()
12724 static int bnx2x_set_mc_list_e1x(struct bnx2x *bp) in bnx2x_set_mc_list_e1x()
12759 static int bnx2x_set_mc_list(struct bnx2x *bp) in bnx2x_set_mc_list()
12799 struct bnx2x *bp = netdev_priv(dev); in bnx2x_set_rx_mode() local
12811 void bnx2x_set_rx_mode_inner(struct bnx2x *bp) in bnx2x_set_rx_mode_inner()
12874 struct bnx2x *bp = netdev_priv(netdev); in bnx2x_mdio_read() local
12898 struct bnx2x *bp = netdev_priv(netdev); in bnx2x_mdio_write() local
12917 struct bnx2x *bp = netdev_priv(dev); in bnx2x_ioctl() local
12935 struct bnx2x *bp = netdev_priv(dev); in bnx2x_validate_addr() local
12951 struct bnx2x *bp = netdev_priv(netdev); in bnx2x_get_phys_port_id() local
12988 static int __bnx2x_vlan_configure_vid(struct bnx2x *bp, u16 vid, bool add) in __bnx2x_vlan_configure_vid()
13005 static int bnx2x_vlan_configure_vid_list(struct bnx2x *bp) in bnx2x_vlan_configure_vid_list()
13032 static void bnx2x_vlan_configure(struct bnx2x *bp, bool set_rx_mode) in bnx2x_vlan_configure()
13051 int bnx2x_vlan_reconfigure_vid(struct bnx2x *bp) in bnx2x_vlan_reconfigure_vid()
13061 struct bnx2x *bp = netdev_priv(dev); in bnx2x_vlan_rx_add_vid() local
13082 struct bnx2x *bp = netdev_priv(dev); in bnx2x_vlan_rx_kill_vid() local
13150 static int bnx2x_set_coherency_mask(struct bnx2x *bp) in bnx2x_set_coherency_mask()
13163 static void bnx2x_disable_pcie_error_reporting(struct bnx2x *bp) in bnx2x_disable_pcie_error_reporting()
13171 static int bnx2x_init_dev(struct bnx2x *bp, struct pci_dev *pdev, in bnx2x_init_dev()
13394 static int bnx2x_check_firmware(struct bnx2x *bp) in bnx2x_check_firmware()
13525 static int bnx2x_init_firmware(struct bnx2x *bp) in bnx2x_init_firmware()
13608 static void bnx2x_release_firmware(struct bnx2x *bp) in bnx2x_release_firmware()
13634 void bnx2x__init_func_obj(struct bnx2x *bp) in bnx2x__init_func_obj()
13648 static int bnx2x_set_qm_cid_count(struct bnx2x *bp) in bnx2x_set_qm_cid_count()
13755 static int bnx2x_send_update_drift_ramrod(struct bnx2x *bp, int drift_dir, in bnx2x_send_update_drift_ramrod()
13782 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_adjfreq() local
13850 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_adjtime() local
13867 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_gettime() local
13888 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_settime() local
13911 struct bnx2x *bp = container_of(ptp, struct bnx2x, ptp_clock_info); in bnx2x_ptp_enable() local
13917 void bnx2x_register_phc(struct bnx2x *bp) in bnx2x_register_phc()
13944 struct bnx2x *bp; in bnx2x_init_one() local
14148 struct bnx2x *bp, in __bnx2x_remove()
14240 struct bnx2x *bp; in bnx2x_remove_one() local
14251 static int bnx2x_eeh_nic_unload(struct bnx2x *bp) in bnx2x_eeh_nic_unload()
14296 struct bnx2x *bp = netdev_priv(dev); in bnx2x_io_error_detected() local
14331 struct bnx2x *bp = netdev_priv(dev); in bnx2x_io_slot_reset() local
14408 struct bnx2x *bp = netdev_priv(dev); in bnx2x_io_resume() local
14437 struct bnx2x *bp; in bnx2x_shutdown() local
14516 void bnx2x_notify_link_changed(struct bnx2x *bp) in bnx2x_notify_link_changed()
14533 static int bnx2x_set_iscsi_eth_mac_addr(struct bnx2x *bp) in bnx2x_set_iscsi_eth_mac_addr()
14544 static void bnx2x_cnic_sp_post(struct bnx2x *bp, int count) in bnx2x_cnic_sp_post()
14628 struct bnx2x *bp = netdev_priv(dev); in bnx2x_cnic_sp_queue() local
14676 static int bnx2x_cnic_ctl_send(struct bnx2x *bp, struct cnic_ctl_info *ctl) in bnx2x_cnic_ctl_send()
14691 static int bnx2x_cnic_ctl_send_bh(struct bnx2x *bp, struct cnic_ctl_info *ctl) in bnx2x_cnic_ctl_send_bh()
14708 int bnx2x_cnic_notify(struct bnx2x *bp, int cmd) in bnx2x_cnic_notify()
14717 static void bnx2x_cnic_cfc_comp(struct bnx2x *bp, int cid, u8 err) in bnx2x_cnic_cfc_comp()
14735 static void bnx2x_set_iscsi_eth_rx_mode(struct bnx2x *bp, bool start) in bnx2x_set_iscsi_eth_rx_mode()
14772 struct bnx2x *bp = netdev_priv(dev); in bnx2x_drv_ctl() local
14952 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_fc_npiv() local
15015 void bnx2x_setup_cnic_irq_info(struct bnx2x *bp) in bnx2x_setup_cnic_irq_info()
15041 void bnx2x_setup_cnic_info(struct bnx2x *bp) in bnx2x_setup_cnic_info()
15062 struct bnx2x *bp = netdev_priv(dev); in bnx2x_register_cnic() local
15117 struct bnx2x *bp = netdev_priv(dev); in bnx2x_unregister_cnic() local
15134 struct bnx2x *bp = netdev_priv(dev); in bnx2x_cnic_probe() local
15185 struct bnx2x *bp = fp->bp; in bnx2x_rx_ustorm_prods_offset() local
15203 int bnx2x_pretend_func(struct bnx2x *bp, u16 pretend_func_val) in bnx2x_pretend_func()
15219 struct bnx2x *bp = container_of(work, struct bnx2x, ptp_task); in bnx2x_ptp_task() local
15270 void bnx2x_set_rx_ts(struct bnx2x *bp, struct sk_buff *skb) in bnx2x_set_rx_ts()
15296 struct bnx2x *bp = container_of(cc, struct bnx2x, cyclecounter); in bnx2x_cyclecounter_read() local
15311 static void bnx2x_init_cyclecounter(struct bnx2x *bp) in bnx2x_init_cyclecounter()
15320 static int bnx2x_send_reset_timesync_ramrod(struct bnx2x *bp) in bnx2x_send_reset_timesync_ramrod()
15340 static int bnx2x_enable_ptp_packets(struct bnx2x *bp) in bnx2x_enable_ptp_packets()
15385 int bnx2x_configure_ptp_filters(struct bnx2x *bp) in bnx2x_configure_ptp_filters()
15468 static int bnx2x_hwtstamp_ioctl(struct bnx2x *bp, struct ifreq *ifr) in bnx2x_hwtstamp_ioctl()
15501 static int bnx2x_configure_ptp(struct bnx2x *bp) in bnx2x_configure_ptp()
15546 void bnx2x_init_ptp(struct bnx2x *bp) in bnx2x_init_ptp()