Lines Matching refs:init_attr
398 u32 pd, struct ehea_qp_init_attr *init_attr) in ehea_create_qp() argument
413 hret = ehea_h_alloc_resource_qp(adapter->handle, init_attr, pd, in ehea_create_qp()
420 wqe_size_in_bytes_sq = map_wqe_size(init_attr->act_wqe_size_enc_sq); in ehea_create_qp()
421 wqe_size_in_bytes_rq1 = map_wqe_size(init_attr->act_wqe_size_enc_rq1); in ehea_create_qp()
422 wqe_size_in_bytes_rq2 = map_wqe_size(init_attr->act_wqe_size_enc_rq2); in ehea_create_qp()
423 wqe_size_in_bytes_rq3 = map_wqe_size(init_attr->act_wqe_size_enc_rq3); in ehea_create_qp()
425 ret = ehea_qp_alloc_register(qp, &qp->hw_squeue, init_attr->nr_sq_pages, in ehea_create_qp()
427 init_attr->act_wqe_size_enc_sq, adapter, in ehea_create_qp()
435 init_attr->nr_rq1_pages, in ehea_create_qp()
437 init_attr->act_wqe_size_enc_rq1, in ehea_create_qp()
444 if (init_attr->rq_count > 1) { in ehea_create_qp()
446 init_attr->nr_rq2_pages, in ehea_create_qp()
448 init_attr->act_wqe_size_enc_rq2, in ehea_create_qp()
456 if (init_attr->rq_count > 2) { in ehea_create_qp()
458 init_attr->nr_rq3_pages, in ehea_create_qp()
460 init_attr->act_wqe_size_enc_rq3, in ehea_create_qp()
468 qp->init_attr = *init_attr; in ehea_create_qp()
493 struct ehea_qp_init_attr *qp_attr = &qp->init_attr; in ehea_destroy_qp_res()