Home
last modified time | relevance | path

Searched refs:nreq (Results 1 – 20 of 20) 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()
948 int *size, void **cur_edge, int nreq, in __begin_wqe() argument
951 if (unlikely(mlx5_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq))) in __begin_wqe()
973 void **cur_edge, int nreq) in begin_wqe() argument
975 return __begin_wqe(qp, seg, ctrl, wr, idx, size, cur_edge, nreq, in begin_wqe()
983 unsigned int idx, u64 wr_id, int nreq, u8 fence, in finish_wqe() argument
997 qp->sq.wqe_head[idx] = qp->sq.head + nreq; in finish_wqe()
1039 void **cur_edge, unsigned int *idx, int nreq, in handle_psv() argument
[all …]
Dsrq.c413 int nreq; in mlx5_ib_post_srq_recv() local
424 for (nreq = 0; wr; nreq++, wr = wr->next) { in mlx5_ib_post_srq_recv()
456 if (likely(nreq)) { in mlx5_ib_post_srq_recv()
457 srq->wqe_ctr += nreq; in mlx5_ib_post_srq_recv()
/drivers/infiniband/hw/mthca/
Dmthca_qp.c1568 static inline int mthca_wq_overflow(struct mthca_wq *wq, int nreq, in mthca_wq_overflow() argument
1575 if (likely(cur + nreq < wq->max)) in mthca_wq_overflow()
1583 return cur + nreq >= wq->max; in mthca_wq_overflow()
1634 int nreq; in mthca_tavor_post_send() local
1655 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mthca_tavor_post_send()
1656 if (mthca_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in mthca_tavor_post_send()
1660 qp->sq.max, nreq); in mthca_tavor_post_send()
1789 cpu_to_be32((nreq ? 0 : MTHCA_NEXT_DBD) | size | in mthca_tavor_post_send()
1793 if (!nreq) { in mthca_tavor_post_send()
1806 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.c315 int nreq; in mlx4_ib_post_srq_recv() local
323 nreq = 0; in mlx4_ib_post_srq_recv()
327 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mlx4_ib_post_srq_recv()
359 if (likely(nreq)) { in mlx4_ib_post_srq_recv()
360 srq->wqe_ctr += nreq; in mlx4_ib_post_srq_recv()
Dqp.c3243 static int mlx4_wq_overflow(struct mlx4_ib_wq *wq, int nreq, struct ib_cq *ib_cq) in mlx4_wq_overflow() argument
3249 if (likely(cur + nreq < wq->max_post)) in mlx4_wq_overflow()
3257 return cur + nreq >= wq->max_post; in mlx4_wq_overflow()
3495 int nreq; in _mlx4_ib_post_send() local
3531 nreq = 0; in _mlx4_ib_post_send()
3537 for (nreq = 0; wr; ++nreq, wr = wr->next) { in _mlx4_ib_post_send()
3541 if (mlx4_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in _mlx4_ib_post_send()
3554 qp->sq.wrid[(qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1)] = wr->wr_id; in _mlx4_ib_post_send()
3780 if (likely(nreq)) { in _mlx4_ib_post_send()
3781 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.c1250 struct skcipher_request *nreq = skcipher_request_ctx(req); in qat_alg_skcipher_xts_encrypt() local
1256 memcpy(nreq, req, sizeof(*req)); in qat_alg_skcipher_xts_encrypt()
1257 skcipher_request_set_tfm(nreq, ctx->ftfm); in qat_alg_skcipher_xts_encrypt()
1258 return crypto_skcipher_encrypt(nreq); in qat_alg_skcipher_xts_encrypt()
1317 struct skcipher_request *nreq = skcipher_request_ctx(req); in qat_alg_skcipher_xts_decrypt() local
1323 memcpy(nreq, req, sizeof(*req)); in qat_alg_skcipher_xts_decrypt()
1324 skcipher_request_set_tfm(nreq, ctx->ftfm); in qat_alg_skcipher_xts_decrypt()
1325 return crypto_skcipher_decrypt(nreq); in qat_alg_skcipher_xts_decrypt()
/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c681 u32 nreq; in hns_roce_v2_post_send() local
689 nreq = 0; in hns_roce_v2_post_send()
695 for (nreq = 0; wr; ++nreq, wr = wr->next) { in hns_roce_v2_post_send()
696 if (hns_roce_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in hns_roce_v2_post_send()
702 wqe_idx = (qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1); in hns_roce_v2_post_send()
715 ~(((qp->sq.head + nreq) >> ilog2(qp->sq.wqe_cnt)) & 0x1); in hns_roce_v2_post_send()
730 if (likely(nreq)) { in hns_roce_v2_post_send()
731 qp->sq.head += nreq; in hns_roce_v2_post_send()
734 if (nreq == 1 && !ret && in hns_roce_v2_post_send()
824 u32 wqe_idx, nreq, max_sge; in hns_roce_v2_post_recv() local
[all …]
Dhns_roce_hw_v1.c96 int nreq; in hns_roce_v1_post_send() local
108 for (nreq = 0; wr; ++nreq, wr = wr->next) { in hns_roce_v1_post_send()
109 if (hns_roce_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in hns_roce_v1_post_send()
115 wqe_idx = (qp->sq.head + nreq) & (qp->sq.wqe_cnt - 1); in hns_roce_v1_post_send()
331 if (likely(nreq)) { in hns_roce_v1_post_send()
332 qp->sq.head += nreq; in hns_roce_v1_post_send()
370 int nreq; in hns_roce_v1_post_recv() local
376 for (nreq = 0; wr; ++nreq, wr = wr->next) { in hns_roce_v1_post_recv()
377 if (hns_roce_wq_overflow(&hr_qp->rq, nreq, in hns_roce_v1_post_recv()
384 wqe_idx = (hr_qp->rq.head + nreq) & (hr_qp->rq.wqe_cnt - 1); in hns_roce_v1_post_recv()
[all …]
Dhns_roce_qp.c1427 bool hns_roce_wq_overflow(struct hns_roce_wq *hr_wq, u32 nreq, in hns_roce_wq_overflow() argument
1434 if (likely(cur + nreq < hr_wq->wqe_cnt)) in hns_roce_wq_overflow()
1442 return cur + nreq >= hr_wq->wqe_cnt; in hns_roce_wq_overflow()
Dhns_roce_device.h1232 bool hns_roce_wq_overflow(struct hns_roce_wq *hr_wq, u32 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/usb/isp1760/
Disp1760-udc.c841 struct isp1760_request *req, *nreq; in isp1760_ep_disable() local
868 list_for_each_entry_safe(req, nreq, &req_list, queue) { in isp1760_ep_disable()
/drivers/infiniband/sw/rdmavt/
Dqp.c2150 unsigned nreq = 0; in rvt_post_send() local
2177 nreq++; in rvt_post_send()
2181 if (nreq) { in rvt_post_send()
2186 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.c5198 struct tid_rdma_request *req, *nreq; in make_tid_rdma_ack() local
5272 nreq = ack_to_tid_req(&qp->s_ack_queue[next]); in make_tid_rdma_ack()
5273 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
2440 op->nreq.flags |= NVME_REQ_CANCELLED; in nvme_fc_terminate_exchange()