ida_alloc_max
int winid = ida_alloc_max(ida, VAS_WINDOWS_PER_CHIP - 1, GFP_KERNEL);
ret = ida_alloc_max(&bsg_minor_ida, BSG_MAX_DEVS - 1, GFP_KERNEL);
minor = ida_alloc_max(&binderfs_minors,
minor = ida_alloc_max(&binderfs_minors,
minor = ida_alloc_max(&binderfs_minors,
minor = ida_alloc_max(&binderfs_minors,
rbd_dev->dev_id = ida_alloc_max(&rbd_dev_id_ida,
dev->clt_device_id = ida_alloc_max(&index_ida,
index = ida_alloc_max(&ub->buf_ida, USHRT_MAX, GFP_KERNEL);
rc = ida_alloc_max(&cxl_memdev_ida, CXL_MEM_MAX_DEVS - 1, GFP_KERNEL);
minor = ida_alloc_max(&dax_minor_ida, MINORMASK, GFP_KERNEL);
minor = ida_alloc_max(&cdev_ctx->minor_ida, MINORMASK, GFP_KERNEL);
ret = ida_alloc_max(&actrl->async_id_pool, MAX_SDM_CLIENT_IDS,
ret = ida_alloc_max(&achan->job_id_pool, MAX_SDM_JOB_IDS,
devnum = ida_alloc_max(&fwctl_ida, FWCTL_MAX_DEVICES - 1, GFP_KERNEL);
id = ida_alloc_max(&gnss_minors, GNSS_MINORS - 1, GFP_KERNEL);
ret = ida_alloc_max(&config->connector_ida, 31, GFP_KERNEL);
int instance = ida_alloc_max(&i915->selftest.mock_region_instances,
const int nb = ida_alloc_max(&bl_ida, 99, GFP_KERNEL);
id = ida_alloc_max(&gman->gmr_ida, gman->max_gmr_ids - 1, GFP_KERNEL);
tdata->index = ida_alloc_max(&pdata->ida, pdata->nr_cores - 1, GFP_KERNEL);
devnum = ida_alloc_max(&umad_ida, IB_UMAD_MAX_PORTS - 1, GFP_KERNEL);
devnum = ida_alloc_max(&uverbs_ida, IB_UVERBS_MAX_DEVICES - 1,
sidx = ida_alloc_max(&vintf->sids, vintf->cmdqv->num_sids_per_vintf - 1,
ret = ida_alloc_max(&cmdqv->vintf_ids, max_idx, GFP_KERNEL);
return ida_alloc_max(&its_vpeid_ida, ITS_MAX_VPEID - 1, GFP_KERNEL);
return ida_alloc_max(&lpi_ida, num_lpis - 1, GFP_KERNEL);
idx = ida_alloc_max(&bcache_device_idx, BCACHE_DEVICE_IDX_MAX - 1,
nr = ida_alloc_max(&pll_ida, DVB_PLL_MAX - 1, GFP_KERNEL);
idx = ida_alloc_max(&dev->ida, max, GFP_KERNEL);
minor = ida_alloc_max(&lirc_ida, RC_DEV_MAX - 1, GFP_KERNEL);
minor = ida_alloc_max(&rc_ida, RC_DEV_MAX - 1, GFP_KERNEL);
devidx = ida_alloc_max(&mmc_blk_ida, max_devices - 1, GFP_KERNEL);
devidx = ida_alloc_max(&mmc_rpmb_ida, max_devices - 1, GFP_KERNEL);
tx_idx = ida_alloc_max(&priv->tx_putidx_ida,
index = ida_alloc_max(&fg->fte_allocator, fg->max_ftes - 1, GFP_KERNEL);
id = ida_alloc_max(&tcam->used_regions, tcam->max_regions - 1,
id = ida_alloc_max(&tcam->used_groups, tcam->max_groups - 1,
ida_idx = ida_alloc_max(&priv->tun.mac_off_ids,
id = ida_alloc_max(ida, max - 1, GFP_KERNEL);
ret = ida_alloc_max(&peci_controller_ida, U8_MAX, GFP_KERNEL);
minor = ida_alloc_max(&event_ida, EVENT_MAX_DEV-1, GFP_KERNEL);
minor = ida_alloc_max(&telem_ida, TELEM_MAX_DEV-1, GFP_KERNEL);
err = ida_alloc_max(&pps_gen_ida, PPS_GEN_MAX_SOURCES - 1, GFP_KERNEL);
return ida_alloc_max(&class->ida_csu_mon, cprops->num_csu_mon - 1,
return ida_alloc_max(&class->ida_mbwu_mon, cprops->num_mbwu_mon - 1,
ret = ida_alloc_max(&rpmsg_minor_ida, RPMSG_DEV_MAX - 1, GFP_KERNEL);
ret = ida_alloc_max(&rpmsg_minor_ida, RPMSG_DEV_MAX - 1, GFP_KERNEL);
ret = ida_alloc_max(&ctrl->laddr_ida,
ret = ida_alloc_max(&slave->bus->slave_ida, SDW_FW_MAX_DEVICES - 1, GFP_KERNEL);
minor = ida_alloc_max(&cap_minors_map, NUM_MINORS - 1, GFP_KERNEL);
minor = ida_alloc_max(&fw_mgmt_minors_map, NUM_MINORS - 1, GFP_KERNEL);
ret = ida_alloc_max(&nhi_pci->msix_ida, MSIX_MAX_VECS - 1, GFP_KERNEL);
ret = ida_alloc_max(&sc16is7xx_lines, SC16IS7XX_MAX_DEVS - 1, GFP_KERNEL);
return ida_alloc_max(&rndis_ida, 999, GFP_KERNEL);
minor = ida_alloc_max(&vfio.group_ida, MINORMASK, GFP_KERNEL);
ret = ida_alloc_max(&vfio.device_ida, MINORMASK, GFP_KERNEL);
minor = ida_alloc_max(&vhost_vdpa_ida, VHOST_VDPA_DEV_MAX - 1,
id = ida_alloc_max(&watchdog_ida, MAX_DOGS - 1, GFP_KERNEL);
index = ida_alloc_max(&fsi->allocated_ptys, fsi->mount_opts.max - 1,
i = ida_alloc_max(&proc_inum_ida, UINT_MAX - PROC_DYNAMIC_FIRST,
id = ida_alloc_max(&hci_index_ida, HCI_MAX_ID - 1, GFP_KERNEL);
return ida_alloc_max(&snd_utimer_ids, SNDRV_UTIMERS_MAX_COUNT - 1, GFP_KERNEL);
id = ida_alloc_max(&adev->ppl_ida, fw_cfg->max_ppl_count - 1, GFP_KERNEL);
ret = ida_alloc_max(adev->mod_idas[idx], max_id, GFP_KERNEL);
swidget->instance_id = ida_alloc_max(&fw_module->m_ida, max_instances, GFP_KERNEL);
group_id = ida_alloc_max(&alh_group_ida, ALH_MULTI_GTW_COUNT - 1,
swidget->instance_id = ida_alloc_max(&pipeline_ida, ipc4_data->max_num_pipelines,
return ida_alloc_max(queue_ida, num_pins, GFP_KERNEL);
assert(ida_alloc_max(&ida, 20000, GFP_KERNEL) == i);