Home
last modified time | relevance | path

Searched refs:nreq (Results 1 – 19 of 19) sorted by relevance

/freebsd-11-stable/crypto/heimdal/kuser/
HDgenerate-requests.c64 generate_requests (const char *filename, unsigned nreq) in generate_requests() argument
80 for (i = 0; i < nreq; ++i) { in generate_requests()
119 int nreq; in main() local
140 nreq = strtol (argv[1], &end, 0); in main()
143 generate_requests (argv[0], nreq); in main()
/freebsd-11-stable/contrib/ofed/libmlx4/
HDqp.c106 static int wq_overflow(struct mlx4_wq *wq, int nreq, struct mlx4_cq *cq) in wq_overflow() argument
111 if (cur + nreq < wq->max_post) in wq_overflow()
118 return cur + nreq >= wq->max_post; in wq_overflow()
221 int nreq; in mlx4_post_send() local
233 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mlx4_post_send()
234 if (wq_overflow(&qp->sq, nreq, to_mcq(ibqp->send_cq))) { in mlx4_post_send()
471 if (nreq == 1 && inl && size > 1 && size <= ctx->bf_buf_size / 16) { in mlx4_post_send()
490 } else if (nreq) { in mlx4_post_send()
491 qp->sq.head += nreq; in mlx4_post_send()
503 if (nreq) in mlx4_post_send()
[all …]
HDsrq.c70 int nreq; in mlx4_post_srq_recv() local
75 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mlx4_post_srq_recv()
108 if (nreq) { in mlx4_post_srq_recv()
109 srq->counter += nreq; in mlx4_post_srq_recv()
/freebsd-11-stable/crypto/heimdal/kpasswd/
HDkpasswd-generator.c77 generate_requests (const char *filename, unsigned nreq) in generate_requests() argument
91 for (i = 0; i < nreq; ++i) { in generate_requests()
184 int nreq; in main() local
202 nreq = strtol (argv[1], &end, 0); in main()
205 generate_requests (argv[0], nreq); in main()
/freebsd-11-stable/sys/dev/mthca/
HDmthca_qp.c1545 static inline int mthca_wq_overflow(struct mthca_wq *wq, int nreq, in mthca_wq_overflow() argument
1552 if (likely(cur + nreq < wq->max)) in mthca_wq_overflow()
1560 return cur + nreq >= wq->max; in mthca_wq_overflow()
1611 int nreq; in mthca_tavor_post_send() local
1632 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mthca_tavor_post_send()
1633 if (mthca_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in mthca_tavor_post_send()
1637 qp->sq.max, nreq); in mthca_tavor_post_send()
1766 cpu_to_be32((nreq ? 0 : MTHCA_NEXT_DBD) | size | in mthca_tavor_post_send()
1770 if (!nreq) { in mthca_tavor_post_send()
1783 if (likely(nreq)) { in mthca_tavor_post_send()
[all …]
HDmthca_srq.c485 int nreq; in mthca_tavor_post_srq_recv() local
494 for (nreq = 0; wr; wr = wr->next) { in mthca_tavor_post_srq_recv()
535 ++nreq; in mthca_tavor_post_srq_recv()
536 if (unlikely(nreq == MTHCA_TAVOR_MAX_WQES_PER_RECV_DB)) { in mthca_tavor_post_srq_recv()
537 nreq = 0; in mthca_tavor_post_srq_recv()
553 if (likely(nreq)) { in mthca_tavor_post_srq_recv()
560 mthca_write64(first_ind << srq->wqe_shift, (srq->srqn << 8) | nreq, in mthca_tavor_post_srq_recv()
584 int nreq; in mthca_arbel_post_srq_recv() local
590 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mthca_arbel_post_srq_recv()
625 if (likely(nreq)) { in mthca_arbel_post_srq_recv()
[all …]
/freebsd-11-stable/crypto/openssh/
HDauth2-chall.c85 u_int nreq; member
134 kbdintctxt->nreq = 0; in kbdint_alloc()
263 &name, &instr, &kbdintctxt->nreq, &prompts, &echo_on)) in send_userauth_info_request()
270 packet_put_int(kbdintctxt->nreq); in send_userauth_info_request()
271 for (i = 0; i < kbdintctxt->nreq; i++) { in send_userauth_info_request()
278 for (i = 0; i < kbdintctxt->nreq; i++) in send_userauth_info_request()
307 if (nresp != kbdintctxt->nreq) in input_userauth_info_response()
/freebsd-11-stable/contrib/ofed/libmlx5/
HDqp.c173 static int mlx5_wq_overflow(struct mlx5_wq *wq, int nreq, struct mlx5_cq *cq) in mlx5_wq_overflow() argument
178 if (cur + nreq < wq->max_post) in mlx5_wq_overflow()
185 return cur + nreq >= wq->max_post; in mlx5_wq_overflow()
622 int nreq; in _mlx5_post_send() local
642 for (nreq = 0; wr; ++nreq, wr = wr->next) { in _mlx5_post_send()
651 if (unlikely(mlx5_wq_overflow(&qp->sq, nreq, in _mlx5_post_send()
910 qp->sq.wqe_head[idx] = qp->sq.head + nreq; in _mlx5_post_send()
920 if (likely(nreq)) { in _mlx5_post_send()
921 qp->sq.head += nreq; in _mlx5_post_send()
939 if (!ctx->shut_up_bf && nreq == 1 && bf->uuarn && in _mlx5_post_send()
[all …]
HDsrq.c94 int nreq; in mlx5_post_srq_recv() local
99 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mlx5_post_srq_recv()
132 if (nreq) { in mlx5_post_srq_recv()
133 srq->counter += nreq; in mlx5_post_srq_recv()
/freebsd-11-stable/usr.sbin/portsnap/phttpget/
HDphttpget.c309 int nreq = 0; /* Number of next request to send */ in main() local
403 while ((nreq < argc) && ((reqbuf == NULL) || pipelined)) { in main()
406 reqbuflen = makerequest(&reqbuf, argv[nreq], in main()
407 servername, (nreq == argc - 1)); in main()
427 nreq++; in main()
439 if (nres == nreq) { in main()
449 nreq++; in main()
721 nreq = nres; in main()
/freebsd-11-stable/sys/dev/xen/blkback/
HDblkback.c1198 struct xbb_xen_req *nreq; in xbb_get_resources() local
1201 nreq = NULL; in xbb_get_resources()
1224 nreq = xbb_get_req(xbb); in xbb_get_resources()
1225 if (nreq == NULL) in xbb_get_resources()
1238 nreq->reqlist = *reqlist; in xbb_get_resources()
1239 nreq->req_ring_idx = ring_idx; in xbb_get_resources()
1240 nreq->id = ring_req->id; in xbb_get_resources()
1241 nreq->operation = ring_req->operation; in xbb_get_resources()
1244 bcopy(ring_req, &nreq->ring_req_storage, sizeof(*ring_req)); in xbb_get_resources()
1245 nreq->ring_req = &nreq->ring_req_storage; in xbb_get_resources()
[all …]
/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/
HDmlx4_ib_srq.c322 int nreq; in mlx4_ib_post_srq_recv() local
330 nreq = 0; in mlx4_ib_post_srq_recv()
334 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mlx4_ib_post_srq_recv()
366 if (likely(nreq)) { in mlx4_ib_post_srq_recv()
367 srq->wqe_ctr += nreq; in mlx4_ib_post_srq_recv()
HDmlx4_ib_qp.c2688 static int mlx4_wq_overflow(struct mlx4_ib_wq *wq, int nreq, struct ib_cq *ib_cq) in mlx4_wq_overflow() argument
2694 if (likely(cur + nreq < wq->max_post)) in mlx4_wq_overflow()
2702 return cur + nreq >= wq->max_post; in mlx4_wq_overflow()
2939 int nreq; in mlx4_ib_post_send() local
2979 nreq = 0; in mlx4_ib_post_send()
2985 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mlx4_ib_post_send()
2989 if (mlx4_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in mlx4_ib_post_send()
3002 qp->sq.wrid[(qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1)] = wr->wr_id; in mlx4_ib_post_send()
3237 if (likely(nreq)) { in mlx4_ib_post_send()
3238 qp->sq.head += nreq; in mlx4_ib_post_send()
[all …]
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/
HDmlx5_ib_srq.c440 int nreq; in mlx5_ib_post_srq_recv() local
451 for (nreq = 0; wr; nreq++, wr = wr->next) { in mlx5_ib_post_srq_recv()
483 if (likely(nreq)) { in mlx5_ib_post_srq_recv()
484 srq->wqe_ctr += nreq; in mlx5_ib_post_srq_recv()
HDmlx5_ib_qp.c2925 static int mlx5_wq_overflow(struct mlx5_ib_wq *wq, int nreq, struct ib_cq *ib_cq) in mlx5_wq_overflow() argument
2931 if (likely(cur + nreq < wq->max_post)) in mlx5_wq_overflow()
2939 return cur + nreq >= wq->max_post; in mlx5_wq_overflow()
3759 int *size, int nreq) in begin_wqe() argument
3761 if (unlikely(mlx5_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq))) in begin_wqe()
3784 int nreq, u8 fence, u8 next_fence, in finish_wqe() argument
3799 qp->sq.wqe_head[idx] = qp->sq.head + nreq; in finish_wqe()
3824 int nreq; in mlx5_ib_post_send() local
3841 nreq = 0; in mlx5_ib_post_send()
3845 for (nreq = 0; wr; nreq++, wr = wr->next) { in mlx5_ib_post_send()
[all …]
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
HDpci.h579 pci_enable_msix(struct pci_dev *pdev, struct msix_entry *entries, int nreq) in pci_enable_msix() argument
587 if (avail < nreq) { in pci_enable_msix()
592 avail = nreq; in pci_enable_msix()
599 if (avail < nreq) { in pci_enable_msix()
606 for (i = 0; i < nreq; i++) in pci_enable_msix()
/freebsd-11-stable/sys/dev/vxge/vxgehal/
HDvxgehal-blockpool.c296 u32 nreq = 0, i; in __hal_blockpool_blocks_add() local
316 nreq = blockpool->pool_incr; in __hal_blockpool_blocks_add()
317 blockpool->req_out += nreq; in __hal_blockpool_blocks_add()
326 for (i = 0; i < nreq; i++) { in __hal_blockpool_blocks_add()
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
HDmlx4_main.c2843 int nreq = dev->caps.num_ports * num_online_cpus() + 1; in mlx4_enable_msi_x() local
2845 nreq = min_t(int, dev->caps.num_eqs - dev->caps.reserved_eqs, in mlx4_enable_msi_x()
2846 nreq); in mlx4_enable_msi_x()
2847 if (nreq > MAX_MSIX) in mlx4_enable_msi_x()
2848 nreq = MAX_MSIX; in mlx4_enable_msi_x()
2850 entries = kcalloc(nreq, sizeof *entries, GFP_KERNEL); in mlx4_enable_msi_x()
2854 for (i = 0; i < nreq; ++i) in mlx4_enable_msi_x()
2857 nreq = pci_enable_msix_range(dev->persist->pdev, entries, 2, in mlx4_enable_msi_x()
2858 nreq); in mlx4_enable_msi_x()
2860 if (nreq < 0 || nreq < MLX4_EQ_ASYNC) { in mlx4_enable_msi_x()
[all …]
/freebsd-11-stable/sys/dev/ipmi/
HDipmi.c176 struct ipmi_request *req, *nreq; in ipmi_dtor() local
187 nreq) { in ipmi_dtor()