Lines Matching refs:hns_roce_dev
48 bool hns_roce_check_whether_mhop(struct hns_roce_dev *hr_dev, u32 type) in hns_roce_check_whether_mhop()
122 static int get_hem_table_config(struct hns_roce_dev *hr_dev, in get_hem_table_config()
202 int hns_roce_calc_hem_mhop(struct hns_roce_dev *hr_dev, in hns_roce_calc_hem_mhop()
251 static struct hns_roce_hem *hns_roce_alloc_hem(struct hns_roce_dev *hr_dev, in hns_roce_alloc_hem()
288 void hns_roce_free_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem *hem) in hns_roce_free_hem()
298 static int calc_hem_config(struct hns_roce_dev *hr_dev, in calc_hem_config()
348 static void free_mhop_hem(struct hns_roce_dev *hr_dev, in free_mhop_hem()
374 static int alloc_mhop_hem(struct hns_roce_dev *hr_dev, in alloc_mhop_hem()
446 static int set_mhop_hem(struct hns_roce_dev *hr_dev, in set_mhop_hem()
484 static int hns_roce_table_mhop_get(struct hns_roce_dev *hr_dev, in hns_roce_table_mhop_get()
530 int hns_roce_table_get(struct hns_roce_dev *hr_dev, in hns_roce_table_get()
573 static void clear_mhop_hem(struct hns_roce_dev *hr_dev, in clear_mhop_hem()
627 static void hns_roce_table_mhop_put(struct hns_roce_dev *hr_dev, in hns_roce_table_mhop_put()
655 void hns_roce_table_put(struct hns_roce_dev *hr_dev, in hns_roce_table_put()
684 void *hns_roce_table_find(struct hns_roce_dev *hr_dev, in hns_roce_table_find()
736 int hns_roce_init_hem_table(struct hns_roce_dev *hr_dev, in hns_roce_init_hem_table()
839 static void hns_roce_cleanup_mhop_hem_table(struct hns_roce_dev *hr_dev, in hns_roce_cleanup_mhop_hem_table()
870 void hns_roce_cleanup_hem_table(struct hns_roce_dev *hr_dev, in hns_roce_cleanup_hem_table()
899 void hns_roce_cleanup_hem(struct hns_roce_dev *hr_dev) in hns_roce_cleanup_hem()
944 hem_list_alloc_item(struct hns_roce_dev *hr_dev, int start, int end, int count, in hem_list_alloc_item()
971 static void hem_list_free_item(struct hns_roce_dev *hr_dev, in hem_list_free_item()
980 static void hem_list_free_all(struct hns_roce_dev *hr_dev, in hem_list_free_all()
1099 static int hem_list_alloc_mid_bt(struct hns_roce_dev *hr_dev, in hem_list_alloc_mid_bt()
1186 alloc_root_hem(struct hns_roce_dev *hr_dev, int unit, int *max_ba_num, in alloc_root_hem()
1214 static int alloc_fake_root_bt(struct hns_roce_dev *hr_dev, void *cpu_base, in alloc_fake_root_bt()
1233 static int setup_middle_bt(struct hns_roce_dev *hr_dev, void *cpu_base, in setup_middle_bt()
1257 setup_root_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem_list *hem_list, in setup_root_hem()
1307 static int hem_list_alloc_root_bt(struct hns_roce_dev *hr_dev, in hem_list_alloc_root_bt()
1349 int hns_roce_hem_list_request(struct hns_roce_dev *hr_dev, in hns_roce_hem_list_request()
1398 void hns_roce_hem_list_release(struct hns_roce_dev *hr_dev, in hns_roce_hem_list_release()
1424 void *hns_roce_hem_list_find_mtt(struct hns_roce_dev *hr_dev, in hns_roce_hem_list_find_mtt()