/kernel/linux/linux-6.6/drivers/infiniband/hw/hns/ |
H A D | hns_roce_cq.c | 58 static int alloc_cqn(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq) in alloc_cqn() 104 struct hns_roce_cq *hr_cq, in hns_roce_create_cqc() 131 static int alloc_cqc(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq) in alloc_cqc() 174 static void free_cqc(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq) in free_cqc() 199 static int alloc_cq_buf(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq, in alloc_cq_buf() 220 static void free_cq_buf(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq) in free_cq_buf() 225 static int alloc_cq_db(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq, in alloc_cq_db() 260 static void free_cq_db(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq, in free_cq_db() 299 static int get_cq_ucmd(struct hns_roce_cq *hr_cq, struct ib_udata *udata, in get_cq_ucmd() 314 static void set_cq_param(struct hns_roce_cq *hr_c [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() 46 struct hns_roce_cq *hr_cq = to_hr_cq(ib_cq); in hns_roce_fill_res_cq_entry_raw()
|
H A D | Makefile | 10 hns_roce_cq.o hns_roce_alloc.o hns_roce_db.o hns_roce_srq.o hns_roce_restrack.o
|
H A D | hns_roce_device.h | 405 struct hns_roce_cq { struct 893 struct hns_roce_cq *hr_cq, void *mb_buf, u64 *mtts, 1022 static inline struct hns_roce_cq *to_hr_cq(struct ib_cq *ib_cq) in to_hr_cq() 1024 return container_of(ib_cq, struct hns_roce_cq, ib_cq); in to_hr_cq() 1207 void hns_roce_lock_cqs(struct hns_roce_cq *send_cq, 1208 struct hns_roce_cq *recv_cq); 1209 void hns_roce_unlock_cqs(struct hns_roce_cq *send_cq, 1210 struct hns_roce_cq *recv_cq);
|
H A D | hns_roce_qp.c | 263 struct hns_roce_cq *hr_send_cq, *hr_recv_cq; in add_qp_to_list() 1373 void hns_roce_lock_cqs(struct hns_roce_cq *send_cq, struct hns_roce_cq *recv_cq) 1397 void hns_roce_unlock_cqs(struct hns_roce_cq *send_cq, 1398 struct hns_roce_cq *recv_cq) __releases(&send_cq->lock) 1445 struct hns_roce_cq *hr_cq; in hns_roce_wq_overflow()
|
H A D | hns_roce_main.c | 630 INIT_RDMA_OBJ_SIZE(ib_cq, hns_roce_cq, ib_cq), 968 struct hns_roce_cq *hr_cq = to_hr_cq(cq); in check_and_get_armed_cq() 984 struct hns_roce_cq *hr_cq; in hns_roce_handle_device_err()
|
H A D | hns_roce_hw_v2.c | 2570 struct hns_roce_cq *hr_cq; in free_mr_init_cq() 3455 static void *get_cqe_v2(struct hns_roce_cq *hr_cq, int n) in get_cqe_v2() 3460 static void *get_sw_cqe_v2(struct hns_roce_cq *hr_cq, unsigned int n) in get_sw_cqe_v2() 3470 struct hns_roce_cq *hr_cq) in update_cq_db() 3486 static void __hns_roce_v2_cq_clean(struct hns_roce_cq *hr_cq, u32 qpn, in __hns_roce_v2_cq_clean() 3529 static void hns_roce_v2_cq_clean(struct hns_roce_cq *hr_cq, u32 qpn, in hns_roce_v2_cq_clean() 3538 struct hns_roce_cq *hr_cq, void *mb_buf, in hns_roce_v2_write_cqc() 3590 struct hns_roce_cq *hr_cq = to_hr_cq(ibcq); in hns_roce_v2_req_notify_cq() 3637 static int hns_roce_v2_sw_poll_cq(struct hns_roce_cq *hr_cq, int num_entries, in hns_roce_v2_sw_poll_cq() 3662 struct hns_roce_cq *c in get_cqe_status() [all...] |
H A D | hns_roce_hw_v2.h | 1304 struct hns_roce_cq *rsv_cq;
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
H A D | hns_roce_cq.c | 42 static int alloc_cqc(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq) in alloc_cqc() 118 static void free_cqc(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq) in free_cqc() 145 static int alloc_cq_buf(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq, in alloc_cq_buf() 167 static void free_cq_buf(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq) in free_cq_buf() 172 static int alloc_cq_db(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq, in alloc_cq_db() 208 static void free_cq_db(struct hns_roce_dev *hr_dev, struct hns_roce_cq *hr_cq, in free_cq_db() 227 static void set_cqe_size(struct hns_roce_cq *hr_cq, struct ib_udata *udata, in set_cqe_size() 247 struct hns_roce_cq *hr_cq = to_hr_cq(ib_cq); in hns_roce_create_cq() 337 struct hns_roce_cq *hr_cq = to_hr_cq(ib_cq); in hns_roce_destroy_cq() 350 struct hns_roce_cq *hr_c in hns_roce_cq_completion() [all...] |
H A D | Makefile | 10 hns_roce_cq.o hns_roce_alloc.o hns_roce_db.o hns_roce_srq.o hns_roce_restrack.o
|
H A D | hns_roce_device.h | 456 struct hns_roce_cq { struct 916 struct hns_roce_cq *hr_cq, void *mb_buf, u64 *mtts, 1049 static inline struct hns_roce_cq *to_hr_cq(struct ib_cq *ib_cq) in to_hr_cq() 1051 return container_of(ib_cq, struct hns_roce_cq, ib_cq); in to_hr_cq() 1253 void hns_roce_lock_cqs(struct hns_roce_cq *send_cq, 1254 struct hns_roce_cq *recv_cq); 1255 void hns_roce_unlock_cqs(struct hns_roce_cq *send_cq, 1256 struct hns_roce_cq *recv_cq);
|
H 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()
|
H A D | hns_roce_qp.c | 211 struct hns_roce_cq *hr_send_cq, *hr_recv_cq; in add_qp_to_list() 1206 void hns_roce_lock_cqs(struct hns_roce_cq *send_cq, struct hns_roce_cq *recv_cq) 1230 void hns_roce_unlock_cqs(struct hns_roce_cq *send_cq, 1231 struct hns_roce_cq *recv_cq) __releases(&send_cq->lock) 1278 struct hns_roce_cq *hr_cq; in hns_roce_wq_overflow()
|
H A D | hns_roce_main.c | 451 INIT_RDMA_OBJ_SIZE(ib_cq, hns_roce_cq, ib_cq), 806 struct hns_roce_cq *hr_cq = to_hr_cq(cq); in check_and_get_armed_cq() 822 struct hns_roce_cq *hr_cq; in hns_roce_handle_device_err()
|
H A D | hns_roce_hw_v1.c | 1084 struct hns_roce_cq *mr_free_cq = free_mr->mr_free_cq; in hns_roce_v1_mr_free_work_fn() 1973 static void *get_cqe(struct hns_roce_cq *hr_cq, int n) in get_cqe() 1978 static void *get_sw_cqe(struct hns_roce_cq *hr_cq, int n) in get_sw_cqe() 1987 static struct hns_roce_cqe *next_cqe_sw(struct hns_roce_cq *hr_cq) in next_cqe_sw() 1992 static void hns_roce_v1_cq_set_ci(struct hns_roce_cq *hr_cq, u32 cons_index) in hns_roce_v1_cq_set_ci() 2009 static void __hns_roce_v1_cq_clean(struct hns_roce_cq *hr_cq, u32 qpn, in __hns_roce_v1_cq_clean() 2057 static void hns_roce_v1_cq_clean(struct hns_roce_cq *hr_cq, u32 qpn, in hns_roce_v1_cq_clean() 2066 struct hns_roce_cq *hr_cq, void *mb_buf, in hns_roce_v1_write_cqc() 2144 struct hns_roce_cq *hr_cq = to_hr_cq(ibcq); in hns_roce_v1_req_notify_cq() 2170 static int hns_roce_v1_poll_one(struct hns_roce_cq *hr_c [all...] |
H A D | hns_roce_hw_v2.c | 2968 static void *get_cqe_v2(struct hns_roce_cq *hr_cq, int n) in get_cqe_v2() 2973 static void *get_sw_cqe_v2(struct hns_roce_cq *hr_cq, int n) in get_sw_cqe_v2() 2982 static inline void hns_roce_v2_cq_set_ci(struct hns_roce_cq *hr_cq, u32 ci) in hns_roce_v2_cq_set_ci() 2987 static void __hns_roce_v2_cq_clean(struct hns_roce_cq *hr_cq, u32 qpn, in __hns_roce_v2_cq_clean() 3041 static void hns_roce_v2_cq_clean(struct hns_roce_cq *hr_cq, u32 qpn, in hns_roce_v2_cq_clean() 3050 struct hns_roce_cq *hr_cq, void *mb_buf, in hns_roce_v2_write_cqc() 3128 struct hns_roce_cq *hr_cq = to_hr_cq(ibcq); in hns_roce_v2_req_notify_cq() 3216 static int hns_roce_v2_sw_poll_cq(struct hns_roce_cq *hr_cq, int num_entries, in hns_roce_v2_sw_poll_cq() 3241 struct hns_roce_cq *cq, struct hns_roce_v2_cqe *cqe, in get_cqe_status() 3306 static int hns_roce_v2_poll_one(struct hns_roce_cq *hr_c [all...] |
H A D | hns_roce_hw_v1.h | 1088 struct hns_roce_cq *mr_free_cq;
|