Home
last modified time | relevance | path

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

/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_res.c222 struct bnxt_qplib_hwq_attr *hwq_attr) in bnxt_qplib_alloc_init_hwq() argument
234 res = hwq_attr->res; in bnxt_qplib_alloc_init_hwq()
236 umem = hwq_attr->sginfo->sghead; in bnxt_qplib_alloc_init_hwq()
237 pg_size = hwq_attr->sginfo->pgsize; in bnxt_qplib_alloc_init_hwq()
240 depth = roundup_pow_of_two(hwq_attr->depth); in bnxt_qplib_alloc_init_hwq()
241 stride = roundup_pow_of_two(hwq_attr->stride); in bnxt_qplib_alloc_init_hwq()
242 if (hwq_attr->aux_depth) { in bnxt_qplib_alloc_init_hwq()
243 aux_slots = hwq_attr->aux_depth; in bnxt_qplib_alloc_init_hwq()
244 aux_size = roundup_pow_of_two(hwq_attr->aux_stride); in bnxt_qplib_alloc_init_hwq()
257 hwq_attr->sginfo->npages = npages; in bnxt_qplib_alloc_init_hwq()
[all …]
H A Dqplib_fp.c588 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_alloc_nq_mem() local
598 hwq_attr.res = res; in bnxt_qplib_alloc_nq_mem()
599 hwq_attr.sginfo = &sginfo; in bnxt_qplib_alloc_nq_mem()
600 hwq_attr.depth = nq->hwq.max_elements; in bnxt_qplib_alloc_nq_mem()
601 hwq_attr.stride = sizeof(struct nq_base); in bnxt_qplib_alloc_nq_mem()
602 hwq_attr.type = _get_hwq_type(res); in bnxt_qplib_alloc_nq_mem()
603 if (bnxt_qplib_alloc_init_hwq(&nq->hwq, &hwq_attr)) { in bnxt_qplib_alloc_nq_mem()
644 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_create_srq() local
653 hwq_attr.res = res; in bnxt_qplib_create_srq()
654 hwq_attr.sginfo = &srq->sginfo; in bnxt_qplib_create_srq()
[all …]
H A Dqplib_rcfw.c1037 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_alloc_rcfw_channel() local
1051 hwq_attr.sginfo = &sginfo; in bnxt_qplib_alloc_rcfw_channel()
1052 hwq_attr.res = rcfw->res; in bnxt_qplib_alloc_rcfw_channel()
1053 hwq_attr.depth = BNXT_QPLIB_CREQE_MAX_CNT; in bnxt_qplib_alloc_rcfw_channel()
1054 hwq_attr.stride = BNXT_QPLIB_CREQE_UNITS; in bnxt_qplib_alloc_rcfw_channel()
1055 hwq_attr.type = _get_hwq_type(res); in bnxt_qplib_alloc_rcfw_channel()
1057 if (bnxt_qplib_alloc_init_hwq(&creq->hwq, &hwq_attr)) { in bnxt_qplib_alloc_rcfw_channel()
1064 hwq_attr.depth = BNXT_QPLIB_CMDQE_MAX_CNT & 0x7FFFFFFF; in bnxt_qplib_alloc_rcfw_channel()
1065 hwq_attr.stride = BNXT_QPLIB_CMDQE_UNITS; in bnxt_qplib_alloc_rcfw_channel()
1066 hwq_attr.type = HWQ_TYPE_CTX; in bnxt_qplib_alloc_rcfw_channel()
[all …]
H A Dqplib_sp.c634 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_reg_mr() local
653 hwq_attr.res = res; in bnxt_qplib_reg_mr()
654 hwq_attr.depth = mrinfo->sg.npages; in bnxt_qplib_reg_mr()
655 hwq_attr.stride = PAGE_SIZE; in bnxt_qplib_reg_mr()
656 hwq_attr.type = HWQ_TYPE_MR; in bnxt_qplib_reg_mr()
657 hwq_attr.sginfo = &mrinfo->sg; in bnxt_qplib_reg_mr()
658 rc = bnxt_qplib_alloc_init_hwq(&mr->hwq, &hwq_attr); in bnxt_qplib_reg_mr()
720 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_alloc_fast_reg_page_list() local
730 hwq_attr.res = res; in bnxt_qplib_alloc_fast_reg_page_list()
731 hwq_attr.depth = pg_ptrs; in bnxt_qplib_alloc_fast_reg_page_list()
[all …]
H A Dqplib_res.h472 struct bnxt_qplib_hwq_attr *hwq_attr);