Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/infiniband/hw/hns/
Dhns_roce_pd.c123 struct hns_roce_ida *xrcd_ida = &hr_dev->xrcd_ida; in hns_roce_xrcd_alloc() local
126 id = ida_alloc_range(&xrcd_ida->ida, xrcd_ida->min, xrcd_ida->max, in hns_roce_xrcd_alloc()
139 struct hns_roce_ida *xrcd_ida = &hr_dev->xrcd_ida; in hns_roce_init_xrcd_table() local
141 ida_init(&xrcd_ida->ida); in hns_roce_init_xrcd_table()
142 xrcd_ida->max = hr_dev->caps.num_xrcds - 1; in hns_roce_init_xrcd_table()
143 xrcd_ida->min = hr_dev->caps.reserved_xrcds; in hns_roce_init_xrcd_table()
167 ida_free(&hr_dev->xrcd_ida.ida, (int)xrcdn); in hns_roce_dealloc_xrcd()
Dhns_roce_alloc.c177 ida_destroy(&hr_dev->xrcd_ida.ida); in hns_roce_cleanup_bitmap()
Dhns_roce_device.h952 struct hns_roce_ida xrcd_ida; member