Searched refs:mtpt_ida (Results 1 – 3 of 3) sorted by relevance
53 struct hns_roce_ida *mtpt_ida = &hr_dev->mr_table.mtpt_ida; in alloc_mr_key() local59 id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max, in alloc_mr_key()77 ida_free(&mtpt_ida->ida, id); in alloc_mr_key()86 ida_free(&hr_dev->mr_table.mtpt_ida.ida, (int)obj); in free_mr_key()180 struct hns_roce_ida *mtpt_ida = &hr_dev->mr_table.mtpt_ida; in hns_roce_init_mr_table() local182 ida_init(&mtpt_ida->ida); in hns_roce_init_mr_table()183 mtpt_ida->max = hr_dev->caps.num_mtpts - 1; in hns_roce_init_mr_table()184 mtpt_ida->min = hr_dev->caps.reserved_mrws; in hns_roce_init_mr_table()476 ida_free(&hr_dev->mr_table.mtpt_ida.ida, in hns_roce_mw_free()531 struct hns_roce_ida *mtpt_ida = &hr_dev->mr_table.mtpt_ida; in hns_roce_alloc_mw() local[all …]
183 ida_destroy(&hr_dev->mr_table.mtpt_ida.ida); in hns_roce_cleanup_bitmap()
325 struct hns_roce_ida mtpt_ida; member