Searched refs:mtpt_ida (Results 1 – 3 of 3) sorted by relevance
54 struct hns_roce_ida *mtpt_ida = &hr_dev->mr_table.mtpt_ida; in alloc_mr_key() local60 id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max, in alloc_mr_key()78 ida_free(&mtpt_ida->ida, id); in alloc_mr_key()87 ida_free(&hr_dev->mr_table.mtpt_ida.ida, (int)obj); in free_mr_key()188 struct hns_roce_ida *mtpt_ida = &hr_dev->mr_table.mtpt_ida; in hns_roce_init_mr_table() local190 ida_init(&mtpt_ida->ida); in hns_roce_init_mr_table()191 mtpt_ida->max = hr_dev->caps.num_mtpts - 1; in hns_roce_init_mr_table()192 mtpt_ida->min = hr_dev->caps.reserved_mrws; in hns_roce_init_mr_table()500 ida_free(&hr_dev->mr_table.mtpt_ida.ida, in hns_roce_mw_free()555 struct hns_roce_ida *mtpt_ida = &hr_dev->mr_table.mtpt_ida; in hns_roce_alloc_mw() local[all …]
182 ida_destroy(&hr_dev->mr_table.mtpt_ida.ida); in hns_roce_cleanup_bitmap()
345 struct hns_roce_ida mtpt_ida; member