Home
last modified time | relevance | path

Searched refs:p_hwfn (Results 26 – 49 of 49) sorted by relevance

12

/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_hw.h62 void qed_gtt_init(struct qed_hwfn *p_hwfn);
80 int qed_ptt_pool_alloc(struct qed_hwfn *p_hwfn);
89 void qed_ptt_pool_free(struct qed_hwfn *p_hwfn);
120 void qed_ptt_set_win(struct qed_hwfn *p_hwfn,
145 void qed_wr(struct qed_hwfn *p_hwfn,
159 u32 qed_rd(struct qed_hwfn *p_hwfn,
174 void qed_memcpy_from(struct qed_hwfn *p_hwfn,
191 void qed_memcpy_to(struct qed_hwfn *p_hwfn,
209 void qed_fid_pretend(struct qed_hwfn *p_hwfn,
222 void qed_port_pretend(struct qed_hwfn *p_hwfn,
[all …]
H A Dqed_vf.h860 int qed_vf_hw_prepare(struct qed_hwfn *p_hwfn);
875 int qed_vf_pf_rxq_start(struct qed_hwfn *p_hwfn,
895 qed_vf_pf_txq_start(struct qed_hwfn *p_hwfn,
909 int qed_vf_pf_rxq_stop(struct qed_hwfn *p_hwfn,
940 int qed_vf_pf_reset(struct qed_hwfn *p_hwfn);
949 int qed_vf_pf_release(struct qed_hwfn *p_hwfn);
971 void qed_vf_set_sb_info(struct qed_hwfn *p_hwfn,
1087 qed_vf_get_link_caps(struct qed_hwfn *p_hwfn, in qed_vf_get_link_caps() argument
1166 qed_vf_pf_vport_update(struct qed_hwfn *p_hwfn, in qed_vf_pf_vport_update() argument
1240 __qed_vf_get_link_caps(struct qed_hwfn *p_hwfn, in __qed_vf_get_link_caps() argument
[all …]
H A Dqed_fcoe.c104 init_data.cid = qed_spq_get_cid(p_hwfn); in qed_sp_fcoe_func_start()
121 DP_ERR(p_hwfn, in qed_sp_fcoe_func_start()
219 qed_sp_destroy_request(p_hwfn, p_ent); in qed_sp_fcoe_func_start()
508 if (RESC_NUM(p_hwfn, QED_BDQ)) { in qed_fcoe_get_primary_bdq_prod()
522 if (RESC_NUM(p_hwfn, QED_BDQ)) { in qed_fcoe_get_secondary_bdq_prod()
545 p_hwfn->p_fcoe_info = p_fcoe_info; in qed_fcoe_alloc()
582 if (!p_hwfn->p_fcoe_info) in qed_fcoe_free()
594 kfree(p_hwfn->p_fcoe_info); in qed_fcoe_free()
595 p_hwfn->p_fcoe_info = NULL; in qed_fcoe_free()
620 qed_cxt_release_cid(p_hwfn, icid); in qed_fcoe_acquire_connection()
[all …]
H A Dqed_nvmetcp.c36 if (p_hwfn->p_nvmetcp_info->event_cb) { in qed_nvmetcp_async_event()
65 init_data.cid = qed_spq_get_cid(p_hwfn); in qed_sp_nvmetcp_func_start()
69 rc = qed_sp_init_request(p_hwfn, &p_ent, in qed_sp_nvmetcp_func_start()
92 val = RESC_START(p_hwfn, QED_CMDQS_CQS); in qed_sp_nvmetcp_func_start()
97 val = qed_get_igu_sb_id(p_hwfn, i); in qed_sp_nvmetcp_func_start()
129 init_data.cid = qed_spq_get_cid(p_hwfn); in qed_sp_nvmetcp_func_stop()
139 rc = qed_spq_post(p_hwfn, p_ent, NULL); in qed_sp_nvmetcp_func_stop()
535 qed_cxt_release_cid(p_hwfn, icid); in qed_nvmetcp_acquire_connection()
590 if (!p_hwfn->p_nvmetcp_info) in qed_nvmetcp_free()
602 kfree(p_hwfn->p_nvmetcp_info); in qed_nvmetcp_free()
[all …]
H A Dqed_sriov.h19 #define IS_PF_SRIOV(p_hwfn) (!!((p_hwfn)->cdev->p_iov_info)) argument
23 #define IS_PF_SRIOV(p_hwfn) (0) argument
25 #define IS_PF_SRIOV_ALLOC(p_hwfn) (!!((p_hwfn)->pf_iov_info)) argument
187 #define QED_VF_ABS_ID(p_hwfn, p_vf) (QED_PATH_ID(p_hwfn) ? \ argument
267 bool qed_iov_is_valid_vfid(struct qed_hwfn *p_hwfn,
293 int qed_iov_hw_info(struct qed_hwfn *p_hwfn);
325 void qed_sriov_vfpf_malicious(struct qed_hwfn *p_hwfn,
349 int qed_iov_alloc(struct qed_hwfn *p_hwfn);
358 void qed_iov_setup(struct qed_hwfn *p_hwfn);
367 void qed_iov_free(struct qed_hwfn *p_hwfn);
[all …]
H A Dqed_iscsi.c125 if (p_hwfn->p_iscsi_info->event_cb) { in qed_iscsi_async_event()
173 DP_ERR(p_hwfn, in qed_sp_iscsi_func_start()
177 qed_sp_destroy_request(p_hwfn, p_ent); in qed_sp_iscsi_func_start()
209 val = qed_get_igu_sb_id(p_hwfn, i); in qed_sp_iscsi_func_start()
629 if (RESC_NUM(p_hwfn, QED_BDQ)) { in qed_iscsi_get_primary_bdq_prod()
643 if (RESC_NUM(p_hwfn, QED_BDQ)) { in qed_iscsi_get_secondary_bdq_prod()
804 qed_cxt_release_cid(p_hwfn, icid); in qed_iscsi_acquire_connection()
867 if (!p_hwfn->p_iscsi_info) in qed_iscsi_free()
879 kfree(p_hwfn->p_iscsi_info); in qed_iscsi_free()
880 p_hwfn->p_iscsi_info = NULL; in qed_iscsi_free()
[all …]
H A Dqed_dcbx.c348 p_info = &p_hwfn->hw_info; in qed_dcbx_process_mib_info()
397 DP_VERBOSE(p_hwfn, in qed_dcbx_copy_mib()
405 DP_ERR(p_hwfn, in qed_dcbx_copy_mib()
883 qed_sp_pf_update(p_hwfn); in qed_dcbx_mib_update_event()
894 qed_dcbx_get_params(p_hwfn, &p_hwfn->p_dcbx_info->get, type); in qed_dcbx_mib_update_event()
911 qed_dcbx_aen(p_hwfn, type); in qed_dcbx_mib_update_event()
918 p_hwfn->p_dcbx_info = kzalloc(sizeof(*p_hwfn->p_dcbx_info), GFP_KERNEL); in qed_dcbx_info_alloc()
919 if (!p_hwfn->p_dcbx_info) in qed_dcbx_info_alloc()
927 kfree(p_hwfn->p_dcbx_info); in qed_dcbx_info_free()
1000 if (IS_VF(p_hwfn->cdev)) in qed_dcbx_query_params()
[all …]
H A 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() argument
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,
H A Dqed_l2.h109 qed_eth_rx_queue_stop(struct qed_hwfn *p_hwfn,
146 int qed_sp_eth_vport_start(struct qed_hwfn *p_hwfn,
201 int qed_sp_vport_update(struct qed_hwfn *p_hwfn,
381 int qed_l2_alloc(struct qed_hwfn *p_hwfn);
382 void qed_l2_setup(struct qed_hwfn *p_hwfn);
383 void qed_l2_free(struct qed_hwfn *p_hwfn);
389 qed_eth_queue_to_cid(struct qed_hwfn *p_hwfn,
396 qed_sp_eth_vport_start(struct qed_hwfn *p_hwfn,
413 qed_eth_rxq_start_ramrod(struct qed_hwfn *p_hwfn,
432 qed_eth_txq_start_ramrod(struct qed_hwfn *p_hwfn,
[all …]
H A Dqed_dbg_hsi.h789 enum dbg_status qed_dbg_set_bin_ptr(struct qed_hwfn *p_hwfn,
803 void qed_read_regs(struct qed_hwfn *p_hwfn,
821 bool qed_read_fw_info(struct qed_hwfn *p_hwfn,
835 enum dbg_status qed_dbg_grc_config(struct qed_hwfn *p_hwfn,
846 void qed_dbg_grc_set_params_default(struct qed_hwfn *p_hwfn);
878 enum dbg_status qed_dbg_grc_dump(struct qed_hwfn *p_hwfn,
1132 enum dbg_status qed_dbg_read_attn(struct qed_hwfn *p_hwfn,
1150 enum dbg_status qed_dbg_print_attn(struct qed_hwfn *p_hwfn,
1272 void qed_dbg_mcp_trace_set_meta_data(struct qed_hwfn *p_hwfn,
1346 void qed_mcp_trace_free_meta_data(struct qed_hwfn *p_hwfn);
[all …]
H A Dqed_rdma.h173 void qed_rdma_dpm_bar(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
174 void qed_rdma_dpm_conf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
175 int qed_rdma_info_alloc(struct qed_hwfn *p_hwfn);
176 void qed_rdma_info_free(struct qed_hwfn *p_hwfn);
178 static inline void qed_rdma_dpm_conf(struct qed_hwfn *p_hwfn, in qed_rdma_dpm_conf() argument
180 static inline void qed_rdma_dpm_bar(struct qed_hwfn *p_hwfn, in qed_rdma_dpm_bar() argument
182 static inline int qed_rdma_info_alloc(struct qed_hwfn *p_hwfn) in qed_rdma_info_alloc() argument
184 static inline void qed_rdma_info_free(struct qed_hwfn *p_hwfn) {} in qed_rdma_info_free() argument
188 qed_rdma_bmap_alloc(struct qed_hwfn *p_hwfn,
195 qed_rdma_bmap_alloc_id(struct qed_hwfn *p_hwfn,
[all …]
H A Dqed_dev_api.h162 int qed_hw_start_fastpath(struct qed_hwfn *p_hwfn);
194 struct qed_ptt *qed_ptt_acquire(struct qed_hwfn *p_hwfn);
209 struct qed_ptt *qed_ptt_acquire_context(struct qed_hwfn *p_hwfn,
223 void qed_ptt_release(struct qed_hwfn *p_hwfn,
247 qed_dmae_host2grc(struct qed_hwfn *p_hwfn,
284 int qed_dmae_host2host(struct qed_hwfn *p_hwfn,
303 int qed_fw_l2_queue(struct qed_hwfn *p_hwfn,
316 int qed_fw_vport(struct qed_hwfn *p_hwfn,
329 int qed_fw_rss_eng(struct qed_hwfn *p_hwfn,
452 int qed_final_cleanup(struct qed_hwfn *p_hwfn,
[all …]
H A 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);
46 static inline int qed_fcoe_alloc(struct qed_hwfn *p_hwfn) in qed_fcoe_alloc() argument
51 static inline void qed_fcoe_setup(struct qed_hwfn *p_hwfn) {} in qed_fcoe_setup() argument
52 static inline void qed_fcoe_free(struct qed_hwfn *p_hwfn) {} in qed_fcoe_free() argument
H A 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);
51 static inline int qed_iscsi_alloc(struct qed_hwfn *p_hwfn) in qed_iscsi_alloc() argument
56 static inline void qed_iscsi_setup(struct qed_hwfn *p_hwfn) {} in qed_iscsi_setup() argument
58 static inline void qed_iscsi_free(struct qed_hwfn *p_hwfn) {} in qed_iscsi_free() argument
H A 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 …]
H A Dqed_init_ops.h34 int qed_init_run(struct qed_hwfn *p_hwfn,
47 int qed_init_alloc(struct qed_hwfn *p_hwfn);
56 void qed_init_free(struct qed_hwfn *p_hwfn);
67 void qed_init_store_rt_reg(struct qed_hwfn *p_hwfn,
77 void qed_init_store_rt_agg(struct qed_hwfn *p_hwfn,
93 void qed_gtt_init(struct qed_hwfn *p_hwfn);
H A Dqed_dcbx.h87 int qed_dcbx_get_config_params(struct qed_hwfn *p_hwfn,
90 int qed_dcbx_config_params(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
96 qed_dcbx_mib_update_event(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
99 int qed_dcbx_info_alloc(struct qed_hwfn *p_hwfn);
100 void qed_dcbx_info_free(struct qed_hwfn *p_hwfn);
106 u8 qed_dcbx_get_priority_tc(struct qed_hwfn *p_hwfn, u8 pri);
H A Dqed_nvmetcp.h88 int qed_nvmetcp_alloc(struct qed_hwfn *p_hwfn);
89 void qed_nvmetcp_setup(struct qed_hwfn *p_hwfn);
90 void qed_nvmetcp_free(struct qed_hwfn *p_hwfn);
93 static inline int qed_nvmetcp_alloc(struct qed_hwfn *p_hwfn) in qed_nvmetcp_alloc() argument
98 static inline void qed_nvmetcp_setup(struct qed_hwfn *p_hwfn) {} in qed_nvmetcp_setup() argument
99 static inline void qed_nvmetcp_free(struct qed_hwfn *p_hwfn) {} in qed_nvmetcp_free() argument
H A Dqed_main.c797 u8 id = p_hwfn->my_id; in qed_slowpath_irq_sync()
841 i, &p_hwfn->sp_dpc); in qed_nic_stop()
1054 p_hwfn->stream = kzalloc(sizeof(*p_hwfn->stream), GFP_KERNEL); in qed_alloc_stream_mem()
1055 if (!p_hwfn->stream) in qed_alloc_stream_mem()
1074 if (!p_hwfn->stream) in qed_free_stream_mem()
1078 kfree(p_hwfn->stream); in qed_free_stream_mem()
1444 struct qed_hwfn *p_hwfn; in qed_sb_init() local
1462 if (IS_PF(p_hwfn->cdev)) { in qed_sb_init()
1483 struct qed_hwfn *p_hwfn; in qed_sb_release() local
2304 struct qed_hwfn *p_hwfn; in qed_nvm_flash_image_access() local
[all …]
H A Dqed.h93 #define ALIGNED_TYPE_SIZE(type_name, p_hwfn) \ argument
95 ~((1 << (p_hwfn->cdev->cache_shift)) - 1))
310 #define IS_QED_MULTI_TC_ROCE(p_hwfn) ((p_hwfn)->hw_info.multi_tc_roce_en) argument
769 #define IRO ((const struct iro *)p_hwfn->cdev->iro_arr)
944 void qed_db_recovery_dp(struct qed_hwfn *p_hwfn);
945 void qed_db_recovery_execute(struct qed_hwfn *p_hwfn);
946 bool qed_edpm_enabled(struct qed_hwfn *p_hwfn);
978 u32 qed_unzip_data(struct qed_hwfn *p_hwfn,
983 void qed_hw_error_occurred(struct qed_hwfn *p_hwfn,
989 void qed_slowpath_irq_sync(struct qed_hwfn *p_hwfn);
[all …]
H A Dqed_mng_tlv.c1206 DP_VERBOSE(p_hwfn, QED_MSG_SP, in qed_mfw_update_tlvs()
1253 global_offsize = qed_rd(p_hwfn, p_ptt, addr); in qed_mfw_process_tlv_req()
1256 addr = qed_rd(p_hwfn, p_ptt, addr); in qed_mfw_process_tlv_req()
1257 size = qed_rd(p_hwfn, p_ptt, global_addr + in qed_mfw_process_tlv_req()
1278 val = qed_rd(p_hwfn, p_ptt, addr + offset); in qed_mfw_process_tlv_req()
1290 DP_VERBOSE(p_hwfn, NETIF_MSG_DRV, in qed_mfw_process_tlv_req()
1296 DP_VERBOSE(p_hwfn, QED_MSG_SP, in qed_mfw_process_tlv_req()
1302 p_hwfn->hw_info.personality != QED_PCI_FCOE) { in qed_mfw_process_tlv_req()
1303 DP_VERBOSE(p_hwfn, QED_MSG_SP, in qed_mfw_process_tlv_req()
1311 DP_VERBOSE(p_hwfn, QED_MSG_SP, in qed_mfw_process_tlv_req()
[all …]
H A Dqed_ll2.h238 int qed_ll2_alloc(struct qed_hwfn *p_hwfn);
248 void qed_ll2_setup(struct qed_hwfn *p_hwfn);
258 void qed_ll2_free(struct qed_hwfn *p_hwfn);
H A Dqed_hsi.h2426 int qed_qm_common_rt_init(struct qed_hwfn *p_hwfn,
2461 int qed_qm_pf_rt_init(struct qed_hwfn *p_hwfn,
2475 int qed_init_pf_wfq(struct qed_hwfn *p_hwfn,
2488 int qed_init_pf_rl(struct qed_hwfn *p_hwfn,
2503 int qed_init_vport_wfq(struct qed_hwfn *p_hwfn,
2519 int qed_init_vport_tc_wfq(struct qed_hwfn *p_hwfn,
2535 int qed_init_global_rl(struct qed_hwfn *p_hwfn,
2553 bool qed_send_qm_stop_cmd(struct qed_hwfn *p_hwfn,
2592 void qed_set_gre_enable(struct qed_hwfn *p_hwfn,
2650 void qed_gft_config(struct qed_hwfn *p_hwfn,
[all …]
/openbmc/linux/include/linux/qed/
H A Dqed_if.h1472 static inline void __internal_ram_wr(void *p_hwfn, in __internal_ram_wr() argument

12