Home
last modified time | relevance | path

Searched refs:ida_alloc_max (Results 1 – 25 of 36) sorted by relevance

12

/openbmc/linux/drivers/gpu/drm/i915/selftests/
H A Dmock_region.c113 int instance = ida_alloc_max(&i915->selftest.mock_region_instances, in mock_region_create()
/openbmc/linux/drivers/peci/
H A Dcore.c59 ret = ida_alloc_max(&peci_controller_ida, U8_MAX, GFP_KERNEL); in peci_controller_alloc()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_gmrid_manager.c66 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 Dmisc.c70 ret = ida_alloc_max(&misc_minors_ida, DYNAMIC_MINORS - 1, GFP_KERNEL); in misc_minor_alloc()
/openbmc/linux/include/linux/
H A Didr.h309 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 Dbsg.c203 ret = ida_alloc_max(&bsg_minor_ida, BSG_MAX_DEVS - 1, GFP_KERNEL); in bsg_register_queue()
/openbmc/linux/drivers/android/
H A Dbinderfs.c132 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 Dutils.c207 ret = ida_alloc_max(adev->mod_idas[idx], max_id, GFP_KERNEL); in avs_module_id_alloc()
H A Ddsp.c306 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 Dcore.c235 id = ida_alloc_max(&gnss_minors, GNSS_MINORS - 1, GFP_KERNEL); in gnss_allocate_device()
/openbmc/linux/drivers/platform/chrome/wilco_ec/
H A Dtelemetry.c366 minor = ida_alloc_max(&telem_ida, TELEM_MAX_DEV-1, GFP_KERNEL); in telem_device_probe()
H A Devent.c454 minor = ida_alloc_max(&event_ida, EVENT_MAX_DEV-1, GFP_KERNEL); in event_device_add()
/openbmc/linux/drivers/net/phy/
H A Dfixed_phy.c247 phy_addr = ida_alloc_max(&phy_fixed_ida, PHY_MAX_ADDR - 1, GFP_KERNEL); in __fixed_phy_register()
/openbmc/linux/drivers/slimbus/
H A Dcore.c439 ret = ida_alloc_max(&ctrl->laddr_ida, in slim_device_alloc_laddr()
/openbmc/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_backlight.c51 const int nb = ida_alloc_max(&bl_ida, 99, GFP_KERNEL); in nouveau_get_backlight_name()
/openbmc/linux/fs/devpts/
H A Dinode.c520 index = ida_alloc_max(&fsi->allocated_ptys, fsi->mount_opts.max - 1, in devpts_new_index()
/openbmc/linux/drivers/dax/
H A Dsuper.c451 minor = ida_alloc_max(&dax_minor_ida, MINORMASK, GFP_KERNEL); in alloc_dax()
/openbmc/linux/drivers/ptp/
H A Dptp_clock.c223 index = ida_alloc_max(&ptp_clocks_map, MINORMASK, GFP_KERNEL); in ptp_clock_register()
/openbmc/linux/drivers/hwmon/
H A Dcoretemp.c518 index = ida_alloc_max(&pdata->ida, NUM_REAL_CORES - 1, GFP_KERNEL); in create_core_data()
/openbmc/linux/sound/soc/sof/
H A Dipc4-topology.c1023 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 Dlirc_dev.c722 minor = ida_alloc_max(&lirc_ida, RC_DEV_MAX - 1, GFP_KERNEL); in lirc_register()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_tcam.c64 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 Dgroup.c548 minor = ida_alloc_max(&vfio.group_ida, MINORMASK, GFP_KERNEL); in vfio_group_alloc()
/openbmc/linux/drivers/usb/gadget/function/
H A Drndis.c872 return ida_alloc_max(&rndis_ida, 999, GFP_KERNEL); in rndis_get_nr()
/openbmc/linux/drivers/cxl/core/
H A Dmemdev.c567 rc = ida_alloc_max(&cxl_memdev_ida, CXL_MEM_MAX_DEVS - 1, GFP_KERNEL); in cxl_memdev_alloc()

12