Searched refs:pd_ida (Results 1 – 4 of 4) sorted by relevance
38 struct hns_roce_ida *pd_ida = &hr_dev->pd_ida; in hns_roce_init_pd_table() local40 ida_init(&pd_ida->ida); in hns_roce_init_pd_table()41 pd_ida->max = hr_dev->caps.num_pds - 1; in hns_roce_init_pd_table()42 pd_ida->min = hr_dev->caps.reserved_pds; in hns_roce_init_pd_table()49 struct hns_roce_ida *pd_ida = &hr_dev->pd_ida; in hns_roce_alloc_pd() local54 id = ida_alloc_range(&pd_ida->ida, pd_ida->min, pd_ida->max, in hns_roce_alloc_pd()68 ida_free(&pd_ida->ida, id); in hns_roce_alloc_pd()80 ida_free(&hr_dev->pd_ida.ida, (int)to_hr_pd(pd)->pdn); in hns_roce_dealloc_pd()
184 ida_destroy(&hr_dev->pd_ida.ida); in hns_roce_cleanup_bitmap()
939 struct hns_roce_ida pd_ida; member
14 static DEFINE_IDA(pd_ida);569 ida_simple_remove(&pd_ida, pd->id); in pd_release()614 ret = ida_simple_get(&pd_ida, 0, 0, GFP_KERNEL); in usb_power_delivery_register()705 ida_destroy(&pd_ida); in usb_power_delivery_exit()