Lines Matching defs:hr_dev
49 bool hns_roce_check_whether_mhop(struct hns_roce_dev *hr_dev, u32 type) in hns_roce_check_whether_mhop()
123 static int get_hem_table_config(struct hns_roce_dev *hr_dev, in get_hem_table_config()
203 int hns_roce_calc_hem_mhop(struct hns_roce_dev *hr_dev, in hns_roce_calc_hem_mhop()
252 static struct hns_roce_hem *hns_roce_alloc_hem(struct hns_roce_dev *hr_dev, in hns_roce_alloc_hem()
316 void hns_roce_free_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem *hem) in hns_roce_free_hem()
336 static int calc_hem_config(struct hns_roce_dev *hr_dev, in calc_hem_config()
386 static void free_mhop_hem(struct hns_roce_dev *hr_dev, in free_mhop_hem()
412 static int alloc_mhop_hem(struct hns_roce_dev *hr_dev, in alloc_mhop_hem()
486 static int set_mhop_hem(struct hns_roce_dev *hr_dev, in set_mhop_hem()
524 static int hns_roce_table_mhop_get(struct hns_roce_dev *hr_dev, in hns_roce_table_mhop_get()
570 int hns_roce_table_get(struct hns_roce_dev *hr_dev, in hns_roce_table_get()
614 static void clear_mhop_hem(struct hns_roce_dev *hr_dev, in clear_mhop_hem()
659 static void hns_roce_table_mhop_put(struct hns_roce_dev *hr_dev, in hns_roce_table_mhop_put()
687 void hns_roce_table_put(struct hns_roce_dev *hr_dev, in hns_roce_table_put()
713 void *hns_roce_table_find(struct hns_roce_dev *hr_dev, in hns_roce_table_find()
785 int hns_roce_init_hem_table(struct hns_roce_dev *hr_dev, in hns_roce_init_hem_table()
890 static void hns_roce_cleanup_mhop_hem_table(struct hns_roce_dev *hr_dev, in hns_roce_cleanup_mhop_hem_table()
921 void hns_roce_cleanup_hem_table(struct hns_roce_dev *hr_dev, in hns_roce_cleanup_hem_table()
944 void hns_roce_cleanup_hem(struct hns_roce_dev *hr_dev) in hns_roce_cleanup_hem()
989 hem_list_alloc_item(struct hns_roce_dev *hr_dev, int start, int end, int count, in hem_list_alloc_item()
1016 static void hem_list_free_item(struct hns_roce_dev *hr_dev, in hem_list_free_item()
1025 static void hem_list_free_all(struct hns_roce_dev *hr_dev, in hem_list_free_all()
1036 static void hem_list_link_bt(struct hns_roce_dev *hr_dev, void *base_addr, in hem_list_link_bt()
1043 static void hem_list_assign_bt(struct hns_roce_dev *hr_dev, in hem_list_assign_bt()
1146 static int hem_list_alloc_mid_bt(struct hns_roce_dev *hr_dev, in hem_list_alloc_mid_bt()
1232 alloc_root_hem(struct hns_roce_dev *hr_dev, int unit, int *max_ba_num, in alloc_root_hem()
1260 static int alloc_fake_root_bt(struct hns_roce_dev *hr_dev, void *cpu_base, in alloc_fake_root_bt()
1279 static int setup_middle_bt(struct hns_roce_dev *hr_dev, void *cpu_base, in setup_middle_bt()
1303 setup_root_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem_list *hem_list, in setup_root_hem()
1353 static int hem_list_alloc_root_bt(struct hns_roce_dev *hr_dev, in hem_list_alloc_root_bt()
1395 int hns_roce_hem_list_request(struct hns_roce_dev *hr_dev, in hns_roce_hem_list_request()
1444 void hns_roce_hem_list_release(struct hns_roce_dev *hr_dev, in hns_roce_hem_list_release()
1470 void *hns_roce_hem_list_find_mtt(struct hns_roce_dev *hr_dev, in hns_roce_hem_list_find_mtt()