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()
227 static int alloc_qpn(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in alloc_qpn()
259 static void add_qp_to_list(struct hns_roce_dev *hr_dev, in add_qp_to_list()
282 static int hns_roce_qp_store(struct hns_roce_dev *hr_dev, in hns_roce_qp_store()
303 static int alloc_qpc(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in alloc_qpc()
367 void hns_roce_qp_remove(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in hns_roce_qp_remove()
386 static void free_qpc(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in free_qpc()
401 static void free_qpn(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in free_qpn()
442 static int set_rq_size(struct hns_roce_dev *hr_dev, struct ib_qp_cap *cap, in set_rq_size()
488 static u32 get_max_inline_data(struct hns_roce_dev *hr_dev, in get_max_inline_data()
549 static void set_ext_sge_param(struct hns_roce_dev *hr_dev, u32 sq_wqe_cnt, in set_ext_sge_param()
595 static int check_sq_size_with_integrity(struct hns_roce_dev *hr_dev, in check_sq_size_with_integrity()
618 static int set_user_sq_size(struct hns_roce_dev *hr_dev, in set_user_sq_size()
646 static int set_wqe_buf_attr(struct hns_roce_dev *hr_dev, in set_wqe_buf_attr()
697 static int set_kernel_sq_size(struct hns_roce_dev *hr_dev, in set_kernel_sq_size()
746 static int alloc_qp_buf(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in alloc_qp_buf()
777 static void free_qp_buf(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in free_qp_buf()
782 static inline bool user_qp_has_sdb(struct hns_roce_dev *hr_dev, in user_qp_has_sdb()
794 static inline bool user_qp_has_rdb(struct hns_roce_dev *hr_dev, in user_qp_has_rdb()
804 static inline bool kernel_qp_has_rdb(struct hns_roce_dev *hr_dev, in kernel_qp_has_rdb()
812 struct hns_roce_dev *hr_dev, in qp_mmap_entry()
840 static int alloc_user_qp_db(struct hns_roce_dev *hr_dev, in alloc_user_qp_db()
883 static int alloc_kernel_qp_db(struct hns_roce_dev *hr_dev, in alloc_kernel_qp_db()
915 static int alloc_qp_db(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in alloc_qp_db()
952 static void free_qp_db(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in free_qp_db()
971 static int alloc_kernel_wrid(struct hns_roce_dev *hr_dev, in alloc_kernel_wrid()
1009 static int set_qp_param(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in set_qp_param()
1061 static int hns_roce_create_qp_common(struct hns_roce_dev *hr_dev, in hns_roce_create_qp_common()
1167 void hns_roce_qp_destroy(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in hns_roce_qp_destroy()
1181 static int check_qp_type(struct hns_roce_dev *hr_dev, enum ib_qp_type type, in check_qp_type()
1214 struct hns_roce_dev *hr_dev = to_hr_dev(ibdev); in hns_roce_create_qp() local
1255 static int check_mtu_validate(struct hns_roce_dev *hr_dev, in check_mtu_validate()
1280 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_check_qp_attr() local
1326 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_modify_qp() local
1462 int hns_roce_init_qp_table(struct hns_roce_dev *hr_dev) in hns_roce_init_qp_table()
1494 void hns_roce_cleanup_qp_table(struct hns_roce_dev *hr_dev) in hns_roce_cleanup_qp_table()