Home
last modified time | relevance | path

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

/linux-6.15/drivers/infiniband/hw/hns/
H A Dhns_roce_qp.c507 cap->max_recv_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in set_rq_size()
604 hr_qp->sq.ext_sge_cnt = hr_qp->sq.max_gs; in set_ext_sge_param()
691 hr_qp->sge.offset = hr_qp->buff_size; in set_wqe_buf_attr()
702 hr_qp->rq.offset = hr_qp->buff_size; in set_wqe_buf_attr()
1233 hr_qp->ibqp.qp_num = hr_qp->qpn; in hns_roce_create_qp_common()
1318 hr_qp->phy_port = hr_dev->iboe.phy_port[hr_qp->port]; in hns_roce_create_qp()
1437 hr_qp->sq.head = *(int *)(hr_qp->sdb.virt_addr); in hns_roce_modify_qp()
1440 hr_qp->rq.head = *(int *)(hr_qp->rdb.virt_addr); in hns_roce_modify_qp()
1540 return get_wqe(hr_qp, hr_qp->rq.offset + (n << hr_qp->rq.wqe_shift)); in hns_roce_get_recv_wqe()
1545 return get_wqe(hr_qp, hr_qp->sq.offset + (n << hr_qp->sq.wqe_shift)); in hns_roce_get_send_wqe()
[all …]
H A Dhns_roce_hw_v2.c832 max_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in hns_roce_v2_post_recv()
849 wqe_idx = (hr_qp->rq.head + nreq) & (hr_qp->rq.wqe_cnt - 1); in hns_roce_v2_post_recv()
2679 hr_qp = kzalloc(sizeof(*hr_qp), GFP_KERNEL); in free_mr_init_qp()
2689 kfree(hr_qp); in free_mr_init_qp()
3719 npolled += sw_comp(hr_qp, &hr_qp->sq, in hns_roce_v2_sw_poll_cq()
3726 npolled += sw_comp(hr_qp, &hr_qp->rq, in hns_roce_v2_sw_poll_cq()
3802 if (!hr_qp || qpn != hr_qp->qpn) { in get_cur_qp()
4480 ret = hns_roce_mtr_find(hr_dev, &hr_qp->mtr, hr_qp->sq.offset, in config_qp_sq_buf()
4961 &hr_qp->tc_mode, &hr_qp->priority); in hns_roce_set_sl()
4971 hr_qp->sl = hr_qp->priority; in hns_roce_set_sl()
[all …]
H A Dhns_roce_restrack.c64 struct hns_roce_qp *hr_qp = to_hr_qp(ib_qp); in hns_roce_fill_res_qp_entry() local
71 if (rdma_nl_put_driver_u32_hex(msg, "sq_wqe_cnt", hr_qp->sq.wqe_cnt)) in hns_roce_fill_res_qp_entry()
74 if (rdma_nl_put_driver_u32_hex(msg, "sq_max_gs", hr_qp->sq.max_gs)) in hns_roce_fill_res_qp_entry()
77 if (rdma_nl_put_driver_u32_hex(msg, "rq_wqe_cnt", hr_qp->rq.wqe_cnt)) in hns_roce_fill_res_qp_entry()
80 if (rdma_nl_put_driver_u32_hex(msg, "rq_max_gs", hr_qp->rq.max_gs)) in hns_roce_fill_res_qp_entry()
83 if (rdma_nl_put_driver_u32_hex(msg, "ext_sge_sge_cnt", hr_qp->sge.sge_cnt)) in hns_roce_fill_res_qp_entry()
99 struct hns_roce_qp *hr_qp = to_hr_qp(ib_qp); in hns_roce_fill_res_qp_entry_raw() local
109 ret = hr_dev->hw->query_qpc(hr_dev, hr_qp->qpn, &context.qpc); in hns_roce_fill_res_qp_entry_raw()
120 ret = hr_dev->hw->query_sccc(hr_dev, hr_qp->qpn, &context.sccc); in hns_roce_fill_res_qp_entry_raw()
H A Dhns_roce_main.c1029 struct hns_roce_qp *hr_qp; in hns_roce_handle_device_err() local
1038 list_for_each_entry(hr_qp, &hr_dev->qp_list, node) { in hns_roce_handle_device_err()
1039 spin_lock_irqsave(&hr_qp->sq.lock, flags_qp); in hns_roce_handle_device_err()
1040 if (hr_qp->sq.tail != hr_qp->sq.head) in hns_roce_handle_device_err()
1041 check_and_get_armed_cq(&cq_list, hr_qp->ibqp.send_cq); in hns_roce_handle_device_err()
1042 spin_unlock_irqrestore(&hr_qp->sq.lock, flags_qp); in hns_roce_handle_device_err()
1044 spin_lock_irqsave(&hr_qp->rq.lock, flags_qp); in hns_roce_handle_device_err()
1045 if ((!hr_qp->ibqp.srq) && (hr_qp->rq.tail != hr_qp->rq.head)) in hns_roce_handle_device_err()
1046 check_and_get_armed_cq(&cq_list, hr_qp->ibqp.recv_cq); in hns_roce_handle_device_err()
1047 spin_unlock_irqrestore(&hr_qp->rq.lock, flags_qp); in hns_roce_handle_device_err()
H A Dhns_roce_device.h949 struct hns_roce_qp *hr_qp);
1255 void init_flush_work(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp);
1256 void *hns_roce_get_recv_wqe(struct hns_roce_qp *hr_qp, unsigned int n);
1257 void *hns_roce_get_send_wqe(struct hns_roce_qp *hr_qp, unsigned int n);
1258 void *hns_roce_get_extend_sge(struct hns_roce_qp *hr_qp, unsigned int n);
1265 void hns_roce_qp_remove(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp);
1266 void hns_roce_qp_destroy(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp,