Searched refs:xrcd_ida (Results 1 – 3 of 3) sorted by relevance
123 struct hns_roce_ida *xrcd_ida = &hr_dev->xrcd_ida; in hns_roce_xrcd_alloc() local126 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() local141 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()
177 ida_destroy(&hr_dev->xrcd_ida.ida); in hns_roce_cleanup_bitmap()
952 struct hns_roce_ida xrcd_ida; member