Searched refs:hr_qp (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/drivers/infiniband/hw/hns/ |
D | hns_roce_qp.c | 70 static void hns_roce_ib_qp_event(struct hns_roce_qp *hr_qp, in hns_roce_ib_qp_event() argument 74 struct ib_qp *ibqp = &hr_qp->ibqp; in hns_roce_ib_qp_event() 106 type, hr_qp->qpn); in hns_roce_ib_qp_event() 146 struct hns_roce_qp *hr_qp) in hns_roce_gsi_qp_alloc() argument 154 hr_qp->qpn = qpn; in hns_roce_gsi_qp_alloc() 158 hr_qp->qpn & (hr_dev->caps.num_qps - 1), hr_qp); in hns_roce_gsi_qp_alloc() 165 atomic_set(&hr_qp->refcount, 1); in hns_roce_gsi_qp_alloc() 166 init_completion(&hr_qp->free); in hns_roce_gsi_qp_alloc() 176 struct hns_roce_qp *hr_qp) in hns_roce_qp_alloc() argument 185 hr_qp->qpn = qpn; in hns_roce_qp_alloc() [all …]
|
D | hns_roce_hw_v1.c | 362 struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); in hns_roce_v1_post_recv() local 368 spin_lock_irqsave(&hr_qp->rq.lock, flags); in hns_roce_v1_post_recv() 369 ind = hr_qp->rq.head & (hr_qp->rq.wqe_cnt - 1); in hns_roce_v1_post_recv() 372 if (hns_roce_wq_overflow(&hr_qp->rq, nreq, in hns_roce_v1_post_recv() 373 hr_qp->ibqp.recv_cq)) { in hns_roce_v1_post_recv() 379 if (unlikely(wr->num_sge > hr_qp->rq.max_gs)) { in hns_roce_v1_post_recv() 381 wr->num_sge, hr_qp->rq.max_gs); in hns_roce_v1_post_recv() 387 ctrl = get_recv_wqe(hr_qp, ind); in hns_roce_v1_post_recv() 399 hr_qp->rq.wrid[ind] = wr->wr_id; in hns_roce_v1_post_recv() 401 ind = (ind + 1) & (hr_qp->rq.wqe_cnt - 1); in hns_roce_v1_post_recv() [all …]
|
D | hns_roce_hw_v2.c | 559 struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); in hns_roce_v2_post_recv() local 572 spin_lock_irqsave(&hr_qp->rq.lock, flags); in hns_roce_v2_post_recv() 573 ind = hr_qp->rq.head & (hr_qp->rq.wqe_cnt - 1); in hns_roce_v2_post_recv() 575 if (hr_qp->state == IB_QPS_RESET) { in hns_roce_v2_post_recv() 576 spin_unlock_irqrestore(&hr_qp->rq.lock, flags); in hns_roce_v2_post_recv() 582 if (hns_roce_wq_overflow(&hr_qp->rq, nreq, in hns_roce_v2_post_recv() 583 hr_qp->ibqp.recv_cq)) { in hns_roce_v2_post_recv() 589 if (unlikely(wr->num_sge > hr_qp->rq.max_gs)) { in hns_roce_v2_post_recv() 591 wr->num_sge, hr_qp->rq.max_gs); in hns_roce_v2_post_recv() 597 wqe = get_recv_wqe(hr_qp, ind); in hns_roce_v2_post_recv() [all …]
|
D | hns_roce_device.h | 567 struct hns_roce_qp hr_qp; member 881 static inline struct hns_roce_sqp *hr_to_hr_sqp(struct hns_roce_qp *hr_qp) in hr_to_hr_sqp() argument 883 return container_of(hr_qp, struct hns_roce_sqp, hr_qp); in hr_to_hr_sqp() 990 void *get_recv_wqe(struct hns_roce_qp *hr_qp, int n); 991 void *get_send_wqe(struct hns_roce_qp *hr_qp, int n); 992 void *get_send_extend_sge(struct hns_roce_qp *hr_qp, int n); 1000 void hns_roce_qp_remove(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp); 1001 void hns_roce_qp_free(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp);
|