Home
last modified time | relevance | path

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

/linux/drivers/infiniband/hw/bng_re/
H A Dbng_res.c129 struct bng_re_hwq_attr *hwq_attr) in bng_re_alloc_init_hwq() argument
139 res = hwq_attr->res; in bng_re_alloc_init_hwq()
141 pg_size = hwq_attr->sginfo->pgsize; in bng_re_alloc_init_hwq()
144 depth = roundup_pow_of_two(hwq_attr->depth); in bng_re_alloc_init_hwq()
145 stride = roundup_pow_of_two(hwq_attr->stride); in bng_re_alloc_init_hwq()
152 hwq_attr->sginfo->npages = npages; in bng_re_alloc_init_hwq()
154 if (npages == MAX_PBL_LVL_0_PGS && !hwq_attr->sginfo->nopte) { in bng_re_alloc_init_hwq()
156 rc = bng_alloc_pbl(res, &hwq->pbl[BNG_PBL_LVL_0], hwq_attr->sginfo); in bng_re_alloc_init_hwq()
195 hwq_attr->sginfo); in bng_re_alloc_init_hwq()
199 if (hwq_attr->sginfo->nopte) in bng_re_alloc_init_hwq()
[all …]
H A Dbng_fw.c64 struct bng_re_hwq_attr hwq_attr = {}; in bng_re_alloc_fw_channel() local
77 hwq_attr.sginfo = &sginfo; in bng_re_alloc_fw_channel()
78 hwq_attr.res = rcfw->res; in bng_re_alloc_fw_channel()
79 hwq_attr.depth = BNG_FW_CREQE_MAX_CNT; in bng_re_alloc_fw_channel()
80 hwq_attr.stride = BNG_FW_CREQE_UNITS; in bng_re_alloc_fw_channel()
81 hwq_attr.type = BNG_HWQ_TYPE_QUEUE; in bng_re_alloc_fw_channel()
83 if (bng_re_alloc_init_hwq(&creq->hwq, &hwq_attr)) { in bng_re_alloc_fw_channel()
92 hwq_attr.depth = rcfw->cmdq_depth & 0x7FFFFFFF; in bng_re_alloc_fw_channel()
93 hwq_attr.stride = BNG_FW_CMDQE_UNITS; in bng_re_alloc_fw_channel()
94 hwq_attr.type = BNG_HWQ_TYPE_CTX; in bng_re_alloc_fw_channel()
[all …]
H A Dbng_res.h207 struct bng_re_hwq_attr *hwq_attr);
/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_fp.c593 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_alloc_nq() local
604 hwq_attr.res = res; in bnxt_qplib_alloc_nq()
605 hwq_attr.sginfo = &sginfo; in bnxt_qplib_alloc_nq()
606 hwq_attr.depth = nq->hwq.max_elements; in bnxt_qplib_alloc_nq()
607 hwq_attr.stride = sizeof(struct nq_base); in bnxt_qplib_alloc_nq()
608 hwq_attr.type = bnxt_qplib_get_hwq_type(nq->res); in bnxt_qplib_alloc_nq()
609 if (bnxt_qplib_alloc_init_hwq(&nq->hwq, &hwq_attr)) { in bnxt_qplib_alloc_nq()
646 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_create_srq() local
654 hwq_attr.res = res; in bnxt_qplib_create_srq()
655 hwq_attr.sginfo = &srq->sg_info; in bnxt_qplib_create_srq()
[all …]
H A Dqplib_sp.c584 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_reg_mr() local
601 hwq_attr.res = res; in bnxt_qplib_reg_mr()
602 hwq_attr.depth = pages; in bnxt_qplib_reg_mr()
603 hwq_attr.stride = sizeof(dma_addr_t); in bnxt_qplib_reg_mr()
604 hwq_attr.type = HWQ_TYPE_MR; in bnxt_qplib_reg_mr()
605 hwq_attr.sginfo = &sginfo; in bnxt_qplib_reg_mr()
606 hwq_attr.sginfo->umem = umem; in bnxt_qplib_reg_mr()
607 hwq_attr.sginfo->npages = pages; in bnxt_qplib_reg_mr()
608 hwq_attr.sginfo->pgsize = buf_pg_size; in bnxt_qplib_reg_mr()
609 hwq_attr.sginfo->pgshft = ilog2(buf_pg_size); in bnxt_qplib_reg_mr()
[all …]