Searched refs:hr_cq (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/drivers/infiniband/hw/hns/ |
D | hns_roce_cq.c | 41 static void hns_roce_ib_cq_comp(struct hns_roce_cq *hr_cq) in hns_roce_ib_cq_comp() argument 43 struct ib_cq *ibcq = &hr_cq->ib_cq; in hns_roce_ib_cq_comp() 48 static void hns_roce_ib_cq_event(struct hns_roce_cq *hr_cq, in hns_roce_ib_cq_event() argument 55 ibcq = &hr_cq->ib_cq; in hns_roce_ib_cq_event() 63 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() 133 ret = radix_tree_insert(&cq_table->tree, hr_cq->cqn, hr_cq); in hns_roce_cq_alloc() [all …]
|
D | hns_roce_hw_v1.c | 2013 static void *get_cqe(struct hns_roce_cq *hr_cq, int n) in get_cqe() argument 2015 return hns_roce_buf_offset(&hr_cq->hr_buf.hr_buf, in get_cqe() 2019 static void *get_sw_cqe(struct hns_roce_cq *hr_cq, int n) in get_sw_cqe() argument 2021 struct hns_roce_cqe *hr_cqe = get_cqe(hr_cq, n & hr_cq->ib_cq.cqe); in get_sw_cqe() 2025 !!(n & (hr_cq->ib_cq.cqe + 1))) ? hr_cqe : NULL; in get_sw_cqe() 2028 static struct hns_roce_cqe *next_cqe_sw(struct hns_roce_cq *hr_cq) in next_cqe_sw() argument 2030 return get_sw_cqe(hr_cq, hr_cq->cons_index); in next_cqe_sw() 2033 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 2037 doorbell[0] = cpu_to_le32(cons_index & ((hr_cq->cq_depth << 1) - 1)); in hns_roce_v1_cq_set_ci() 2045 ROCEE_DB_OTHERS_H_ROCEE_DB_OTH_INP_H_S, hr_cq->cqn); in hns_roce_v1_cq_set_ci() [all …]
|
D | hns_roce_hw_v2.c | 1820 static void *get_cqe_v2(struct hns_roce_cq *hr_cq, int n) in get_cqe_v2() argument 1822 return hns_roce_buf_offset(&hr_cq->hr_buf.hr_buf, in get_cqe_v2() 1826 static void *get_sw_cqe_v2(struct hns_roce_cq *hr_cq, int n) in get_sw_cqe_v2() argument 1828 struct hns_roce_v2_cqe *cqe = get_cqe_v2(hr_cq, n & hr_cq->ib_cq.cqe); in get_sw_cqe_v2() 1832 !!(n & (hr_cq->ib_cq.cqe + 1))) ? cqe : NULL; in get_sw_cqe_v2() 1835 static struct hns_roce_v2_cqe *next_cqe_sw_v2(struct hns_roce_cq *hr_cq) in next_cqe_sw_v2() argument 1837 return get_sw_cqe_v2(hr_cq, hr_cq->cons_index); in next_cqe_sw_v2() 1840 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 1842 *hr_cq->set_ci_db = cons_index & 0xffffff; in hns_roce_v2_cq_set_ci() 1845 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 | 1089 struct hns_roce_cq *hr_cq; in hns_roce_wq_overflow() local 1096 hr_cq = to_hr_cq(ib_cq); in hns_roce_wq_overflow() 1097 spin_lock(&hr_cq->lock); in hns_roce_wq_overflow() 1099 spin_unlock(&hr_cq->lock); in hns_roce_wq_overflow()
|
D | hns_roce_device.h | 768 struct hns_roce_cq *hr_cq, void *mb_buf, u64 *mtts, 1013 void hns_roce_free_cq(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq);
|