Lines Matching refs:mtpt_ida
53 struct hns_roce_ida *mtpt_ida = &hr_dev->mr_table.mtpt_ida; in alloc_mr_key() local
59 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() local
182 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
538 id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max, in hns_roce_alloc_mw()