Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/infiniband/sw/rxe/
Drxe_req.c71 unsigned int wqe_index; in req_retry() local
79 qp->req.wqe_index = consumer_index(qp->sq.queue); in req_retry()
83 for (wqe_index = consumer_index(qp->sq.queue); in req_retry()
84 wqe_index != producer_index(qp->sq.queue); in req_retry()
85 wqe_index = next_index(qp->sq.queue, wqe_index)) { in req_retry()
86 wqe = addr_from_index(qp->sq.queue, wqe_index); in req_retry()
147 if (wqe && ((qp->req.wqe_index != in req_next_wqe()
171 if (qp->req.wqe_index == producer_index(qp->sq.queue)) in req_next_wqe()
174 wqe = addr_from_index(qp->sq.queue, qp->req.wqe_index); in req_next_wqe()
182 (qp->req.wqe_index != consumer_index(qp->sq.queue)))) { in req_next_wqe()
[all …]
Drxe_verbs.h144 int wqe_index; member
Drxe_qp.c255 qp->req.wqe_index = producer_index(qp->sq.queue); in rxe_qp_init_req()
/Linux-v4.19/drivers/infiniband/hw/mthca/
Dmthca_cq.c378 struct mthca_qp *qp, int wqe_index, int is_send, in handle_error_cqe() argument
466 mthca_free_err_wqe(dev, qp, is_send, wqe_index, &dbd, &new_wqe); in handle_error_cqe()
491 int wqe_index; in mthca_poll_one() local
540 wqe_index = ((be32_to_cpu(cqe->wqe) - (*cur_qp)->send_wqe_offset) in mthca_poll_one()
542 entry->wr_id = (*cur_qp)->wrid[wqe_index + in mthca_poll_one()
548 wqe_index = wqe >> srq->wqe_shift; in mthca_poll_one()
549 entry->wr_id = srq->wrid[wqe_index]; in mthca_poll_one()
555 wqe_index = wqe >> wq->wqe_shift; in mthca_poll_one()
561 if (unlikely(wqe_index < 0)) in mthca_poll_one()
562 wqe_index = wq->max - 1; in mthca_poll_one()
[all …]
/Linux-v4.19/include/linux/mlx4/
Dcq.h57 __be16 wqe_index; member
66 __be16 wqe_index; member
82 __be16 wqe_index; member
/Linux-v4.19/drivers/net/ethernet/ibm/ehea/
Dehea_qmr.h322 int *wqe_index) in ehea_get_swqe() argument
327 *wqe_index = (queue->current_q_offset) >> (7 + EHEA_SG_SQ); in ehea_get_swqe()
339 static inline struct ehea_cqe *ehea_poll_rq1(struct ehea_qp *qp, int *wqe_index) in ehea_poll_rq1() argument
343 *wqe_index = (queue->current_q_offset) >> (7 + EHEA_SG_RQ1); in ehea_poll_rq1()
Dehea_main.c603 int arr_len, int wqe_index) in get_skb_by_index_ll() argument
609 x = wqe_index + 1; in get_skb_by_index_ll()
622 skb = skb_array[wqe_index]; in get_skb_by_index_ll()
623 skb_array[wqe_index] = NULL; in get_skb_by_index_ll()
679 int wqe_index, last_wqe_index, rq, port_reset; in ehea_proc_rwqes() local
684 cqe = ehea_poll_rq1(qp, &wqe_index); in ehea_proc_rwqes()
692 last_wqe_index = wqe_index; in ehea_proc_rwqes()
699 wqe_index); in ehea_proc_rwqes()
751 cqe = ehea_poll_rq1(qp, &wqe_index); in ehea_proc_rwqes()
895 int wqe_index; in ehea_poll() local
[all …]
/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dodp.c871 u16 wqe_index = pfault->wqe.wqe_index; in mlx5_ib_mr_initiator_pfault_handler() local
889 wqe_index, qpn); in mlx5_ib_mr_initiator_pfault_handler()
897 if (wqe_index != ctrl_wqe_index) { in mlx5_ib_mr_initiator_pfault_handler()
899 wqe_index, qpn, in mlx5_ib_mr_initiator_pfault_handler()
908 wqe_index, qpn, in mlx5_ib_mr_initiator_pfault_handler()
1029 u16 wqe_index = pfault->wqe.wqe_index; in mlx5_ib_mr_wqe_pfault_handler() local
1043 ret = mlx5_ib_read_user_wqe(qp, requestor, wqe_index, buffer, in mlx5_ib_mr_wqe_pfault_handler()
1047 ret, wqe_index, pfault->token); in mlx5_ib_mr_wqe_pfault_handler()
Dsrq.c435 void mlx5_ib_free_srq_wqe(struct mlx5_ib_srq *srq, int wqe_index) in mlx5_ib_free_srq_wqe() argument
443 next->next_wqe_index = cpu_to_be16(wqe_index); in mlx5_ib_free_srq_wqe()
444 srq->tail = wqe_index; in mlx5_ib_free_srq_wqe()
Dmlx5_ib.h1002 void mlx5_ib_free_srq_wqe(struct mlx5_ib_srq *srq, int wqe_index);
1034 int mlx5_ib_read_user_wqe(struct mlx5_ib_qp *qp, int send, int wqe_index,
Dqp.c142 int mlx5_ib_read_user_wqe(struct mlx5_ib_qp *qp, int send, int wqe_index, in mlx5_ib_read_user_wqe() argument
162 offset = wq->offset + ((wqe_index % wq->wqe_cnt) << wq->wqe_shift); in mlx5_ib_read_user_wqe()
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dsrq.c296 void mlx4_ib_free_srq_wqe(struct mlx4_ib_srq *srq, int wqe_index) in mlx4_ib_free_srq_wqe() argument
304 next->next_wqe_index = cpu_to_be16(wqe_index); in mlx4_ib_free_srq_wqe()
305 srq->tail = wqe_index; in mlx4_ib_free_srq_wqe()
Dcq.c520 be32_to_cpu(cqe->my_qpn), be16_to_cpu(cqe->wqe_index), in mlx4_ib_handle_error_cqe()
742 wqe_ctr = be16_to_cpu(cqe->wqe_index); in mlx4_ib_poll_one()
749 wqe_ctr = be16_to_cpu(cqe->wqe_index); in mlx4_ib_poll_one()
754 wqe_ctr = be16_to_cpu(cqe->wqe_index); in mlx4_ib_poll_one()
951 mlx4_ib_free_srq_wqe(srq, be16_to_cpu(cqe->wqe_index)); in __mlx4_ib_cq_clean()
Dmlx4_ib.h776 void mlx4_ib_free_srq_wqe(struct mlx4_ib_srq *srq, int wqe_index);
/Linux-v4.19/drivers/infiniband/hw/nes/
Dnes_verbs.c3408 u32 wqe_index; in nes_poll_cq() local
3433 wqe_index = u32temp & (nesdev->nesadapter->max_qp_wr - 1); in nes_poll_cq()
3467 wrid = (((u64)(cpu_to_le32((u32)nesqp->hwqp.sq_vbase[wqe_index]. in nes_poll_cq()
3469 ((u64)(cpu_to_le32((u32)nesqp->hwqp.sq_vbase[wqe_index]. in nes_poll_cq()
3471 entry->byte_len = le32_to_cpu(nesqp->hwqp.sq_vbase[wqe_index]. in nes_poll_cq()
3474 switch (le32_to_cpu(nesqp->hwqp.sq_vbase[wqe_index]. in nes_poll_cq()
3483 entry->byte_len = le32_to_cpu(nesqp->hwqp.sq_vbase[wqe_index]. in nes_poll_cq()
3501 nesqp->hwqp.sq_tail = (wqe_index+1)&(nesqp->hwqp.sq_size - 1); in nes_poll_cq()
3509 …wrid = ((u64)(le32_to_cpu(nesqp->hwqp.rq_vbase[wqe_index].wqe_words[NES_IWARP_RQ_WQE_COMP_SCRATCH_… in nes_poll_cq()
3510 …((u64)(le32_to_cpu(nesqp->hwqp.rq_vbase[wqe_index].wqe_words[NES_IWARP_RQ_WQE_COMP_SCRATCH_HIGH_ID… in nes_poll_cq()
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Deq.c282 pfault->wqe.wqe_index = in eq_pf_process()
283 be16_to_cpu(pf_eqe->wqe.wqe_index); in eq_pf_process()
290 pfault->wqe.wqe_index); in eq_pf_process()
/Linux-v4.19/include/linux/mlx5/
Ddevice.h584 __be16 wqe_index; member
Ddriver.h759 u16 wqe_index; member
Dmlx5_ifc.h2121 u8 wqe_index[0x10]; member
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c443 new_index = be16_to_cpu(cqe->wqe_index) & size_mask; in mlx4_en_process_tx_cq()
Den_netdev.c1721 cq->buf->wqe_index = cpu_to_be16(0xffff); in mlx4_en_start_port()