Home
last modified time | relevance | path

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

/drivers/infiniband/hw/mlx5/
Dwr.c78 static int mlx5_wq_overflow(struct mlx5_ib_wq *wq, int nreq, in mlx5_wq_overflow() argument
85 if (likely(cur + nreq < wq->max_post)) in mlx5_wq_overflow()
93 return cur + nreq >= wq->max_post; in mlx5_wq_overflow()
945 int *size, void **cur_edge, int nreq, in __begin_wqe() argument
948 if (unlikely(mlx5_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq))) in __begin_wqe()
970 void **cur_edge, int nreq) in begin_wqe() argument
972 return __begin_wqe(qp, seg, ctrl, wr, idx, size, cur_edge, nreq, in begin_wqe()
980 unsigned int idx, u64 wr_id, int nreq, u8 fence, in finish_wqe() argument
994 qp->sq.wqe_head[idx] = qp->sq.head + nreq; in finish_wqe()
1036 void **cur_edge, unsigned int *idx, int nreq, in handle_psv() argument
[all …]
Dsrq.c433 int nreq; in mlx5_ib_post_srq_recv() local
444 for (nreq = 0; wr; nreq++, wr = wr->next) { in mlx5_ib_post_srq_recv()
476 if (likely(nreq)) { in mlx5_ib_post_srq_recv()
477 srq->wqe_ctr += nreq; in mlx5_ib_post_srq_recv()
/drivers/infiniband/hw/mthca/
Dmthca_qp.c1565 static inline int mthca_wq_overflow(struct mthca_wq *wq, int nreq, in mthca_wq_overflow() argument
1572 if (likely(cur + nreq < wq->max)) in mthca_wq_overflow()
1580 return cur + nreq >= wq->max; in mthca_wq_overflow()
1631 int nreq; in mthca_tavor_post_send() local
1652 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mthca_tavor_post_send()
1653 if (mthca_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in mthca_tavor_post_send()
1657 qp->sq.max, nreq); in mthca_tavor_post_send()
1786 cpu_to_be32((nreq ? 0 : MTHCA_NEXT_DBD) | size | in mthca_tavor_post_send()
1790 if (!nreq) { in mthca_tavor_post_send()
1803 if (likely(nreq)) { in mthca_tavor_post_send()
[all …]
Dmthca_srq.c493 int nreq; in mthca_tavor_post_srq_recv() local
502 for (nreq = 0; wr; wr = wr->next) { in mthca_tavor_post_srq_recv()
543 ++nreq; in mthca_tavor_post_srq_recv()
544 if (unlikely(nreq == MTHCA_TAVOR_MAX_WQES_PER_RECV_DB)) { in mthca_tavor_post_srq_recv()
545 nreq = 0; in mthca_tavor_post_srq_recv()
561 if (likely(nreq)) { in mthca_tavor_post_srq_recv()
568 mthca_write64(first_ind << srq->wqe_shift, (srq->srqn << 8) | nreq, in mthca_tavor_post_srq_recv()
586 int nreq; in mthca_arbel_post_srq_recv() local
592 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mthca_arbel_post_srq_recv()
627 if (likely(nreq)) { in mthca_arbel_post_srq_recv()
[all …]
/drivers/usb/gadget/function/
Duvc_queue.c48 unsigned int nreq; in uvc_queue_setup() local
64 nreq = DIV_ROUND_UP(DIV_ROUND_UP(sizes[0], 2), req_size); in uvc_queue_setup()
65 nreq = clamp(nreq, 4U, 64U); in uvc_queue_setup()
66 video->uvc_num_requests = nreq; in uvc_queue_setup()
/drivers/infiniband/hw/mlx4/
Dsrq.c311 int nreq; in mlx4_ib_post_srq_recv() local
319 nreq = 0; in mlx4_ib_post_srq_recv()
323 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mlx4_ib_post_srq_recv()
355 if (likely(nreq)) { in mlx4_ib_post_srq_recv()
356 srq->wqe_ctr += nreq; in mlx4_ib_post_srq_recv()
Dqp.c3245 static int mlx4_wq_overflow(struct mlx4_ib_wq *wq, int nreq, struct ib_cq *ib_cq) in mlx4_wq_overflow() argument
3251 if (likely(cur + nreq < wq->max_post)) in mlx4_wq_overflow()
3259 return cur + nreq >= wq->max_post; in mlx4_wq_overflow()
3497 int nreq; in _mlx4_ib_post_send() local
3533 nreq = 0; in _mlx4_ib_post_send()
3539 for (nreq = 0; wr; ++nreq, wr = wr->next) { in _mlx4_ib_post_send()
3543 if (mlx4_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in _mlx4_ib_post_send()
3556 qp->sq.wrid[(qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1)] = wr->wr_id; in _mlx4_ib_post_send()
3782 if (likely(nreq)) { in _mlx4_ib_post_send()
3783 qp->sq.head += nreq; in _mlx4_ib_post_send()
[all …]
/drivers/crypto/inside-secure/
Dsafexcel.c816 int ret, nreq = 0, cdesc = 0, rdesc = 0, commands, results; in safexcel_dequeue() local
856 nreq++; in safexcel_dequeue()
867 if (!nreq) in safexcel_dequeue()
872 priv->ring[ring].requests += nreq; in safexcel_dequeue()
1019 int ret, i, nreq, ndesc, tot_descs, handled = 0; in safexcel_handle_result_descriptor() local
1025 nreq = readl(EIP197_HIA_RDR(priv, ring) + EIP197_HIA_xDR_PROC_COUNT); in safexcel_handle_result_descriptor()
1026 nreq >>= EIP197_xDR_PROC_xD_PKT_OFFSET; in safexcel_handle_result_descriptor()
1027 nreq &= EIP197_xDR_PROC_xD_PKT_MASK; in safexcel_handle_result_descriptor()
1028 if (!nreq) in safexcel_handle_result_descriptor()
1031 for (i = 0; i < nreq; i++) { in safexcel_handle_result_descriptor()
[all …]
/drivers/dma/
Dbcm-sba-raid.c297 struct sba_request *nreq; in sba_free_chained_requests() local
303 list_for_each_entry(nreq, &req->next, next) in sba_free_chained_requests()
304 _sba_free_request(sba, nreq); in sba_free_chained_requests()
420 struct sba_request *nreq, *first = req->first; in sba_process_received_request() local
442 list_for_each_entry(nreq, &first->next, next) in sba_process_received_request()
443 _sba_free_request(sba, nreq); in sba_process_received_request()
528 struct sba_request *req, *nreq; in sba_tx_submit() local
540 list_for_each_entry(nreq, &req->next, next) in sba_tx_submit()
541 _sba_pending_request(sba, nreq); in sba_tx_submit()
/drivers/crypto/qat/qat_common/
Dqat_algs.c1119 struct skcipher_request *nreq = skcipher_request_ctx(req); in qat_alg_skcipher_xts_encrypt() local
1125 memcpy(nreq, req, sizeof(*req)); in qat_alg_skcipher_xts_encrypt()
1126 skcipher_request_set_tfm(nreq, ctx->ftfm); in qat_alg_skcipher_xts_encrypt()
1127 return crypto_skcipher_encrypt(nreq); in qat_alg_skcipher_xts_encrypt()
1197 struct skcipher_request *nreq = skcipher_request_ctx(req); in qat_alg_skcipher_xts_decrypt() local
1203 memcpy(nreq, req, sizeof(*req)); in qat_alg_skcipher_xts_decrypt()
1204 skcipher_request_set_tfm(nreq, ctx->ftfm); in qat_alg_skcipher_xts_decrypt()
1205 return crypto_skcipher_decrypt(nreq); in qat_alg_skcipher_xts_decrypt()
/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c653 int nreq; in hns_roce_v2_post_send() local
661 nreq = 0; in hns_roce_v2_post_send()
667 for (nreq = 0; wr; ++nreq, wr = wr->next) { in hns_roce_v2_post_send()
668 if (hns_roce_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in hns_roce_v2_post_send()
674 wqe_idx = (qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1); in hns_roce_v2_post_send()
687 ~(((qp->sq.head + nreq) >> ilog2(qp->sq.wqe_cnt)) & 0x1); in hns_roce_v2_post_send()
702 if (likely(nreq)) { in hns_roce_v2_post_send()
703 qp->sq.head += nreq; in hns_roce_v2_post_send()
738 int nreq; in hns_roce_v2_post_recv() local
747 nreq = 0; in hns_roce_v2_post_recv()
[all …]
Dhns_roce_hw_v1.c80 int nreq; in hns_roce_v1_post_send() local
92 for (nreq = 0; wr; ++nreq, wr = wr->next) { in hns_roce_v1_post_send()
93 if (hns_roce_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in hns_roce_v1_post_send()
99 wqe_idx = (qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1); in hns_roce_v1_post_send()
315 if (likely(nreq)) { in hns_roce_v1_post_send()
316 qp->sq.head += nreq; in hns_roce_v1_post_send()
356 int nreq = 0; in hns_roce_v1_post_recv() local
362 for (nreq = 0; wr; ++nreq, wr = wr->next) { in hns_roce_v1_post_recv()
363 if (hns_roce_wq_overflow(&hr_qp->rq, nreq, in hns_roce_v1_post_recv()
370 wqe_idx = (hr_qp->rq.head + nreq) & (hr_qp->rq.wqe_cnt - 1); in hns_roce_v1_post_recv()
[all …]
Dhns_roce_qp.c1275 bool hns_roce_wq_overflow(struct hns_roce_wq *hr_wq, int nreq, in hns_roce_wq_overflow() argument
1282 if (likely(cur + nreq < hr_wq->wqe_cnt)) in hns_roce_wq_overflow()
1290 return cur + nreq >= hr_wq->wqe_cnt; in hns_roce_wq_overflow()
Dhns_roce_device.h1250 bool hns_roce_wq_overflow(struct hns_roce_wq *hr_wq, int nreq,
/drivers/net/ethernet/mellanox/mlx4/
Dmain.c2943 int nreq = min3(dev->caps.num_ports * in mlx4_enable_msi_x() local
2949 nreq = min_t(int, nreq, msi_x); in mlx4_enable_msi_x()
2951 entries = kcalloc(nreq, sizeof(*entries), GFP_KERNEL); in mlx4_enable_msi_x()
2955 for (i = 0; i < nreq; ++i) in mlx4_enable_msi_x()
2958 nreq = pci_enable_msix_range(dev->persist->pdev, entries, 2, in mlx4_enable_msi_x()
2959 nreq); in mlx4_enable_msi_x()
2961 if (nreq < 0 || nreq < MLX4_EQ_ASYNC) { in mlx4_enable_msi_x()
2966 dev->caps.num_comp_vectors = nreq - 1; in mlx4_enable_msi_x()
/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_send.c225 u32 opcode, int nreq) in dr_rdma_segments() argument
257 if (nreq) in dr_rdma_segments()
/drivers/usb/isp1760/
Disp1760-udc.c772 struct isp1760_request *req, *nreq; in isp1760_ep_disable() local
798 list_for_each_entry_safe(req, nreq, &req_list, queue) { in isp1760_ep_disable()
/drivers/infiniband/sw/rdmavt/
Dqp.c2201 unsigned nreq = 0; in rvt_post_send() local
2228 nreq++; in rvt_post_send()
2232 if (nreq) { in rvt_post_send()
2237 if (nreq == 1 && call_send) in rvt_post_send()
/drivers/net/ethernet/neterion/vxge/
Dvxge-config.c2321 u32 nreq = 0, i; in __vxge_hw_blockpool_blocks_add() local
2325 nreq = VXGE_HW_INCR_DMA_BLOCK_POOL_SIZE; in __vxge_hw_blockpool_blocks_add()
2326 blockpool->req_out += nreq; in __vxge_hw_blockpool_blocks_add()
2329 for (i = 0; i < nreq; i++) in __vxge_hw_blockpool_blocks_add()
/drivers/infiniband/hw/hfi1/
Dtid_rdma.c5186 struct tid_rdma_request *req, *nreq; in make_tid_rdma_ack() local
5260 nreq = ack_to_tid_req(&qp->s_ack_queue[next]); in make_tid_rdma_ack()
5261 if (!nreq->comp_seg || nreq->ack_seg == nreq->comp_seg) in make_tid_rdma_ack()
/drivers/nvme/host/
Dfc.c89 struct nvme_request nreq; /* member
2439 op->nreq.flags |= NVME_REQ_CANCELLED; in nvme_fc_terminate_exchange()