Home
last modified time | relevance | path

Searched refs:ida (Results 1 – 25 of 92) sorted by relevance

1234

/linux-6.3-rc2/lib/
A Dtest_ida.c16 void ida_dump(struct ida *ida) { } in ida_dump() argument
31 static void ida_check_alloc(struct ida *ida) in ida_check_alloc() argument
53 IDA_BUG_ON(ida, !ida_is_empty(ida)); in ida_check_alloc()
60 IDA_BUG_ON(ida, ida_is_empty(ida)); in ida_check_destroy_1()
62 IDA_BUG_ON(ida, !ida_is_empty(ida)); in ida_check_destroy_1()
69 IDA_BUG_ON(ida, !ida_is_empty(ida)); in ida_check_destroy()
71 IDA_BUG_ON(ida, !ida_is_empty(ida)); in ida_check_destroy()
94 IDA_BUG_ON(ida, !ida_is_empty(ida)); in ida_check_leaf()
97 IDA_BUG_ON(ida, ida_is_empty(ida)); in ida_check_leaf()
99 IDA_BUG_ON(ida, !ida_is_empty(ida)); in ida_check_leaf()
[all …]
A Didr.c380 int ida_alloc_range(struct ida *ida, unsigned int min, unsigned int max, in ida_alloc_range() argument
383 XA_STATE(xas, &ida->xa, min / IDA_BITMAP_BITS); in ida_alloc_range()
487 void ida_free(struct ida *ida, unsigned int id) in ida_free() argument
489 XA_STATE(xas, &ida->xa, id / IDA_BITMAP_BITS); in ida_free()
541 void ida_destroy(struct ida *ida) in ida_destroy() argument
543 XA_STATE(xas, &ida->xa, 0); in ida_destroy()
592 static void ida_dump(struct ida *ida) in ida_dump() argument
594 struct xarray *xa = &ida->xa; in ida_dump()
595 pr_debug("ida: %p node %p free %d\n", ida, xa->xa_head, in ida_dump()
/linux-6.3-rc2/fs/ksmbd/mgmt/
A Dksmbd_ida.c8 static inline int __acquire_id(struct ida *ida, int from, int to) in __acquire_id() argument
13 int ksmbd_acquire_smb2_tid(struct ida *ida) in ksmbd_acquire_smb2_tid() argument
22 int ksmbd_acquire_smb2_uid(struct ida *ida) in ksmbd_acquire_smb2_uid() argument
26 id = __acquire_id(ida, 1, 0); in ksmbd_acquire_smb2_uid()
28 id = __acquire_id(ida, 1, 0); in ksmbd_acquire_smb2_uid()
33 int ksmbd_acquire_async_msg_id(struct ida *ida) in ksmbd_acquire_async_msg_id() argument
35 return __acquire_id(ida, 1, 0); in ksmbd_acquire_async_msg_id()
38 int ksmbd_acquire_id(struct ida *ida) in ksmbd_acquire_id() argument
40 return __acquire_id(ida, 0, 0); in ksmbd_acquire_id()
43 void ksmbd_release_id(struct ida *ida, int id) in ksmbd_release_id() argument
[all …]
A Dksmbd_ida.h19 int ksmbd_acquire_smb2_tid(struct ida *ida);
28 int ksmbd_acquire_smb2_uid(struct ida *ida);
29 int ksmbd_acquire_async_msg_id(struct ida *ida);
31 int ksmbd_acquire_id(struct ida *ida);
33 void ksmbd_release_id(struct ida *ida, int id);
/linux-6.3-rc2/include/linux/
A Didr.h244 struct ida { struct
257 void ida_destroy(struct ida *ida);
271 static inline int ida_alloc(struct ida *ida, gfp_t gfp) in ida_alloc() argument
273 return ida_alloc_range(ida, 0, ~0, gfp); in ida_alloc()
289 static inline int ida_alloc_min(struct ida *ida, unsigned int min, gfp_t gfp) in ida_alloc_min() argument
307 static inline int ida_alloc_max(struct ida *ida, unsigned int max, gfp_t gfp) in ida_alloc_max() argument
312 static inline void ida_init(struct ida *ida) in ida_init() argument
314 xa_init_flags(&ida->xa, IDA_INIT_FLAGS); in ida_init()
323 #define ida_simple_remove(ida, id) ida_free(ida, id) argument
325 static inline bool ida_is_empty(const struct ida *ida) in ida_is_empty() argument
[all …]
A Dthunderbolt.h241 struct ida service_ids;
242 struct ida in_hopids;
243 struct ida out_hopids;
484 struct ida msix_ida;
A Dnfs_fs_sb.h231 struct ida openowner_id;
232 struct ida lockowner_id;
A Dthermal.h183 struct ida ida; member
/linux-6.3-rc2/tools/testing/radix-tree/
A Didr-test.c441 DEFINE_IDA(ida); in ida_check_nomem()
448 IDA_BUG_ON(&ida, !ida_is_empty(&ida)); in ida_check_nomem()
456 DEFINE_IDA(ida); in ida_check_conv_user()
472 ida_destroy(&ida); in ida_check_conv_user()
477 DEFINE_IDA(ida); in ida_check_random()
492 IDA_BUG_ON(&ida, ida_alloc_min(&ida, bit, GFP_KERNEL) in ida_check_random()
496 ida_destroy(&ida); in ida_check_random()
503 DEFINE_IDA(ida); in ida_simple_get_remove_test()
516 ida_destroy(&ida); in ida_simple_get_remove_test()
541 struct ida *ida = arg; in ida_leak_fn() local
[all …]
/linux-6.3-rc2/drivers/infiniband/hw/hns/
A Dhns_roce_pd.c40 ida_init(&pd_ida->ida); in hns_roce_init_pd_table()
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()
91 id = ida_alloc_range(&uar_ida->ida, uar_ida->min, uar_ida->max, in hns_roce_uar_alloc()
116 ida_init(&uar_ida->ida); in hns_roce_init_uar_table()
126 id = ida_alloc_range(&xrcd_ida->ida, xrcd_ida->min, xrcd_ida->max, in hns_roce_xrcd_alloc()
141 ida_init(&xrcd_ida->ida); in hns_roce_init_xrcd_table()
167 ida_free(&hr_dev->xrcd_ida.ida, (int)xrcdn); in hns_roce_dealloc_xrcd()
A Dhns_roce_alloc.c177 ida_destroy(&hr_dev->xrcd_ida.ida); in hns_roce_cleanup_bitmap()
180 ida_destroy(&hr_dev->srq_table.srq_ida.ida); in hns_roce_cleanup_bitmap()
183 ida_destroy(&hr_dev->mr_table.mtpt_ida.ida); in hns_roce_cleanup_bitmap()
184 ida_destroy(&hr_dev->pd_ida.ida); in hns_roce_cleanup_bitmap()
185 ida_destroy(&hr_dev->uar_ida.ida); in hns_roce_cleanup_bitmap()
A Dhns_roce_cq.c69 id = ida_alloc_range(&bank->ida, bank->min, bank->max, GFP_KERNEL); in alloc_cqn()
96 ida_free(&bank->ida, cqn >> CQ_BANKID_SHIFT); in free_cqn()
521 ida_init(&cq_table->bank[i].ida); in hns_roce_init_cq_table()
532 ida_destroy(&hr_dev->cq_table.bank[i].ida); in hns_roce_cleanup_cq_table()
/linux-6.3-rc2/drivers/dax/
A Ddax-private.h37 struct ida ida; member
68 struct ida ida; member
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/lib/
A Dgid.c43 ida_init(&dev->roce.reserved_gids.ida); in mlx5_init_reserved_gids()
50 WARN_ON(!ida_is_empty(&dev->roce.reserved_gids.ida)); in mlx5_cleanup_reserved_gids()
53 ida_destroy(&dev->roce.reserved_gids.ida); in mlx5_cleanup_reserved_gids()
94 index = ida_alloc_range(&dev->roce.reserved_gids.ida, in mlx5_core_reserved_gid_alloc()
108 ida_free(&dev->roce.reserved_gids.ida, gid_index); in mlx5_core_reserved_gid_free()
/linux-6.3-rc2/drivers/usb/typec/
A Dclass.h15 struct ida mode_ids;
32 struct ida mode_ids;
43 struct ida mode_ids;
/linux-6.3-rc2/drivers/platform/x86/intel/
A Dvsec.h38 struct ida *ida; member
A Dvsec.c139 ida_free(intel_vsec_dev->ida, intel_vsec_dev->auxdev.id); in intel_vsec_dev_release()
154 ret = ida_alloc(intel_vsec_dev->ida, GFP_KERNEL); in intel_vsec_add_aux()
172 ida_free(intel_vsec_dev->ida, auxdev->id); in intel_vsec_add_aux()
252 intel_vsec_dev->ida = &intel_vsec_sdsi_ida; in intel_vsec_add_dev()
254 intel_vsec_dev->ida = &intel_vsec_ida; in intel_vsec_add_dev()
/linux-6.3-rc2/drivers/greybus/
A Dhd.c22 static struct ida gb_hd_bus_id_map;
50 struct ida *id_map = &hd->cport_id_map; in gb_hd_cport_reserve()
65 struct ida *id_map = &hd->cport_id_map; in gb_hd_cport_release_reserved()
75 struct ida *id_map = &hd->cport_id_map; in gb_hd_cport_allocate()
/linux-6.3-rc2/drivers/hwmon/
A Dcoretemp.c92 struct ida ida; member
518 index = ida_alloc(&pdata->ida, GFP_KERNEL); in create_core_data()
566 ida_free(&pdata->ida, index); in create_core_data()
592 ida_free(&pdata->ida, indx - BASE_SYSFS_ATTR_NO); in coretemp_remove_core()
607 ida_init(&pdata->ida); in coretemp_device_add()
635 ida_destroy(&pdata->ida); in coretemp_device_remove()
/linux-6.3-rc2/include/media/
A Dmedia-device.h22 struct ida;
159 struct ida entity_internal_idx;
/linux-6.3-rc2/drivers/pnp/
A Ddriver.c16 static int compare_func(const char *ida, const char *idb) in compare_func() argument
22 if (ida[i] != 'X' && in compare_func()
23 idb[i] != 'X' && toupper(ida[i]) != toupper(idb[i])) in compare_func()
/linux-6.3-rc2/drivers/net/ipvlan/
A Dipvlan.h100 struct ida ida; member
/linux-6.3-rc2/arch/powerpc/platforms/powernv/
A Dvas-window.c506 static void vas_release_window_id(struct ida *ida, int winid) in vas_release_window_id() argument
508 ida_free(ida, winid); in vas_release_window_id()
511 static int vas_assign_window_id(struct ida *ida) in vas_assign_window_id() argument
513 int winid = ida_alloc_max(ida, VAS_WINDOWS_PER_CHIP - 1, GFP_KERNEL); in vas_assign_window_id()
534 vas_release_window_id(&vinst->ida, winid); in vas_window_free()
542 winid = vas_assign_window_id(&vinst->ida); in vas_window_alloc()
562 vas_release_window_id(&vinst->ida, winid); in vas_window_alloc()
A Dvas.h321 struct ida ida; member
/linux-6.3-rc2/sound/soc/sof/
A Dipc4-priv.h37 struct ida m_ida;

Completed in 53 milliseconds

1234