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()
547 static void set_ext_sge_param(struct hns_roce_dev *hr_dev, u32 sq_wqe_cnt, in set_ext_sge_param()
593 static int check_sq_size_with_integrity(struct hns_roce_dev *hr_dev, in check_sq_size_with_integrity()
616 static int set_user_sq_size(struct hns_roce_dev *hr_dev, in set_user_sq_size()
644 static int set_wqe_buf_attr(struct hns_roce_dev *hr_dev, in set_wqe_buf_attr()
695 static int set_kernel_sq_size(struct hns_roce_dev *hr_dev, in set_kernel_sq_size()
744 static int alloc_qp_buf(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in alloc_qp_buf()
775 static void free_qp_buf(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in free_qp_buf()
780 static inline bool user_qp_has_sdb(struct hns_roce_dev *hr_dev, in user_qp_has_sdb()
792 static inline bool user_qp_has_rdb(struct hns_roce_dev *hr_dev, in user_qp_has_rdb()
802 static inline bool kernel_qp_has_rdb(struct hns_roce_dev *hr_dev, in kernel_qp_has_rdb()
810 struct hns_roce_dev *hr_dev, in qp_mmap_entry()
838 static int alloc_user_qp_db(struct hns_roce_dev *hr_dev, in alloc_user_qp_db()
881 static int alloc_kernel_qp_db(struct hns_roce_dev *hr_dev, in alloc_kernel_qp_db()
913 static int alloc_qp_db(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in alloc_qp_db()
950 static void free_qp_db(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in free_qp_db()
969 static int alloc_kernel_wrid(struct hns_roce_dev *hr_dev, in alloc_kernel_wrid()
1007 static int set_qp_param(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in set_qp_param()
1059 static int hns_roce_create_qp_common(struct hns_roce_dev *hr_dev, in hns_roce_create_qp_common()
1165 void hns_roce_qp_destroy(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in hns_roce_qp_destroy()
1179 static int check_qp_type(struct hns_roce_dev *hr_dev, enum ib_qp_type type, in check_qp_type()
1212 struct hns_roce_dev *hr_dev = to_hr_dev(ibdev); in hns_roce_create_qp() local
1257 static int check_mtu_validate(struct hns_roce_dev *hr_dev, in check_mtu_validate()
1282 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_check_qp_attr() local
1328 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_modify_qp() local
1466 int hns_roce_init_qp_table(struct hns_roce_dev *hr_dev) in hns_roce_init_qp_table()
1498 void hns_roce_cleanup_qp_table(struct hns_roce_dev *hr_dev) in hns_roce_cleanup_qp_table()