Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_dev.c63 static void qed_db_recovery_dp_entry(struct qed_hwfn *p_hwfn, in qed_db_recovery_dp_entry() argument
67 DP_VERBOSE(p_hwfn, in qed_db_recovery_dp_entry()
112 struct qed_hwfn *p_hwfn; in qed_db_rec_find_hwfn() local
116 p_hwfn = db_addr < cdev->hwfns[1].doorbells ? in qed_db_rec_find_hwfn()
119 p_hwfn = QED_LEADING_HWFN(cdev); in qed_db_rec_find_hwfn()
121 return p_hwfn; in qed_db_rec_find_hwfn()
132 struct qed_hwfn *p_hwfn; in qed_db_recovery_add() local
146 p_hwfn = qed_db_rec_find_hwfn(cdev, db_addr); in qed_db_recovery_add()
160 db_entry->hwfn_idx = p_hwfn->my_id; in qed_db_recovery_add()
163 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.c38 int qed_rdma_bmap_alloc(struct qed_hwfn *p_hwfn, in qed_rdma_bmap_alloc() argument
41 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_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_mcp.c41 DRV_INNER_WR(p_hwfn, _p_ptt, drv_mb_addr, \
53 bool qed_mcp_is_init(struct qed_hwfn *p_hwfn) in qed_mcp_is_init() argument
55 if (!p_hwfn->mcp_info || !p_hwfn->mcp_info->public_base) in qed_mcp_is_init()
60 void qed_mcp_cmd_port_init(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_mcp_cmd_port_init() argument
62 u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base, in qed_mcp_cmd_port_init()
64 u32 mfw_mb_offsize = qed_rd(p_hwfn, p_ptt, addr); in qed_mcp_cmd_port_init()
66 p_hwfn->mcp_info->port_addr = SECTION_ADDR(mfw_mb_offsize, in qed_mcp_cmd_port_init()
67 MFW_PORT(p_hwfn)); in qed_mcp_cmd_port_init()
68 DP_VERBOSE(p_hwfn, QED_MSG_SP, in qed_mcp_cmd_port_init()
70 p_hwfn->mcp_info->port_addr, MFW_PORT(p_hwfn)); in qed_mcp_cmd_port_init()
[all …]
Dqed_spq.c48 static void qed_spq_blocking_cb(struct qed_hwfn *p_hwfn, in qed_spq_blocking_cb() argument
62 static int __qed_spq_block(struct qed_hwfn *p_hwfn, in __qed_spq_block() argument
90 static int qed_spq_block(struct qed_hwfn *p_hwfn, in qed_spq_block() argument
102 rc = __qed_spq_block(p_hwfn, p_ent, p_fw_ret, false); in qed_spq_block()
108 rc = __qed_spq_block(p_hwfn, p_ent, p_fw_ret, true); in qed_spq_block()
112 p_ptt = qed_ptt_acquire(p_hwfn); in qed_spq_block()
114 DP_NOTICE(p_hwfn, "ptt, failed to acquire\n"); in qed_spq_block()
118 DP_INFO(p_hwfn, "Ramrod is stuck, requesting MCP drain\n"); in qed_spq_block()
119 rc = qed_mcp_drain(p_hwfn, p_ptt); in qed_spq_block()
120 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.c182 #define QM_INIT_TX_PQ_MAP(p_hwfn, map, pq_id, vp_pq_id, rl_valid, \ argument
198 STORE_RT_REG((p_hwfn), QM_REG_TXPQMAP_RT_OFFSET + (pq_id), \
292 static u8 qed_get_ext_voq(struct qed_hwfn *p_hwfn, in qed_get_ext_voq() argument
302 static void qed_enable_pf_rl(struct qed_hwfn *p_hwfn, bool pf_rl_en) in qed_enable_pf_rl() argument
304 STORE_RT_REG(p_hwfn, QM_REG_RLPFENABLE_RT_OFFSET, pf_rl_en ? 1 : 0); in qed_enable_pf_rl()
310 STORE_RT_REG(p_hwfn, in qed_enable_pf_rl()
315 STORE_RT_REG(p_hwfn, in qed_enable_pf_rl()
317 STORE_RT_REG(p_hwfn, in qed_enable_pf_rl()
323 STORE_RT_REG(p_hwfn, in qed_enable_pf_rl()
330 static void qed_enable_pf_wfq(struct qed_hwfn *p_hwfn, bool pf_wfq_en) in qed_enable_pf_wfq() argument
[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, in qed_sp_init_request()
103 qed_sp_destroy_request(p_hwfn, p_ent); in qed_sp_init_request()
203 qed_tunn_set_pf_update_params(struct qed_hwfn *p_hwfn, in qed_tunn_set_pf_update_params() argument
207 struct qed_tunnel_info *p_tun = &p_hwfn->cdev->tunnel; in qed_tunn_set_pf_update_params()
[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_sriov.c23 static int qed_iov_bulletin_set_mac(struct qed_hwfn *p_hwfn, u8 *mac, int vfid);
46 static int qed_sp_vf_start(struct qed_hwfn *p_hwfn, struct qed_vf_info *p_vf) in qed_sp_vf_start() argument
56 init_data.cid = qed_spq_get_cid(p_hwfn); in qed_sp_vf_start()
60 rc = qed_sp_init_request(p_hwfn, &p_ent, in qed_sp_vf_start()
71 switch (p_hwfn->hw_info.personality) { in qed_sp_vf_start()
80 DP_NOTICE(p_hwfn, "Unknown VF personality %d\n", in qed_sp_vf_start()
81 p_hwfn->hw_info.personality); in qed_sp_vf_start()
82 qed_sp_destroy_request(p_hwfn, p_ent); in qed_sp_vf_start()
89 DP_VERBOSE(p_hwfn, in qed_sp_vf_start()
101 DP_VERBOSE(p_hwfn, QED_MSG_IOV, in qed_sp_vf_start()
[all …]
Dqed_mcp.h277 struct qed_mcp_link_params *qed_mcp_get_link_params(struct qed_hwfn *p_hwfn);
286 struct qed_mcp_link_state *qed_mcp_get_link_state(struct qed_hwfn *p_hwfn);
297 *qed_mcp_get_link_capabilities(struct qed_hwfn *p_hwfn);
309 int qed_mcp_set_link(struct qed_hwfn *p_hwfn,
323 int qed_mcp_get_mfw_ver(struct qed_hwfn *p_hwfn,
336 int qed_mcp_get_mbi_ver(struct qed_hwfn *p_hwfn,
349 int qed_mcp_get_media_type(struct qed_hwfn *p_hwfn,
363 int qed_mcp_get_transceiver_data(struct qed_hwfn *p_hwfn,
379 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_ll2.c68 static u8 qed_ll2_handle_to_stats_id(struct qed_hwfn *p_hwfn, in qed_ll2_handle_to_stats_id() argument
83 stats_id = MAX_NUM_LL2_RX_RAM_QUEUES + p_hwfn->abs_pf_id; in qed_ll2_handle_to_stats_id()
98 struct qed_hwfn *p_hwfn = cxt; in qed_ll2b_complete_tx_packet() local
99 struct qed_dev *cdev = p_hwfn->cdev; in qed_ll2b_complete_tx_packet()
103 dma_unmap_single(&p_hwfn->cdev->pdev->dev, first_frag_addr, in qed_ll2b_complete_tx_packet()
164 struct qed_hwfn *p_hwfn = cxt; in qed_ll2b_complete_rx_packet() local
166 struct qed_dev *cdev = p_hwfn->cdev; in qed_ll2b_complete_rx_packet()
173 DP_VERBOSE(p_hwfn, in qed_ll2b_complete_rx_packet()
194 rc = qed_ll2_alloc_buffer(p_hwfn->cdev, &new_data, in qed_ll2b_complete_rx_packet()
230 DP_VERBOSE(p_hwfn, (NETIF_MSG_RX_STATUS | NETIF_MSG_PKTDATA | in qed_ll2b_complete_rx_packet()
[all …]
Dqed_int.h64 void qed_int_igu_enable_int(struct qed_hwfn *p_hwfn,
76 void qed_int_igu_disable_int(struct qed_hwfn *p_hwfn,
87 u64 qed_int_igu_read_sisr_reg(struct qed_hwfn *p_hwfn);
105 int qed_int_sb_init(struct qed_hwfn *p_hwfn,
120 void qed_int_sb_setup(struct qed_hwfn *p_hwfn,
137 int qed_int_sb_release(struct qed_hwfn *p_hwfn,
161 void qed_int_get_num_sbs(struct qed_hwfn *p_hwfn,
198 int qed_int_get_sb_dbg(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt,
211 int qed_db_rec_handler(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt);
219 #define SB_ALIGNED_SIZE(p_hwfn) \ argument
[all …]
Dqed_init_ops.c127 void qed_init_store_rt_reg(struct qed_hwfn *p_hwfn, u32 rt_offset, u32 val) in qed_init_store_rt_reg() argument
130 DP_ERR(p_hwfn, in qed_init_store_rt_reg()
136 p_hwfn->rt_data.init_val[rt_offset] = val; in qed_init_store_rt_reg()
137 p_hwfn->rt_data.b_valid[rt_offset] = true; in qed_init_store_rt_reg()
140 void qed_init_store_rt_agg(struct qed_hwfn *p_hwfn, in qed_init_store_rt_agg() argument
146 DP_ERR(p_hwfn, in qed_init_store_rt_agg()
154 p_hwfn->rt_data.init_val[rt_offset + i] = p_val[i]; in qed_init_store_rt_agg()
155 p_hwfn->rt_data.b_valid[rt_offset + i] = true; in qed_init_store_rt_agg()
159 static int qed_init_rt(struct qed_hwfn *p_hwfn, in qed_init_rt() argument
163 u32 *p_init_val = &p_hwfn->rt_data.init_val[rt_offset]; in qed_init_rt()
[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_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_sp.h26 void (*function)(struct qed_hwfn *p_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,
214 int qed_spq_post(struct qed_hwfn *p_hwfn,
225 int qed_spq_alloc(struct qed_hwfn *p_hwfn);
234 void qed_spq_setup(struct qed_hwfn *p_hwfn);
243 void qed_spq_free(struct qed_hwfn *p_hwfn);
255 qed_spq_get_entry(struct qed_hwfn *p_hwfn,
[all …]
Dqed_cxt.h38 int qed_cxt_get_cid_info(struct qed_hwfn *p_hwfn,
49 int qed_cxt_get_tid_mem_info(struct qed_hwfn *p_hwfn,
62 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);
93 u32 qed_cxt_cfg_ilt_compute_excess(struct qed_hwfn *p_hwfn, u32 used_lines);
102 int qed_cxt_mngr_alloc(struct qed_hwfn *p_hwfn);
111 void qed_cxt_mngr_free(struct qed_hwfn *p_hwfn);
120 int qed_cxt_tables_alloc(struct qed_hwfn *p_hwfn);
127 void qed_cxt_mngr_setup(struct qed_hwfn *p_hwfn);
[all …]
Dqed_debug.c910 static void qed_grc_set_param(struct qed_hwfn *p_hwfn, in qed_grc_set_param() argument
913 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_set_param()
919 static u32 qed_grc_get_param(struct qed_hwfn *p_hwfn, in qed_grc_get_param() argument
922 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_get_param()
928 static void qed_dbg_grc_init_params(struct qed_hwfn *p_hwfn) in qed_dbg_grc_init_params() argument
930 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_init_params()
933 qed_dbg_grc_set_params_default(p_hwfn); in qed_dbg_grc_init_params()
939 static void qed_set_dbg_bin_buf(struct qed_hwfn *p_hwfn, in qed_set_dbg_bin_buf() argument
943 struct virt_mem_desc *buf = &p_hwfn->dbg_arrays[buf_type]; in qed_set_dbg_bin_buf()
950 static enum dbg_status qed_dbg_dev_init(struct qed_hwfn *p_hwfn) in qed_dbg_dev_init() argument
[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()
94 DP_NOTICE(p_hwfn, in qed_ooo_alloc()
99 max_num_archipelagos = (u16)qed_cxt_get_proto_cid_count(p_hwfn, proto, in qed_ooo_alloc()
102 cid_base = (u16)qed_cxt_get_proto_cid_start(p_hwfn, proto); in qed_ooo_alloc()
[all …]

12