/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/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()
|
H A D | rpmsg_char.c | 444 ret = ida_alloc_max(&rpmsg_minor_ida, RPMSG_DEV_MAX - 1, GFP_KERNEL); in rpmsg_chrdev_eptdev_add()
|
/linux/drivers/soundwire/ |
H A D | bus_type.c | 108 ret = ida_alloc_max(&slave->bus->slave_ida, SDW_FW_MAX_DEVICES, GFP_KERNEL); in sdw_drv_probe()
|
/linux/include/linux/ |
H A D | idr.h | 315 * ida_alloc_max() - Allocate an unused ID. 327 static inline int ida_alloc_max(struct ida *ida, unsigned int max, gfp_t gfp) in ida_alloc_max() function
|
/linux/drivers/pps/generators/ |
H A D | pps_gen.c | 165 err = ida_alloc_max(&pps_gen_ida, PPS_GEN_MAX_SOURCES - 1, GFP_KERNEL); in pps_gen_register_cdev()
|
/linux/drivers/android/ |
H A D | binderfs.c | 132 minor = ida_alloc_max(&binderfs_minors, in binderfs_binder_device_create() 424 minor = ida_alloc_max(&binderfs_minors, in binderfs_binder_ctl_create()
|
/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()
|
/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 | 305 id = ida_alloc_max(&adev->ppl_ida, fw_cfg->max_ppl_count - 1, GFP_KERNEL); in avs_dsp_create_pipeline()
|
/linux/drivers/watchdog/ |
H A D | watchdog_core.c | 268 id = ida_alloc_max(&watchdog_ida, MAX_DOGS - 1, GFP_KERNEL); in ___watchdog_register_device()
|
/linux/drivers/net/phy/ |
H A D | fixed_phy.c | 243 phy_addr = ida_alloc_max(&phy_fixed_ida, PHY_MAX_ADDR - 1, GFP_KERNEL); in fixed_phy_register()
|
/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/gnss/ |
H A D | core.c | 234 id = ida_alloc_max(&gnss_minors, GNSS_MINORS - 1, GFP_KERNEL); in gnss_allocate_device()
|
/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 | 453 minor = ida_alloc_max(&event_ida, EVENT_MAX_DEV-1, GFP_KERNEL); in event_device_add()
|
/linux/drivers/staging/greybus/ |
H A D | authentication.c | 327 minor = ida_alloc_max(&cap_minors_map, NUM_MINORS - 1, GFP_KERNEL); in gb_cap_connection_init()
|
/linux/drivers/fwctl/ |
H A D | main.c | 301 devnum = ida_alloc_max(&fwctl_ida, FWCTL_MAX_DEVICES - 1, GFP_KERNEL); in _alloc_device()
|
/linux/drivers/dax/ |
H A D | super.c | 465 minor = ida_alloc_max(&dax_minor_ida, MINORMASK, GFP_KERNEL); in alloc_dax()
|
/linux/drivers/iommu/arm/arm-smmu-v3/ |
H A D | tegra241-cmdqv.c | 736 ret = ida_alloc_max(&cmdqv->vintf_ids, max_idx, GFP_KERNEL); in tegra241_cmdqv_init_vintf() 1241 sidx = ida_alloc_max(&vintf->sids, vintf->cmdqv->num_sids_per_vintf - 1, in tegra241_vintf_init_vsid()
|
/linux/drivers/hwmon/ |
H A D | coretemp.c | 507 tdata->index = ida_alloc_max(&pdata->ida, pdata->nr_cores - 1, GFP_KERNEL); in init_temp_data()
|
/linux/drivers/media/dvb-frontends/ |
H A D | dvb-pll.c | 799 nr = ida_alloc_max(&pll_ida, DVB_PLL_MAX - 1, GFP_KERNEL); in dvb_pll_attach()
|
/linux/drivers/dma/idxd/ |
H A D | cdev.c | 550 minor = ida_alloc_max(&cdev_ctx->minor_ida, MINORMASK, GFP_KERNEL); in idxd_wq_add_cdev()
|
/linux/drivers/vfio/ |
H A D | group.c | 540 minor = ida_alloc_max(&vfio.group_ida, MINORMASK, GFP_KERNEL); in vfio_group_alloc()
|