Home
last modified time | relevance | path

Searched refs:hr_qp (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/infiniband/hw/hns/
A Dhns_roce_qp.c307 ret = xa_err(xa_store_irq(xa, hr_qp->qpn, hr_qp, GFP_KERNEL)); in hns_roce_qp_store()
513 cap->max_recv_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in set_rq_size()
628 hr_qp->sge.offset = hr_qp->buff_size; in set_wqe_buf_attr()
639 hr_qp->rq.offset = hr_qp->buff_size; in set_wqe_buf_attr()
1115 hr_qp->ibqp.qp_num = hr_qp->qpn; in hns_roce_create_qp_common()
1198 hr_qp->phy_port = hr_dev->iboe.phy_port[hr_qp->port]; in hns_roce_create_qp()
1312 hr_qp->sq.head = *(int *)(hr_qp->sdb.virt_addr); in hns_roce_modify_qp()
1315 hr_qp->rq.head = *(int *)(hr_qp->rdb.virt_addr); in hns_roce_modify_qp()
1401 return get_wqe(hr_qp, hr_qp->rq.offset + (n << hr_qp->rq.wqe_shift)); in hns_roce_get_recv_wqe()
1406 return get_wqe(hr_qp, hr_qp->sq.offset + (n << hr_qp->sq.wqe_shift)); in hns_roce_get_send_wqe()
[all …]
A Dhns_roce_hw_v1.c384 wqe_idx = (hr_qp->rq.head + nreq) & (hr_qp->rq.wqe_cnt - 1); in hns_roce_v1_post_recv()
872 hr_qp->port = port; in hns_roce_v1_rsv_lp_qp()
953 if (!hr_qp) in hns_roce_v1_release_lp_qp()
1106 if (!hr_qp) in hns_roce_v1_mr_free_work_fn()
2219 *cur_qp = hr_qp; in hns_roce_v1_poll_one()
2563 count = hns_roce_mtr_find(hr_dev, &hr_qp->mtr, hr_qp->rq.offset, rq_ba, in find_wqe_mtt()
2949 hr_qp->port; in hns_roce_v1_m_qp()
3272 hr_qp); in hns_roce_v1_m_qp()
3306 hr_qp->phy_port = hr_dev->iboe.phy_port[hr_qp->port]; in hns_roce_v1_m_qp()
3619 send_cq = hr_qp->ibqp.send_cq ? to_hr_cq(hr_qp->ibqp.send_cq) : NULL; in hns_roce_v1_destroy_qp()
[all …]
A Dhns_roce_hw_v2.c365 hr_qp->state); in check_send_valid()
862 max_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in hns_roce_v2_post_recv()
879 wqe_idx = (hr_qp->rq.head + nreq) & (hr_qp->rq.wqe_cnt - 1); in hns_roce_v2_post_recv()
3467 npolled += sw_comp(hr_qp, &hr_qp->sq, in hns_roce_v2_sw_poll_cq()
3474 npolled += sw_comp(hr_qp, &hr_qp->rq, in hns_roce_v2_sw_poll_cq()
3549 if (!hr_qp || qpn != hr_qp->qpn) { in get_cur_qp()
3557 *cur_qp = hr_qp; in get_cur_qp()
4263 hr_qp->qpn); in config_qp_sq_buf()
4272 hr_qp->qpn); in config_qp_sq_buf()
4951 hr_qp->phy_port = hr_dev->iboe.phy_port[hr_qp->port]; in hns_roce_v2_record_opt_fields()
[all …]
A Dhns_roce_main.c878 struct hns_roce_qp *hr_qp; in hns_roce_handle_device_err() local
887 list_for_each_entry(hr_qp, &hr_dev->qp_list, node) { in hns_roce_handle_device_err()
888 spin_lock_irqsave(&hr_qp->sq.lock, flags_qp); in hns_roce_handle_device_err()
889 if (hr_qp->sq.tail != hr_qp->sq.head) in hns_roce_handle_device_err()
890 check_and_get_armed_cq(&cq_list, hr_qp->ibqp.send_cq); in hns_roce_handle_device_err()
891 spin_unlock_irqrestore(&hr_qp->sq.lock, flags_qp); in hns_roce_handle_device_err()
893 spin_lock_irqsave(&hr_qp->rq.lock, flags_qp); in hns_roce_handle_device_err()
894 if ((!hr_qp->ibqp.srq) && (hr_qp->rq.tail != hr_qp->rq.head)) in hns_roce_handle_device_err()
895 check_and_get_armed_cq(&cq_list, hr_qp->ibqp.recv_cq); in hns_roce_handle_device_err()
896 spin_unlock_irqrestore(&hr_qp->rq.lock, flags_qp); in hns_roce_handle_device_err()
A Dhns_roce_device.h938 struct hns_roce_qp *hr_qp);
1242 void init_flush_work(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp);
1243 void *hns_roce_get_recv_wqe(struct hns_roce_qp *hr_qp, unsigned int n);
1244 void *hns_roce_get_send_wqe(struct hns_roce_qp *hr_qp, unsigned int n);
1245 void *hns_roce_get_extend_sge(struct hns_roce_qp *hr_qp, unsigned int n);
1253 void hns_roce_qp_remove(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp);
1254 void hns_roce_qp_destroy(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp,

Completed in 65 milliseconds