max_elements 1000 drivers/infiniband/hw/bnxt_re/main.c rdev->nq[i].hwq.max_elements = BNXT_RE_MAX_CQ_COUNT + max_elements 182 drivers/infiniband/hw/bnxt_re/qplib_fp.c rq->hwq.max_elements * qp->rq_hdr_buf_size, max_elements 186 drivers/infiniband/hw/bnxt_re/qplib_fp.c sq->hwq.max_elements * qp->sq_hdr_buf_size, max_elements 203 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (qp->sq_hdr_buf_size && sq->hwq.max_elements) { max_elements 205 drivers/infiniband/hw/bnxt_re/qplib_fp.c sq->hwq.max_elements * max_elements 216 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (qp->rq_hdr_buf_size && rq->hwq.max_elements) { max_elements 218 drivers/infiniband/hw/bnxt_re/qplib_fp.c rq->hwq.max_elements * max_elements 256 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (!NQE_CMP_VALID(nqe, raw_cons, hwq->max_elements)) max_elements 318 drivers/infiniband/hw/bnxt_re/qplib_fp.c hwq->max_elements, nq->ring_id, max_elements 347 drivers/infiniband/hw/bnxt_re/qplib_fp.c nq->hwq.max_elements, nq->ring_id, gen_p5); max_elements 410 drivers/infiniband/hw/bnxt_re/qplib_fp.c nq->hwq.max_elements, nq->ring_id, gen_p5); max_elements 466 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (nq->hwq.max_elements) { max_elements 468 drivers/infiniband/hw/bnxt_re/qplib_fp.c nq->hwq.max_elements = 0; max_elements 477 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (!nq->hwq.max_elements || max_elements 478 drivers/infiniband/hw/bnxt_re/qplib_fp.c nq->hwq.max_elements > BNXT_QPLIB_NQE_MAX_CNT) max_elements 479 drivers/infiniband/hw/bnxt_re/qplib_fp.c nq->hwq.max_elements = BNXT_QPLIB_NQE_MAX_CNT; max_elements 482 drivers/infiniband/hw/bnxt_re/qplib_fp.c &nq->hwq.max_elements, max_elements 542 drivers/infiniband/hw/bnxt_re/qplib_fp.c srq->hwq.max_elements = srq->max_wqe; max_elements 544 drivers/infiniband/hw/bnxt_re/qplib_fp.c &srq->hwq.max_elements, max_elements 550 drivers/infiniband/hw/bnxt_re/qplib_fp.c srq->swq = kcalloc(srq->hwq.max_elements, sizeof(*srq->swq), max_elements 563 drivers/infiniband/hw/bnxt_re/qplib_fp.c req.srq_size = cpu_to_le16((u16)srq->hwq.max_elements); max_elements 592 drivers/infiniband/hw/bnxt_re/qplib_fp.c srq->last_idx = srq->hwq.max_elements - 1; max_elements 593 drivers/infiniband/hw/bnxt_re/qplib_fp.c for (idx = 0; idx < srq->hwq.max_elements; idx++) max_elements 621 drivers/infiniband/hw/bnxt_re/qplib_fp.c srq_hwq->max_elements - sw_cons + sw_prod; max_elements 709 drivers/infiniband/hw/bnxt_re/qplib_fp.c srq_hwq->max_elements - sw_cons + sw_prod; max_elements 742 drivers/infiniband/hw/bnxt_re/qplib_fp.c sq->hwq.max_elements = sq->max_wqe; max_elements 744 drivers/infiniband/hw/bnxt_re/qplib_fp.c &sq->hwq.max_elements, max_elements 750 drivers/infiniband/hw/bnxt_re/qplib_fp.c sq->swq = kcalloc(sq->hwq.max_elements, sizeof(*sq->swq), GFP_KERNEL); max_elements 781 drivers/infiniband/hw/bnxt_re/qplib_fp.c rq->hwq.max_elements = qp->rq.max_wqe; max_elements 783 drivers/infiniband/hw/bnxt_re/qplib_fp.c &rq->hwq.max_elements, max_elements 789 drivers/infiniband/hw/bnxt_re/qplib_fp.c rq->swq = kcalloc(rq->hwq.max_elements, sizeof(*rq->swq), max_elements 824 drivers/infiniband/hw/bnxt_re/qplib_fp.c req.sq_size = cpu_to_le32(sq->hwq.max_elements); max_elements 825 drivers/infiniband/hw/bnxt_re/qplib_fp.c req.rq_size = cpu_to_le32(rq->hwq.max_elements); max_elements 890 drivers/infiniband/hw/bnxt_re/qplib_fp.c sq->hwq.max_elements = sq->max_wqe; max_elements 892 drivers/infiniband/hw/bnxt_re/qplib_fp.c &sq->hwq.max_elements, max_elements 899 drivers/infiniband/hw/bnxt_re/qplib_fp.c sq->swq = kcalloc(sq->hwq.max_elements, sizeof(*sq->swq), GFP_KERNEL); max_elements 908 drivers/infiniband/hw/bnxt_re/qplib_fp.c (sq->hwq.max_elements)]; max_elements 910 drivers/infiniband/hw/bnxt_re/qplib_fp.c &hw_sq_send_ptr[get_sqe_pg(sq->hwq.max_elements)] max_elements 911 drivers/infiniband/hw/bnxt_re/qplib_fp.c [get_sqe_idx(sq->hwq.max_elements)]; max_elements 919 drivers/infiniband/hw/bnxt_re/qplib_fp.c for (i = 0; i < sq->hwq.max_elements; i++) { max_elements 959 drivers/infiniband/hw/bnxt_re/qplib_fp.c rq->hwq.max_elements = rq->max_wqe; max_elements 962 drivers/infiniband/hw/bnxt_re/qplib_fp.c &rq->hwq.max_elements, max_elements 968 drivers/infiniband/hw/bnxt_re/qplib_fp.c rq->swq = kcalloc(rq->hwq.max_elements, sizeof(*rq->swq), max_elements 1003 drivers/infiniband/hw/bnxt_re/qplib_fp.c req.sq_size = cpu_to_le32(sq->hwq.max_elements); max_elements 1004 drivers/infiniband/hw/bnxt_re/qplib_fp.c req.rq_size = cpu_to_le32(rq->hwq.max_elements); max_elements 1027 drivers/infiniband/hw/bnxt_re/qplib_fp.c xrrq->max_elements = max_elements 1029 drivers/infiniband/hw/bnxt_re/qplib_fp.c req_size = xrrq->max_elements * max_elements 1033 drivers/infiniband/hw/bnxt_re/qplib_fp.c &xrrq->max_elements, max_elements 1042 drivers/infiniband/hw/bnxt_re/qplib_fp.c xrrq->max_elements = IRD_LIMIT_TO_IRRQ_SLOTS( max_elements 1044 drivers/infiniband/hw/bnxt_re/qplib_fp.c req_size = xrrq->max_elements * max_elements 1049 drivers/infiniband/hw/bnxt_re/qplib_fp.c &xrrq->max_elements, max_elements 1076 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (qp->irrq.max_elements) max_elements 1079 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (qp->orrq.max_elements) max_elements 1270 drivers/infiniband/hw/bnxt_re/qplib_fp.c req.sq_size = cpu_to_le32(qp->sq.hwq.max_elements); max_elements 1271 drivers/infiniband/hw/bnxt_re/qplib_fp.c req.rq_size = cpu_to_le32(qp->rq.hwq.max_elements); max_elements 1358 drivers/infiniband/hw/bnxt_re/qplib_fp.c qp->sq.max_wqe = qp->sq.hwq.max_elements; max_elements 1359 drivers/infiniband/hw/bnxt_re/qplib_fp.c qp->rq.max_wqe = qp->rq.hwq.max_elements; max_elements 1377 drivers/infiniband/hw/bnxt_re/qplib_fp.c for (i = 0; i < cq_hwq->max_elements; i++) { max_elements 1380 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (!CQE_CMP_VALID(hw_cqe, i, cq_hwq->max_elements)) max_elements 1449 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (qp->irrq.max_elements) max_elements 1451 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (qp->orrq.max_elements) max_elements 1548 drivers/infiniband/hw/bnxt_re/qplib_fp.c sq->hwq.prod, sq->hwq.cons, sq->hwq.max_elements, max_elements 1936 drivers/infiniband/hw/bnxt_re/qplib_fp.c cq->hwq.max_elements = cq->max_wqe; max_elements 1938 drivers/infiniband/hw/bnxt_re/qplib_fp.c &cq->hwq.max_elements, max_elements 1954 drivers/infiniband/hw/bnxt_re/qplib_fp.c req.cq_size = cpu_to_le32(cq->hwq.max_elements); max_elements 2153 drivers/infiniband/hw/bnxt_re/qplib_fp.c i = cq->hwq.max_elements; max_elements 2161 drivers/infiniband/hw/bnxt_re/qplib_fp.c cq->hwq.max_elements)) { max_elements 2237 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (cqe_sq_cons > sq->hwq.max_elements) { max_elements 2240 drivers/infiniband/hw/bnxt_re/qplib_fp.c cqe_sq_cons, sq->hwq.max_elements); max_elements 2368 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (wr_id_idx >= srq->hwq.max_elements) { max_elements 2371 drivers/infiniband/hw/bnxt_re/qplib_fp.c wr_id_idx, srq->hwq.max_elements); max_elements 2381 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (wr_id_idx >= rq->hwq.max_elements) { max_elements 2384 drivers/infiniband/hw/bnxt_re/qplib_fp.c wr_id_idx, rq->hwq.max_elements); max_elements 2449 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (wr_id_idx >= srq->hwq.max_elements) { max_elements 2452 drivers/infiniband/hw/bnxt_re/qplib_fp.c wr_id_idx, srq->hwq.max_elements); max_elements 2462 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (wr_id_idx >= rq->hwq.max_elements) { max_elements 2465 drivers/infiniband/hw/bnxt_re/qplib_fp.c wr_id_idx, rq->hwq.max_elements); max_elements 2497 drivers/infiniband/hw/bnxt_re/qplib_fp.c rc = !CQE_CMP_VALID(hw_cqe, raw_cons, cq->hwq.max_elements); max_elements 2553 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (wr_id_idx >= srq->hwq.max_elements) { max_elements 2556 drivers/infiniband/hw/bnxt_re/qplib_fp.c wr_id_idx, srq->hwq.max_elements); max_elements 2566 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (wr_id_idx >= rq->hwq.max_elements) { max_elements 2569 drivers/infiniband/hw/bnxt_re/qplib_fp.c wr_id_idx, rq->hwq.max_elements); max_elements 2624 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (cqe_cons > sq->hwq.max_elements) { max_elements 2627 drivers/infiniband/hw/bnxt_re/qplib_fp.c cqe_cons, sq->hwq.max_elements); max_elements 2672 drivers/infiniband/hw/bnxt_re/qplib_fp.c } else if (cqe_cons > rq->hwq.max_elements) { max_elements 2675 drivers/infiniband/hw/bnxt_re/qplib_fp.c cqe_cons, rq->hwq.max_elements); max_elements 2752 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (!CQE_CMP_VALID(hw_cqe, raw_cons, cq->hwq.max_elements)) max_elements 450 drivers/infiniband/hw/bnxt_re/qplib_fp.h u32 max_elements, u32 xid, max_elements 453 drivers/infiniband/hw/bnxt_re/qplib_fp.h u32 index = raw_cons & (max_elements - 1); max_elements 462 drivers/infiniband/hw/bnxt_re/qplib_fp.h u32 max_elements, u32 xid, max_elements 465 drivers/infiniband/hw/bnxt_re/qplib_fp.h u32 index = raw_cons & (max_elements - 1); max_elements 382 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c if (!CREQ_CMP_VALID(creqe, raw_cons, creq->max_elements)) max_elements 418 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c raw_cons, creq->max_elements, max_elements 538 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c req.number_of_qp = cpu_to_le32(ctx->qpc_tbl.max_elements); max_elements 539 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c req.number_of_mrw = cpu_to_le32(ctx->mrw_tbl.max_elements); max_elements 540 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c req.number_of_srq = cpu_to_le32(ctx->srqc_tbl.max_elements); max_elements 541 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c req.number_of_cq = cpu_to_le32(ctx->cq_tbl.max_elements); max_elements 576 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c rcfw->creq.max_elements = BNXT_QPLIB_CREQE_MAX_CNT; max_elements 579 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c &rcfw->creq.max_elements, max_elements 591 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c rcfw->cmdq.max_elements = rcfw->cmdq_depth; max_elements 594 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c &rcfw->cmdq.max_elements, max_elements 603 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c rcfw->crsqe_tbl = kcalloc(rcfw->cmdq.max_elements, max_elements 628 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c rcfw->creq.max_elements, rcfw->creq_ring_id, max_elements 684 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c rcfw->creq.cons, rcfw->creq.max_elements, max_elements 181 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h u32 max_elements, u32 xid, max_elements 184 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h u32 index = raw_cons & (max_elements - 1); max_elements 194 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h u32 max_elements, u32 xid, max_elements 197 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h u32 index = raw_cons & (max_elements - 1); max_elements 140 drivers/infiniband/hw/bnxt_re/qplib_res.c if (!hwq->max_elements) max_elements 153 drivers/infiniband/hw/bnxt_re/qplib_res.c hwq->max_elements = 0; max_elements 286 drivers/infiniband/hw/bnxt_re/qplib_res.c *elements = hwq->max_elements = slots; max_elements 350 drivers/infiniband/hw/bnxt_re/qplib_res.c ctx->qpc_tbl.max_elements = ctx->qpc_count; max_elements 352 drivers/infiniband/hw/bnxt_re/qplib_res.c &ctx->qpc_tbl.max_elements, max_elements 359 drivers/infiniband/hw/bnxt_re/qplib_res.c ctx->mrw_tbl.max_elements = ctx->mrw_count; max_elements 361 drivers/infiniband/hw/bnxt_re/qplib_res.c &ctx->mrw_tbl.max_elements, max_elements 368 drivers/infiniband/hw/bnxt_re/qplib_res.c ctx->srqc_tbl.max_elements = ctx->srqc_count; max_elements 370 drivers/infiniband/hw/bnxt_re/qplib_res.c &ctx->srqc_tbl.max_elements, max_elements 377 drivers/infiniband/hw/bnxt_re/qplib_res.c ctx->cq_tbl.max_elements = ctx->cq_count; max_elements 379 drivers/infiniband/hw/bnxt_re/qplib_res.c &ctx->cq_tbl.max_elements, max_elements 386 drivers/infiniband/hw/bnxt_re/qplib_res.c ctx->tqm_pde.max_elements = 512; max_elements 388 drivers/infiniband/hw/bnxt_re/qplib_res.c &ctx->tqm_pde.max_elements, sizeof(u64), max_elements 396 drivers/infiniband/hw/bnxt_re/qplib_res.c ctx->tqm_tbl[i].max_elements = ctx->qpc_count * max_elements 399 drivers/infiniband/hw/bnxt_re/qplib_res.c &ctx->tqm_tbl[i].max_elements, 1, max_elements 407 drivers/infiniband/hw/bnxt_re/qplib_res.c if (!ctx->tqm_tbl[i].max_elements) max_elements 435 drivers/infiniband/hw/bnxt_re/qplib_res.c ctx->tim_tbl.max_elements = ctx->qpc_count * 16; max_elements 437 drivers/infiniband/hw/bnxt_re/qplib_res.c &ctx->tim_tbl.max_elements, 1, max_elements 49 drivers/infiniband/hw/bnxt_re/qplib_res.h #define HWQ_CMP(idx, hwq) ((idx) & ((hwq)->max_elements - 1)) max_elements 51 drivers/infiniband/hw/bnxt_re/qplib_res.h #define HWQ_FREE_SLOTS(hwq) (hwq->max_elements - \ max_elements 54 drivers/infiniband/hw/bnxt_re/qplib_res.h & (hwq->max_elements - 1))) max_elements 98 drivers/infiniband/hw/bnxt_re/qplib_res.h u32 max_elements; max_elements 587 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (mrw->hwq.max_elements) max_elements 646 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (mrw->hwq.max_elements) { max_elements 682 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (mr->hwq.max_elements) max_elements 685 drivers/infiniband/hw/bnxt_re/qplib_sp.c mr->hwq.max_elements = pages; max_elements 688 drivers/infiniband/hw/bnxt_re/qplib_sp.c &mr->hwq.max_elements, max_elements 736 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (mr->hwq.max_elements) max_elements 756 drivers/infiniband/hw/bnxt_re/qplib_sp.c frpl->hwq.max_elements = pages; max_elements 758 drivers/infiniband/hw/bnxt_re/qplib_sp.c &frpl->hwq.max_elements, PAGE_SIZE, 0, max_elements 519 drivers/s390/net/qeth_core.h u8 max_elements; max_elements 1146 drivers/s390/net/qeth_core_main.c for (i = 0; i < queue->max_elements; ++i) { max_elements 1153 drivers/s390/net/qeth_core_main.c qeth_scrub_qdio_buffer(buf->buffer, queue->max_elements); max_elements 2702 drivers/s390/net/qeth_core_main.c queue->max_elements = QETH_MAX_BUFFER_ELEMENTS(card); max_elements 3643 drivers/s390/net/qeth_core_main.c const unsigned int max_elements = queue->max_elements; max_elements 3672 drivers/s390/net/qeth_core_main.c if (__elements > max_elements) { max_elements 3676 drivers/s390/net/qeth_core_main.c max_elements, __elements, skb->len); max_elements 3847 drivers/s390/net/qeth_core_main.c if ((buffer->next_element_to_fill + elements > queue->max_elements) || max_elements 3875 drivers/s390/net/qeth_core_main.c if (flush || next_element >= queue->max_elements) { max_elements 3922 drivers/s390/net/qeth_core_main.c queue->max_elements) { max_elements 3958 drivers/s390/net/qeth_core_main.c if (!queue->do_pack || stopped || next_element >= queue->max_elements) { max_elements 5235 drivers/s390/net/qeth_core_main.c qeth_scrub_qdio_buffer(buffer->buffer, queue->max_elements); max_elements 575 drivers/s390/net/qeth_l2_main.c if (elements > queue->max_elements) {