Lines Matching refs:p_cxt_mngr

225 	struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;  in qed_cxt_qm_iids()
259 struct qed_cxt_mngr *p_cfg = p_hwfn->p_cxt_mngr; in qed_cxt_tid_seg_info()
274 struct qed_cxt_mngr *p_mgr = p_hwfn->p_cxt_mngr; in qed_cxt_set_srq_count()
283 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_cxt_get_ilt_page_size()
299 struct qed_cxt_mngr *p_mgr = p_hwfn->p_cxt_mngr; in qed_cxt_get_total_srq_count()
312 struct qed_cxt_mngr *p_mgr = p_hwfn->p_cxt_mngr; in qed_cxt_set_proto_cid_count()
332 *vf_cid = p_hwfn->p_cxt_mngr->conn_cfg[type].cids_per_vf; in qed_cxt_get_proto_cid_count()
334 return p_hwfn->p_cxt_mngr->conn_cfg[type].cid_count; in qed_cxt_get_proto_cid_count()
340 return p_hwfn->p_cxt_mngr->acquired[type].start_cid; in qed_cxt_get_proto_cid_start()
350 cnt += p_hwfn->p_cxt_mngr->conn_cfg[type].tid_seg[i].count; in qed_cxt_get_proto_tid_count()
360 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_cxt_set_proto_tid_count()
410 u32 cid_count = p_hwfn->p_cxt_mngr->conn_cfg[PROTOCOLID_ROCE].cid_count; in qed_ilt_get_dynamic_line_cnt()
416 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC]; in qed_ilt_get_dynamic_line_cnt()
444 struct qed_ilt_client_cfg *clients = p_hwfn->p_cxt_mngr->clients; in qed_cxt_ilt_blk_reset()
458 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_cxt_cfg_ilt_compute()
482 p_hwfn->my_id, p_hwfn->p_cxt_mngr->pf_start_line); in qed_cxt_cfg_ilt_compute()
724 *line_count = curr_line - p_hwfn->p_cxt_mngr->pf_start_line; in qed_cxt_cfg_ilt_compute()
726 if (curr_line - p_hwfn->p_cxt_mngr->pf_start_line > in qed_cxt_cfg_ilt_compute()
751 p_mngr = p_hwfn->p_cxt_mngr; in qed_cxt_cfg_ilt_compute_excess()
773 struct qed_src_t2 *p_t2 = &p_hwfn->p_cxt_mngr->src_t2; in qed_cxt_src_t2_free()
821 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_cxt_src_t2_alloc()
834 p_src = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_SRC]; in qed_cxt_src_t2_alloc()
920 struct qed_ilt_client_cfg *p_cli = p_hwfn->p_cxt_mngr->clients; in qed_ilt_shadow_free()
921 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_ilt_shadow_free()
944 struct phys_mem_desc *ilt_shadow = p_hwfn->p_cxt_mngr->ilt_shadow; in qed_ilt_blk_alloc()
960 p_hwfn->p_cxt_mngr->pf_start_line + lines_to_skip; in qed_ilt_blk_alloc()
990 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_ilt_shadow_alloc()
1036 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_cid_map_free()
1077 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_cid_map_alloc()
1165 p_hwfn->p_cxt_mngr = p_mngr; in qed_cxt_mngr_alloc()
1198 if (!p_hwfn->p_cxt_mngr) in qed_cxt_mngr_free()
1204 kfree(p_hwfn->p_cxt_mngr); in qed_cxt_mngr_free()
1206 p_hwfn->p_cxt_mngr = NULL; in qed_cxt_mngr_free()
1211 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_cxt_mngr_setup()
1302 page_sz = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC].p_size.val; in qed_cdu_init_common()
1313 page_sz = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT].p_size.val; in qed_cdu_init_common()
1314 cxt_size = p_hwfn->p_cxt_mngr->task_type_size[0]; in qed_cdu_init_common()
1326 cxt_size = p_hwfn->p_cxt_mngr->task_type_size[1]; in qed_cdu_init_common()
1365 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_cdu_init_pf()
1441 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_dq_init_pf()
1498 ilt_clients = p_hwfn->p_cxt_mngr->clients; in qed_ilt_bounds_init()
1528 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC]; in qed_ilt_vf_bounds_init()
1542 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_ilt_vf_bounds_init()
1556 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TM]; in qed_ilt_vf_bounds_init()
1581 p_mngr = p_hwfn->p_cxt_mngr; in qed_ilt_init_pf()
1583 clients = p_hwfn->p_cxt_mngr->clients; in qed_ilt_init_pf()
1619 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_src_init_pf()
1637 p_hwfn->p_cxt_mngr->src_t2.first_free); in qed_src_init_pf()
1639 p_hwfn->p_cxt_mngr->src_t2.last_free); in qed_src_init_pf()
1660 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_tm_init_pf()
1757 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_prs_init_pf()
1800 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in _qed_cxt_acquire_cid()
1855 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_cxt_test_cid_acquired()
1927 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_cxt_get_cid_info()
1944 hw_p_size = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC].p_size.val; in qed_cxt_get_cid_info()
2048 p_hwfn->p_cxt_mngr->arfs_count = p_params->num_arfs_filters; in qed_cxt_set_pf_params()
2127 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_cxt_get_tid_mem_info()
2162 p_hwfn->p_cxt_mngr->pf_start_line; in qed_cxt_get_tid_mem_info()
2194 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC]; in qed_cxt_dynamic_ilt_alloc()
2200 iid += p_hwfn->p_cxt_mngr->xrc_srq_count; in qed_cxt_dynamic_ilt_alloc()
2201 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TSDM]; in qed_cxt_dynamic_ilt_alloc()
2206 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TSDM]; in qed_cxt_dynamic_ilt_alloc()
2211 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_cxt_dynamic_ilt_alloc()
2224 shadow_line = line - p_hwfn->p_cxt_mngr->pf_start_line; in qed_cxt_dynamic_ilt_alloc()
2232 mutex_lock(&p_hwfn->p_cxt_mngr->mutex); in qed_cxt_dynamic_ilt_alloc()
2234 if (p_hwfn->p_cxt_mngr->ilt_shadow[shadow_line].virt_addr) in qed_cxt_dynamic_ilt_alloc()
2276 p_hwfn->p_cxt_mngr->ilt_shadow[shadow_line].virt_addr = p_virt; in qed_cxt_dynamic_ilt_alloc()
2277 p_hwfn->p_cxt_mngr->ilt_shadow[shadow_line].phys_addr = p_phys; in qed_cxt_dynamic_ilt_alloc()
2278 p_hwfn->p_cxt_mngr->ilt_shadow[shadow_line].size = in qed_cxt_dynamic_ilt_alloc()
2288 (p_hwfn->p_cxt_mngr->ilt_shadow[shadow_line].phys_addr in qed_cxt_dynamic_ilt_alloc()
2314 mutex_unlock(&p_hwfn->p_cxt_mngr->mutex); in qed_cxt_dynamic_ilt_alloc()
2338 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC]; in qed_cxt_free_ilt_range()
2343 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TSDM]; in qed_cxt_free_ilt_range()
2348 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TSDM]; in qed_cxt_free_ilt_range()
2353 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_cxt_free_ilt_range()
2370 shadow_start_line = start_line - p_hwfn->p_cxt_mngr->pf_start_line; in qed_cxt_free_ilt_range()
2371 shadow_end_line = end_line - p_hwfn->p_cxt_mngr->pf_start_line; in qed_cxt_free_ilt_range()
2381 if (!p_hwfn->p_cxt_mngr->ilt_shadow[i].virt_addr) in qed_cxt_free_ilt_range()
2385 p_hwfn->p_cxt_mngr->ilt_shadow[i].size, in qed_cxt_free_ilt_range()
2386 p_hwfn->p_cxt_mngr->ilt_shadow[i].virt_addr, in qed_cxt_free_ilt_range()
2387 p_hwfn->p_cxt_mngr->ilt_shadow[i].phys_addr); in qed_cxt_free_ilt_range()
2389 p_hwfn->p_cxt_mngr->ilt_shadow[i].virt_addr = NULL; in qed_cxt_free_ilt_range()
2390 p_hwfn->p_cxt_mngr->ilt_shadow[i].phys_addr = 0; in qed_cxt_free_ilt_range()
2391 p_hwfn->p_cxt_mngr->ilt_shadow[i].size = 0; in qed_cxt_free_ilt_range()
2439 p_hwfn->p_cxt_mngr->xrc_srq_count); in qed_cxt_free_proto_ilt()
2442 p_hwfn->p_cxt_mngr->xrc_srq_count, in qed_cxt_free_proto_ilt()
2443 p_hwfn->p_cxt_mngr->srq_count); in qed_cxt_free_proto_ilt()
2451 struct qed_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr; in qed_cxt_get_task_ctx()
2519 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_get_cdut_num_pf_init_pages()
2534 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_get_cdut_num_vf_init_pages()
2549 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_get_cdut_num_pf_work_pages()
2564 p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT]; in qed_get_cdut_num_vf_work_pages()