Home
last modified time | relevance | path

Searched refs:rqe (Results 1 – 12 of 12) sorted by relevance

/Linux-v6.6/drivers/infiniband/sw/siw/
Dsiw_qp_rx.c332 struct siw_rqe *rqe; in siw_rqe_get() local
344 rqe = &srq->recvq[srq->rq_get % srq->num_rqe]; in siw_rqe_get()
349 rqe = &qp->recvq[qp->rq_get % qp->attrs.rq_size]; in siw_rqe_get()
351 if (likely(rqe->flags == SIW_WQE_VALID)) { in siw_rqe_get()
352 int num_sge = rqe->num_sge; in siw_rqe_get()
363 wqe->rqe.id = rqe->id; in siw_rqe_get()
364 wqe->rqe.num_sge = num_sge; in siw_rqe_get()
367 wqe->rqe.sge[i].laddr = rqe->sge[i].laddr; in siw_rqe_get()
368 wqe->rqe.sge[i].lkey = rqe->sge[i].lkey; in siw_rqe_get()
369 wqe->rqe.sge[i].length = rqe->sge[i].length; in siw_rqe_get()
[all …]
Dsiw_verbs.c732 struct siw_rqe rqe = {}; in siw_rq_flush_wr() local
736 rqe.id = wr->wr_id; in siw_rq_flush_wr()
737 rv = siw_rqe_complete(qp, &rqe, 0, 0, SIW_WC_WR_FLUSH_ERR); in siw_rq_flush_wr()
1065 struct siw_rqe *rqe = &qp->recvq[idx]; in siw_post_receive() local
1067 if (rqe->flags) { in siw_post_receive()
1077 rqe->id = wr->wr_id; in siw_post_receive()
1078 rqe->num_sge = wr->num_sge; in siw_post_receive()
1079 siw_copy_sgl(wr->sg_list, rqe->sge, wr->num_sge); in siw_post_receive()
1084 rqe->flags = SIW_WQE_VALID; in siw_post_receive()
1791 struct siw_rqe *rqe = &srq->recvq[idx]; in siw_post_srq_recv() local
[all …]
Dsiw_qp.c1121 int siw_rqe_complete(struct siw_qp *qp, struct siw_rqe *rqe, u32 bytes, in siw_rqe_complete() argument
1141 cqe->id = rqe->id; in siw_rqe_complete()
1159 smp_store_mb(rqe->flags, 0); in siw_rqe_complete()
1178 smp_store_mb(rqe->flags, 0); in siw_rqe_complete()
1281 siw_rqe_complete(qp, &wqe->rqe, wqe->bytes, in siw_rq_flush()
1300 struct siw_rqe *rqe = in siw_rq_flush() local
1303 if (!READ_ONCE(rqe->flags)) in siw_rq_flush()
1306 if (siw_rqe_complete(qp, rqe, 0, 0, SIW_WC_WR_FLUSH_ERR) != 0) in siw_rq_flush()
1309 WRITE_ONCE(rqe->flags, 0); in siw_rq_flush()
Dsiw.h194 struct siw_rqe rqe; member
479 #define rx_type(wqe) ((wqe)->rqe.opcode)
528 int siw_rqe_complete(struct siw_qp *qp, struct siw_rqe *rqe, u32 bytes,
Dsiw_mem.c276 siw_unref_mem_sgl(wqe->mem, wqe->rqe.num_sge); in siw_wqe_put_mem()
/Linux-v6.6/drivers/net/wireless/microchip/wilc1000/
Dwlan.c539 static void wilc_wlan_rxq_add(struct wilc *wilc, struct rxq_entry_t *rqe) in wilc_wlan_rxq_add() argument
545 list_add_tail(&rqe->list, &wilc->rxq_head.list); in wilc_wlan_rxq_add()
551 struct rxq_entry_t *rqe = NULL; in wilc_wlan_rxq_remove() local
555 rqe = list_first_entry(&wilc->rxq_head.list, struct rxq_entry_t, in wilc_wlan_rxq_remove()
557 list_del(&rqe->list); in wilc_wlan_rxq_remove()
560 return rqe; in wilc_wlan_rxq_remove()
1001 struct rxq_entry_t *rqe; in wilc_wlan_handle_rxq() local
1004 rqe = wilc_wlan_rxq_remove(wilc); in wilc_wlan_handle_rxq()
1005 if (!rqe) in wilc_wlan_handle_rxq()
1008 buffer = rqe->buffer; in wilc_wlan_handle_rxq()
[all …]
/Linux-v6.6/drivers/infiniband/hw/erdma/
Derdma_qp.c543 struct erdma_rqe *rqe = in erdma_post_recv_one() local
547 rqe->qe_idx = cpu_to_le16(qp->kern_qp.rq_pi + 1); in erdma_post_recv_one()
548 rqe->qpn = cpu_to_le32(QP_ID(qp)); in erdma_post_recv_one()
551 rqe->length = 0; in erdma_post_recv_one()
553 rqe->stag = cpu_to_le32(recv_wr->sg_list[0].lkey); in erdma_post_recv_one()
554 rqe->to = cpu_to_le64(recv_wr->sg_list[0].addr); in erdma_post_recv_one()
555 rqe->length = cpu_to_le32(recv_wr->sg_list[0].length); in erdma_post_recv_one()
560 *(u64 *)qp->kern_qp.rq_db_info = *(u64 *)rqe; in erdma_post_recv_one()
561 writeq(*(u64 *)rqe, qp->kern_qp.hw_rq_db); in erdma_post_recv_one()
/Linux-v6.6/drivers/scsi/bnx2i/
Dbnx2i.h502 struct rqe { struct
668 struct rqe *rq_virt;
672 struct rqe *rq_prod_qe;
673 struct rqe *rq_cons_qe;
674 struct rqe *rq_first_qe;
675 struct rqe *rq_last_qe;
/Linux-v6.6/drivers/block/
Dsunvdc.c311 struct vdc_req_entry *rqe = &port->rq_arr[index]; in vdc_end_one() local
321 req = rqe->req; in vdc_end_one()
327 rqe->req = NULL; in vdc_end_one()
467 struct vdc_req_entry *rqe; in __send_request() local
504 rqe = &port->rq_arr[dr->prod]; in __send_request()
505 rqe->req = req; in __send_request()
1094 struct vdc_req_entry *rqe = &port->rq_arr[idx]; in vdc_requeue_inflight() local
1101 req = rqe->req; in vdc_requeue_inflight()
1107 rqe->req = NULL; in vdc_requeue_inflight()
/Linux-v6.6/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c2197 static void ocrdma_build_rqe(struct ocrdma_hdr_wqe *rqe, in ocrdma_build_rqe() argument
2203 wqe_size = (wr->num_sge * sizeof(*sge)) + sizeof(*rqe); in ocrdma_build_rqe()
2205 wqe_size = sizeof(*sge) + sizeof(*rqe); in ocrdma_build_rqe()
2207 rqe->cw = ((wqe_size / OCRDMA_WQE_STRIDE) << in ocrdma_build_rqe()
2209 rqe->cw |= (OCRDMA_FLAG_SIG << OCRDMA_WQE_FLAGS_SHIFT); in ocrdma_build_rqe()
2210 rqe->cw |= (OCRDMA_TYPE_LKEY << OCRDMA_WQE_TYPE_SHIFT); in ocrdma_build_rqe()
2211 rqe->total_len = 0; in ocrdma_build_rqe()
2212 rqe->rsvd_tag = tag; in ocrdma_build_rqe()
2213 sge = (struct ocrdma_sge *)(rqe + 1); in ocrdma_build_rqe()
2214 ocrdma_build_sges(rqe, sge, wr->num_sge, wr->sg_list); in ocrdma_build_rqe()
[all …]
Docrdma_hw.c2304 struct ocrdma_hdr_wqe *rqe; in ocrdma_set_create_qp_ird_cmd() local
2317 rqe = (struct ocrdma_hdr_wqe *)(qp->ird_q_va + in ocrdma_set_create_qp_ird_cmd()
2319 rqe->cw = 0; in ocrdma_set_create_qp_ird_cmd()
2320 rqe->cw |= 2; in ocrdma_set_create_qp_ird_cmd()
2321 rqe->cw |= (OCRDMA_TYPE_LKEY << OCRDMA_WQE_TYPE_SHIFT); in ocrdma_set_create_qp_ird_cmd()
2322 rqe->cw |= (8 << OCRDMA_WQE_SIZE_SHIFT); in ocrdma_set_create_qp_ird_cmd()
2323 rqe->cw |= (8 << OCRDMA_WQE_NXT_WQE_SIZE_SHIFT); in ocrdma_set_create_qp_ird_cmd()
/Linux-v6.6/drivers/infiniband/hw/qedr/
Dverbs.c3932 struct rdma_rq_sge *rqe = in qedr_post_recv() local
3945 RQ_SGE_SET(rqe, wr->sg_list[i].addr, in qedr_post_recv()
3955 struct rdma_rq_sge *rqe = in qedr_post_recv() local
3964 RQ_SGE_SET(rqe, 0, 0, flags); in qedr_post_recv()