/linux/include/linux/ |
H A D | idr.h | 257 int ida_alloc_range(struct ida *, unsigned int min, unsigned int max, gfp_t); 275 return ida_alloc_range(ida, 0, ~0, gfp); in ida_alloc() 293 return ida_alloc_range(ida, min, ~0, gfp); in ida_alloc_min() 311 return ida_alloc_range(ida, 0, max, gfp); in ida_alloc_max() 324 ida_alloc_range(ida, start, (end) - 1, gfp)
|
/linux/drivers/infiniband/hw/hns/ |
H A D | hns_roce_pd.c | 54 id = ida_alloc_range(&pd_ida->ida, pd_ida->min, pd_ida->max, in hns_roce_alloc_pd() 91 id = ida_alloc_range(&uar_ida->ida, uar_ida->min, uar_ida->max, in hns_roce_uar_alloc() 126 id = ida_alloc_range(&xrcd_ida->ida, xrcd_ida->min, xrcd_ida->max, in hns_roce_xrcd_alloc()
|
H A D | hns_roce_mr.c | 60 id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max, in alloc_mr_key() 563 id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max, in hns_roce_alloc_mw()
|
/linux/drivers/char/ |
H A D | misc.c | 76 ret = ida_alloc_range(&misc_minors_ida, MISC_DYNAMIC_MINOR + 1, in misc_minor_alloc() 83 ret = ida_alloc_range(&misc_minors_ida, minor, minor, GFP_KERNEL); in misc_minor_alloc() 85 ret = ida_alloc_range(&misc_minors_ida, minor, minor, GFP_KERNEL); in misc_minor_alloc()
|
/linux/arch/powerpc/mm/book3s64/ |
H A D | mmu_context.c | 31 return ida_alloc_range(&mmu_context_ida, min_id, max_id, GFP_KERNEL); in alloc_context_id() 37 int result = ida_alloc_range(&mmu_context_ida, id, id, GFP_KERNEL); in hash__reserve_context_id()
|
/linux/fs/smb/server/mgmt/ |
H A D | ksmbd_ida.c | 11 return ida_alloc_range(ida, 1, 0xFFFFFFFE, KSMBD_DEFAULT_GFP); in ksmbd_acquire_smb2_tid()
|
/linux/drivers/greybus/ |
H A D | hd.c | 53 ret = ida_alloc_range(id_map, cport_id, cport_id, GFP_KERNEL); in gb_hd_cport_reserve() 92 return ida_alloc_range(id_map, ida_start, ida_end, GFP_KERNEL); in gb_hd_cport_allocate()
|
H A D | es2.c | 525 return ida_alloc_range(id_map, ida_start, ida_end, GFP_KERNEL); in es2_cport_allocate()
|
/linux/drivers/watchdog/ |
H A D | watchdog_core.c | 263 id = ida_alloc_range(&watchdog_ida, ret, ret, in ___watchdog_register_device() 281 id = ida_alloc_range(&watchdog_ida, 1, MAX_DOGS - 1, in ___watchdog_register_device()
|
/linux/lib/ |
H A D | idr.c | 380 int ida_alloc_range(struct ida *ida, unsigned int min, unsigned int max, in ida_alloc_range() function 477 EXPORT_SYMBOL(ida_alloc_range);
|
H A D | objagg.c | 248 root_id = ida_alloc_range(&objagg->root_ida, min, max, GFP_KERNEL); in objagg_obj_root_id_alloc()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | gid.c | 94 index = ida_alloc_range(&dev->roce.reserved_gids.ida, in mlx5_core_reserved_gid_alloc()
|
/linux/drivers/tty/serial/ |
H A D | serial_base_bus.c | 162 err = ida_alloc_range(&ctrl_dev->port_ida, min, max, GFP_KERNEL); in serial_base_port_add()
|
/linux/drivers/fsi/ |
H A D | fsi-core.c | 922 id = ida_alloc_range(&fsi_minor_ida, id, id, GFP_KERNEL); in __fsi_get_new_minor() 933 id = ida_alloc_range(&fsi_minor_ida, FSI_CHAR_LEGACY_TOP, in __fsi_get_new_minor() 959 id = ida_alloc_range(&fsi_minor_ida, id, id, GFP_KERNEL); in fsi_get_new_minor() 1315 master->idx = ida_alloc_range(&master_ida, master->idx, in fsi_master_register()
|
H A D | fsi-occ.c | 659 occ->idx = ida_alloc_range(&occ_ida, reg, reg, in occ_probe()
|
/linux/drivers/rtc/ |
H A D | class.c | 263 id = ida_alloc_range(&rtc_ida, of_id, of_id, GFP_KERNEL); in rtc_device_get_id()
|
/linux/drivers/staging/greybus/ |
H A D | fw-download.c | 173 ret = ida_alloc_range(&fw_download->id_map, 1, 255, GFP_KERNEL); in find_firmware()
|
/linux/drivers/net/netdevsim/ |
H A D | bus.c | 429 err = ida_alloc_range(&nsim_bus_dev_ids, id, id, GFP_KERNEL); in nsim_bus_dev_new()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ids.c | 65 pasid = ida_alloc_range(&amdgpu_pasid_ida, 1U << (bits - 1), in amdgpu_pasid_alloc()
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | lag_conf.c | 114 id = ida_alloc_range(&lag->ida_handle, NFP_FL_LAG_GROUP_MIN, in nfp_fl_lag_group_create()
|
/linux/tools/testing/radix-tree/ |
H A D | idr-test.c | 549 ret = ida_alloc_range(ida, 128, 128, GFP_KERNEL); in ida_leak_fn()
|
/linux/net/core/ |
H A D | xdp.c | 243 id = ida_alloc_range(&mem_id_pool, mem_id_next, MEM_ID_MAX - 1, gfp); in __mem_id_cyclic_get()
|
/linux/drivers/cdx/ |
H A D | cdx.c | 931 ret = ida_alloc_range(&cdx_controller_ida, 0, MAX_CDX_CONTROLLERS - 1, GFP_KERNEL); in cdx_register_controller()
|
/linux/drivers/iommu/ |
H A D | virtio-iommu.c | 676 ret = ida_alloc_range(&viommu->domain_ids, viommu->first_domain, in viommu_domain_finalise()
|
/linux/drivers/iio/adc/ |
H A D | ad7173.c | 753 free_cfg_slot = ida_alloc_range(&st->cfg_slots_status, 0, in ad7173_load_config()
|