Home
last modified time | relevance | path

Searched refs:hwq_attr (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.15/drivers/infiniband/hw/bnxt_re/
Dqplib_res.c184 struct bnxt_qplib_hwq_attr *hwq_attr) in bnxt_qplib_alloc_init_hwq() argument
194 res = hwq_attr->res; in bnxt_qplib_alloc_init_hwq()
196 pg_size = hwq_attr->sginfo->pgsize; in bnxt_qplib_alloc_init_hwq()
199 depth = roundup_pow_of_two(hwq_attr->depth); in bnxt_qplib_alloc_init_hwq()
200 stride = roundup_pow_of_two(hwq_attr->stride); in bnxt_qplib_alloc_init_hwq()
201 if (hwq_attr->aux_depth) { in bnxt_qplib_alloc_init_hwq()
202 aux_slots = hwq_attr->aux_depth; in bnxt_qplib_alloc_init_hwq()
203 aux_size = roundup_pow_of_two(hwq_attr->aux_stride); in bnxt_qplib_alloc_init_hwq()
209 if (!hwq_attr->sginfo->umem) { in bnxt_qplib_alloc_init_hwq()
216 hwq_attr->sginfo->npages = npages; in bnxt_qplib_alloc_init_hwq()
[all …]
Dqplib_fp.c554 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_alloc_nq() local
565 hwq_attr.res = res; in bnxt_qplib_alloc_nq()
566 hwq_attr.sginfo = &sginfo; in bnxt_qplib_alloc_nq()
567 hwq_attr.depth = nq->hwq.max_elements; in bnxt_qplib_alloc_nq()
568 hwq_attr.stride = sizeof(struct nq_base); in bnxt_qplib_alloc_nq()
569 hwq_attr.type = bnxt_qplib_get_hwq_type(nq->res); in bnxt_qplib_alloc_nq()
570 if (bnxt_qplib_alloc_init_hwq(&nq->hwq, &hwq_attr)) { in bnxt_qplib_alloc_nq()
605 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_create_srq() local
613 hwq_attr.res = res; in bnxt_qplib_create_srq()
614 hwq_attr.sginfo = &srq->sg_info; in bnxt_qplib_create_srq()
[all …]
Dqplib_sp.c667 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_reg_mr() local
684 hwq_attr.res = res; in bnxt_qplib_reg_mr()
685 hwq_attr.depth = pages; in bnxt_qplib_reg_mr()
686 hwq_attr.stride = buf_pg_size; in bnxt_qplib_reg_mr()
687 hwq_attr.type = HWQ_TYPE_MR; in bnxt_qplib_reg_mr()
688 hwq_attr.sginfo = &sginfo; in bnxt_qplib_reg_mr()
689 hwq_attr.sginfo->umem = umem; in bnxt_qplib_reg_mr()
690 hwq_attr.sginfo->npages = pages; in bnxt_qplib_reg_mr()
691 hwq_attr.sginfo->pgsize = PAGE_SIZE; in bnxt_qplib_reg_mr()
692 hwq_attr.sginfo->pgshft = PAGE_SHIFT; in bnxt_qplib_reg_mr()
[all …]
Dqplib_rcfw.c571 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_alloc_rcfw_channel() local
585 hwq_attr.sginfo = &sginfo; in bnxt_qplib_alloc_rcfw_channel()
586 hwq_attr.res = rcfw->res; in bnxt_qplib_alloc_rcfw_channel()
587 hwq_attr.depth = BNXT_QPLIB_CREQE_MAX_CNT; in bnxt_qplib_alloc_rcfw_channel()
588 hwq_attr.stride = BNXT_QPLIB_CREQE_UNITS; in bnxt_qplib_alloc_rcfw_channel()
589 hwq_attr.type = bnxt_qplib_get_hwq_type(res); in bnxt_qplib_alloc_rcfw_channel()
591 if (bnxt_qplib_alloc_init_hwq(&creq->hwq, &hwq_attr)) { in bnxt_qplib_alloc_rcfw_channel()
602 hwq_attr.depth = rcfw->cmdq_depth; in bnxt_qplib_alloc_rcfw_channel()
603 hwq_attr.stride = BNXT_QPLIB_CMDQE_UNITS; in bnxt_qplib_alloc_rcfw_channel()
604 hwq_attr.type = HWQ_TYPE_CTX; in bnxt_qplib_alloc_rcfw_channel()
[all …]
Dqplib_res.h347 struct bnxt_qplib_hwq_attr *hwq_attr);