Searched refs:hwq_attr (Results 1 – 7 of 7) sorted by relevance
178 struct bnxt_qplib_hwq_attr *hwq_attr) in bnxt_qplib_alloc_init_hwq() argument188 res = hwq_attr->res; in bnxt_qplib_alloc_init_hwq()190 pg_size = hwq_attr->sginfo->pgsize; in bnxt_qplib_alloc_init_hwq()193 depth = roundup_pow_of_two(hwq_attr->depth); in bnxt_qplib_alloc_init_hwq()194 stride = roundup_pow_of_two(hwq_attr->stride); in bnxt_qplib_alloc_init_hwq()195 if (hwq_attr->aux_depth) { in bnxt_qplib_alloc_init_hwq()196 aux_slots = hwq_attr->aux_depth; in bnxt_qplib_alloc_init_hwq()197 aux_size = roundup_pow_of_two(hwq_attr->aux_stride); in bnxt_qplib_alloc_init_hwq()203 if (!hwq_attr->sginfo->umem) { in bnxt_qplib_alloc_init_hwq()210 hwq_attr->sginfo->npages = npages; in bnxt_qplib_alloc_init_hwq()[all …]
593 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 in bnxt_qplib_create_srq() 818 struct bnxt_qplib_hwq_attr hwq_attr = {}; bnxt_qplib_create_qp1() local 961 struct bnxt_qplib_hwq_attr hwq_attr = {}; bnxt_qplib_create_qp() local 2196 struct bnxt_qplib_hwq_attr hwq_attr = {}; bnxt_qplib_create_cq() local 2299 struct bnxt_qplib_hwq_attr hwq_attr = {}; bnxt_qplib_resize_cq() local [all...]
589 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_reg_mr() 606 hwq_attr.res = res; in bnxt_qplib_reg_mr() 607 hwq_attr.depth = pages; in bnxt_qplib_reg_mr() 608 hwq_attr.stride = sizeof(dma_addr_t); in bnxt_qplib_reg_mr() 609 hwq_attr.type = HWQ_TYPE_MR; in bnxt_qplib_reg_mr() 610 hwq_attr.sginfo = &sginfo; in bnxt_qplib_reg_mr() 611 hwq_attr.sginfo->umem = umem; in bnxt_qplib_reg_mr() 612 hwq_attr.sginfo->npages = pages; in bnxt_qplib_reg_mr() 613 hwq_attr.sginfo->pgsize = buf_pg_size; in bnxt_qplib_reg_mr() 614 hwq_attr in bnxt_qplib_reg_mr() 584 struct bnxt_qplib_hwq_attr hwq_attr = {}; bnxt_qplib_reg_mr() local 671 struct bnxt_qplib_hwq_attr hwq_attr = {}; bnxt_qplib_alloc_fast_reg_page_list() local [all...]
934 struct bnxt_qplib_hwq_attr hwq_attr = {}; in bnxt_qplib_alloc_rcfw_channel() local947 hwq_attr.sginfo = &sginfo; in bnxt_qplib_alloc_rcfw_channel()948 hwq_attr.res = rcfw->res; in bnxt_qplib_alloc_rcfw_channel()949 hwq_attr.depth = BNXT_QPLIB_CREQE_MAX_CNT; in bnxt_qplib_alloc_rcfw_channel()950 hwq_attr.stride = BNXT_QPLIB_CREQE_UNITS; in bnxt_qplib_alloc_rcfw_channel()951 hwq_attr.type = bnxt_qplib_get_hwq_type(res); in bnxt_qplib_alloc_rcfw_channel()953 if (bnxt_qplib_alloc_init_hwq(&creq->hwq, &hwq_attr)) { in bnxt_qplib_alloc_rcfw_channel()962 hwq_attr.depth = rcfw->cmdq_depth & 0x7FFFFFFF; in bnxt_qplib_alloc_rcfw_channel()963 hwq_attr.stride = BNXT_QPLIB_CMDQE_UNITS; in bnxt_qplib_alloc_rcfw_channel()964 hwq_attr.type = HWQ_TYPE_CTX; in bnxt_qplib_alloc_rcfw_channel()[all …]
129 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 in bng_re_alloc_init_hwq() [all...]
64 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 in bng_re_alloc_fw_channel() [all...]
207 struct bng_re_hwq_attr *hwq_attr);