Lines Matching refs:p_hwfn

21 *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()
105 DP_NOTICE(p_hwfn, in qed_ooo_alloc()
152 p_hwfn->p_ooo_info = p_ooo_info; in qed_ooo_alloc()
164 void qed_ooo_release_connection_isles(struct qed_hwfn *p_hwfn, in qed_ooo_release_connection_isles() argument
171 p_archipelago = qed_ooo_seek_archipelago(p_hwfn, p_ooo_info, cid); in qed_ooo_release_connection_isles()
197 void qed_ooo_release_all_isles(struct qed_hwfn *p_hwfn, in qed_ooo_release_all_isles() argument
236 void qed_ooo_setup(struct qed_hwfn *p_hwfn) in qed_ooo_setup() argument
238 qed_ooo_release_all_isles(p_hwfn, p_hwfn->p_ooo_info); in qed_ooo_setup()
239 memset(p_hwfn->p_ooo_info->ooo_history.p_cqes, 0, in qed_ooo_setup()
240 p_hwfn->p_ooo_info->ooo_history.num_of_cqes * in qed_ooo_setup()
242 p_hwfn->p_ooo_info->ooo_history.head_idx = 0; in qed_ooo_setup()
245 void qed_ooo_free(struct qed_hwfn *p_hwfn) in qed_ooo_free() argument
247 struct qed_ooo_info *p_ooo_info = p_hwfn->p_ooo_info; in qed_ooo_free()
253 qed_ooo_release_all_isles(p_hwfn, p_ooo_info); in qed_ooo_free()
262 dma_free_coherent(&p_hwfn->cdev->pdev->dev, in qed_ooo_free()
273 p_hwfn->p_ooo_info = NULL; in qed_ooo_free()
276 void qed_ooo_put_free_buffer(struct qed_hwfn *p_hwfn, in qed_ooo_put_free_buffer() argument
283 struct qed_ooo_buffer *qed_ooo_get_free_buffer(struct qed_hwfn *p_hwfn, in qed_ooo_get_free_buffer() argument
298 void qed_ooo_put_ready_buffer(struct qed_hwfn *p_hwfn, in qed_ooo_put_ready_buffer() argument
310 struct qed_ooo_buffer *qed_ooo_get_ready_buffer(struct qed_hwfn *p_hwfn, in qed_ooo_get_ready_buffer() argument
325 void qed_ooo_delete_isles(struct qed_hwfn *p_hwfn, in qed_ooo_delete_isles() argument
333 p_isle = qed_ooo_seek_isle(p_hwfn, p_ooo_info, cid, drop_isle); in qed_ooo_delete_isles()
335 DP_NOTICE(p_hwfn, in qed_ooo_delete_isles()
341 DP_NOTICE(p_hwfn, in qed_ooo_delete_isles()
353 void qed_ooo_add_new_isle(struct qed_hwfn *p_hwfn, in qed_ooo_add_new_isle() argument
363 p_prev_isle = qed_ooo_seek_isle(p_hwfn, in qed_ooo_add_new_isle()
366 DP_NOTICE(p_hwfn, in qed_ooo_add_new_isle()
372 p_archipelago = qed_ooo_seek_archipelago(p_hwfn, p_ooo_info, cid); in qed_ooo_add_new_isle()
374 DP_NOTICE(p_hwfn, in qed_ooo_add_new_isle()
385 DP_NOTICE(p_hwfn, "Free isle is not empty\n"); in qed_ooo_add_new_isle()
389 DP_NOTICE(p_hwfn, "No more free isles\n"); in qed_ooo_add_new_isle()
412 void qed_ooo_add_new_buffer(struct qed_hwfn *p_hwfn, in qed_ooo_add_new_buffer() argument
420 p_isle = qed_ooo_seek_isle(p_hwfn, p_ooo_info, cid, ooo_isle); in qed_ooo_add_new_buffer()
422 DP_NOTICE(p_hwfn, in qed_ooo_add_new_buffer()
433 void qed_ooo_join_isles(struct qed_hwfn *p_hwfn, in qed_ooo_join_isles() argument
439 p_right_isle = qed_ooo_seek_isle(p_hwfn, p_ooo_info, cid, in qed_ooo_join_isles()
442 DP_NOTICE(p_hwfn, in qed_ooo_join_isles()
451 p_left_isle = qed_ooo_seek_isle(p_hwfn, p_ooo_info, cid, in qed_ooo_join_isles()
454 DP_NOTICE(p_hwfn, in qed_ooo_join_isles()