/linux-master/fs/smb/server/mgmt/ |
H A D | ksmbd_ida.c | 8 int ksmbd_acquire_smb2_tid(struct ida *ida) argument 10 return ida_alloc_range(ida, 1, 0xFFFFFFFE, GFP_KERNEL); 13 int ksmbd_acquire_smb2_uid(struct ida *ida) argument 17 id = ida_alloc_min(ida, 1, GFP_KERNEL); 19 id = ida_alloc_min(ida, 1, GFP_KERNEL); 24 int ksmbd_acquire_async_msg_id(struct ida *ida) argument 26 return ida_alloc_min(ida, 29 ksmbd_acquire_id(struct ida *ida) argument 34 ksmbd_release_id(struct ida *ida, int id) argument [all...] |
H A D | ksmbd_ida.h | 19 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, in [all...] |
H A D | user_session.h | 54 struct ida tree_conn_ida;
|
/linux-master/lib/ |
H A D | test_ida.c | 16 static void ida_dump(struct ida *ida) { } argument 18 #define IDA_BUG_ON(ida, x) do { \ 21 ida_dump(ida); \ 31 static void ida_check_alloc(struct ida *ida) argument 36 IDA_BUG_ON(ida, ida_alloc(ida, GFP_KERNEL) != i); 38 ida_free(ida, 20); 39 ida_free(ida, 2 57 ida_check_destroy_1(struct ida *ida, unsigned int base) argument 66 ida_check_destroy(struct ida *ida) argument 84 ida_check_leaf(struct ida *ida, unsigned int base) argument 107 ida_check_max(struct ida *ida) argument 127 ida_check_conv(struct ida *ida) argument 156 ida_check_bad_free(struct ida *ida) argument [all...] |
H A D | idr.c | 314 * define it using DEFINE_IDA() (or embed a &struct ida in a data structure, 367 * @ida: IDA handle. 380 int ida_alloc_range(struct ida *ida, unsigned int min, unsigned int max, argument 383 XA_STATE(xas, &ida->xa, min / IDA_BITMAP_BITS); 481 * @ida: IDA handle. 487 void ida_free(struct ida *ida, unsigned int id) argument 489 XA_STATE(xas, &ida->xa, id / IDA_BITMAP_BITS); 531 * @ida 541 ida_destroy(struct ida *ida) argument 592 ida_dump(struct ida *ida) argument [all...] |
/linux-master/include/linux/ |
H A D | idr.h | 246 struct ida { struct 255 #define DEFINE_IDA(name) struct ida name = IDA_INIT(name) 257 int ida_alloc_range(struct ida *, unsigned int min, unsigned int max, gfp_t); 258 void ida_free(struct ida *, unsigned int id); 259 void ida_destroy(struct ida *ida); 263 * @ida: IDA handle. 273 static inline int ida_alloc(struct ida *ida, gfp_t gfp) argument 275 return ida_alloc_range(ida, 291 ida_alloc_min(struct ida *ida, unsigned int min, gfp_t gfp) argument 309 ida_alloc_max(struct ida *ida, unsigned int max, gfp_t gfp) argument 314 ida_init(struct ida *ida) argument 327 ida_is_empty(const struct ida *ida) argument [all...] |
H A D | thunderbolt.h | 255 struct ida service_ids; 256 struct ida in_hopids; 257 struct ida out_hopids; 498 struct ida msix_ida;
|
/linux-master/drivers/dax/ |
H A D | dax-private.h | 26 * @ida: instance id allocator 37 struct ida ida; member in struct:dax_region 56 * @id: ida allocated id when the dax_region is not static 57 * @ida: mapping id allocator 70 struct ida ida; member in struct:dev_dax
|
/linux-master/drivers/infiniband/hw/hns/ |
H A D | hns_roce_pd.c | 40 ida_init(&pd_ida->ida); 54 id = ida_alloc_range(&pd_ida->ida, pd_ida->min, pd_ida->max, 68 ida_free(&pd_ida->ida, id); 80 ida_free(&hr_dev->pd_ida.ida, (int)to_hr_pd(pd)->pdn); 91 id = ida_alloc_range(&uar_ida->ida, uar_ida->min, uar_ida->max, 116 ida_init(&uar_ida->ida); 126 id = ida_alloc_range(&xrcd_ida->ida, xrcd_ida->min, xrcd_ida->max, 141 ida_init(&xrcd_ida->ida); 171 ida_free(&hr_dev->xrcd_ida.ida, (int)xrcdn);
|
H A D | hns_roce_alloc.c | 177 ida_destroy(&hr_dev->xrcd_ida.ida); 180 ida_destroy(&hr_dev->srq_table.srq_ida.ida); 183 ida_destroy(&hr_dev->mr_table.mtpt_ida.ida); 184 ida_destroy(&hr_dev->pd_ida.ida); 185 ida_destroy(&hr_dev->uar_ida.ida);
|
/linux-master/tools/testing/radix-tree/ |
H A D | idr-test.c | 429 void ida_dump(struct ida *); 441 DEFINE_IDA(ida); 444 id = ida_alloc_min(&ida, 256, GFP_NOWAIT); 445 IDA_BUG_ON(&ida, id != -ENOMEM); 446 id = ida_alloc_min(&ida, 1UL << 30, GFP_NOWAIT); 447 IDA_BUG_ON(&ida, id != -ENOMEM); 448 IDA_BUG_ON(&ida, !ida_is_empty(&ida)); 456 DEFINE_IDA(ida); 460 int id = ida_alloc(&ida, GFP_NOWAI 541 struct ida *ida = arg; local [all...] |
/linux-master/drivers/platform/x86/intel/ |
H A D | vsec.h | 83 struct ida *ida; member in struct:intel_vsec_device
|
H A D | vsec.c | 92 ida_free(intel_vsec_dev->ida, intel_vsec_dev->auxdev.id); 118 id = ida_alloc(intel_vsec_dev->ida, GFP_KERNEL); 218 intel_vsec_dev->ida = &intel_vsec_sdsi_ida; 220 intel_vsec_dev->ida = &intel_vsec_ida;
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | gid.c | 43 ida_init(&dev->roce.reserved_gids.ida); 50 WARN_ON(!ida_is_empty(&dev->roce.reserved_gids.ida)); 53 ida_destroy(&dev->roce.reserved_gids.ida); 94 index = ida_alloc_range(&dev->roce.reserved_gids.ida, 108 ida_free(&dev->roce.reserved_gids.ida, gid_index);
|
/linux-master/drivers/usb/typec/ |
H A D | class.h | 16 struct ida mode_ids; 34 struct ida mode_ids; 48 struct ida mode_ids;
|
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_guc_types.h | 55 struct ida guc_ids;
|
/linux-master/drivers/tty/serial/ |
H A D | serial_base.h | 19 struct ida port_ida;
|
/linux-master/drivers/target/iscsi/ |
H A D | iscsi_target.h | 57 extern struct ida sess_ida;
|
/linux-master/drivers/greybus/ |
H A D | hd.c | 22 static struct ida gb_hd_bus_id_map; 50 struct ida *id_map = &hd->cport_id_map; 65 struct ida *id_map = &hd->cport_id_map; 75 struct ida *id_map = &hd->cport_id_map;
|
/linux-master/sound/soc/sof/ |
H A D | ipc4-priv.h | 38 struct ida m_ida;
|
/linux-master/include/media/ |
H A D | media-device.h | 22 struct ida; 159 struct ida entity_internal_idx;
|
/linux-master/drivers/pnp/ |
H A D | driver.c | 16 static int compare_func(const char *ida, const char *idb) argument 22 if (ida[i] != 'X' && 23 idb[i] != 'X' && toupper(ida[i]) != toupper(idb[i]))
|
/linux-master/drivers/hwmon/ |
H A D | coretemp.c | 95 struct ida ida; member in struct:platform_data 507 tdata->index = ida_alloc_max(&pdata->ida, pdata->nr_cores - 1, GFP_KERNEL); 533 ida_free(&pdata->ida, tdata->index); 630 ida_init(&pdata->ida); 658 ida_destroy(&pdata->ida);
|
/linux-master/include/linux/greybus/ |
H A D | hd.h | 51 struct ida cport_id_map;
|
/linux-master/drivers/media/platform/mediatek/mdp3/ |
H A D | mtk-mdp3-core.h | 127 struct ida mdp_ida;
|