Home
last modified time | relevance | path

Searched refs:qed_hwfn (Results 1 – 25 of 46) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_mcp.h275 struct qed_mcp_link_params *qed_mcp_get_link_params(struct qed_hwfn *);
284 struct qed_mcp_link_state *qed_mcp_get_link_state(struct qed_hwfn *);
294 *qed_mcp_get_link_capabilities(struct qed_hwfn *p_hwfn);
305 int qed_mcp_set_link(struct qed_hwfn *p_hwfn,
319 int qed_mcp_get_mfw_ver(struct qed_hwfn *p_hwfn,
332 int qed_mcp_get_mbi_ver(struct qed_hwfn *p_hwfn,
346 int qed_mcp_get_media_type(struct qed_hwfn *p_hwfn,
361 int qed_mcp_get_transceiver_data(struct qed_hwfn *p_hwfn,
378 int qed_mcp_trans_speed_mask(struct qed_hwfn *p_hwfn,
392 int qed_mcp_get_board_config(struct qed_hwfn *p_hwfn,
[all …]
Dqed_ooo.h61 void qed_ooo_save_history_entry(struct qed_hwfn *p_hwfn,
65 int qed_ooo_alloc(struct qed_hwfn *p_hwfn);
67 void qed_ooo_setup(struct qed_hwfn *p_hwfn);
69 void qed_ooo_free(struct qed_hwfn *p_hwfn);
71 void qed_ooo_release_connection_isles(struct qed_hwfn *p_hwfn,
75 void qed_ooo_release_all_isles(struct qed_hwfn *p_hwfn,
78 void qed_ooo_put_free_buffer(struct qed_hwfn *p_hwfn,
83 qed_ooo_get_free_buffer(struct qed_hwfn *p_hwfn,
86 void qed_ooo_put_ready_buffer(struct qed_hwfn *p_hwfn,
91 qed_ooo_get_ready_buffer(struct qed_hwfn *p_hwfn,
[all …]
Dqed_int.h62 void qed_int_igu_enable_int(struct qed_hwfn *p_hwfn,
72 void qed_int_igu_disable_int(struct qed_hwfn *p_hwfn,
83 u64 qed_int_igu_read_sisr_reg(struct qed_hwfn *p_hwfn);
102 int qed_int_sb_init(struct qed_hwfn *p_hwfn,
115 void qed_int_sb_setup(struct qed_hwfn *p_hwfn,
132 int qed_int_sb_release(struct qed_hwfn *p_hwfn,
154 void qed_int_get_num_sbs(struct qed_hwfn *p_hwfn,
186 int qed_db_rec_handler(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
231 int qed_int_igu_reset_cam(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
241 u16 qed_get_igu_sb_id(struct qed_hwfn *p_hwfn, u16 sb_id);
[all …]
Dqed_sp.h26 void (*function)(struct qed_hwfn *,
42 int qed_eth_cqe_completion(struct qed_hwfn *p_hwfn,
157 typedef int (*qed_spq_async_comp_cb)(struct qed_hwfn *p_hwfn, u8 opcode,
162 qed_spq_register_async_cb(struct qed_hwfn *p_hwfn,
167 qed_spq_unregister_async_cb(struct qed_hwfn *p_hwfn,
213 int qed_spq_post(struct qed_hwfn *p_hwfn,
224 int qed_spq_alloc(struct qed_hwfn *p_hwfn);
231 void qed_spq_setup(struct qed_hwfn *p_hwfn);
238 void qed_spq_free(struct qed_hwfn *p_hwfn);
252 qed_spq_get_entry(struct qed_hwfn *p_hwfn,
[all …]
Dqed_cxt.h39 int qed_cxt_get_cid_info(struct qed_hwfn *p_hwfn,
50 int qed_cxt_get_tid_mem_info(struct qed_hwfn *p_hwfn,
63 u32 qed_cxt_get_proto_cid_count(struct qed_hwfn *p_hwfn,
73 int qed_cxt_set_pf_params(struct qed_hwfn *p_hwfn, u32 rdma_tasks);
83 int qed_cxt_cfg_ilt_compute(struct qed_hwfn *p_hwfn, u32 *last_line);
91 u32 qed_cxt_cfg_ilt_compute_excess(struct qed_hwfn *p_hwfn, u32 used_lines);
100 int qed_cxt_mngr_alloc(struct qed_hwfn *p_hwfn);
107 void qed_cxt_mngr_free(struct qed_hwfn *p_hwfn);
116 int qed_cxt_tables_alloc(struct qed_hwfn *p_hwfn);
123 void qed_cxt_mngr_setup(struct qed_hwfn *p_hwfn);
[all …]
Dqed_hw.h60 void qed_gtt_init(struct qed_hwfn *p_hwfn);
67 void qed_ptt_invalidate(struct qed_hwfn *p_hwfn);
76 int qed_ptt_pool_alloc(struct qed_hwfn *p_hwfn);
83 void qed_ptt_pool_free(struct qed_hwfn *p_hwfn);
93 u32 qed_ptt_get_hw_addr(struct qed_hwfn *p_hwfn,
113 void qed_ptt_set_win(struct qed_hwfn *p_hwfn,
125 struct qed_ptt *qed_get_reserved_ptt(struct qed_hwfn *p_hwfn,
136 void qed_wr(struct qed_hwfn *p_hwfn,
149 u32 qed_rd(struct qed_hwfn *p_hwfn,
163 void qed_memcpy_from(struct qed_hwfn *p_hwfn,
[all …]
Dqed_vf.h700 int qed_vf_pf_set_coalesce(struct qed_hwfn *p_hwfn,
712 int qed_vf_pf_get_coalesce(struct qed_hwfn *p_hwfn,
724 int qed_vf_read_bulletin(struct qed_hwfn *p_hwfn, u8 *p_change);
732 void qed_vf_get_link_params(struct qed_hwfn *p_hwfn,
741 void qed_vf_get_link_state(struct qed_hwfn *p_hwfn,
750 void qed_vf_get_link_caps(struct qed_hwfn *p_hwfn,
759 void qed_vf_get_num_rxqs(struct qed_hwfn *p_hwfn, u8 *num_rxqs);
767 void qed_vf_get_num_txqs(struct qed_hwfn *p_hwfn, u8 *num_txqs);
775 void qed_vf_get_num_cids(struct qed_hwfn *p_hwfn, u8 *num_cids);
783 void qed_vf_get_port_mac(struct qed_hwfn *p_hwfn, u8 *port_mac);
[all …]
Dqed_sriov.h266 bool qed_iov_is_valid_vfid(struct qed_hwfn *p_hwfn,
278 u16 qed_iov_get_next_active_vf(struct qed_hwfn *p_hwfn, u16 rel_vf_id);
280 void qed_iov_bulletin_set_udp_ports(struct qed_hwfn *p_hwfn,
291 int qed_iov_hw_info(struct qed_hwfn *p_hwfn);
303 void *qed_add_tlv(struct qed_hwfn *p_hwfn, u8 **offset, u16 type, u16 length);
311 void qed_dp_tlv_list(struct qed_hwfn *p_hwfn, void *tlvs_list);
320 int qed_iov_alloc(struct qed_hwfn *p_hwfn);
327 void qed_iov_setup(struct qed_hwfn *p_hwfn);
334 void qed_iov_free(struct qed_hwfn *p_hwfn);
351 bool qed_iov_mark_vf_flr(struct qed_hwfn *p_hwfn, u32 *disabled_vfs);
[all …]
Dqed_l2.h109 qed_eth_rx_queue_stop(struct qed_hwfn *p_hwfn,
121 int qed_eth_tx_queue_stop(struct qed_hwfn *p_hwfn, void *p_txq);
146 int qed_sp_eth_vport_start(struct qed_hwfn *p_hwfn,
202 int qed_sp_vport_update(struct qed_hwfn *p_hwfn,
219 int qed_sp_vport_stop(struct qed_hwfn *p_hwfn, u16 opaque_fid, u8 vport_id);
221 int qed_sp_eth_filter_ucast(struct qed_hwfn *p_hwfn,
247 qed_sp_eth_rx_queues_update(struct qed_hwfn *p_hwfn,
270 void qed_arfs_mode_configure(struct qed_hwfn *p_hwfn,
286 qed_configure_rfs_ntuple_filter(struct qed_hwfn *p_hwfn,
355 struct qed_hwfn *p_owner;
[all …]
Dqed_roce.h13 void qed_roce_dpm_dcbx(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
15 static inline void qed_roce_dpm_dcbx(struct qed_hwfn *p_hwfn, in qed_roce_dpm_dcbx()
19 int qed_roce_setup(struct qed_hwfn *p_hwfn);
20 void qed_roce_stop(struct qed_hwfn *p_hwfn);
21 int qed_roce_init_hw(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
22 int qed_roce_alloc_cid(struct qed_hwfn *p_hwfn, u16 *cid);
23 int qed_roce_destroy_qp(struct qed_hwfn *p_hwfn, struct qed_rdma_qp *qp);
25 int qed_roce_query_qp(struct qed_hwfn *p_hwfn,
29 int qed_roce_modify_qp(struct qed_hwfn *p_hwfn,
Dqed_rdma.h172 void qed_rdma_dpm_bar(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
173 void qed_rdma_dpm_conf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
174 int qed_rdma_info_alloc(struct qed_hwfn *p_hwfn);
175 void qed_rdma_info_free(struct qed_hwfn *p_hwfn);
177 static inline void qed_rdma_dpm_conf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) {} in qed_rdma_dpm_conf()
178 static inline void qed_rdma_dpm_bar(struct qed_hwfn *p_hwfn, in qed_rdma_dpm_bar()
180 static inline int qed_rdma_info_alloc(struct qed_hwfn *p_hwfn) {return -EINVAL;} in qed_rdma_info_alloc()
181 static inline void qed_rdma_info_free(struct qed_hwfn *p_hwfn) {} in qed_rdma_info_free()
185 qed_rdma_bmap_alloc(struct qed_hwfn *p_hwfn,
189 qed_rdma_bmap_free(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, bool check);
[all …]
Dqed_dev_api.h154 int qed_hw_start_fastpath(struct qed_hwfn *p_hwfn);
185 struct qed_ptt *qed_ptt_acquire(struct qed_hwfn *p_hwfn);
197 void qed_ptt_release(struct qed_hwfn *p_hwfn,
219 qed_dmae_host2grc(struct qed_hwfn *p_hwfn,
236 int qed_dmae_grc2host(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
251 int qed_dmae_host2host(struct qed_hwfn *p_hwfn,
270 int qed_fw_l2_queue(struct qed_hwfn *p_hwfn,
283 int qed_fw_vport(struct qed_hwfn *p_hwfn,
296 int qed_fw_rss_eng(struct qed_hwfn *p_hwfn,
413 int qed_final_cleanup(struct qed_hwfn *p_hwfn,
[all …]
Dqed_fcoe.h26 int qed_fcoe_alloc(struct qed_hwfn *p_hwfn);
28 void qed_fcoe_setup(struct qed_hwfn *p_hwfn);
30 void qed_fcoe_free(struct qed_hwfn *p_hwfn);
34 static inline int qed_fcoe_alloc(struct qed_hwfn *p_hwfn) in qed_fcoe_alloc()
39 static inline void qed_fcoe_setup(struct qed_hwfn *p_hwfn) {} in qed_fcoe_setup()
40 static inline void qed_fcoe_free(struct qed_hwfn *p_hwfn) {} in qed_fcoe_free()
Dqed_iscsi.h30 int qed_iscsi_alloc(struct qed_hwfn *p_hwfn);
32 void qed_iscsi_setup(struct qed_hwfn *p_hwfn);
34 void qed_iscsi_free(struct qed_hwfn *p_hwfn);
45 static inline int qed_iscsi_alloc(struct qed_hwfn *p_hwfn) in qed_iscsi_alloc()
50 static inline void qed_iscsi_setup(struct qed_hwfn *p_hwfn) {} in qed_iscsi_setup()
52 static inline void qed_iscsi_free(struct qed_hwfn *p_hwfn) {} in qed_iscsi_free()
Dqed_iwarp.h159 int qed_iwarp_alloc(struct qed_hwfn *p_hwfn);
161 int qed_iwarp_setup(struct qed_hwfn *p_hwfn,
164 void qed_iwarp_init_fw_ramrod(struct qed_hwfn *p_hwfn,
167 int qed_iwarp_stop(struct qed_hwfn *p_hwfn);
169 void qed_iwarp_resc_free(struct qed_hwfn *p_hwfn);
171 void qed_iwarp_init_devinfo(struct qed_hwfn *p_hwfn);
173 void qed_iwarp_init_hw(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
175 int qed_iwarp_create_qp(struct qed_hwfn *p_hwfn,
179 int qed_iwarp_modify_qp(struct qed_hwfn *p_hwfn, struct qed_rdma_qp *qp,
182 int qed_iwarp_destroy_qp(struct qed_hwfn *p_hwfn, struct qed_rdma_qp *qp);
[all …]
Dqed_init_ops.h33 int qed_init_run(struct qed_hwfn *p_hwfn,
47 int qed_init_alloc(struct qed_hwfn *p_hwfn);
55 void qed_init_free(struct qed_hwfn *p_hwfn);
65 void qed_init_store_rt_reg(struct qed_hwfn *p_hwfn,
84 void qed_init_store_rt_agg(struct qed_hwfn *p_hwfn,
99 void qed_gtt_init(struct qed_hwfn *p_hwfn);
Dqed_spq.c47 static void qed_spq_blocking_cb(struct qed_hwfn *p_hwfn, in qed_spq_blocking_cb()
61 static int __qed_spq_block(struct qed_hwfn *p_hwfn, in __qed_spq_block()
89 static int qed_spq_block(struct qed_hwfn *p_hwfn, in qed_spq_block()
154 static int qed_spq_fill_entry(struct qed_hwfn *p_hwfn, in qed_spq_fill_entry()
189 static void qed_spq_hw_initialize(struct qed_hwfn *p_hwfn, in qed_spq_hw_initialize()
229 static int qed_spq_hw_post(struct qed_hwfn *p_hwfn, in qed_spq_hw_post()
271 qed_async_event_completion(struct qed_hwfn *p_hwfn, in qed_async_event_completion()
292 qed_spq_register_async_cb(struct qed_hwfn *p_hwfn, in qed_spq_register_async_cb()
304 qed_spq_unregister_async_cb(struct qed_hwfn *p_hwfn, in qed_spq_unregister_async_cb()
316 void qed_eq_prod_update(struct qed_hwfn *p_hwfn, u16 prod) in qed_eq_prod_update()
[all …]
Dqed_rdma.c37 int qed_rdma_bmap_alloc(struct qed_hwfn *p_hwfn, in qed_rdma_bmap_alloc()
55 int qed_rdma_bmap_alloc_id(struct qed_hwfn *p_hwfn, in qed_rdma_bmap_alloc_id()
70 void qed_bmap_set_id(struct qed_hwfn *p_hwfn, in qed_bmap_set_id()
79 void qed_bmap_release_id(struct qed_hwfn *p_hwfn, in qed_bmap_release_id()
98 int qed_bmap_test_id(struct qed_hwfn *p_hwfn, in qed_bmap_test_id()
115 return FEAT_NUM((struct qed_hwfn *)p_hwfn, QED_PF_L2_QUE) + rel_sb_id; in qed_rdma_get_sb_id()
118 int qed_rdma_info_alloc(struct qed_hwfn *p_hwfn) in qed_rdma_info_alloc()
132 void qed_rdma_info_free(struct qed_hwfn *p_hwfn) in qed_rdma_info_free()
138 static int qed_rdma_alloc(struct qed_hwfn *p_hwfn) in qed_rdma_alloc()
318 void qed_rdma_bmap_free(struct qed_hwfn *p_hwfn, in qed_rdma_bmap_free()
[all …]
Dqed_dcbx.h87 int qed_dcbx_get_config_params(struct qed_hwfn *, struct qed_dcbx_set *);
89 int qed_dcbx_config_params(struct qed_hwfn *,
95 qed_dcbx_mib_update_event(struct qed_hwfn *,
98 int qed_dcbx_info_alloc(struct qed_hwfn *p_hwfn);
99 void qed_dcbx_info_free(struct qed_hwfn *p_hwfn);
105 u8 qed_dcbx_get_priority_tc(struct qed_hwfn *p_hwfn, u8 pri);
Dqed_hw.c44 int qed_ptt_pool_alloc(struct qed_hwfn *p_hwfn) in qed_ptt_pool_alloc()
69 void qed_ptt_invalidate(struct qed_hwfn *p_hwfn) in qed_ptt_invalidate()
80 void qed_ptt_pool_free(struct qed_hwfn *p_hwfn) in qed_ptt_pool_free()
86 struct qed_ptt *qed_ptt_acquire(struct qed_hwfn *p_hwfn) in qed_ptt_acquire()
115 void qed_ptt_release(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_ptt_release()
122 u32 qed_ptt_get_hw_addr(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_ptt_get_hw_addr()
140 void qed_ptt_set_win(struct qed_hwfn *p_hwfn, in qed_ptt_set_win()
164 static u32 qed_set_ptt(struct qed_hwfn *p_hwfn, in qed_set_ptt()
187 struct qed_ptt *qed_get_reserved_ptt(struct qed_hwfn *p_hwfn, in qed_get_reserved_ptt()
199 void qed_wr(struct qed_hwfn *p_hwfn, in qed_wr()
[all …]
Dqed_mcp.c52 bool qed_mcp_is_init(struct qed_hwfn *p_hwfn) in qed_mcp_is_init()
59 void qed_mcp_cmd_port_init(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_cmd_port_init()
72 void qed_mcp_read_mb(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_read_mb()
100 qed_mcp_cmd_add_elem(struct qed_hwfn *p_hwfn, in qed_mcp_cmd_add_elem()
118 static void qed_mcp_cmd_del_elem(struct qed_hwfn *p_hwfn, in qed_mcp_cmd_del_elem()
126 static struct qed_mcp_cmd_elem *qed_mcp_cmd_get_elem(struct qed_hwfn *p_hwfn, in qed_mcp_cmd_get_elem()
139 int qed_mcp_free(struct qed_hwfn *p_hwfn) in qed_mcp_free()
166 static int qed_load_mcp_offsets(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_load_mcp_offsets()
237 int qed_mcp_cmd_init(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_cmd_init()
275 static void qed_mcp_reread_offsets(struct qed_hwfn *p_hwfn, in qed_mcp_reread_offsets()
[all …]
Dqed_ooo.c21 *qed_ooo_seek_archipelago(struct qed_hwfn *p_hwfn, in qed_ooo_seek_archipelago()
40 static struct qed_ooo_isle *qed_ooo_seek_isle(struct qed_hwfn *p_hwfn, in qed_ooo_seek_isle()
64 void qed_ooo_save_history_entry(struct qed_hwfn *p_hwfn, in qed_ooo_save_history_entry()
76 int qed_ooo_alloc(struct qed_hwfn *p_hwfn) in qed_ooo_alloc()
163 void qed_ooo_release_connection_isles(struct qed_hwfn *p_hwfn, in qed_ooo_release_connection_isles()
196 void qed_ooo_release_all_isles(struct qed_hwfn *p_hwfn, in qed_ooo_release_all_isles()
235 void qed_ooo_setup(struct qed_hwfn *p_hwfn) in qed_ooo_setup()
244 void qed_ooo_free(struct qed_hwfn *p_hwfn) in qed_ooo_free()
275 void qed_ooo_put_free_buffer(struct qed_hwfn *p_hwfn, in qed_ooo_put_free_buffer()
282 struct qed_ooo_buffer *qed_ooo_get_free_buffer(struct qed_hwfn *p_hwfn, in qed_ooo_get_free_buffer()
[all …]
Dqed_sriov.c22 static int qed_sriov_eqe_event(struct qed_hwfn *p_hwfn,
26 static int qed_iov_bulletin_set_mac(struct qed_hwfn *p_hwfn, u8 *mac, int vfid);
44 static int qed_sp_vf_start(struct qed_hwfn *p_hwfn, struct qed_vf_info *p_vf) in qed_sp_vf_start()
106 static int qed_sp_vf_stop(struct qed_hwfn *p_hwfn, in qed_sp_vf_stop()
133 bool qed_iov_is_valid_vfid(struct qed_hwfn *p_hwfn, in qed_iov_is_valid_vfid()
157 static struct qed_vf_info *qed_iov_get_vf_info(struct qed_hwfn *p_hwfn, in qed_iov_get_vf_info()
197 static bool qed_iov_validate_queue_mode(struct qed_hwfn *p_hwfn, in qed_iov_validate_queue_mode()
226 static bool qed_iov_validate_rxq(struct qed_hwfn *p_hwfn, in qed_iov_validate_rxq()
242 static bool qed_iov_validate_txq(struct qed_hwfn *p_hwfn, in qed_iov_validate_txq()
258 static bool qed_iov_validate_sb(struct qed_hwfn *p_hwfn, in qed_iov_validate_sb()
[all …]
Dqed_vf.c13 static void *qed_vf_pf_prep(struct qed_hwfn *p_hwfn, u16 type, u16 length) in qed_vf_pf_prep()
47 static void qed_vf_pf_req_end(struct qed_hwfn *p_hwfn, int req_status) in qed_vf_pf_req_end()
63 static int qed_send_msg2pf(struct qed_hwfn *p_hwfn, u8 *done, u32 resp_size) in qed_send_msg2pf()
143 static void qed_vf_pf_add_qid(struct qed_hwfn *p_hwfn, in qed_vf_pf_add_qid()
159 static int _qed_vf_pf_release(struct qed_hwfn *p_hwfn, bool b_final) in _qed_vf_pf_release()
209 int qed_vf_pf_release(struct qed_hwfn *p_hwfn) in qed_vf_pf_release()
215 static void qed_vf_pf_acquire_reduce_resc(struct qed_hwfn *p_hwfn, in qed_vf_pf_acquire_reduce_resc()
245 static int qed_vf_pf_acquire(struct qed_hwfn *p_hwfn) in qed_vf_pf_acquire()
425 u32 qed_vf_hw_bar_size(struct qed_hwfn *p_hwfn, enum BAR_ID bar_id) in qed_vf_hw_bar_size()
440 int qed_vf_hw_prepare(struct qed_hwfn *p_hwfn) in qed_vf_hw_prepare()
[all …]
Dqed_dev.c61 static void qed_db_recovery_dp_entry(struct qed_hwfn *p_hwfn, in qed_db_recovery_dp_entry()
107 static struct qed_hwfn *qed_db_rec_find_hwfn(struct qed_dev *cdev, in qed_db_rec_find_hwfn()
110 struct qed_hwfn *p_hwfn; in qed_db_rec_find_hwfn()
130 struct qed_hwfn *p_hwfn; in qed_db_recovery_add()
176 struct qed_hwfn *p_hwfn; in qed_db_recovery_del()
216 static int qed_db_recovery_setup(struct qed_hwfn *p_hwfn) in qed_db_recovery_setup()
234 static void qed_db_recovery_teardown(struct qed_hwfn *p_hwfn) in qed_db_recovery_teardown()
257 void qed_db_recovery_dp(struct qed_hwfn *p_hwfn) in qed_db_recovery_dp()
276 static void qed_db_recovery_ring(struct qed_hwfn *p_hwfn, in qed_db_recovery_ring()
318 void qed_db_recovery_execute(struct qed_hwfn *p_hwfn) in qed_db_recovery_execute()
[all …]

12