Lines Matching defs:hr_dev
71 void init_flush_work(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in init_flush_work()
96 void hns_roce_qp_event(struct hns_roce_dev *hr_dev, u32 qpn, int event_type) in hns_roce_qp_event()
212 static int alloc_qpn(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in alloc_qpn()
243 static void add_qp_to_list(struct hns_roce_dev *hr_dev, in add_qp_to_list()
266 static int hns_roce_qp_store(struct hns_roce_dev *hr_dev, in hns_roce_qp_store()
287 static int alloc_qpc(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in alloc_qpc()
351 void hns_roce_qp_remove(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in hns_roce_qp_remove()
370 static void free_qpc(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in free_qpc()
385 static void free_qpn(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in free_qpn()
426 static int set_rq_size(struct hns_roce_dev *hr_dev, struct ib_qp_cap *cap, in set_rq_size()
491 static void set_ext_sge_param(struct hns_roce_dev *hr_dev, u32 sq_wqe_cnt, in set_ext_sge_param()
513 static int check_sq_size_with_integrity(struct hns_roce_dev *hr_dev, in check_sq_size_with_integrity()
536 static int set_user_sq_size(struct hns_roce_dev *hr_dev, in set_user_sq_size()
563 static int set_wqe_buf_attr(struct hns_roce_dev *hr_dev, in set_wqe_buf_attr()
614 static int set_kernel_sq_size(struct hns_roce_dev *hr_dev, in set_kernel_sq_size()
706 static int alloc_qp_buf(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in alloc_qp_buf()
750 static void free_qp_buf(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in free_qp_buf()
756 static inline bool user_qp_has_sdb(struct hns_roce_dev *hr_dev, in user_qp_has_sdb()
768 static inline bool user_qp_has_rdb(struct hns_roce_dev *hr_dev, in user_qp_has_rdb()
778 static inline bool kernel_qp_has_rdb(struct hns_roce_dev *hr_dev, in kernel_qp_has_rdb()
786 struct hns_roce_dev *hr_dev, in qp_mmap_entry()
814 static int alloc_user_qp_db(struct hns_roce_dev *hr_dev, in alloc_user_qp_db()
857 static int alloc_kernel_qp_db(struct hns_roce_dev *hr_dev, in alloc_kernel_qp_db()
889 static int alloc_qp_db(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in alloc_qp_db()
926 static void free_qp_db(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in free_qp_db()
945 static int alloc_kernel_wrid(struct hns_roce_dev *hr_dev, in alloc_kernel_wrid()
983 static int set_qp_param(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in set_qp_param()
1034 static int hns_roce_create_qp_common(struct hns_roce_dev *hr_dev, in hns_roce_create_qp_common()
1140 void hns_roce_qp_destroy(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in hns_roce_qp_destroy()
1154 static int check_qp_type(struct hns_roce_dev *hr_dev, enum ib_qp_type type, in check_qp_type()
1187 struct hns_roce_dev *hr_dev = to_hr_dev(ibdev); in hns_roce_create_qp() local
1228 static int check_mtu_validate(struct hns_roce_dev *hr_dev, in check_mtu_validate()
1253 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_check_qp_attr() local
1299 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_modify_qp() local
1435 int hns_roce_init_qp_table(struct hns_roce_dev *hr_dev) in hns_roce_init_qp_table()
1467 void hns_roce_cleanup_qp_table(struct hns_roce_dev *hr_dev) in hns_roce_cleanup_qp_table()