Home
last modified time | relevance | path

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

/linux-5.19.10/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.h939 struct hns_roce_ida pd_ida; member