Symbol: ida_alloc_range
arch/powerpc/kvm/powerpc.c
2487
lpid = ida_alloc_range(&lpid_inuse, 1, nr_lpids - 1, GFP_KERNEL);
arch/powerpc/mm/book3s64/mmu_context.c
31
return ida_alloc_range(&mmu_context_ida, min_id, max_id, GFP_KERNEL);
arch/powerpc/mm/book3s64/mmu_context.c
37
int result = ida_alloc_range(&mmu_context_ida, id, id, GFP_KERNEL);
arch/x86/virt/vmx/tdx/tdx.c
1603
return ida_alloc_range(&tdx_guest_keyid_pool, tdx_guest_keyid_start,
block/genhd.c
331
idx = ida_alloc_range(&ext_devt_ida, 0, NR_EXT_DEVT - 1, GFP_KERNEL);
drivers/block/virtio_blk.c
1454
err = ida_alloc_range(&vd_index_ida, 0,
drivers/cdx/cdx.c
895
ret = ida_alloc_range(&cdx_controller_ida, 0, MAX_CDX_CONTROLLERS - 1, GFP_KERNEL);
drivers/char/misc.c
71
ret = ida_alloc_range(&misc_minors_ida, MISC_DYNAMIC_MINOR + 1,
drivers/char/misc.c
74
ret = ida_alloc_range(&misc_minors_ida, minor, minor, GFP_KERNEL);
drivers/firmware/stratix10-svc.c
1625
ret = ida_alloc_range(&actrl->async_id_pool, SIP_SVC_V1_CLIENT_ID,
drivers/fsi/fsi-core.c
1014
id = ida_alloc_range(&fsi_minor_ida, id, id, GFP_KERNEL);
drivers/fsi/fsi-core.c
1370
master->idx = ida_alloc_range(&master_ida, master->idx,
drivers/fsi/fsi-core.c
977
id = ida_alloc_range(&fsi_minor_ida, id, id, GFP_KERNEL);
drivers/fsi/fsi-core.c
988
id = ida_alloc_range(&fsi_minor_ida, FSI_CHAR_LEGACY_TOP,
drivers/fsi/fsi-occ.c
655
occ->idx = ida_alloc_range(&occ_ida, reg, reg,
drivers/gpu/drm/amd/amdkfd/kfd_process.c
895
ret = ida_alloc_range(&primary_process->id_table, KFD_CONTEXT_ID_MIN,
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
2277
ret = ida_alloc_range(&guc->submission_state.guc_ids,
drivers/gpu/drm/vc4/vc4_plane.c
1014
upm_handle = ida_alloc_range(&hvs->upm_handles, 1,
drivers/greybus/es2.c
525
return ida_alloc_range(id_map, ida_start, ida_end, GFP_KERNEL);
drivers/greybus/hd.c
53
ret = ida_alloc_range(id_map, cport_id, cport_id, GFP_KERNEL);
drivers/greybus/hd.c
92
return ida_alloc_range(id_map, ida_start, ida_end, GFP_KERNEL);
drivers/greybus/interface.c
134
ret = ida_alloc_range(&svc->device_id_map, GB_SVC_DEVICE_ID_MIN,
drivers/iio/adc/ad7173.c
724
free_cfg_slot = ida_alloc_range(&st->cfg_slots_status, 0,
drivers/infiniband/core/device.c
459
rc = ida_alloc_range(&inuse, i, i, GFP_KERNEL);
drivers/infiniband/hw/hns/hns_roce_cq.c
124
id = ida_alloc_range(&bank->ida, bank->min, bank->max, GFP_KERNEL);
drivers/infiniband/hw/hns/hns_roce_mr.c
61
id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max,
drivers/infiniband/hw/hns/hns_roce_pd.c
123
id = ida_alloc_range(&xrcd_ida->ida, xrcd_ida->min, xrcd_ida->max,
drivers/infiniband/hw/hns/hns_roce_pd.c
54
id = ida_alloc_range(&pd_ida->ida, pd_ida->min, pd_ida->max,
drivers/infiniband/hw/hns/hns_roce_pd.c
88
id = ida_alloc_range(&uar_ida->ida, uar_ida->min, uar_ida->max,
drivers/infiniband/hw/hns/hns_roce_qp.c
227
id = ida_alloc_range(&bank->ida, bank->next, bank->max, GFP_KERNEL);
drivers/infiniband/hw/hns/hns_roce_qp.c
229
id = ida_alloc_range(&bank->ida, bank->min, bank->max,
drivers/infiniband/hw/hns/hns_roce_srq.c
67
id = ida_alloc_range(&srq_ida->ida, srq_ida->min, srq_ida->max,
drivers/infiniband/hw/ionic/ionic_res.h
56
return ida_alloc_range(&resid->inuse, min, size - 1, GFP_KERNEL);
drivers/input/input.c
2711
int minor = ida_alloc_range(&input_ida, legacy_base,
drivers/input/input.c
2718
return ida_alloc_range(&input_ida, INPUT_FIRST_DYNAMIC_DEV,
drivers/iommu/amd/iommu.c
1879
return ida_alloc_range(&pdom_ids, 1, MAX_DOMAIN_ID - 1, GFP_ATOMIC);
drivers/iommu/amd/iommu.c
1884
return ida_alloc_range(&pdom_ids, id, id, gfp);
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
2810
vmid = ida_alloc_range(&smmu->vmid_map, 1, (1 << smmu->vmid_bits) - 1,
drivers/iommu/intel/dmar.c
1053
iommu->seq_id = ida_alloc_range(&dmar_seq_ids, 0,
drivers/iommu/intel/iommu.c
1048
num = ida_alloc_range(&iommu->domain_ida, IDA_START_DID,
drivers/iommu/intel/iommu.c
1512
ida_alloc_range(&iommu->domain_ida, did, did, GFP_KERNEL);
drivers/iommu/iommu.c
3839
ret = ida_alloc_range(&iommu_global_pasid_ida, IOMMU_FIRST_GLOBAL_PASID,
drivers/iommu/riscv/iommu.c
1360
domain->pscid = ida_alloc_range(&riscv_iommu_pscids, 1,
drivers/iommu/virtio-iommu.c
680
ret = ida_alloc_range(&viommu->domain_ids, viommu->first_domain,
drivers/media/platform/renesas/rcar-vin/rcar-core.c
1148
id = ida_alloc_range(&rvin_ida, 0, RCAR_VIN_NUM - 1,
drivers/mmc/core/host.c
532
index = ida_alloc_range(&mmc_host_ida, min_idx, max_idx - 1,
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
3638
id = ida_alloc_range(&esw->offloads.vport_metadata_ida,
drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c
94
index = ida_alloc_range(&dev->roce.reserved_gids.ida,
drivers/net/ethernet/mellanox/mlx5/core/lib/macsec_fs.c
583
err = ida_alloc_range(&tx_fs->tx_halloc, 1,
drivers/net/ethernet/mellanox/mlx5/core/main.c
1872
dev->priv.sw_vhca_id = ida_alloc_range(&sw_vhca_ida, 1,
drivers/net/ethernet/netronome/nfp/flower/lag_conf.c
114
id = ida_alloc_range(&lag->ida_handle, NFP_FL_LAG_GROUP_MIN,
drivers/net/ethernet/sfc/tc.c
719
rc = ida_alloc_range(&efx->tc->recirc_ida, 1, U8_MAX, GFP_USER);
drivers/net/ipvlan/ipvlan_main.c
613
err = ida_alloc_range(&port->ida, port->dev_id_start, 0xFFFD,
drivers/net/ipvlan/ipvlan_main.c
616
err = ida_alloc_range(&port->ida, 0x1, port->dev_id_start - 1,
drivers/net/netdevsim/bus.c
458
err = ida_alloc_range(&nsim_bus_dev_ids, id, id, GFP_KERNEL);
drivers/net/wwan/wwan_core.c
462
minor = ida_alloc_range(&minors, 0, WWAN_MAX_MINORS - 1, GFP_KERNEL);
drivers/nvme/target/core.c
1663
ret = ida_alloc_range(&cntlid_ida,
drivers/pci/ide.c
41
ret = ida_alloc_range(&pdev->ide_stream_ida, idx, idx, GFP_KERNEL);
drivers/pci/ide.c
49
ret = ida_alloc_range(&hb->ide_stream_ids_ida, id, id, GFP_KERNEL);
drivers/pci/pci.c
6639
return ida_alloc_range(&pci_domain_nr_dynamic_ida, max(hint, min), max,
drivers/pci/pci.c
6667
ida_alloc_range(&pci_domain_nr_dynamic_ida,
drivers/pci/pci.c
6691
return ida_alloc_range(&pci_domain_nr_static_ida,
drivers/rtc/class.c
262
id = ida_alloc_range(&rtc_ida, of_id, of_id, GFP_KERNEL);
drivers/scsi/mpi3mr/mpi3mr_os.c
5478
retval = ida_alloc_range(&mrioc_ida, 0, U8_MAX, GFP_KERNEL);
drivers/soundwire/intel_auxdevice.c
269
return ida_alloc_range(&intel_peripheral_ida,
drivers/staging/greybus/fw-download.c
173
ret = ida_alloc_range(&fw_download->id_map, 1, 255, GFP_KERNEL);
drivers/staging/greybus/fw-management.c
159
ret = ida_alloc_range(&fw_mgmt->id_map, 1, 255, GFP_KERNEL);
drivers/staging/greybus/fw-management.c
302
ret = ida_alloc_range(&fw_mgmt->id_map, 1, 255, GFP_KERNEL);
drivers/thunderbolt/switch.c
787
return ida_alloc_range(ida, min_hopid, max_hopid, GFP_KERNEL);
drivers/thunderbolt/xdomain.c
2371
return ida_alloc_range(&xd->in_hopids, hopid, xd->local_max_hopid,
drivers/thunderbolt/xdomain.c
2397
return ida_alloc_range(&xd->out_hopids, hopid, xd->remote_max_hopid,
drivers/tty/serial/qcom_geni_serial.c
278
line = ida_alloc_range(&port_ida, max_alias_num + 1,
drivers/tty/serial/qcom_geni_serial.c
281
line = ida_alloc_range(&port_ida, line,
drivers/tty/serial/serial_base_bus.c
169
err = ida_alloc_range(&ctrl_dev->port_ida, min, max, GFP_KERNEL);
drivers/vfio/iommufd.c
199
rc = ida_alloc_range(&vdev->pasids, pasid, pasid, GFP_KERNEL);
drivers/virtio/virtio_pci_modern.c
993
id = ida_alloc_range(&avq->dev_parts_ida, 0,
drivers/watchdog/watchdog_core.c
264
id = ida_alloc_range(&watchdog_ida, ret, ret,
drivers/watchdog/watchdog_core.c
282
id = ida_alloc_range(&watchdog_ida, 1, MAX_DOGS - 1,
fs/smb/server/mgmt/ksmbd_ida.c
11
return ida_alloc_range(ida, 1, 0xFFFFFFFE, KSMBD_DEFAULT_GFP);
fs/super.c
1211
dev = ida_alloc_range(&unnamed_dev_ida, 1, (1 << MINORBITS) - 1,
include/linux/idr.h
274
int ida_alloc_range(struct ida *, unsigned int min, unsigned int max, gfp_t);
include/linux/idr.h
293
return ida_alloc_range(ida, 0, ~0, gfp);
include/linux/idr.h
311
return ida_alloc_range(ida, min, ~0, gfp);
include/linux/idr.h
329
return ida_alloc_range(ida, 0, max, gfp);
kernel/fork.c
604
ret = ida_alloc_range(&mm_ida, MM_ID_MIN, MM_ID_MAX, GFP_KERNEL);
kernel/trace/trace_output.c
850
next = ida_alloc_range(&trace_event_ida, __TRACE_LAST_TYPE,
lib/idr.c
479
EXPORT_SYMBOL(ida_alloc_range);
lib/objagg.c
248
root_id = ida_alloc_range(&objagg->root_ida, min, max, GFP_KERNEL);
net/bluetooth/hci_conn.c
987
return ida_alloc_range(&hdev->unset_handle_ida, HCI_CONN_HANDLE_MAX + 1,
net/bluetooth/l2cap_core.c
973
ident = ida_alloc_range(&conn->tx_ida, READ_ONCE(conn->tx_ident) + 1,
net/bluetooth/l2cap_core.c
977
ident = ida_alloc_range(&conn->tx_ida, 1, max, GFP_ATOMIC);
net/core/xdp.c
244
id = ida_alloc_range(&mem_id_pool, mem_id_next, MEM_ID_MAX - 1, gfp);
tools/testing/radix-tree/idr-test.c
530
assert(ida_alloc_range(&ida, 5, 30, GFP_KERNEL) < 0);
tools/testing/radix-tree/idr-test.c
568
ret = ida_alloc_range(ida, 128, 128, GFP_KERNEL);