Home
last modified time | relevance | path

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

12

/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()
/linux/drivers/resctrl/
H A Dmpam_internal.h422 return ida_alloc_max(&class->ida_csu_mon, cprops->num_csu_mon - 1, in mpam_alloc_csu_mon()
438 return ida_alloc_max(&class->ida_mbwu_mon, cprops->num_mbwu_mon - 1, in mpam_alloc_mbwu_mon()
/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()
/linux/drivers/peci/
H A Dcore.c59 ret = ida_alloc_max(&peci_controller_ida, U8_MAX, GFP_KERNEL); in peci_controller_alloc()
/linux/include/linux/
H A Didr.h327 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 Drpmsg_ctrl.c159 ret = ida_alloc_max(&rpmsg_minor_ida, RPMSG_DEV_MAX - 1, GFP_KERNEL); in rpmsg_ctrldev_probe()
H A Drpmsg_char.c444 ret = ida_alloc_max(&rpmsg_minor_ida, RPMSG_DEV_MAX - 1, GFP_KERNEL); in rpmsg_chrdev_eptdev_add()
/linux/drivers/soundwire/
H A Dbus_type.c102 ret = ida_alloc_max(&slave->bus->slave_ida, SDW_FW_MAX_DEVICES - 1, GFP_KERNEL); in sdw_bus_probe()
/linux/drivers/android/
H A Dbinderfs.c134 minor = ida_alloc_max(&binderfs_minors, in binderfs_binder_device_create()
410 minor = ida_alloc_max(&binderfs_minors, in binderfs_binder_ctl_create()
/linux/drivers/android/binder/
H A Drust_binderfs.c134 minor = ida_alloc_max(&binderfs_minors, in binderfs_binder_device_create()
401 minor = ida_alloc_max(&binderfs_minors, in binderfs_binder_ctl_create()
/linux/drivers/pps/generators/
H A Dpps_gen.c168 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 Dutils.c207 ret = ida_alloc_max(adev->mod_idas[idx], max_id, GFP_KERNEL); in avs_module_id_alloc()
H A Ddsp.c305 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 Dcore.c234 id = ida_alloc_max(&gnss_minors, GNSS_MINORS - 1, GFP_KERNEL); in gnss_allocate_device()
/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()
/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()
/linux/drivers/staging/greybus/
H A Dauthentication.c327 minor = ida_alloc_max(&cap_minors_map, NUM_MINORS - 1, GFP_KERNEL); in gb_cap_connection_init()
H A Dfw-management.c602 minor = ida_alloc_max(&fw_mgmt_minors_map, NUM_MINORS - 1, GFP_KERNEL); in gb_fw_mgmt_connection_init()
/linux/drivers/slimbus/
H A Dcore.c433 ret = ida_alloc_max(&ctrl->laddr_ida, in slim_device_alloc_laddr()
/linux/fs/devpts/
H A Dinode.c474 index = ida_alloc_max(&fsi->allocated_ptys, fsi->mount_opts.max - 1, in devpts_new_index()
/linux/tools/testing/radix-tree/
H A Didr-test.c529 assert(ida_alloc_max(&ida, 20000, GFP_KERNEL) == i); in ida_alloc_free_test()
/linux/drivers/media/dvb-frontends/
H A Ddvb-pll.c799 nr = ida_alloc_max(&pll_ida, DVB_PLL_MAX - 1, GFP_KERNEL); in dvb_pll_attach()
/linux/drivers/hwmon/
H A Dcoretemp.c510 tdata->index = ida_alloc_max(&pdata->ida, pdata->nr_cores - 1, GFP_KERNEL); in init_temp_data()
/linux/drivers/firmware/
H A Dstratix10-svc.c1153 ret = ida_alloc_max(&actrl->async_id_pool, MAX_SDM_CLIENT_IDS, in stratix10_svc_add_async_client()
1290 ret = ida_alloc_max(&achan->job_id_pool, MAX_SDM_JOB_IDS, in stratix10_svc_async_send()
/linux/drivers/pci/
H A Dide.c215 id = ida_alloc_max(ida, max - 1, GFP_KERNEL); in DEFINE_FREE()

12