Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_dev.c61 static void qed_db_recovery_dp_entry(struct qed_hwfn *p_hwfn, in qed_db_recovery_dp_entry() argument
65 DP_VERBOSE(p_hwfn, in qed_db_recovery_dp_entry()
110 struct qed_hwfn *p_hwfn; in qed_db_rec_find_hwfn() local
114 p_hwfn = db_addr < cdev->hwfns[1].doorbells ? in qed_db_rec_find_hwfn()
117 p_hwfn = QED_LEADING_HWFN(cdev); in qed_db_rec_find_hwfn()
119 return p_hwfn; in qed_db_rec_find_hwfn()
130 struct qed_hwfn *p_hwfn; in qed_db_recovery_add() local
144 p_hwfn = qed_db_rec_find_hwfn(cdev, db_addr); in qed_db_recovery_add()
158 db_entry->hwfn_idx = p_hwfn->my_id; in qed_db_recovery_add()
161 qed_db_recovery_dp_entry(p_hwfn, db_entry, "Adding"); in qed_db_recovery_add()
[all …]
Dqed_ptp.c26 static enum qed_resc_lock qed_ptcdev_to_resc(struct qed_hwfn *p_hwfn) in qed_ptcdev_to_resc() argument
28 switch (MFW_PORT(p_hwfn)) { in qed_ptcdev_to_resc()
42 static int qed_ptp_res_lock(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_ptp_res_lock() argument
48 resource = qed_ptcdev_to_resc(p_hwfn); in qed_ptp_res_lock()
54 rc = qed_mcp_resc_lock(p_hwfn, p_ptt, &params); in qed_ptp_res_lock()
61 if (p_hwfn->abs_pf_id < p_hwfn->cdev->num_ports_in_engine) in qed_ptp_res_lock()
64 DP_INFO(p_hwfn, "PF doesn't have lock ownership\n"); in qed_ptp_res_lock()
67 DP_INFO(p_hwfn, "Failed to acquire ptp resource lock\n"); in qed_ptp_res_lock()
74 static int qed_ptp_res_unlock(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_ptp_res_unlock() argument
80 resource = qed_ptcdev_to_resc(p_hwfn); in qed_ptp_res_unlock()
[all …]
Dqed_rdma.c37 int qed_rdma_bmap_alloc(struct qed_hwfn *p_hwfn, in qed_rdma_bmap_alloc() argument
40 DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "max_count = %08x\n", max_count); in qed_rdma_bmap_alloc()
51 DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "0\n"); in qed_rdma_bmap_alloc()
55 int qed_rdma_bmap_alloc_id(struct qed_hwfn *p_hwfn, in qed_rdma_bmap_alloc_id() argument
64 DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "%s bitmap: allocated id %d\n", in qed_rdma_bmap_alloc_id()
70 void qed_bmap_set_id(struct qed_hwfn *p_hwfn, in qed_bmap_set_id() argument
79 void qed_bmap_release_id(struct qed_hwfn *p_hwfn, in qed_bmap_release_id() argument
89 DP_NOTICE(p_hwfn, "%s bitmap: id %d already released\n", in qed_bmap_release_id()
94 DP_VERBOSE(p_hwfn, QED_MSG_RDMA, "%s bitmap: released id %d\n", in qed_bmap_release_id()
98 int qed_bmap_test_id(struct qed_hwfn *p_hwfn, in qed_bmap_test_id() argument
[all …]
Dqed_mcp.c40 DRV_INNER_WR(p_hwfn, _p_ptt, drv_mb_addr, \
52 bool qed_mcp_is_init(struct qed_hwfn *p_hwfn) in qed_mcp_is_init() argument
54 if (!p_hwfn->mcp_info || !p_hwfn->mcp_info->public_base) 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() argument
61 u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base, in qed_mcp_cmd_port_init()
63 u32 mfw_mb_offsize = qed_rd(p_hwfn, p_ptt, addr); in qed_mcp_cmd_port_init()
65 p_hwfn->mcp_info->port_addr = SECTION_ADDR(mfw_mb_offsize, in qed_mcp_cmd_port_init()
66 MFW_PORT(p_hwfn)); in qed_mcp_cmd_port_init()
67 DP_VERBOSE(p_hwfn, QED_MSG_SP, in qed_mcp_cmd_port_init()
69 p_hwfn->mcp_info->port_addr, MFW_PORT(p_hwfn)); in qed_mcp_cmd_port_init()
[all …]
Dqed_int.c47 #define SB_ATTN_ALIGNED_SIZE(p_hwfn) \ argument
48 ALIGNED_TYPE_SIZE(struct atten_status_block, p_hwfn)
77 int (*cb)(struct qed_hwfn *p_hwfn);
90 static int qed_mcp_attn_cb(struct qed_hwfn *p_hwfn) in qed_mcp_attn_cb() argument
92 u32 tmp = qed_rd(p_hwfn, p_hwfn->p_dpc_ptt, MCP_REG_CPU_STATE); in qed_mcp_attn_cb()
95 DP_INFO(p_hwfn->cdev, "MCP_REG_CPU_STATE: %08x - Masking...\n", in qed_mcp_attn_cb()
97 qed_wr(p_hwfn, p_hwfn->p_dpc_ptt, MCP_REG_CPU_EVENT_MASK, in qed_mcp_attn_cb()
116 static int qed_pswhst_attn_cb(struct qed_hwfn *p_hwfn) in qed_pswhst_attn_cb() argument
118 u32 tmp = qed_rd(p_hwfn, p_hwfn->p_dpc_ptt, in qed_pswhst_attn_cb()
124 addr = qed_rd(p_hwfn, p_hwfn->p_dpc_ptt, in qed_pswhst_attn_cb()
[all …]
Dqed_spq.c47 static void qed_spq_blocking_cb(struct qed_hwfn *p_hwfn, in qed_spq_blocking_cb() argument
61 static int __qed_spq_block(struct qed_hwfn *p_hwfn, in __qed_spq_block() argument
89 static int qed_spq_block(struct qed_hwfn *p_hwfn, in qed_spq_block() argument
101 rc = __qed_spq_block(p_hwfn, p_ent, p_fw_ret, false); in qed_spq_block()
107 rc = __qed_spq_block(p_hwfn, p_ent, p_fw_ret, true); in qed_spq_block()
111 p_ptt = qed_ptt_acquire(p_hwfn); in qed_spq_block()
113 DP_NOTICE(p_hwfn, "ptt, failed to acquire\n"); in qed_spq_block()
117 DP_INFO(p_hwfn, "Ramrod is stuck, requesting MCP drain\n"); in qed_spq_block()
118 rc = qed_mcp_drain(p_hwfn, p_ptt); in qed_spq_block()
119 qed_ptt_release(p_hwfn, p_ptt); in qed_spq_block()
[all …]
Dqed_vf.c13 static void *qed_vf_pf_prep(struct qed_hwfn *p_hwfn, u16 type, u16 length) in qed_vf_pf_prep() argument
15 struct qed_vf_iov *p_iov = p_hwfn->vf_iov_info; in qed_vf_pf_prep()
25 DP_VERBOSE(p_hwfn, in qed_vf_pf_prep()
38 p_tlv = qed_add_tlv(p_hwfn, &p_iov->offset, type, 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() argument
49 union pfvf_tlvs *resp = p_hwfn->vf_iov_info->pf2vf_reply; in qed_vf_pf_req_end()
51 DP_VERBOSE(p_hwfn, QED_MSG_IOV, in qed_vf_pf_req_end()
55 mutex_unlock(&(p_hwfn->vf_iov_info->mutex)); 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() argument
65 union vfpf_tlvs *p_req = p_hwfn->vf_iov_info->vf2pf_request; in qed_send_msg2pf()
[all …]
Dqed_hw.c44 int qed_ptt_pool_alloc(struct qed_hwfn *p_hwfn) in qed_ptt_pool_alloc() argument
57 p_pool->ptts[i].hwfn_id = p_hwfn->my_id; in qed_ptt_pool_alloc()
63 p_hwfn->p_ptt_pool = p_pool; in qed_ptt_pool_alloc()
69 void qed_ptt_invalidate(struct qed_hwfn *p_hwfn) in qed_ptt_invalidate() argument
75 p_ptt = &p_hwfn->p_ptt_pool->ptts[i]; in qed_ptt_invalidate()
80 void qed_ptt_pool_free(struct qed_hwfn *p_hwfn) in qed_ptt_pool_free() argument
82 kfree(p_hwfn->p_ptt_pool); in qed_ptt_pool_free()
83 p_hwfn->p_ptt_pool = NULL; in qed_ptt_pool_free()
86 struct qed_ptt *qed_ptt_acquire(struct qed_hwfn *p_hwfn) in qed_ptt_acquire() argument
93 spin_lock_bh(&p_hwfn->p_ptt_pool->lock); in qed_ptt_acquire()
[all …]
Dqed_cxt.c83 #define CONN_CXT_SIZE(p_hwfn) \ argument
84 ALIGNED_TYPE_SIZE(union conn_context, p_hwfn)
89 #define TYPE0_TASK_CXT_SIZE(p_hwfn) \ argument
90 ALIGNED_TYPE_SIZE(union type0_task_context, p_hwfn)
93 #define TYPE1_TASK_CXT_SIZE(p_hwfn) sizeof(union type1_task_context) argument
164 static void qed_cxt_tm_iids(struct qed_hwfn *p_hwfn, in qed_cxt_tm_iids() argument
222 static void qed_cxt_qm_iids(struct qed_hwfn *p_hwfn, in qed_cxt_qm_iids() argument
225 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_cxt_qm_iids()
251 DP_VERBOSE(p_hwfn, QED_MSG_ILT, in qed_cxt_qm_iids()
256 static struct qed_tid_seg *qed_cxt_tid_seg_info(struct qed_hwfn *p_hwfn, in qed_cxt_tid_seg_info() argument
[all …]
Dqed_iwarp.c62 static int qed_iwarp_async_event(struct qed_hwfn *p_hwfn, u8 fw_event_code,
67 void qed_iwarp_init_devinfo(struct qed_hwfn *p_hwfn) in qed_iwarp_init_devinfo() argument
69 struct qed_rdma_device *dev = p_hwfn->p_rdma_info->dev; in qed_iwarp_init_devinfo()
74 p_hwfn->p_rdma_info->num_qps) - in qed_iwarp_init_devinfo()
83 void qed_iwarp_init_hw(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_iwarp_init_hw() argument
85 p_hwfn->rdma_prs_search_reg = PRS_REG_SEARCH_TCP; in qed_iwarp_init_hw()
86 qed_wr(p_hwfn, p_ptt, p_hwfn->rdma_prs_search_reg, 1); in qed_iwarp_init_hw()
87 p_hwfn->b_rdma_enabled_in_prs = true; in qed_iwarp_init_hw()
94 static void qed_iwarp_cid_cleaned(struct qed_hwfn *p_hwfn, u32 cid) in qed_iwarp_cid_cleaned() argument
96 cid -= qed_cxt_get_proto_cid_start(p_hwfn, p_hwfn->p_rdma_info->proto); in qed_iwarp_cid_cleaned()
[all …]
Dqed_init_fw_funcs.c159 #define QM_INIT_TX_PQ_MAP(p_hwfn, map, chip, pq_id, vp_pq_id, rl_valid, \ argument
175 STORE_RT_REG((p_hwfn), QM_REG_TXPQMAP_RT_OFFSET + (pq_id), \
193 static u8 qed_get_ext_voq(struct qed_hwfn *p_hwfn, in qed_get_ext_voq() argument
203 static void qed_enable_pf_rl(struct qed_hwfn *p_hwfn, bool pf_rl_en) in qed_enable_pf_rl() argument
205 STORE_RT_REG(p_hwfn, QM_REG_RLPFENABLE_RT_OFFSET, pf_rl_en ? 1 : 0); in qed_enable_pf_rl()
211 STORE_RT_REG(p_hwfn, in qed_enable_pf_rl()
216 STORE_RT_REG(p_hwfn, in qed_enable_pf_rl()
218 STORE_RT_REG(p_hwfn, in qed_enable_pf_rl()
224 STORE_RT_REG(p_hwfn, in qed_enable_pf_rl()
231 static void qed_enable_pf_wfq(struct qed_hwfn *p_hwfn, bool pf_wfq_en) in qed_enable_pf_wfq() argument
[all …]
Dqed_roce.c38 static void qed_roce_free_real_icid(struct qed_hwfn *p_hwfn, u16 icid);
40 static int qed_roce_async_event(struct qed_hwfn *p_hwfn, u8 fw_event_code, in qed_roce_async_event() argument
44 struct qed_rdma_events events = p_hwfn->p_rdma_info->events; in qed_roce_async_event()
54 qed_roce_free_real_icid(p_hwfn, icid); in qed_roce_async_event()
69 void qed_roce_stop(struct qed_hwfn *p_hwfn) in qed_roce_stop() argument
71 struct qed_bmap *rcid_map = &p_hwfn->p_rdma_info->real_cid_map; in qed_roce_stop()
85 if (p_hwfn->cdev->recov_in_prog) in qed_roce_stop()
90 DP_NOTICE(p_hwfn, "cid bitmap wait timed out\n"); in qed_roce_stop()
132 static void qed_roce_free_cid_pair(struct qed_hwfn *p_hwfn, u16 cid) in qed_roce_free_cid_pair() argument
134 spin_lock_bh(&p_hwfn->p_rdma_info->lock); in qed_roce_free_cid_pair()
[all …]
Dqed_sp_commands.c24 void qed_sp_destroy_request(struct qed_hwfn *p_hwfn, in qed_sp_destroy_request() argument
31 if (p_ent->queue == &p_hwfn->p_spq->unlimited_pending) in qed_sp_destroy_request()
34 qed_spq_return_entry(p_hwfn, p_ent); in qed_sp_destroy_request()
37 int qed_sp_init_request(struct qed_hwfn *p_hwfn, in qed_sp_init_request() argument
48 rc = qed_spq_get_entry(p_hwfn, pp_ent); in qed_sp_init_request()
83 DP_NOTICE(p_hwfn, "Unknown SPQE completion mode %d\n", in qed_sp_init_request()
88 DP_VERBOSE(p_hwfn, QED_MSG_SPQ, in qed_sp_init_request()
101 qed_sp_destroy_request(p_hwfn, p_ent); in qed_sp_init_request()
201 qed_tunn_set_pf_update_params(struct qed_hwfn *p_hwfn, in qed_tunn_set_pf_update_params() argument
205 struct qed_tunnel_info *p_tun = &p_hwfn->cdev->tunnel; in qed_tunn_set_pf_update_params()
[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() argument
54 init_data.cid = qed_spq_get_cid(p_hwfn); in qed_sp_vf_start()
58 rc = qed_sp_init_request(p_hwfn, &p_ent, in qed_sp_vf_start()
69 switch (p_hwfn->hw_info.personality) { in qed_sp_vf_start()
78 DP_NOTICE(p_hwfn, "Unknown VF personality %d\n", in qed_sp_vf_start()
79 p_hwfn->hw_info.personality); in qed_sp_vf_start()
80 qed_sp_destroy_request(p_hwfn, p_ent); in qed_sp_vf_start()
87 DP_VERBOSE(p_hwfn, in qed_sp_vf_start()
[all …]
Dqed_init_ops.c124 void qed_init_store_rt_reg(struct qed_hwfn *p_hwfn, u32 rt_offset, u32 val) in qed_init_store_rt_reg() argument
126 p_hwfn->rt_data.init_val[rt_offset] = val; in qed_init_store_rt_reg()
127 p_hwfn->rt_data.b_valid[rt_offset] = true; in qed_init_store_rt_reg()
130 void qed_init_store_rt_agg(struct qed_hwfn *p_hwfn, in qed_init_store_rt_agg() argument
136 p_hwfn->rt_data.init_val[rt_offset + i] = p_val[i]; in qed_init_store_rt_agg()
137 p_hwfn->rt_data.b_valid[rt_offset + i] = true; in qed_init_store_rt_agg()
141 static int qed_init_rt(struct qed_hwfn *p_hwfn, in qed_init_rt() argument
145 u32 *p_init_val = &p_hwfn->rt_data.init_val[rt_offset]; in qed_init_rt()
146 bool *p_valid = &p_hwfn->rt_data.b_valid[rt_offset]; in qed_init_rt()
161 qed_wr(p_hwfn, p_ptt, addr + (i << 2), p_init_val[i]); in qed_init_rt()
[all …]
Dqed_mcp.h294 *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,
412 int qed_mcp_cmd(struct qed_hwfn *p_hwfn,
426 int qed_mcp_drain(struct qed_hwfn *p_hwfn,
[all …]
Dqed_ll2.c72 struct qed_hwfn *p_hwfn = cxt; in qed_ll2b_complete_tx_packet() local
73 struct qed_dev *cdev = p_hwfn->cdev; in qed_ll2b_complete_tx_packet()
77 dma_unmap_single(&p_hwfn->cdev->pdev->dev, first_frag_addr, in qed_ll2b_complete_tx_packet()
138 struct qed_hwfn *p_hwfn = cxt; in qed_ll2b_complete_rx_packet() local
140 struct qed_dev *cdev = p_hwfn->cdev; in qed_ll2b_complete_rx_packet()
147 DP_VERBOSE(p_hwfn, in qed_ll2b_complete_rx_packet()
168 rc = qed_ll2_alloc_buffer(p_hwfn->cdev, &new_data, in qed_ll2b_complete_rx_packet()
204 DP_VERBOSE(p_hwfn, (NETIF_MSG_RX_STATUS | NETIF_MSG_PKTDATA | in qed_ll2b_complete_rx_packet()
216 rc = qed_ll2_post_rx_buffer(p_hwfn, cdev->ll2->handle, in qed_ll2b_complete_rx_packet()
222 static struct qed_ll2_info *__qed_ll2_handle_sanity(struct qed_hwfn *p_hwfn, in __qed_ll2_handle_sanity() argument
[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);
194 #define SB_ALIGNED_SIZE(p_hwfn) \ argument
195 ALIGNED_TYPE_SIZE(struct status_block_e4, 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_debug.c825 static void qed_grc_set_param(struct qed_hwfn *p_hwfn, in qed_grc_set_param() argument
828 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_set_param()
834 static u32 qed_grc_get_param(struct qed_hwfn *p_hwfn, in qed_grc_get_param() argument
837 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_get_param()
843 static void qed_dbg_grc_init_params(struct qed_hwfn *p_hwfn) in qed_dbg_grc_init_params() argument
845 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_init_params()
848 qed_dbg_grc_set_params_default(p_hwfn); in qed_dbg_grc_init_params()
854 static void qed_set_dbg_bin_buf(struct qed_hwfn *p_hwfn, in qed_set_dbg_bin_buf() argument
858 struct virt_mem_desc *buf = &p_hwfn->dbg_arrays[buf_type]; in qed_set_dbg_bin_buf()
865 static enum dbg_status qed_dbg_dev_init(struct qed_hwfn *p_hwfn) in qed_dbg_dev_init() argument
[all …]
Dqed_l2.c52 int qed_l2_alloc(struct qed_hwfn *p_hwfn) in qed_l2_alloc() argument
58 if (!QED_IS_L2_PERSONALITY(p_hwfn)) in qed_l2_alloc()
64 p_hwfn->p_l2_info = p_l2_info; in qed_l2_alloc()
66 if (IS_PF(p_hwfn->cdev)) { in qed_l2_alloc()
67 p_l2_info->queues = RESC_NUM(p_hwfn, QED_L2_QUEUE); in qed_l2_alloc()
71 qed_vf_get_num_rxqs(p_hwfn, &rx); in qed_l2_alloc()
72 qed_vf_get_num_txqs(p_hwfn, &tx); in qed_l2_alloc()
92 void qed_l2_setup(struct qed_hwfn *p_hwfn) in qed_l2_setup() argument
94 if (!QED_IS_L2_PERSONALITY(p_hwfn)) in qed_l2_setup()
97 mutex_init(&p_hwfn->p_l2_info->lock); in qed_l2_setup()
[all …]
Dqed_selftest.c42 struct qed_hwfn *p_hwfn; in qed_selftest_register() local
48 p_hwfn = &cdev->hwfns[i]; in qed_selftest_register()
49 p_ptt = qed_ptt_acquire(p_hwfn); in qed_selftest_register()
51 DP_ERR(p_hwfn, "failed to acquire ptt\n"); in qed_selftest_register()
54 rc = qed_mcp_bist_register_test(p_hwfn, p_ptt); in qed_selftest_register()
55 qed_ptt_release(p_hwfn, p_ptt); in qed_selftest_register()
65 struct qed_hwfn *p_hwfn; in qed_selftest_clock() local
71 p_hwfn = &cdev->hwfns[i]; in qed_selftest_clock()
72 p_ptt = qed_ptt_acquire(p_hwfn); in qed_selftest_clock()
74 DP_ERR(p_hwfn, "failed to acquire ptt\n"); in qed_selftest_clock()
[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_sp.h42 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,
262 void qed_spq_return_entry(struct qed_hwfn *p_hwfn,
[all …]
Dqed_ooo.c21 *qed_ooo_seek_archipelago(struct qed_hwfn *p_hwfn, in qed_ooo_seek_archipelago() argument
40 static struct qed_ooo_isle *qed_ooo_seek_isle(struct qed_hwfn *p_hwfn, in qed_ooo_seek_isle() argument
48 p_archipelago = qed_ooo_seek_archipelago(p_hwfn, p_ooo_info, cid); in qed_ooo_seek_isle()
50 DP_NOTICE(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() argument
76 int qed_ooo_alloc(struct qed_hwfn *p_hwfn) in qed_ooo_alloc() argument
84 switch (p_hwfn->hw_info.personality) { in qed_ooo_alloc()
93 DP_NOTICE(p_hwfn, in qed_ooo_alloc()
98 max_num_archipelagos = (u16)qed_cxt_get_proto_cid_count(p_hwfn, proto, in qed_ooo_alloc()
101 cid_base = (u16)qed_cxt_get_proto_cid_start(p_hwfn, proto); in qed_ooo_alloc()
[all …]

12