Searched refs:hr_cq (Results 1 – 6 of 6) sorted by relevance
| /linux-6.15/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_cq.c | 120 hr_cq->cqn); in hns_roce_create_cqc() 124 hr_cq->cqn, ret); in hns_roce_create_cqc() 148 hr_cq->cqn, ret); in alloc_cqc() 180 hr_cq->cqn); in free_cqc() 206 buf_attr.region[0].size = hr_cq->cq_depth * hr_cq->cqe_size; in alloc_cq_buf() 248 hr_cq->set_ci_db = hr_cq->db.db_record; in alloc_cq_db() 421 hr_cq->arm_sn = 1; in hns_roce_create_cq() 461 if (!hr_cq) { in hns_roce_cq_completion() 467 ++hr_cq->arm_sn; in hns_roce_cq_completion() 491 if (hr_cq) in hns_roce_cq_event() [all …]
|
| H A D | hns_roce_restrack.c | 14 struct hns_roce_cq *hr_cq = to_hr_cq(ib_cq); in hns_roce_fill_res_cq_entry() local 21 if (rdma_nl_put_driver_u32(msg, "cq_depth", hr_cq->cq_depth)) in hns_roce_fill_res_cq_entry() 24 if (rdma_nl_put_driver_u32(msg, "cons_index", hr_cq->cons_index)) in hns_roce_fill_res_cq_entry() 27 if (rdma_nl_put_driver_u32(msg, "cqe_size", hr_cq->cqe_size)) in hns_roce_fill_res_cq_entry() 30 if (rdma_nl_put_driver_u32(msg, "arm_sn", hr_cq->arm_sn)) in hns_roce_fill_res_cq_entry() 46 struct hns_roce_cq *hr_cq = to_hr_cq(ib_cq); in hns_roce_fill_res_cq_entry_raw() local 53 ret = hr_dev->hw->query_cqc(hr_dev, hr_cq->cqn, &context); in hns_roce_fill_res_cq_entry_raw()
|
| H A D | hns_roce_hw_v2.c | 2646 hr_cq = kzalloc(sizeof(*hr_cq), GFP_KERNEL); in free_mr_init_cq() 2650 cq = &hr_cq->ib_cq; in free_mr_init_cq() 2655 kfree(hr_cq); in free_mr_init_cq() 3532 return hns_roce_buf_offset(hr_cq->mtr.kmem, n * hr_cq->cqe_size); in get_cqe_v2() 3537 struct hns_roce_v2_cqe *cqe = get_cqe_v2(hr_cq, n & hr_cq->ib_cq.cqe); in get_sw_cqe_v2() 3548 *hr_cq->set_ci_db = hr_cq->cons_index & V2_CQ_DB_CONS_IDX_M; in update_cq_db() 3571 for (prod_index = hr_cq->cons_index; get_sw_cqe_v2(hr_cq, prod_index); in __hns_roce_v2_cq_clean() 3573 if (prod_index > hr_cq->cons_index + hr_cq->ib_cq.cqe) in __hns_roce_v2_cq_clean() 3582 cqe = get_cqe_v2(hr_cq, prod_index & hr_cq->ib_cq.cqe); in __hns_roce_v2_cq_clean() 3958 cqe = get_sw_cqe_v2(hr_cq, hr_cq->cons_index); in hns_roce_v2_poll_one() [all …]
|
| H A D | hns_roce_main.c | 1014 struct hns_roce_cq *hr_cq = to_hr_cq(cq); in check_and_get_armed_cq() local 1017 spin_lock_irqsave(&hr_cq->lock, flags); in check_and_get_armed_cq() 1019 if (!hr_cq->is_armed) { in check_and_get_armed_cq() 1020 hr_cq->is_armed = 1; in check_and_get_armed_cq() 1021 list_add_tail(&hr_cq->node, cq_list); in check_and_get_armed_cq() 1024 spin_unlock_irqrestore(&hr_cq->lock, flags); in check_and_get_armed_cq() 1030 struct hns_roce_cq *hr_cq; in hns_roce_handle_device_err() local 1050 list_for_each_entry(hr_cq, &cq_list, node) in hns_roce_handle_device_err() 1051 hns_roce_cq_completion(hr_dev, hr_cq->cqn); in hns_roce_handle_device_err()
|
| H A D | hns_roce_qp.c | 1556 struct hns_roce_cq *hr_cq; in hns_roce_wq_overflow() local 1563 hr_cq = to_hr_cq(ib_cq); in hns_roce_wq_overflow() 1564 spin_lock(&hr_cq->lock); in hns_roce_wq_overflow() 1566 spin_unlock(&hr_cq->lock); in hns_roce_wq_overflow()
|
| H A D | hns_roce_device.h | 938 struct hns_roce_cq *hr_cq, void *mb_buf, u64 *mtts,
|