Lines Matching defs:hr_dev
42 static struct hns_roce_qp *hns_roce_qp_lookup(struct hns_roce_dev *hr_dev, in hns_roce_qp_lookup()
90 void init_flush_work(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in init_flush_work()
122 void hns_roce_qp_event(struct hns_roce_dev *hr_dev, u32 qpn, int event_type) in hns_roce_qp_event()
136 void hns_roce_flush_cqe(struct hns_roce_dev *hr_dev, u32 qpn) in hns_roce_flush_cqe()
250 static int alloc_qpn(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in alloc_qpn()
282 static void add_qp_to_list(struct hns_roce_dev *hr_dev, in add_qp_to_list()
305 static int hns_roce_qp_store(struct hns_roce_dev *hr_dev, in hns_roce_qp_store()
326 static int alloc_qpc(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in alloc_qpc()
390 void hns_roce_qp_remove(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in hns_roce_qp_remove()
409 static void free_qpc(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in free_qpc()
424 static void free_qpn(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in free_qpn()
466 static int set_rq_size(struct hns_roce_dev *hr_dev, struct ib_qp_cap *cap, in set_rq_size()
512 static u32 get_max_inline_data(struct hns_roce_dev *hr_dev, in get_max_inline_data()
573 static void set_ext_sge_param(struct hns_roce_dev *hr_dev, u32 sq_wqe_cnt, in set_ext_sge_param()
619 static int check_sq_size_with_integrity(struct hns_roce_dev *hr_dev, in check_sq_size_with_integrity()
642 static int set_user_sq_size(struct hns_roce_dev *hr_dev, in set_user_sq_size()
670 static int set_wqe_buf_attr(struct hns_roce_dev *hr_dev, in set_wqe_buf_attr()
721 static int set_kernel_sq_size(struct hns_roce_dev *hr_dev, in set_kernel_sq_size()
770 static int alloc_qp_buf(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in alloc_qp_buf()
801 static void free_qp_buf(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp) in free_qp_buf()
806 static inline bool user_qp_has_sdb(struct hns_roce_dev *hr_dev, in user_qp_has_sdb()
818 static inline bool user_qp_has_rdb(struct hns_roce_dev *hr_dev, in user_qp_has_rdb()
828 static inline bool kernel_qp_has_rdb(struct hns_roce_dev *hr_dev, in kernel_qp_has_rdb()
836 struct hns_roce_dev *hr_dev, in qp_mmap_entry()
864 static int alloc_user_qp_db(struct hns_roce_dev *hr_dev, in alloc_user_qp_db()
909 static int alloc_kernel_qp_db(struct hns_roce_dev *hr_dev, in alloc_kernel_qp_db()
941 static int alloc_qp_db(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in alloc_qp_db()
978 static void free_qp_db(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in free_qp_db()
997 static int alloc_kernel_wrid(struct hns_roce_dev *hr_dev, in alloc_kernel_wrid()
1035 static void default_congest_type(struct hns_roce_dev *hr_dev, in default_congest_type()
1048 struct hns_roce_dev *hr_dev = to_hr_dev(hr_qp->ibqp.device); in set_congest_type() local
1077 static int set_congest_param(struct hns_roce_dev *hr_dev, in set_congest_param()
1089 static int set_qp_param(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in set_qp_param()
1146 static int hns_roce_create_qp_common(struct hns_roce_dev *hr_dev, in hns_roce_create_qp_common()
1257 void hns_roce_qp_destroy(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp, in hns_roce_qp_destroy()
1272 static int check_qp_type(struct hns_roce_dev *hr_dev, enum ib_qp_type type, in check_qp_type()
1305 struct hns_roce_dev *hr_dev = to_hr_dev(ibdev); in hns_roce_create_qp() local
1349 static int check_mtu_validate(struct hns_roce_dev *hr_dev, in check_mtu_validate()
1374 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_check_qp_attr() local
1420 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_modify_qp() local
1571 int hns_roce_init_qp_table(struct hns_roce_dev *hr_dev) in hns_roce_init_qp_table()
1599 void hns_roce_cleanup_qp_table(struct hns_roce_dev *hr_dev) in hns_roce_cleanup_qp_table()