Home
last modified time | relevance | path

Searched refs:pd_ida (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/drivers/infiniband/hw/hns/
Dhns_roce_pd.c38 struct hns_roce_ida *pd_ida = &hr_dev->pd_ida; in hns_roce_init_pd_table() local
40 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() local
54 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()
Dhns_roce_alloc.c184 ida_destroy(&hr_dev->pd_ida.ida); in hns_roce_cleanup_bitmap()
Dhns_roce_device.h951 struct hns_roce_ida pd_ida; member
/Linux-v6.6/drivers/usb/typec/
Dpd.c14 static DEFINE_IDA(pd_ida);
576 ida_simple_remove(&pd_ida, pd->id); in pd_release()
621 ret = ida_simple_get(&pd_ida, 0, 0, GFP_KERNEL); in usb_power_delivery_register()
712 ida_destroy(&pd_ida); in usb_power_delivery_exit()