Home
last modified time | relevance | path

Searched refs:bnx2x (Results 1 – 22 of 22) sorted by relevance

/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.h242 void bnx2x_lock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
245 void bnx2x_unlock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
399 int bnx2x_iov_init_ilt(struct bnx2x *bp, u16 line);
400 int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param, int num_vfs_param);
401 void bnx2x_iov_remove_one(struct bnx2x *bp);
402 void bnx2x_iov_free_mem(struct bnx2x *bp);
403 int bnx2x_iov_alloc_mem(struct bnx2x *bp);
404 int bnx2x_iov_nic_init(struct bnx2x *bp);
405 int bnx2x_iov_chip_cleanup(struct bnx2x *bp);
406 void bnx2x_iov_init_dq(struct bnx2x *bp);
[all …]
Dbnx2x_cmn.h87 u32 bnx2x_send_unload_req(struct bnx2x *bp, int unload_mode);
95 void bnx2x_send_unload_done(struct bnx2x *bp, bool keep_link);
106 int bnx2x_rss(struct bnx2x *bp, struct bnx2x_rss_config_obj *rss_obj,
118 void bnx2x__init_func_obj(struct bnx2x *bp);
128 int bnx2x_setup_queue(struct bnx2x *bp, struct bnx2x_fastpath *fp,
136 int bnx2x_setup_leading(struct bnx2x *bp);
147 u32 bnx2x_fw_command(struct bnx2x *bp, u32 command, u32 param);
155 int bnx2x_initial_phy_init(struct bnx2x *bp, int load_mode);
162 void bnx2x_link_set(struct bnx2x *bp);
170 void bnx2x_force_link_reset(struct bnx2x *bp);
[all …]
Dbnx2x_sp.h24 struct bnx2x;
93 int (*wait_comp)(struct bnx2x *bp,
170 typedef int (*exe_q_validate)(struct bnx2x *bp,
174 typedef int (*exe_q_remove)(struct bnx2x *bp,
181 typedef int (*exe_q_optimize)(struct bnx2x *bp,
184 typedef int (*exe_q_execute)(struct bnx2x *bp,
326 int (*get_n_elements)(struct bnx2x *bp,
336 int (*check_add)(struct bnx2x *bp,
346 (*check_del)(struct bnx2x *bp,
355 bool (*check_move)(struct bnx2x *bp,
[all …]
Dbnx2x_init_ops.h45 static int bnx2x_gunzip(struct bnx2x *bp, const u8 *zbuf, int len);
46 static void bnx2x_reg_wr_ind(struct bnx2x *bp, u32 addr, u32 val);
47 static void bnx2x_write_dmae_phys_len(struct bnx2x *bp,
51 static void bnx2x_init_str_wr(struct bnx2x *bp, u32 addr, in bnx2x_init_str_wr()
60 static void bnx2x_init_ind_wr(struct bnx2x *bp, u32 addr, in bnx2x_init_ind_wr()
69 static void bnx2x_write_big_buf(struct bnx2x *bp, u32 addr, u32 len, in bnx2x_write_big_buf()
84 static void bnx2x_init_fill(struct bnx2x *bp, u32 addr, int fill, in bnx2x_init_fill()
100 static void bnx2x_write_big_buf_wb(struct bnx2x *bp, u32 addr, u32 len) in bnx2x_write_big_buf_wb()
114 static void bnx2x_init_wr_64(struct bnx2x *bp, u32 addr, in bnx2x_init_wr_64()
153 static const u8 *bnx2x_sel_blob(struct bnx2x *bp, u32 addr, in bnx2x_sel_blob()
[all …]
Dbnx2x_sriov.c29 static int bnx2x_vf_op_prep(struct bnx2x *bp, int vfidx,
35 static void storm_memset_vf_to_pf(struct bnx2x *bp, u16 abs_fid, in storm_memset_vf_to_pf()
48 static void storm_memset_func_en(struct bnx2x *bp, u16 abs_fid, in storm_memset_func_en()
61 int bnx2x_vf_idx_by_abs_fid(struct bnx2x *bp, u16 abs_vfid) in bnx2x_vf_idx_by_abs_fid()
72 struct bnx2x_virtf *bnx2x_vf_by_abs_fid(struct bnx2x *bp, u16 abs_vfid) in bnx2x_vf_by_abs_fid()
78 static void bnx2x_vf_igu_ack_sb(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vf_igu_ack_sb()
113 static bool bnx2x_validate_vf_sp_objs(struct bnx2x *bp, in bnx2x_validate_vf_sp_objs()
128 void bnx2x_vfop_qctor_dump_tx(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vfop_qctor_dump_tx()
144 void bnx2x_vfop_qctor_dump_rx(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vfop_qctor_dump_rx()
168 void bnx2x_vfop_qctor_prep(struct bnx2x *bp, in bnx2x_vfop_qctor_prep()
[all …]
Dbnx2x_dcb.c35 static void bnx2x_pfc_set_pfc(struct bnx2x *bp);
36 static void bnx2x_dcbx_update_ets_params(struct bnx2x *bp);
37 static void bnx2x_dcbx_get_ets_pri_pg_tbl(struct bnx2x *bp,
40 static void bnx2x_dcbx_get_num_pg_traf_type(struct bnx2x *bp,
43 static void bnx2x_dcbx_fill_cos_params(struct bnx2x *bp,
47 static void bnx2x_dcbx_separate_pauseable_from_non(struct bnx2x *bp,
51 static void bnx2x_dcbx_fw_struct(struct bnx2x *bp,
55 static void bnx2x_read_data(struct bnx2x *bp, u32 *buff, in bnx2x_read_data()
63 static void bnx2x_write_data(struct bnx2x *bp, u32 *buff, in bnx2x_write_data()
71 static void bnx2x_pfc_set(struct bnx2x *bp) in bnx2x_pfc_set()
[all …]
Dbnx2x_sp.c48 static inline void bnx2x_exe_queue_init(struct bnx2x *bp, in bnx2x_exe_queue_init()
79 static inline void bnx2x_exe_queue_free_elem(struct bnx2x *bp, in bnx2x_exe_queue_free_elem()
111 static inline int bnx2x_exe_queue_add(struct bnx2x *bp, in bnx2x_exe_queue_add()
150 struct bnx2x *bp, in __bnx2x_exe_queue_reset_pending()
173 static inline int bnx2x_exe_queue_step(struct bnx2x *bp, in bnx2x_exe_queue_step()
249 struct bnx2x *bp) in bnx2x_exe_queue_alloc_elem()
283 static inline int bnx2x_state_wait(struct bnx2x *bp, int state, in bnx2x_state_wait()
318 static int bnx2x_raw_wait(struct bnx2x *bp, struct bnx2x_raw_obj *raw) in bnx2x_raw_wait()
430 static int __bnx2x_vlan_mac_h_write_trylock(struct bnx2x *bp, in __bnx2x_vlan_mac_h_write_trylock()
451 static void __bnx2x_vlan_mac_h_exec_pending(struct bnx2x *bp, in __bnx2x_vlan_mac_h_exec_pending()
[all …]
Dbnx2x_ethtool.c190 static int bnx2x_get_port_type(struct bnx2x *bp) in bnx2x_get_port_type()
222 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_vf_settings()
258 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_settings()
357 struct bnx2x *bp = netdev_priv(dev); in bnx2x_set_settings()
671 static int __bnx2x_get_preset_regs_len(struct bnx2x *bp, u32 preset) in __bnx2x_get_preset_regs_len()
687 static int __bnx2x_get_regs_len(struct bnx2x *bp) in __bnx2x_get_regs_len()
701 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_regs_len()
724 static const u32 *__bnx2x_get_page_addr_ar(struct bnx2x *bp) in __bnx2x_get_page_addr_ar()
734 static u32 __bnx2x_get_page_reg_num(struct bnx2x *bp) in __bnx2x_get_page_reg_num()
744 static const u32 *__bnx2x_get_page_write_ar(struct bnx2x *bp) in __bnx2x_get_page_write_ar()
[all …]
Dbnx2x_main.c292 static int bnx2x_set_storm_rx_mode(struct bnx2x *bp);
298 static int bnx2x_hwtstamp_ioctl(struct bnx2x *bp, struct ifreq *ifr);
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()
[all …]
Dbnx2x_cmn.c36 static void bnx2x_free_fp_mem_cnic(struct bnx2x *bp);
37 static int bnx2x_alloc_fp_mem_cnic(struct bnx2x *bp);
38 static int bnx2x_alloc_fp_mem(struct bnx2x *bp);
41 static void bnx2x_add_all_napi_cnic(struct bnx2x *bp) in bnx2x_add_all_napi_cnic()
52 static void bnx2x_add_all_napi(struct bnx2x *bp) in bnx2x_add_all_napi()
63 static int bnx2x_calc_num_queues(struct bnx2x *bp) in bnx2x_calc_num_queues()
88 static inline void bnx2x_move_fp(struct bnx2x *bp, int from, int to) in bnx2x_move_fp()
145 void bnx2x_fill_fw_str(struct bnx2x *bp, char *buf, size_t buf_len) in bnx2x_fill_fw_str()
171 static void bnx2x_shrink_eth_fp(struct bnx2x *bp, int delta) in bnx2x_shrink_eth_fp()
195 static u16 bnx2x_free_tx_pkt(struct bnx2x *bp, struct bnx2x_fp_txdata *txdata, in bnx2x_free_tx_pkt()
[all …]
Dbnx2x_dcb.h185 struct bnx2x;
187 void bnx2x_dcbx_init_params(struct bnx2x *bp);
188 void bnx2x_dcbx_set_state(struct bnx2x *bp, bool dcb_on, u32 dcbx_enabled);
196 void bnx2x_dcbx_set_params(struct bnx2x *bp, u32 state);
197 void bnx2x_dcbx_pmf_update(struct bnx2x *bp);
201 int bnx2x_dcbnl_update_applist(struct bnx2x *bp, bool delall);
204 int bnx2x_dcbx_stop_hw_tx(struct bnx2x *bp);
205 int bnx2x_dcbx_resume_hw_tx(struct bnx2x *bp);
Dbnx2x_vfpf.c26 static int bnx2x_vfpf_teardown_queue(struct bnx2x *bp, int qidx);
29 static void bnx2x_add_tlv(struct bnx2x *bp, void *tlvs_list, in bnx2x_add_tlv()
40 static void bnx2x_vfpf_prep(struct bnx2x *bp, struct vfpf_first_tlv *first_tlv, in bnx2x_vfpf_prep()
59 static void bnx2x_vfpf_finalize(struct bnx2x *bp, in bnx2x_vfpf_finalize()
69 static void *bnx2x_search_tlv_list(struct bnx2x *bp, void *tlvs_list, in bnx2x_search_tlv_list()
93 static void bnx2x_dp_tlv_list(struct bnx2x *bp, void *tlvs_list) in bnx2x_dp_tlv_list()
141 static int bnx2x_send_msg2pf(struct bnx2x *bp, u8 *done, dma_addr_t msg_mapping) in bnx2x_send_msg2pf()
194 static int bnx2x_get_vf_id(struct bnx2x *bp, u32 *vf_id) in bnx2x_get_vf_id()
223 int bnx2x_vfpf_acquire(struct bnx2x *bp, u8 tx_count, u8 rx_count) in bnx2x_vfpf_acquire()
396 int bnx2x_vfpf_release(struct bnx2x *bp) in bnx2x_vfpf_release()
[all …]
Dbnx2x_link.c226 static u32 bnx2x_bits_en(struct bnx2x *bp, u32 reg, u32 bits) in bnx2x_bits_en()
235 static u32 bnx2x_bits_dis(struct bnx2x *bp, u32 reg, u32 bits) in bnx2x_bits_dis()
257 struct bnx2x *bp = params->bp; in bnx2x_check_lfa()
374 static void bnx2x_get_epio(struct bnx2x *bp, u32 epio_pin, u32 *en) in bnx2x_get_epio()
391 static void bnx2x_set_epio(struct bnx2x *bp, u32 epio_pin, u32 en) in bnx2x_set_epio()
416 static void bnx2x_set_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 val) in bnx2x_set_cfg_pin()
429 static u32 bnx2x_get_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 *val) in bnx2x_get_cfg_pin()
449 struct bnx2x *bp = params->bp; in bnx2x_ets_e2e3a0_disabled()
540 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_set_credit_upper_bound_nig()
578 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_nig_disabled()
[all …]
Dbnx2x.h139 void bnx2x_panic_dump(struct bnx2x *bp, bool disable_int);
539 struct bnx2x *bp; /* parent */
1340 struct bnx2x { struct
1988 int bnx2x_set_mac_one(struct bnx2x *bp, u8 *mac,
1992 int bnx2x_set_vlan_one(struct bnx2x *bp, u16 vlan,
2010 int bnx2x_del_all_macs(struct bnx2x *bp,
2015 void bnx2x_func_init(struct bnx2x *bp, struct bnx2x_func_init_params *p);
2016 void bnx2x_init_sb(struct bnx2x *bp, dma_addr_t mapping, int vfid,
2018 int bnx2x_get_gpio(struct bnx2x *bp, int gpio_num, u8 port);
2019 int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port);
[all …]
DMakefile5 obj-$(CONFIG_BNX2X) += bnx2x.o
7 bnx2x-y := bnx2x_main.o bnx2x_link.o bnx2x_cmn.o bnx2x_ethtool.o bnx2x_stats.o bnx2x_dcb.o bnx2x_sp…
8 bnx2x-$(CONFIG_BNX2X_SRIOV) += bnx2x_vfpf.o bnx2x_sriov.o
Dbnx2x_stats.c44 static inline u16 bnx2x_get_port_stats_dma_len(struct bnx2x *bp) in bnx2x_get_port_stats_dma_len()
84 static void bnx2x_dp_stats(struct bnx2x *bp) in bnx2x_dp_stats()
126 static void bnx2x_storm_stats_post(struct bnx2x *bp) in bnx2x_storm_stats_post()
152 static void bnx2x_hw_stats_post(struct bnx2x *bp) in bnx2x_hw_stats_post()
197 static void bnx2x_stats_comp(struct bnx2x *bp) in bnx2x_stats_comp()
218 static void bnx2x_stats_pmf_update(struct bnx2x *bp) in bnx2x_stats_pmf_update()
265 static void bnx2x_port_stats_init(struct bnx2x *bp) in bnx2x_port_stats_init()
487 static void bnx2x_func_stats_init(struct bnx2x *bp) in bnx2x_func_stats_init()
516 static void bnx2x_stats_start(struct bnx2x *bp) in bnx2x_stats_start()
530 static void bnx2x_stats_pmf_start(struct bnx2x *bp) in bnx2x_stats_pmf_start()
[all …]
Dbnx2x_link.h321 struct bnx2x *bp;
427 int bnx2x_common_init_phy(struct bnx2x *bp, u32 shmem_base_path[],
431 void bnx2x_ext_phy_hw_reset(struct bnx2x *bp, u8 port);
434 void bnx2x_sfx7101_sp_sw_reset(struct bnx2x *bp, struct bnx2x_phy *phy);
450 u8 bnx2x_fan_failure_det_req(struct bnx2x *bp, u32 shmem_base,
540 void bnx2x_init_mod_abs_int(struct bnx2x *bp, struct link_vars *vars,
Dbnx2x_init.h207 static inline void bnx2x_map_q_cos(struct bnx2x *bp, u32 q_num, u32 new_cos) in bnx2x_map_q_cos()
262 static inline void bnx2x_dcb_config_qm(struct bnx2x *bp, enum cos_mode mode, in bnx2x_dcb_config_qm()
676 static inline void bnx2x_set_mcp_parity(struct bnx2x *bp, u8 enable) in bnx2x_set_mcp_parity()
693 static inline u32 bnx2x_parity_reg_mask(struct bnx2x *bp, int idx) in bnx2x_parity_reg_mask()
705 static inline void bnx2x_disable_blocks_parity(struct bnx2x *bp) in bnx2x_disable_blocks_parity()
726 static inline void bnx2x_clear_blocks_parity(struct bnx2x *bp) in bnx2x_clear_blocks_parity()
770 static inline void bnx2x_enable_blocks_parity(struct bnx2x *bp) in bnx2x_enable_blocks_parity()
Dbnx2x_stats.h539 struct bnx2x;
541 void bnx2x_memset_stats(struct bnx2x *bp);
542 void bnx2x_stats_init(struct bnx2x *bp);
543 void bnx2x_stats_handle(struct bnx2x *bp, enum bnx2x_stats_event event);
544 int bnx2x_stats_safe_exec(struct bnx2x *bp,
553 void bnx2x_save_statistics(struct bnx2x *bp);
555 void bnx2x_afex_collect_stats(struct bnx2x *bp, void *void_afex_stats,
/drivers/net/ethernet/broadcom/
DMakefile10 obj-$(CONFIG_BNX2X) += bnx2x/
Dcnic.c1193 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_alloc_bnx2x_context()
1241 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_alloc_bnx2x_resc()
1393 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_submit_kwqe_16()
1442 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_bnx2x_set_tcp_options()
1463 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_bnx2x_iscsi_init1()
1549 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_bnx2x_iscsi_init2()
1689 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_setup_bnx2x_ctx()
1878 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_bnx2x_iscsi_ofld1()
1968 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_bnx2x_destroy_ramrod()
2085 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_init_bnx2x_mac()
[all …]
DKconfig131 will be called bnx2x. This is recommended.