Home
last modified time | relevance | path

Searched refs:mtpt_ida (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/infiniband/hw/hns/
Dhns_roce_mr.c53 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
[all …]
Dhns_roce_alloc.c183 ida_destroy(&hr_dev->mr_table.mtpt_ida.ida); in hns_roce_cleanup_bitmap()
Dhns_roce_device.h325 struct hns_roce_ida mtpt_ida; member