Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/infiniband/hw/hns/
Dhns_roce_mr.c54 struct hns_roce_ida *mtpt_ida = &hr_dev->mr_table.mtpt_ida; in alloc_mr_key() local
60 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() local
190 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 …]
Dhns_roce_alloc.c182 ida_destroy(&hr_dev->mr_table.mtpt_ida.ida); in hns_roce_cleanup_bitmap()
Dhns_roce_device.h345 struct hns_roce_ida mtpt_ida; member