/Linux-v5.4/drivers/net/ethernet/qlogic/qed/ |
D | qed_cxt.h | 65 int qed_cxt_get_cid_info(struct qed_hwfn *p_hwfn, 76 int qed_cxt_get_tid_mem_info(struct qed_hwfn *p_hwfn, 88 u32 qed_cxt_get_proto_cid_count(struct qed_hwfn *p_hwfn, 98 int qed_cxt_set_pf_params(struct qed_hwfn *p_hwfn, u32 rdma_tasks); 108 int qed_cxt_cfg_ilt_compute(struct qed_hwfn *p_hwfn, u32 *last_line); 116 u32 qed_cxt_cfg_ilt_compute_excess(struct qed_hwfn *p_hwfn, u32 used_lines); 125 int qed_cxt_mngr_alloc(struct qed_hwfn *p_hwfn); 132 void qed_cxt_mngr_free(struct qed_hwfn *p_hwfn); 141 int qed_cxt_tables_alloc(struct qed_hwfn *p_hwfn); 148 void qed_cxt_mngr_setup(struct qed_hwfn *p_hwfn); [all …]
|
D | qed_mcp.h | 267 struct qed_mcp_link_params *qed_mcp_get_link_params(struct qed_hwfn *); 276 struct qed_mcp_link_state *qed_mcp_get_link_state(struct qed_hwfn *); 286 *qed_mcp_get_link_capabilities(struct qed_hwfn *p_hwfn); 297 int qed_mcp_set_link(struct qed_hwfn *p_hwfn, 311 int qed_mcp_get_mfw_ver(struct qed_hwfn *p_hwfn, 324 int qed_mcp_get_mbi_ver(struct qed_hwfn *p_hwfn, 338 int qed_mcp_get_media_type(struct qed_hwfn *p_hwfn, 353 int qed_mcp_get_transceiver_data(struct qed_hwfn *p_hwfn, 370 int qed_mcp_trans_speed_mask(struct qed_hwfn *p_hwfn, 384 int qed_mcp_get_board_config(struct qed_hwfn *p_hwfn, [all …]
|
D | qed_ooo.h | 87 void qed_ooo_save_history_entry(struct qed_hwfn *p_hwfn, 91 int qed_ooo_alloc(struct qed_hwfn *p_hwfn); 93 void qed_ooo_setup(struct qed_hwfn *p_hwfn); 95 void qed_ooo_free(struct qed_hwfn *p_hwfn); 97 void qed_ooo_release_connection_isles(struct qed_hwfn *p_hwfn, 101 void qed_ooo_release_all_isles(struct qed_hwfn *p_hwfn, 104 void qed_ooo_put_free_buffer(struct qed_hwfn *p_hwfn, 109 qed_ooo_get_free_buffer(struct qed_hwfn *p_hwfn, 112 void qed_ooo_put_ready_buffer(struct qed_hwfn *p_hwfn, 117 qed_ooo_get_ready_buffer(struct qed_hwfn *p_hwfn, [all …]
|
D | qed_int.h | 88 void qed_int_igu_enable_int(struct qed_hwfn *p_hwfn, 98 void qed_int_igu_disable_int(struct qed_hwfn *p_hwfn, 109 u64 qed_int_igu_read_sisr_reg(struct qed_hwfn *p_hwfn); 128 int qed_int_sb_init(struct qed_hwfn *p_hwfn, 141 void qed_int_sb_setup(struct qed_hwfn *p_hwfn, 158 int qed_int_sb_release(struct qed_hwfn *p_hwfn, 180 void qed_int_get_num_sbs(struct qed_hwfn *p_hwfn, 201 int qed_db_rec_handler(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 246 int qed_int_igu_reset_cam(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 256 u16 qed_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id); [all …]
|
D | qed_sp.h | 52 void (*function)(struct qed_hwfn *, 68 int qed_eth_cqe_completion(struct qed_hwfn *p_hwfn, 186 (*qed_spq_async_comp_cb)(struct qed_hwfn *p_hwfn, 193 qed_spq_register_async_cb(struct qed_hwfn *p_hwfn, 198 qed_spq_unregister_async_cb(struct qed_hwfn *p_hwfn, 244 int qed_spq_post(struct qed_hwfn *p_hwfn, 255 int qed_spq_alloc(struct qed_hwfn *p_hwfn); 262 void qed_spq_setup(struct qed_hwfn *p_hwfn); 269 void qed_spq_free(struct qed_hwfn *p_hwfn); 283 qed_spq_get_entry(struct qed_hwfn *p_hwfn, [all …]
|
D | qed_hw.h | 86 void qed_gtt_init(struct qed_hwfn *p_hwfn); 93 void qed_ptt_invalidate(struct qed_hwfn *p_hwfn); 102 int qed_ptt_pool_alloc(struct qed_hwfn *p_hwfn); 109 void qed_ptt_pool_free(struct qed_hwfn *p_hwfn); 119 u32 qed_ptt_get_hw_addr(struct qed_hwfn *p_hwfn, 139 void qed_ptt_set_win(struct qed_hwfn *p_hwfn, 151 struct qed_ptt *qed_get_reserved_ptt(struct qed_hwfn *p_hwfn, 162 void qed_wr(struct qed_hwfn *p_hwfn, 175 u32 qed_rd(struct qed_hwfn *p_hwfn, 189 void qed_memcpy_from(struct qed_hwfn *p_hwfn, [all …]
|
D | qed_vf.h | 727 int qed_vf_pf_set_coalesce(struct qed_hwfn *p_hwfn, 739 int qed_vf_pf_get_coalesce(struct qed_hwfn *p_hwfn, 751 int qed_vf_read_bulletin(struct qed_hwfn *p_hwfn, u8 *p_change); 759 void qed_vf_get_link_params(struct qed_hwfn *p_hwfn, 768 void qed_vf_get_link_state(struct qed_hwfn *p_hwfn, 777 void qed_vf_get_link_caps(struct qed_hwfn *p_hwfn, 786 void qed_vf_get_num_rxqs(struct qed_hwfn *p_hwfn, u8 *num_rxqs); 794 void qed_vf_get_num_txqs(struct qed_hwfn *p_hwfn, u8 *num_txqs); 802 void qed_vf_get_num_cids(struct qed_hwfn *p_hwfn, u8 *num_cids); 810 void qed_vf_get_port_mac(struct qed_hwfn *p_hwfn, u8 *port_mac); [all …]
|
D | qed_sriov.h | 289 bool qed_iov_is_valid_vfid(struct qed_hwfn *p_hwfn, 301 u16 qed_iov_get_next_active_vf(struct qed_hwfn *p_hwfn, u16 rel_vf_id); 303 void qed_iov_bulletin_set_udp_ports(struct qed_hwfn *p_hwfn, 314 int qed_iov_hw_info(struct qed_hwfn *p_hwfn); 326 void *qed_add_tlv(struct qed_hwfn *p_hwfn, u8 **offset, u16 type, u16 length); 334 void qed_dp_tlv_list(struct qed_hwfn *p_hwfn, void *tlvs_list); 343 int qed_iov_alloc(struct qed_hwfn *p_hwfn); 350 void qed_iov_setup(struct qed_hwfn *p_hwfn); 357 void qed_iov_free(struct qed_hwfn *p_hwfn); 374 bool qed_iov_mark_vf_flr(struct qed_hwfn *p_hwfn, u32 *disabled_vfs); [all …]
|
D | qed_l2.h | 134 qed_eth_rx_queue_stop(struct qed_hwfn *p_hwfn, 146 int qed_eth_tx_queue_stop(struct qed_hwfn *p_hwfn, void *p_txq); 171 int qed_sp_eth_vport_start(struct qed_hwfn *p_hwfn, 227 int qed_sp_vport_update(struct qed_hwfn *p_hwfn, 244 int qed_sp_vport_stop(struct qed_hwfn *p_hwfn, u16 opaque_fid, u8 vport_id); 246 int qed_sp_eth_filter_ucast(struct qed_hwfn *p_hwfn, 272 qed_sp_eth_rx_queues_update(struct qed_hwfn *p_hwfn, 295 void qed_arfs_mode_configure(struct qed_hwfn *p_hwfn, 311 qed_configure_rfs_ntuple_filter(struct qed_hwfn *p_hwfn, 380 struct qed_hwfn *p_owner; [all …]
|
D | qed_roce.h | 38 void qed_roce_dpm_dcbx(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 40 static inline void qed_roce_dpm_dcbx(struct qed_hwfn *p_hwfn, in qed_roce_dpm_dcbx() 44 int qed_roce_setup(struct qed_hwfn *p_hwfn); 45 void qed_roce_stop(struct qed_hwfn *p_hwfn); 46 int qed_roce_init_hw(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 47 int qed_roce_alloc_cid(struct qed_hwfn *p_hwfn, u16 *cid); 48 int qed_roce_destroy_qp(struct qed_hwfn *p_hwfn, struct qed_rdma_qp *qp); 50 int qed_roce_query_qp(struct qed_hwfn *p_hwfn, 54 int qed_roce_modify_qp(struct qed_hwfn *p_hwfn,
|
D | qed_rdma.h | 178 void qed_rdma_dpm_bar(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 179 void qed_rdma_dpm_conf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 180 int qed_rdma_info_alloc(struct qed_hwfn *p_hwfn); 181 void qed_rdma_info_free(struct qed_hwfn *p_hwfn); 183 static inline void qed_rdma_dpm_conf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) {} in qed_rdma_dpm_conf() 184 static inline void qed_rdma_dpm_bar(struct qed_hwfn *p_hwfn, in qed_rdma_dpm_bar() 186 static inline int qed_rdma_info_alloc(struct qed_hwfn *p_hwfn) {return -EINVAL;} in qed_rdma_info_alloc() 187 static inline void qed_rdma_info_free(struct qed_hwfn *p_hwfn) {} in qed_rdma_info_free() 191 qed_rdma_bmap_alloc(struct qed_hwfn *p_hwfn, 195 qed_rdma_bmap_free(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, bool check); [all …]
|
D | qed_init_ops.h | 59 int qed_init_run(struct qed_hwfn *p_hwfn, 73 int qed_init_alloc(struct qed_hwfn *p_hwfn); 81 void qed_init_free(struct qed_hwfn *p_hwfn); 89 void qed_init_clear_rt_data(struct qed_hwfn *p_hwfn); 99 void qed_init_store_rt_reg(struct qed_hwfn *p_hwfn, 118 void qed_init_store_rt_agg(struct qed_hwfn *p_hwfn, 133 void qed_gtt_init(struct qed_hwfn *p_hwfn);
|
D | qed_dev_api.h | 180 int qed_hw_start_fastpath(struct qed_hwfn *p_hwfn); 211 struct qed_ptt *qed_ptt_acquire(struct qed_hwfn *p_hwfn); 223 void qed_ptt_release(struct qed_hwfn *p_hwfn, 269 qed_dmae_host2grc(struct qed_hwfn *p_hwfn, 286 int qed_dmae_grc2host(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, 301 int qed_dmae_host2host(struct qed_hwfn *p_hwfn, 346 int qed_fw_l2_queue(struct qed_hwfn *p_hwfn, 359 int qed_fw_vport(struct qed_hwfn *p_hwfn, 372 int qed_fw_rss_eng(struct qed_hwfn *p_hwfn, 489 int qed_final_cleanup(struct qed_hwfn *p_hwfn, [all …]
|
D | qed_fcoe.h | 52 int qed_fcoe_alloc(struct qed_hwfn *p_hwfn); 54 void qed_fcoe_setup(struct qed_hwfn *p_hwfn); 56 void qed_fcoe_free(struct qed_hwfn *p_hwfn); 60 static inline int qed_fcoe_alloc(struct qed_hwfn *p_hwfn) in qed_fcoe_alloc() 65 static inline void qed_fcoe_setup(struct qed_hwfn *p_hwfn) {} in qed_fcoe_setup() 66 static inline void qed_fcoe_free(struct qed_hwfn *p_hwfn) {} in qed_fcoe_free()
|
D | qed_iscsi.h | 60 int qed_iscsi_alloc(struct qed_hwfn *p_hwfn); 62 void qed_iscsi_setup(struct qed_hwfn *p_hwfn); 64 void qed_iscsi_free(struct qed_hwfn *p_hwfn); 75 static inline int qed_iscsi_alloc(struct qed_hwfn *p_hwfn) in qed_iscsi_alloc() 80 static inline void qed_iscsi_setup(struct qed_hwfn *p_hwfn) {} in qed_iscsi_setup() 82 static inline void qed_iscsi_free(struct qed_hwfn *p_hwfn) {} in qed_iscsi_free()
|
D | qed_iwarp.h | 184 int qed_iwarp_alloc(struct qed_hwfn *p_hwfn); 186 int qed_iwarp_setup(struct qed_hwfn *p_hwfn, 189 void qed_iwarp_init_fw_ramrod(struct qed_hwfn *p_hwfn, 192 int qed_iwarp_stop(struct qed_hwfn *p_hwfn); 194 void qed_iwarp_resc_free(struct qed_hwfn *p_hwfn); 196 void qed_iwarp_init_devinfo(struct qed_hwfn *p_hwfn); 198 void qed_iwarp_init_hw(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt); 200 int qed_iwarp_create_qp(struct qed_hwfn *p_hwfn, 204 int qed_iwarp_modify_qp(struct qed_hwfn *p_hwfn, struct qed_rdma_qp *qp, 207 int qed_iwarp_destroy_qp(struct qed_hwfn *p_hwfn, struct qed_rdma_qp *qp); [all …]
|
D | qed_spq.c | 73 static void qed_spq_blocking_cb(struct qed_hwfn *p_hwfn, in qed_spq_blocking_cb() 87 static int __qed_spq_block(struct qed_hwfn *p_hwfn, in __qed_spq_block() 115 static int qed_spq_block(struct qed_hwfn *p_hwfn, in qed_spq_block() 176 static int qed_spq_fill_entry(struct qed_hwfn *p_hwfn, in qed_spq_fill_entry() 211 static void qed_spq_hw_initialize(struct qed_hwfn *p_hwfn, in qed_spq_hw_initialize() 251 static int qed_spq_hw_post(struct qed_hwfn *p_hwfn, in qed_spq_hw_post() 293 qed_async_event_completion(struct qed_hwfn *p_hwfn, in qed_async_event_completion() 314 qed_spq_register_async_cb(struct qed_hwfn *p_hwfn, in qed_spq_register_async_cb() 326 qed_spq_unregister_async_cb(struct qed_hwfn *p_hwfn, in qed_spq_unregister_async_cb() 338 void qed_eq_prod_update(struct qed_hwfn *p_hwfn, u16 prod) in qed_eq_prod_update() [all …]
|
D | qed_dcbx.h | 111 int qed_dcbx_get_config_params(struct qed_hwfn *, struct qed_dcbx_set *); 113 int qed_dcbx_config_params(struct qed_hwfn *, 119 qed_dcbx_mib_update_event(struct qed_hwfn *, 122 int qed_dcbx_info_alloc(struct qed_hwfn *p_hwfn); 123 void qed_dcbx_info_free(struct qed_hwfn *p_hwfn); 129 u8 qed_dcbx_get_priority_tc(struct qed_hwfn *p_hwfn, u8 pri);
|
D | qed_hw.c | 70 int qed_ptt_pool_alloc(struct qed_hwfn *p_hwfn) in qed_ptt_pool_alloc() 95 void qed_ptt_invalidate(struct qed_hwfn *p_hwfn) in qed_ptt_invalidate() 106 void qed_ptt_pool_free(struct qed_hwfn *p_hwfn) in qed_ptt_pool_free() 112 struct qed_ptt *qed_ptt_acquire(struct qed_hwfn *p_hwfn) in qed_ptt_acquire() 141 void qed_ptt_release(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_ptt_release() 148 u32 qed_ptt_get_hw_addr(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_ptt_get_hw_addr() 166 void qed_ptt_set_win(struct qed_hwfn *p_hwfn, in qed_ptt_set_win() 190 static u32 qed_set_ptt(struct qed_hwfn *p_hwfn, in qed_set_ptt() 213 struct qed_ptt *qed_get_reserved_ptt(struct qed_hwfn *p_hwfn, in qed_get_reserved_ptt() 225 void qed_wr(struct qed_hwfn *p_hwfn, in qed_wr() [all …]
|
D | qed_rdma.c | 62 int qed_rdma_bmap_alloc(struct qed_hwfn *p_hwfn, in qed_rdma_bmap_alloc() 80 int qed_rdma_bmap_alloc_id(struct qed_hwfn *p_hwfn, in qed_rdma_bmap_alloc_id() 95 void qed_bmap_set_id(struct qed_hwfn *p_hwfn, in qed_bmap_set_id() 104 void qed_bmap_release_id(struct qed_hwfn *p_hwfn, in qed_bmap_release_id() 123 int qed_bmap_test_id(struct qed_hwfn *p_hwfn, in qed_bmap_test_id() 140 return FEAT_NUM((struct qed_hwfn *)p_hwfn, QED_PF_L2_QUE) + rel_sb_id; in qed_rdma_get_sb_id() 143 int qed_rdma_info_alloc(struct qed_hwfn *p_hwfn) in qed_rdma_info_alloc() 157 void qed_rdma_info_free(struct qed_hwfn *p_hwfn) in qed_rdma_info_free() 163 static int qed_rdma_alloc(struct qed_hwfn *p_hwfn) in qed_rdma_alloc() 317 void qed_rdma_bmap_free(struct qed_hwfn *p_hwfn, in qed_rdma_bmap_free() [all …]
|
D | qed_mcp.c | 76 bool qed_mcp_is_init(struct qed_hwfn *p_hwfn) in qed_mcp_is_init() 83 void qed_mcp_cmd_port_init(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_cmd_port_init() 96 void qed_mcp_read_mb(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_read_mb() 124 qed_mcp_cmd_add_elem(struct qed_hwfn *p_hwfn, in qed_mcp_cmd_add_elem() 142 static void qed_mcp_cmd_del_elem(struct qed_hwfn *p_hwfn, in qed_mcp_cmd_del_elem() 150 static struct qed_mcp_cmd_elem *qed_mcp_cmd_get_elem(struct qed_hwfn *p_hwfn, in qed_mcp_cmd_get_elem() 163 int qed_mcp_free(struct qed_hwfn *p_hwfn) in qed_mcp_free() 190 static int qed_load_mcp_offsets(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_load_mcp_offsets() 261 int qed_mcp_cmd_init(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_cmd_init() 299 static void qed_mcp_reread_offsets(struct qed_hwfn *p_hwfn, in qed_mcp_reread_offsets() [all …]
|
D | qed_ooo.c | 47 *qed_ooo_seek_archipelago(struct qed_hwfn *p_hwfn, in qed_ooo_seek_archipelago() 66 static struct qed_ooo_isle *qed_ooo_seek_isle(struct qed_hwfn *p_hwfn, in qed_ooo_seek_isle() 90 void qed_ooo_save_history_entry(struct qed_hwfn *p_hwfn, in qed_ooo_save_history_entry() 102 int qed_ooo_alloc(struct qed_hwfn *p_hwfn) in qed_ooo_alloc() 189 void qed_ooo_release_connection_isles(struct qed_hwfn *p_hwfn, in qed_ooo_release_connection_isles() 222 void qed_ooo_release_all_isles(struct qed_hwfn *p_hwfn, in qed_ooo_release_all_isles() 261 void qed_ooo_setup(struct qed_hwfn *p_hwfn) in qed_ooo_setup() 270 void qed_ooo_free(struct qed_hwfn *p_hwfn) in qed_ooo_free() 301 void qed_ooo_put_free_buffer(struct qed_hwfn *p_hwfn, in qed_ooo_put_free_buffer() 308 struct qed_ooo_buffer *qed_ooo_get_free_buffer(struct qed_hwfn *p_hwfn, in qed_ooo_get_free_buffer() [all …]
|
D | qed_sriov.c | 47 static int qed_sriov_eqe_event(struct qed_hwfn *p_hwfn, 51 static int qed_iov_bulletin_set_mac(struct qed_hwfn *p_hwfn, u8 *mac, int vfid); 69 static int qed_sp_vf_start(struct qed_hwfn *p_hwfn, struct qed_vf_info *p_vf) in qed_sp_vf_start() 130 static int qed_sp_vf_stop(struct qed_hwfn *p_hwfn, in qed_sp_vf_stop() 157 bool qed_iov_is_valid_vfid(struct qed_hwfn *p_hwfn, in qed_iov_is_valid_vfid() 181 static struct qed_vf_info *qed_iov_get_vf_info(struct qed_hwfn *p_hwfn, in qed_iov_get_vf_info() 221 static bool qed_iov_validate_queue_mode(struct qed_hwfn *p_hwfn, in qed_iov_validate_queue_mode() 250 static bool qed_iov_validate_rxq(struct qed_hwfn *p_hwfn, in qed_iov_validate_rxq() 266 static bool qed_iov_validate_txq(struct qed_hwfn *p_hwfn, in qed_iov_validate_txq() 282 static bool qed_iov_validate_sb(struct qed_hwfn *p_hwfn, in qed_iov_validate_sb() [all …]
|
D | qed_vf.c | 39 static void *qed_vf_pf_prep(struct qed_hwfn *p_hwfn, u16 type, u16 length) in qed_vf_pf_prep() 73 static void qed_vf_pf_req_end(struct qed_hwfn *p_hwfn, int req_status) in qed_vf_pf_req_end() 84 static int qed_send_msg2pf(struct qed_hwfn *p_hwfn, u8 *done, u32 resp_size) in qed_send_msg2pf() 156 static void qed_vf_pf_add_qid(struct qed_hwfn *p_hwfn, in qed_vf_pf_add_qid() 172 static int _qed_vf_pf_release(struct qed_hwfn *p_hwfn, bool b_final) in _qed_vf_pf_release() 222 int qed_vf_pf_release(struct qed_hwfn *p_hwfn) in qed_vf_pf_release() 228 static void qed_vf_pf_acquire_reduce_resc(struct qed_hwfn *p_hwfn, in qed_vf_pf_acquire_reduce_resc() 258 static int qed_vf_pf_acquire(struct qed_hwfn *p_hwfn) in qed_vf_pf_acquire() 438 u32 qed_vf_hw_bar_size(struct qed_hwfn *p_hwfn, enum BAR_ID bar_id) in qed_vf_hw_bar_size() 453 int qed_vf_hw_prepare(struct qed_hwfn *p_hwfn) in qed_vf_hw_prepare() [all …]
|
D | qed_dev.c | 87 static void qed_db_recovery_dp_entry(struct qed_hwfn *p_hwfn, in qed_db_recovery_dp_entry() 133 static struct qed_hwfn *qed_db_rec_find_hwfn(struct qed_dev *cdev, in qed_db_rec_find_hwfn() 136 struct qed_hwfn *p_hwfn; in qed_db_rec_find_hwfn() 156 struct qed_hwfn *p_hwfn; in qed_db_recovery_add() 202 struct qed_hwfn *p_hwfn; in qed_db_recovery_del() 242 static int qed_db_recovery_setup(struct qed_hwfn *p_hwfn) in qed_db_recovery_setup() 260 static void qed_db_recovery_teardown(struct qed_hwfn *p_hwfn) in qed_db_recovery_teardown() 283 void qed_db_recovery_dp(struct qed_hwfn *p_hwfn) in qed_db_recovery_dp() 302 static void qed_db_recovery_ring(struct qed_hwfn *p_hwfn, in qed_db_recovery_ring() 344 void qed_db_recovery_execute(struct qed_hwfn *p_hwfn) in qed_db_recovery_execute() [all …]
|