Searched refs:hr_cq (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/infiniband/hw/hns/ |
A D | hns_roce_cq.c | 124 hr_cq->cqn, ret); in alloc_cqc() 128 ret = xa_err(xa_store(&cq_table->array, hr_cq->cqn, hr_cq, GFP_KERNEL)); in alloc_cqc() 150 hr_cq->cqn, ret); in alloc_cqc() 154 hr_cq->cons_index = 0; in alloc_cqc() 155 hr_cq->arm_sn = 1; in alloc_cqc() 183 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() 462 if (!hr_cq) { in hns_roce_cq_completion() 468 ++hr_cq->arm_sn; in hns_roce_cq_completion() [all …]
|
A D | hns_roce_hw_v1.c | 1988 struct hns_roce_cqe *hr_cqe = get_cqe(hr_cq, n & hr_cq->ib_cq.cqe); in get_sw_cqe() 1997 return get_sw_cqe(hr_cq, hr_cq->cons_index); in next_cqe_sw() 2025 for (prod_index = hr_cq->cons_index; get_sw_cqe(hr_cq, prod_index); in __hns_roce_v1_cq_clean() 2027 if (prod_index == hr_cq->cons_index + hr_cq->ib_cq.cqe) in __hns_roce_v1_cq_clean() 2036 cqe = get_cqe(hr_cq, prod_index & hr_cq->ib_cq.cqe); in __hns_roce_v1_cq_clean() 2055 hns_roce_v1_cq_set_ci(hr_cq, hr_cq->cons_index); in __hns_roce_v1_cq_clean() 2157 cpu_to_le32(hr_cq->cons_index & ((hr_cq->cq_depth << 1) - 1)); in hns_roce_v1_req_notify_cq() 2192 ++hr_cq->cons_index; in hns_roce_v1_poll_one() 2392 *hr_cq->tptr_addr = hr_cq->cons_index & in hns_roce_v1_poll_cq() 2395 hns_roce_v1_cq_set_ci(hr_cq, hr_cq->cons_index); in hns_roce_v1_poll_cq() [all …]
|
A D | hns_roce_hw_v2.c | 3247 return hns_roce_buf_offset(hr_cq->mtr.kmem, n * hr_cq->cqe_size); in get_cqe_v2() 3252 struct hns_roce_v2_cqe *cqe = get_cqe_v2(hr_cq, n & hr_cq->ib_cq.cqe); in get_sw_cqe_v2() 3263 *hr_cq->set_ci_db = hr_cq->cons_index & V2_CQ_DB_CONS_IDX_M; in update_cq_db() 3286 for (prod_index = hr_cq->cons_index; get_sw_cqe_v2(hr_cq, prod_index); in __hns_roce_v2_cq_clean() 3288 if (prod_index > hr_cq->cons_index + hr_cq->ib_cq.cqe) in __hns_roce_v2_cq_clean() 3297 cqe = get_cqe_v2(hr_cq, prod_index & hr_cq->ib_cq.cqe); in __hns_roce_v2_cq_clean() 3306 hr_cq->ib_cq.cqe); in __hns_roce_v2_cq_clean() 3369 hr_cq->db.dma >> 32); in hns_roce_v2_write_cqc() 3554 hr_cq->cqn, qpn); in get_cur_qp() 3727 cqe = get_sw_cqe_v2(hr_cq, hr_cq->cons_index); in hns_roce_v2_poll_one() [all …]
|
A D | hns_roce_restrack.c | 83 struct hns_roce_cq *hr_cq = to_hr_cq(ib_cq); in hns_roce_fill_res_cq_entry() local 95 ret = hr_dev->dfx->query_cqc_info(hr_dev, hr_cq->cqn, (int *)context); in hns_roce_fill_res_cq_entry()
|
A D | hns_roce_main.c | 863 struct hns_roce_cq *hr_cq = to_hr_cq(cq); in check_and_get_armed_cq() local 866 spin_lock_irqsave(&hr_cq->lock, flags); in check_and_get_armed_cq() 868 if (!hr_cq->is_armed) { in check_and_get_armed_cq() 869 hr_cq->is_armed = 1; in check_and_get_armed_cq() 870 list_add_tail(&hr_cq->node, cq_list); in check_and_get_armed_cq() 873 spin_unlock_irqrestore(&hr_cq->lock, flags); in check_and_get_armed_cq() 879 struct hns_roce_cq *hr_cq; in hns_roce_handle_device_err() local 899 list_for_each_entry(hr_cq, &cq_list, node) in hns_roce_handle_device_err() 900 hns_roce_cq_completion(hr_dev, hr_cq->cqn); in hns_roce_handle_device_err()
|
A D | hns_roce_qp.c | 1417 struct hns_roce_cq *hr_cq; in hns_roce_wq_overflow() local 1424 hr_cq = to_hr_cq(ib_cq); in hns_roce_wq_overflow() 1425 spin_lock(&hr_cq->lock); in hns_roce_wq_overflow() 1427 spin_unlock(&hr_cq->lock); in hns_roce_wq_overflow()
|
A D | hns_roce_device.h | 927 struct hns_roce_cq *hr_cq, void *mb_buf, u64 *mtts,
|
Completed in 48 milliseconds