/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_sriov.h | 25 #include "bnx2x.h" 37 /* The bnx2x device structure holds vfdb structure described below. 247 void bnx2x_lock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf, 250 void bnx2x_unlock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf, 404 int bnx2x_iov_init_ilt(struct bnx2x *bp, u16 line); 405 int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param, int num_vfs_param); 406 void bnx2x_iov_remove_one(struct bnx2x *bp); 407 void bnx2x_iov_free_mem(struct bnx2x *bp); 408 int bnx2x_iov_alloc_mem(struct bnx2x *bp); 409 int bnx2x_iov_nic_init(struct bnx2x *b [all...] |
H A D | bnx2x_cmn.h | 28 #include "bnx2x.h" 87 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 *b [all...] |
H A D | bnx2x_sp.h | 24 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, 328 int (*get_n_elements)(struct bnx2x *bp, 338 int (*check_add)(struct bnx2x *bp, 348 (*check_del)(struct bnx2x *bp, 357 bool (*check_move)(struct bnx2x *b [all...] |
H A D | bnx2x_sriov.c | 22 #include "bnx2x.h" 29 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() 111 static bool bnx2x_validate_vf_sp_objs(struct bnx2x *bp, in bnx2x_validate_vf_sp_objs() 126 void bnx2x_vfop_qctor_dump_tx(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vfop_qctor_dump_tx() 142 void bnx2x_vfop_qctor_dump_rx(struct bnx2x *b [all...] |
H A D | bnx2x_init_ops.h | 45 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 *b [all...] |
H A D | bnx2x_dcb.c | 30 #include "bnx2x.h" 35 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 *b [all...] |
H A D | bnx2x_sp.c | 29 #include "bnx2x.h" 50 static inline void bnx2x_exe_queue_init(struct bnx2x *bp, in bnx2x_exe_queue_init() 81 static inline void bnx2x_exe_queue_free_elem(struct bnx2x *bp, in bnx2x_exe_queue_free_elem() 113 static inline int bnx2x_exe_queue_add(struct bnx2x *bp, in bnx2x_exe_queue_add() 152 struct bnx2x *bp, in __bnx2x_exe_queue_reset_pending() 175 static inline int bnx2x_exe_queue_step(struct bnx2x *bp, in bnx2x_exe_queue_step() 251 struct bnx2x *bp) in bnx2x_exe_queue_alloc_elem() 285 static inline int bnx2x_state_wait(struct bnx2x *bp, int state, in bnx2x_state_wait() 320 static int bnx2x_raw_wait(struct bnx2x *bp, struct bnx2x_raw_obj *raw) in bnx2x_raw_wait() 432 static int __bnx2x_vlan_mac_h_write_trylock(struct bnx2x *b [all...] |
H A D | bnx2x_dcb.h | 33 /* bnx2x currently limits numbers of supported COSes to 3 to be extended to 6 */ 185 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);
|
H A D | bnx2x_main.c | 62 #include "bnx2x.h" 84 #define FW_FILE_NAME_E1 "bnx2x/bnx2x-e1-" FW_FILE_VERSION ".fw" 85 #define FW_FILE_NAME_E1H "bnx2x/bnx2x-e1h-" FW_FILE_VERSION ".fw" 86 #define FW_FILE_NAME_E2 "bnx2x/bnx2x-e2-" FW_FILE_VERSION ".fw" 87 #define FW_FILE_NAME_E1_V15 "bnx2x/bnx2x-e1-" FW_FILE_VERSION_V15 ".fw" 88 #define FW_FILE_NAME_E1H_V15 "bnx2x/bnx2 [all...] |
H A D | bnx2x_ethtool.c | 27 #include "bnx2x.h" 192 static int bnx2x_get_port_type(struct bnx2x *bp) in bnx2x_get_port_type() 224 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_vf_link_ksettings() 264 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_link_ksettings() 371 struct bnx2x *bp = netdev_priv(dev); in bnx2x_set_link_ksettings() 692 static int __bnx2x_get_preset_regs_len(struct bnx2x *bp, u32 preset) in __bnx2x_get_preset_regs_len() 708 static int __bnx2x_get_regs_len(struct bnx2x *bp) in __bnx2x_get_regs_len() 722 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_regs_len() 745 static const u32 *__bnx2x_get_page_addr_ar(struct bnx2x *bp) in __bnx2x_get_page_addr_ar() 755 static u32 __bnx2x_get_page_reg_num(struct bnx2x *b [all...] |
H A D | bnx2x_cmn.c | 35 static void bnx2x_free_fp_mem_cnic(struct bnx2x *bp); 36 static int bnx2x_alloc_fp_mem_cnic(struct bnx2x *bp); 37 static int bnx2x_alloc_fp_mem(struct bnx2x *bp); 40 static void bnx2x_add_all_napi_cnic(struct bnx2x *bp) in bnx2x_add_all_napi_cnic() 51 static void bnx2x_add_all_napi(struct bnx2x *bp) in bnx2x_add_all_napi() 62 static int bnx2x_calc_num_queues(struct bnx2x *bp) in bnx2x_calc_num_queues() 87 static inline void bnx2x_move_fp(struct bnx2x *bp, int from, int to) in bnx2x_move_fp() 144 void bnx2x_fill_fw_str(struct bnx2x *bp, char *buf, size_t buf_len) in bnx2x_fill_fw_str() 170 static void bnx2x_shrink_eth_fp(struct bnx2x *bp, int delta) in bnx2x_shrink_eth_fp() 194 static u16 bnx2x_free_tx_pkt(struct bnx2x *b 722 bnx2x_gro_csum(struct bnx2x *bp, struct sk_buff *skb, void (*gro_func)(struct bnx2x*, struct sk_buff*)) bnx2x_gro_csum() argument [all...] |
H A D | Makefile | 6 obj-$(CONFIG_BNX2X) += bnx2x.o 8 bnx2x-y := bnx2x_main.o bnx2x_link.o bnx2x_cmn.o bnx2x_ethtool.o bnx2x_stats.o bnx2x_dcb.o bnx2x_sp.o bnx2x_self_test.o 9 bnx2x-$(CONFIG_BNX2X_SRIOV) += bnx2x_vfpf.o bnx2x_sriov.o
|
H A D | bnx2x.h | 0 /* bnx2x.h: QLogic Everest network driver. 74 #define DRV_MODULE_NAME "bnx2x" 145 void bnx2x_panic_dump(struct bnx2x *bp, bool disable_int); 551 struct bnx2x *bp; /* parent */ 1345 struct bnx2x { struct 1660 * Maximum CID count that might be required by the bnx2x: 1985 int bnx2x_idle_chk(struct bnx2x *bp); 2005 int bnx2x_set_mac_one(struct bnx2x *bp, u8 *mac, 2009 int bnx2x_set_vlan_one(struct bnx2x *bp, u16 vlan, 2027 int bnx2x_del_all_macs(struct bnx2x *b [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_sriov.h | 25 #include "bnx2x.h" 37 /* The bnx2x device structure holds vfdb structure described below. 247 void bnx2x_lock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf, 250 void bnx2x_unlock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf, 404 int bnx2x_iov_init_ilt(struct bnx2x *bp, u16 line); 405 int bnx2x_iov_init_one(struct bnx2x *bp, int int_mode_param, int num_vfs_param); 406 void bnx2x_iov_remove_one(struct bnx2x *bp); 407 void bnx2x_iov_free_mem(struct bnx2x *bp); 408 int bnx2x_iov_alloc_mem(struct bnx2x *bp); 409 int bnx2x_iov_nic_init(struct bnx2x *b [all...] |
H A D | bnx2x_cmn.h | 28 #include "bnx2x.h" 87 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 *b [all...] |
H A D | bnx2x_sp.h | 24 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, 328 int (*get_n_elements)(struct bnx2x *bp, 338 int (*check_add)(struct bnx2x *bp, 348 (*check_del)(struct bnx2x *bp, 357 bool (*check_move)(struct bnx2x *b [all...] |
H A D | bnx2x_sriov.c | 22 #include "bnx2x.h" 29 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() 111 static bool bnx2x_validate_vf_sp_objs(struct bnx2x *bp, in bnx2x_validate_vf_sp_objs() 126 void bnx2x_vfop_qctor_dump_tx(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vfop_qctor_dump_tx() 142 void bnx2x_vfop_qctor_dump_rx(struct bnx2x *b [all...] |
H A D | bnx2x_init_ops.h | 45 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 *b [all...] |
H A D | bnx2x_dcb.c | 30 #include "bnx2x.h" 35 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 *b [all...] |
H A D | bnx2x_sp.c | 29 #include "bnx2x.h" 50 static inline void bnx2x_exe_queue_init(struct bnx2x *bp, in bnx2x_exe_queue_init() 81 static inline void bnx2x_exe_queue_free_elem(struct bnx2x *bp, in bnx2x_exe_queue_free_elem() 113 static inline int bnx2x_exe_queue_add(struct bnx2x *bp, in bnx2x_exe_queue_add() 152 struct bnx2x *bp, in __bnx2x_exe_queue_reset_pending() 175 static inline int bnx2x_exe_queue_step(struct bnx2x *bp, in bnx2x_exe_queue_step() 251 struct bnx2x *bp) in bnx2x_exe_queue_alloc_elem() 285 static inline int bnx2x_state_wait(struct bnx2x *bp, int state, in bnx2x_state_wait() 320 static int bnx2x_raw_wait(struct bnx2x *bp, struct bnx2x_raw_obj *raw) in bnx2x_raw_wait() 432 static int __bnx2x_vlan_mac_h_write_trylock(struct bnx2x *b [all...] |
H A D | bnx2x_dcb.h | 33 /* bnx2x currently limits numbers of supported COSes to 3 to be extended to 6 */ 185 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);
|
H A D | bnx2x_main.c | 61 #include "bnx2x.h" 83 #define FW_FILE_NAME_E1 "bnx2x/bnx2x-e1-" FW_FILE_VERSION ".fw" 84 #define FW_FILE_NAME_E1H "bnx2x/bnx2x-e1h-" FW_FILE_VERSION ".fw" 85 #define FW_FILE_NAME_E2 "bnx2x/bnx2x-e2-" FW_FILE_VERSION ".fw" 86 #define FW_FILE_NAME_E1_V15 "bnx2x/bnx2x-e1-" FW_FILE_VERSION_V15 ".fw" 87 #define FW_FILE_NAME_E1H_V15 "bnx2x/bnx2 [all...] |
H A D | bnx2x_ethtool.c | 27 #include "bnx2x.h" 192 static int bnx2x_get_port_type(struct bnx2x *bp) in bnx2x_get_port_type() 224 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_vf_link_ksettings() 264 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_link_ksettings() 371 struct bnx2x *bp = netdev_priv(dev); in bnx2x_set_link_ksettings() 692 static int __bnx2x_get_preset_regs_len(struct bnx2x *bp, u32 preset) in __bnx2x_get_preset_regs_len() 708 static int __bnx2x_get_regs_len(struct bnx2x *bp) in __bnx2x_get_regs_len() 722 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_regs_len() 745 static const u32 *__bnx2x_get_page_addr_ar(struct bnx2x *bp) in __bnx2x_get_page_addr_ar() 755 static u32 __bnx2x_get_page_reg_num(struct bnx2x *b [all...] |
H A D | bnx2x_cmn.c | 36 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() 51 static void bnx2x_add_all_napi(struct bnx2x *bp) in bnx2x_add_all_napi() 61 static int bnx2x_calc_num_queues(struct bnx2x *bp) in bnx2x_calc_num_queues() 86 static inline void bnx2x_move_fp(struct bnx2x *bp, int from, int to) in bnx2x_move_fp() 143 void bnx2x_fill_fw_str(struct bnx2x *bp, char *buf, size_t buf_len) in bnx2x_fill_fw_str() 169 static void bnx2x_shrink_eth_fp(struct bnx2x *bp, int delta) in bnx2x_shrink_eth_fp() 193 static u16 bnx2x_free_tx_pkt(struct bnx2x *b 733 bnx2x_gro_csum(struct bnx2x *bp, struct sk_buff *skb, void (*gro_func)(struct bnx2x*, struct sk_buff*)) bnx2x_gro_csum() argument [all...] |
H A D | Makefile | 6 obj-$(CONFIG_BNX2X) += bnx2x.o 8 bnx2x-y := bnx2x_main.o bnx2x_link.o bnx2x_cmn.o bnx2x_ethtool.o bnx2x_stats.o bnx2x_dcb.o bnx2x_sp.o bnx2x_self_test.o 9 bnx2x-$(CONFIG_BNX2X_SRIOV) += bnx2x_vfpf.o bnx2x_sriov.o
|