Lines Matching defs:hr_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()
315 void hns_roce_free_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem *hem) in hns_roce_free_hem()
335 static int calc_hem_config(struct hns_roce_dev *hr_dev, in calc_hem_config()
385 static void free_mhop_hem(struct hns_roce_dev *hr_dev, in free_mhop_hem()
411 static int alloc_mhop_hem(struct hns_roce_dev *hr_dev, in alloc_mhop_hem()
485 static int set_mhop_hem(struct hns_roce_dev *hr_dev, in set_mhop_hem()
523 static int hns_roce_table_mhop_get(struct hns_roce_dev *hr_dev, in hns_roce_table_mhop_get()
569 int hns_roce_table_get(struct hns_roce_dev *hr_dev, in hns_roce_table_get()
613 static void clear_mhop_hem(struct hns_roce_dev *hr_dev, in clear_mhop_hem()
667 static void hns_roce_table_mhop_put(struct hns_roce_dev *hr_dev, in hns_roce_table_mhop_put()
695 void hns_roce_table_put(struct hns_roce_dev *hr_dev, in hns_roce_table_put()
724 void *hns_roce_table_find(struct hns_roce_dev *hr_dev, in hns_roce_table_find()
793 int hns_roce_init_hem_table(struct hns_roce_dev *hr_dev, in hns_roce_init_hem_table()
896 static void hns_roce_cleanup_mhop_hem_table(struct hns_roce_dev *hr_dev, in hns_roce_cleanup_mhop_hem_table()
927 void hns_roce_cleanup_hem_table(struct hns_roce_dev *hr_dev, in hns_roce_cleanup_hem_table()
954 void hns_roce_cleanup_hem(struct hns_roce_dev *hr_dev) in hns_roce_cleanup_hem()
999 hem_list_alloc_item(struct hns_roce_dev *hr_dev, int start, int end, int count, in hem_list_alloc_item()
1026 static void hem_list_free_item(struct hns_roce_dev *hr_dev, in hem_list_free_item()
1035 static void hem_list_free_all(struct hns_roce_dev *hr_dev, in hem_list_free_all()
1046 static void hem_list_link_bt(struct hns_roce_dev *hr_dev, void *base_addr, in hem_list_link_bt()
1053 static void hem_list_assign_bt(struct hns_roce_dev *hr_dev, in hem_list_assign_bt()
1156 static int hem_list_alloc_mid_bt(struct hns_roce_dev *hr_dev, in hem_list_alloc_mid_bt()
1242 alloc_root_hem(struct hns_roce_dev *hr_dev, int unit, int *max_ba_num, in alloc_root_hem()
1270 static int alloc_fake_root_bt(struct hns_roce_dev *hr_dev, void *cpu_base, in alloc_fake_root_bt()
1289 static int setup_middle_bt(struct hns_roce_dev *hr_dev, void *cpu_base, in setup_middle_bt()
1313 setup_root_hem(struct hns_roce_dev *hr_dev, struct hns_roce_hem_list *hem_list, in setup_root_hem()
1363 static int hem_list_alloc_root_bt(struct hns_roce_dev *hr_dev, in hem_list_alloc_root_bt()
1405 int hns_roce_hem_list_request(struct hns_roce_dev *hr_dev, in hns_roce_hem_list_request()
1454 void hns_roce_hem_list_release(struct hns_roce_dev *hr_dev, in hns_roce_hem_list_release()
1480 void *hns_roce_hem_list_find_mtt(struct hns_roce_dev *hr_dev, in hns_roce_hem_list_find_mtt()