Searched refs:hr_cq (Results 1 – 6 of 6) sorted by relevance
| /Linux-v5.4/drivers/infiniband/hw/hns/ |
| D | hns_roce_cq.c | 42 static void hns_roce_ib_cq_comp(struct hns_roce_cq *hr_cq) in hns_roce_ib_cq_comp() argument 44 struct ib_cq *ibcq = &hr_cq->ib_cq; in hns_roce_ib_cq_comp() 49 static void hns_roce_ib_cq_event(struct hns_roce_cq *hr_cq, in hns_roce_ib_cq_event() argument 56 ibcq = &hr_cq->ib_cq; in hns_roce_ib_cq_event() 64 event_type, hr_cq->cqn); in hns_roce_ib_cq_event() 86 struct hns_roce_cq *hr_cq, int vector) in hns_roce_cq_alloc() argument 115 hr_cq->vector = vector; in hns_roce_cq_alloc() 117 ret = hns_roce_bitmap_alloc(&cq_table->bitmap, &hr_cq->cqn); in hns_roce_cq_alloc() 124 ret = hns_roce_table_get(hr_dev, &cq_table->table, hr_cq->cqn); in hns_roce_cq_alloc() 130 ret = xa_err(xa_store(&cq_table->array, hr_cq->cqn, hr_cq, GFP_KERNEL)); in hns_roce_cq_alloc() [all …]
|
| D | hns_roce_hw_v1.c | 1980 static void *get_cqe(struct hns_roce_cq *hr_cq, int n) in get_cqe() argument 1982 return hns_roce_buf_offset(&hr_cq->hr_buf.hr_buf, in get_cqe() 1986 static void *get_sw_cqe(struct hns_roce_cq *hr_cq, int n) in get_sw_cqe() argument 1988 struct hns_roce_cqe *hr_cqe = get_cqe(hr_cq, n & hr_cq->ib_cq.cqe); in get_sw_cqe() 1992 !!(n & (hr_cq->ib_cq.cqe + 1))) ? hr_cqe : NULL; in get_sw_cqe() 1995 static struct hns_roce_cqe *next_cqe_sw(struct hns_roce_cq *hr_cq) in next_cqe_sw() argument 1997 return get_sw_cqe(hr_cq, hr_cq->cons_index); in next_cqe_sw() 2000 static void hns_roce_v1_cq_set_ci(struct hns_roce_cq *hr_cq, u32 cons_index) in hns_roce_v1_cq_set_ci() argument 2004 doorbell[0] = cpu_to_le32(cons_index & ((hr_cq->cq_depth << 1) - 1)); in hns_roce_v1_cq_set_ci() 2012 ROCEE_DB_OTHERS_H_ROCEE_DB_OTH_INP_H_S, hr_cq->cqn); in hns_roce_v1_cq_set_ci() [all …]
|
| D | hns_roce_restrack.c | 84 struct hns_roce_cq *hr_cq = to_hr_cq(ib_cq); in hns_roce_fill_res_cq_entry() local 96 ret = hr_dev->dfx->query_cqc_info(hr_dev, hr_cq->cqn, (int *)context); in hns_roce_fill_res_cq_entry()
|
| D | hns_roce_hw_v2.c | 2448 static void *get_cqe_v2(struct hns_roce_cq *hr_cq, int n) in get_cqe_v2() argument 2450 return hns_roce_buf_offset(&hr_cq->hr_buf.hr_buf, in get_cqe_v2() 2454 static void *get_sw_cqe_v2(struct hns_roce_cq *hr_cq, int n) in get_sw_cqe_v2() argument 2456 struct hns_roce_v2_cqe *cqe = get_cqe_v2(hr_cq, n & hr_cq->ib_cq.cqe); in get_sw_cqe_v2() 2460 !!(n & (hr_cq->ib_cq.cqe + 1))) ? cqe : NULL; in get_sw_cqe_v2() 2463 static struct hns_roce_v2_cqe *next_cqe_sw_v2(struct hns_roce_cq *hr_cq) in next_cqe_sw_v2() argument 2465 return get_sw_cqe_v2(hr_cq, hr_cq->cons_index); in next_cqe_sw_v2() 2484 static void hns_roce_v2_cq_set_ci(struct hns_roce_cq *hr_cq, u32 cons_index) in hns_roce_v2_cq_set_ci() argument 2486 *hr_cq->set_ci_db = cons_index & 0xffffff; in hns_roce_v2_cq_set_ci() 2489 static void __hns_roce_v2_cq_clean(struct hns_roce_cq *hr_cq, u32 qpn, in __hns_roce_v2_cq_clean() argument [all …]
|
| D | hns_roce_qp.c | 1288 struct hns_roce_cq *hr_cq; in hns_roce_wq_overflow() local 1295 hr_cq = to_hr_cq(ib_cq); in hns_roce_wq_overflow() 1296 spin_lock(&hr_cq->lock); in hns_roce_wq_overflow() 1298 spin_unlock(&hr_cq->lock); in hns_roce_wq_overflow()
|
| D | hns_roce_device.h | 955 struct hns_roce_cq *hr_cq, void *mb_buf, u64 *mtts, 1265 void hns_roce_free_cq(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq);
|