| /linux/drivers/gpu/drm/i915/selftests/ |
| H A D | mock_region.c | 113 int instance = ida_alloc_max(&i915->selftest.mock_region_instances, in mock_region_create()
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_gmrid_manager.c | 66 id = ida_alloc_max(&gman->gmr_ida, gman->max_gmr_ids - 1, GFP_KERNEL); in vmw_gmrid_man_get_node()
|
| /linux/drivers/peci/ |
| H A D | core.c | 59 ret = ida_alloc_max(&peci_controller_ida, U8_MAX, GFP_KERNEL); in peci_controller_alloc()
|
| /linux/drivers/soundwire/ |
| H A D | bus_type.c | 101 ret = ida_alloc_max(&slave->bus->slave_ida, SDW_FW_MAX_DEVICES - 1, GFP_KERNEL); in sdw_bus_probe()
|
| /linux/include/linux/ |
| H A D | idr.h | 327 static inline int ida_alloc_max(struct ida *ida, unsigned int max, gfp_t gfp) in ida_alloc_max() function
|
| /linux/drivers/rpmsg/ |
| H A D | rpmsg_ctrl.c | 159 ret = ida_alloc_max(&rpmsg_minor_ida, RPMSG_DEV_MAX - 1, GFP_KERNEL); in rpmsg_ctrldev_probe()
|
| /linux/lib/ |
| H A D | region_alloc_benchmark.c | 89 id = ida_alloc_max(&ida, cap - 1, GFP_KERNEL); in benchmark_ida()
|
| /linux/drivers/android/ |
| H A D | binderfs.c | 134 minor = ida_alloc_max(&binderfs_minors, in binderfs_binder_device_create() 409 minor = ida_alloc_max(&binderfs_minors, in binderfs_binder_ctl_create()
|
| /linux/drivers/pps/generators/ |
| H A D | pps_gen.c | 168 err = ida_alloc_max(&pps_gen_ida, PPS_GEN_MAX_SOURCES - 1, GFP_KERNEL); in pps_gen_register_cdev()
|
| /linux/sound/soc/intel/avs/ |
| H A D | utils.c | 201 return ida_alloc_max(adev->mod_idas[idx], max_id, GFP_KERNEL); in avs_module_id_alloc()
|
| H A D | dsp.c | 305 id = ida_alloc_max(&adev->ppl_ida, fw_cfg->max_ppl_count - 1, GFP_KERNEL); in avs_dsp_create_pipeline()
|
| /linux/drivers/gnss/ |
| H A D | core.c | 234 id = ida_alloc_max(&gnss_minors, GNSS_MINORS - 1, GFP_KERNEL); in gnss_allocate_device()
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_backlight.c | 51 const int nb = ida_alloc_max(&bl_ida, 99, GFP_KERNEL); in nouveau_get_backlight_name()
|
| /linux/drivers/platform/chrome/wilco_ec/ |
| H A D | telemetry.c | 365 minor = ida_alloc_max(&telem_ida, TELEM_MAX_DEV-1, GFP_KERNEL); in telem_device_probe()
|
| /linux/drivers/slimbus/ |
| H A D | core.c | 433 ret = ida_alloc_max(&ctrl->laddr_ida, in slim_device_alloc_laddr()
|
| /linux/fs/devpts/ |
| H A D | inode.c | 474 index = ida_alloc_max(&fsi->allocated_ptys, fsi->mount_opts.max - 1, in devpts_new_index()
|
| /linux/drivers/dax/ |
| H A D | super.c | 610 minor = ida_alloc_max(&dax_minor_ida, MINORMASK, GFP_KERNEL); in alloc_dax()
|
| /linux/drivers/staging/greybus/ |
| H A D | fw-management.c | 602 minor = ida_alloc_max(&fw_mgmt_minors_map, NUM_MINORS - 1, GFP_KERNEL); in gb_fw_mgmt_connection_init()
|
| /linux/tools/testing/radix-tree/ |
| H A D | idr-test.c | 529 assert(ida_alloc_max(&ida, 20000, GFP_KERNEL) == i); in ida_alloc_free_test()
|
| /linux/drivers/media/rc/ |
| H A D | lirc_dev.c | 723 minor = ida_alloc_max(&lirc_ida, RC_DEV_MAX - 1, GFP_KERNEL); in lirc_register()
|
| /linux/drivers/pci/ |
| H A D | ide.c | 213 id = ida_alloc_max(ida, max - 1, GFP_KERNEL); in DEFINE_FREE()
|
| /linux/drivers/dma/idxd/ |
| H A D | cdev.c | 548 minor = ida_alloc_max(&cdev_ctx->minor_ida, MINORMASK, GFP_KERNEL); in idxd_wq_add_cdev()
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_acl_tcam.c | 64 id = ida_alloc_max(&tcam->used_regions, tcam->max_regions - 1, in mlxsw_sp_acl_tcam_region_id_get() 85 id = ida_alloc_max(&tcam->used_groups, tcam->max_groups - 1, in mlxsw_sp_acl_tcam_group_id_get()
|
| /linux/fs/proc/ |
| H A D | generic.c | 207 i = ida_alloc_max(&proc_inum_ida, UINT_MAX - PROC_DYNAMIC_FIRST, in proc_alloc_inum()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | rndis.c | 878 return ida_alloc_max(&rndis_ida, 999, GFP_KERNEL); in rndis_get_nr()
|