/openbmc/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()
|
/openbmc/linux/drivers/peci/ |
H A D | core.c | 59 ret = ida_alloc_max(&peci_controller_ida, U8_MAX, GFP_KERNEL); in peci_controller_alloc()
|
/openbmc/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()
|
/openbmc/linux/drivers/char/ |
H A D | misc.c | 70 ret = ida_alloc_max(&misc_minors_ida, DYNAMIC_MINORS - 1, GFP_KERNEL); in misc_minor_alloc()
|
/openbmc/linux/include/linux/ |
H A D | idr.h | 309 static inline int ida_alloc_max(struct ida *ida, unsigned int max, gfp_t gfp) in ida_alloc_max() function
|
/openbmc/linux/block/ |
H A D | bsg.c | 203 ret = ida_alloc_max(&bsg_minor_ida, BSG_MAX_DEVS - 1, GFP_KERNEL); in bsg_register_queue()
|
/openbmc/linux/drivers/android/ |
H A D | binderfs.c | 132 minor = ida_alloc_max(&binderfs_minors, in binderfs_binder_device_create() 423 minor = ida_alloc_max(&binderfs_minors, in binderfs_binder_ctl_create()
|
/openbmc/linux/sound/soc/intel/avs/ |
H A D | utils.c | 207 ret = ida_alloc_max(adev->mod_idas[idx], max_id, GFP_KERNEL); in avs_module_id_alloc()
|
H A D | dsp.c | 306 id = ida_alloc_max(&adev->ppl_ida, fw_cfg->max_ppl_count - 1, GFP_KERNEL); in avs_dsp_create_pipeline()
|
/openbmc/linux/drivers/gnss/ |
H A D | core.c | 235 id = ida_alloc_max(&gnss_minors, GNSS_MINORS - 1, GFP_KERNEL); in gnss_allocate_device()
|
/openbmc/linux/drivers/platform/chrome/wilco_ec/ |
H A D | telemetry.c | 366 minor = ida_alloc_max(&telem_ida, TELEM_MAX_DEV-1, GFP_KERNEL); in telem_device_probe()
|
H A D | event.c | 454 minor = ida_alloc_max(&event_ida, EVENT_MAX_DEV-1, GFP_KERNEL); in event_device_add()
|
/openbmc/linux/drivers/net/phy/ |
H A D | fixed_phy.c | 247 phy_addr = ida_alloc_max(&phy_fixed_ida, PHY_MAX_ADDR - 1, GFP_KERNEL); in __fixed_phy_register()
|
/openbmc/linux/drivers/slimbus/ |
H A D | core.c | 439 ret = ida_alloc_max(&ctrl->laddr_ida, in slim_device_alloc_laddr()
|
/openbmc/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()
|
/openbmc/linux/fs/devpts/ |
H A D | inode.c | 520 index = ida_alloc_max(&fsi->allocated_ptys, fsi->mount_opts.max - 1, in devpts_new_index()
|
/openbmc/linux/drivers/dax/ |
H A D | super.c | 451 minor = ida_alloc_max(&dax_minor_ida, MINORMASK, GFP_KERNEL); in alloc_dax()
|
/openbmc/linux/drivers/ptp/ |
H A D | ptp_clock.c | 223 index = ida_alloc_max(&ptp_clocks_map, MINORMASK, GFP_KERNEL); in ptp_clock_register()
|
/openbmc/linux/drivers/hwmon/ |
H A D | coretemp.c | 518 index = ida_alloc_max(&pdata->ida, NUM_REAL_CORES - 1, GFP_KERNEL); in create_core_data()
|
/openbmc/linux/sound/soc/sof/ |
H A D | ipc4-topology.c | 1023 swidget->instance_id = ida_alloc_max(&fw_module->m_ida, max_instances, GFP_KERNEL); in sof_ipc4_widget_assign_instance_id() 1723 group_id = ida_alloc_max(&alh_group_ida, ALH_MULTI_GTW_COUNT - 1, in sof_ipc4_prepare_copier_module() 2291 swidget->instance_id = ida_alloc_max(&pipeline_ida, ipc4_data->max_num_pipelines, in sof_ipc4_widget_setup() 2528 return ida_alloc_max(queue_ida, num_pins, GFP_KERNEL); in sof_ipc4_get_queue_id()
|
/openbmc/linux/drivers/media/rc/ |
H A D | lirc_dev.c | 722 minor = ida_alloc_max(&lirc_ida, RC_DEV_MAX - 1, GFP_KERNEL); in lirc_register()
|
/openbmc/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()
|
/openbmc/linux/drivers/vfio/ |
H A D | group.c | 548 minor = ida_alloc_max(&vfio.group_ida, MINORMASK, GFP_KERNEL); in vfio_group_alloc()
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | rndis.c | 872 return ida_alloc_max(&rndis_ida, 999, GFP_KERNEL); in rndis_get_nr()
|
/openbmc/linux/drivers/cxl/core/ |
H A D | memdev.c | 567 rc = ida_alloc_max(&cxl_memdev_ida, CXL_MEM_MAX_DEVS - 1, GFP_KERNEL); in cxl_memdev_alloc()
|