Symbol: ida_alloc_max
arch/powerpc/platforms/powernv/vas-window.c
513
int winid = ida_alloc_max(ida, VAS_WINDOWS_PER_CHIP - 1, GFP_KERNEL);
block/bsg.c
234
ret = ida_alloc_max(&bsg_minor_ida, BSG_MAX_DEVS - 1, GFP_KERNEL);
drivers/android/binder/rust_binderfs.c
134
minor = ida_alloc_max(&binderfs_minors,
drivers/android/binder/rust_binderfs.c
401
minor = ida_alloc_max(&binderfs_minors,
drivers/android/binderfs.c
134
minor = ida_alloc_max(&binderfs_minors,
drivers/android/binderfs.c
410
minor = ida_alloc_max(&binderfs_minors,
drivers/block/rbd.c
5399
rbd_dev->dev_id = ida_alloc_max(&rbd_dev_id_ida,
drivers/block/rnbd/rnbd-clt.c
1427
dev->clt_device_id = ida_alloc_max(&index_ida,
drivers/block/ublk_drv.c
5450
index = ida_alloc_max(&ub->buf_ida, USHRT_MAX, GFP_KERNEL);
drivers/cxl/core/memdev.c
708
rc = ida_alloc_max(&cxl_memdev_ida, CXL_MEM_MAX_DEVS - 1, GFP_KERNEL);
drivers/dax/super.c
566
minor = ida_alloc_max(&dax_minor_ida, MINORMASK, GFP_KERNEL);
drivers/dma/idxd/cdev.c
546
minor = ida_alloc_max(&cdev_ctx->minor_ida, MINORMASK, GFP_KERNEL);
drivers/firmware/stratix10-svc.c
1165
ret = ida_alloc_max(&actrl->async_id_pool, MAX_SDM_CLIENT_IDS,
drivers/firmware/stratix10-svc.c
1302
ret = ida_alloc_max(&achan->job_id_pool, MAX_SDM_JOB_IDS,
drivers/fwctl/main.c
301
devnum = ida_alloc_max(&fwctl_ida, FWCTL_MAX_DEVICES - 1, GFP_KERNEL);
drivers/gnss/core.c
234
id = ida_alloc_max(&gnss_minors, GNSS_MINORS - 1, GFP_KERNEL);
drivers/gpu/drm/drm_connector.c
249
ret = ida_alloc_max(&config->connector_ida, 31, GFP_KERNEL);
drivers/gpu/drm/i915/selftests/mock_region.c
113
int instance = ida_alloc_max(&i915->selftest.mock_region_instances,
drivers/gpu/drm/nouveau/nouveau_backlight.c
51
const int nb = ida_alloc_max(&bl_ida, 99, GFP_KERNEL);
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c
66
id = ida_alloc_max(&gman->gmr_ida, gman->max_gmr_ids - 1, GFP_KERNEL);
drivers/hwmon/coretemp.c
501
tdata->index = ida_alloc_max(&pdata->ida, pdata->nr_cores - 1, GFP_KERNEL);
drivers/infiniband/core/user_mad.c
1297
devnum = ida_alloc_max(&umad_ida, IB_UMAD_MAX_PORTS - 1, GFP_KERNEL);
drivers/infiniband/core/uverbs_main.c
1186
devnum = ida_alloc_max(&uverbs_ida, IB_UVERBS_MAX_DEVICES - 1,
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
1187
sidx = ida_alloc_max(&vintf->sids, vintf->cmdqv->num_sids_per_vintf - 1,
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
737
ret = ida_alloc_max(&cmdqv->vintf_ids, max_idx, GFP_KERNEL);
drivers/irqchip/irq-gic-v3-its.c
4552
return ida_alloc_max(&its_vpeid_ida, ITS_MAX_VPEID - 1, GFP_KERNEL);
drivers/irqchip/irq-gic-v5.c
54
return ida_alloc_max(&lpi_ida, num_lpis - 1, GFP_KERNEL);
drivers/md/bcache/super.c
944
idx = ida_alloc_max(&bcache_device_idx, BCACHE_DEVICE_IDX_MAX - 1,
drivers/media/dvb-frontends/dvb-pll.c
799
nr = ida_alloc_max(&pll_ida, DVB_PLL_MAX - 1, GFP_KERNEL);
drivers/media/platform/chips-media/coda/coda-common.c
2615
idx = ida_alloc_max(&dev->ida, max, GFP_KERNEL);
drivers/media/rc/lirc_dev.c
723
minor = ida_alloc_max(&lirc_ida, RC_DEV_MAX - 1, GFP_KERNEL);
drivers/media/rc/rc-main.c
1901
minor = ida_alloc_max(&rc_ida, RC_DEV_MAX - 1, GFP_KERNEL);
drivers/mmc/core/block.c
2491
devidx = ida_alloc_max(&mmc_blk_ida, max_devices - 1, GFP_KERNEL);
drivers/mmc/core/block.c
2882
devidx = ida_alloc_max(&mmc_rpmb_ida, max_devices - 1, GFP_KERNEL);
drivers/net/can/virtio_can.c
136
tx_idx = ida_alloc_max(&priv->tx_putidx_ida,
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
825
index = ida_alloc_max(&fg->fte_allocator, fg->max_ftes - 1, GFP_KERNEL);
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c
64
id = ida_alloc_max(&tcam->used_regions, tcam->max_regions - 1,
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c
85
id = ida_alloc_max(&tcam->used_groups, tcam->max_groups - 1,
drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c
1101
ida_idx = ida_alloc_max(&priv->tun.mac_off_ids,
drivers/pci/ide.c
213
id = ida_alloc_max(ida, max - 1, GFP_KERNEL);
drivers/peci/core.c
59
ret = ida_alloc_max(&peci_controller_ida, U8_MAX, GFP_KERNEL);
drivers/platform/chrome/wilco_ec/event.c
462
minor = ida_alloc_max(&event_ida, EVENT_MAX_DEV-1, GFP_KERNEL);
drivers/platform/chrome/wilco_ec/telemetry.c
365
minor = ida_alloc_max(&telem_ida, TELEM_MAX_DEV-1, GFP_KERNEL);
drivers/pps/generators/pps_gen.c
168
err = ida_alloc_max(&pps_gen_ida, PPS_GEN_MAX_SOURCES - 1, GFP_KERNEL);
drivers/resctrl/mpam_internal.h
422
return ida_alloc_max(&class->ida_csu_mon, cprops->num_csu_mon - 1,
drivers/resctrl/mpam_internal.h
438
return ida_alloc_max(&class->ida_mbwu_mon, cprops->num_mbwu_mon - 1,
drivers/rpmsg/rpmsg_char.c
450
ret = ida_alloc_max(&rpmsg_minor_ida, RPMSG_DEV_MAX - 1, GFP_KERNEL);
drivers/rpmsg/rpmsg_ctrl.c
159
ret = ida_alloc_max(&rpmsg_minor_ida, RPMSG_DEV_MAX - 1, GFP_KERNEL);
drivers/slimbus/core.c
433
ret = ida_alloc_max(&ctrl->laddr_ida,
drivers/soundwire/bus_type.c
101
ret = ida_alloc_max(&slave->bus->slave_ida, SDW_FW_MAX_DEVICES - 1, GFP_KERNEL);
drivers/staging/greybus/authentication.c
327
minor = ida_alloc_max(&cap_minors_map, NUM_MINORS - 1, GFP_KERNEL);
drivers/staging/greybus/fw-management.c
602
minor = ida_alloc_max(&fw_mgmt_minors_map, NUM_MINORS - 1, GFP_KERNEL);
drivers/thunderbolt/pci.c
195
ret = ida_alloc_max(&nhi_pci->msix_ida, MSIX_MAX_VECS - 1, GFP_KERNEL);
drivers/tty/serial/sc16is7xx.c
1476
ret = ida_alloc_max(&sc16is7xx_lines, SC16IS7XX_MAX_DEVS - 1, GFP_KERNEL);
drivers/usb/gadget/function/rndis.c
878
return ida_alloc_max(&rndis_ida, 999, GFP_KERNEL);
drivers/vfio/group.c
526
minor = ida_alloc_max(&vfio.group_ida, MINORMASK, GFP_KERNEL);
drivers/vfio/vfio_main.c
287
ret = ida_alloc_max(&vfio.device_ida, MINORMASK, GFP_KERNEL);
drivers/vhost/vdpa.c
1594
minor = ida_alloc_max(&vhost_vdpa_ida, VHOST_VDPA_DEV_MAX - 1,
drivers/watchdog/watchdog_core.c
269
id = ida_alloc_max(&watchdog_ida, MAX_DOGS - 1, GFP_KERNEL);
fs/devpts/inode.c
474
index = ida_alloc_max(&fsi->allocated_ptys, fsi->mount_opts.max - 1,
fs/proc/generic.c
207
i = ida_alloc_max(&proc_inum_ida, UINT_MAX - PROC_DYNAMIC_FIRST,
net/bluetooth/hci_core.c
2552
id = ida_alloc_max(&hci_index_ida, HCI_MAX_ID - 1, GFP_KERNEL);
sound/core/timer.c
2139
return ida_alloc_max(&snd_utimer_ids, SNDRV_UTIMERS_MAX_COUNT - 1, GFP_KERNEL);
sound/soc/intel/avs/dsp.c
305
id = ida_alloc_max(&adev->ppl_ida, fw_cfg->max_ppl_count - 1, GFP_KERNEL);
sound/soc/intel/avs/utils.c
207
ret = ida_alloc_max(adev->mod_idas[idx], max_id, GFP_KERNEL);
sound/soc/sof/ipc4-topology.c
1393
swidget->instance_id = ida_alloc_max(&fw_module->m_ida, max_instances, GFP_KERNEL);
sound/soc/sof/ipc4-topology.c
2418
group_id = ida_alloc_max(&alh_group_ida, ALH_MULTI_GTW_COUNT - 1,
sound/soc/sof/ipc4-topology.c
3184
swidget->instance_id = ida_alloc_max(&pipeline_ida, ipc4_data->max_num_pipelines,
sound/soc/sof/ipc4-topology.c
3449
return ida_alloc_max(queue_ida, num_pins, GFP_KERNEL);
tools/testing/radix-tree/idr-test.c
529
assert(ida_alloc_max(&ida, 20000, GFP_KERNEL) == i);