Home
last modified time | relevance | path

Searched refs:ida_alloc_range (Results 1 – 25 of 47) sorted by relevance

12

/linux/include/linux/
H A Didr.h274 int ida_alloc_range(struct ida *, unsigned int min, unsigned int max, gfp_t);
293 return ida_alloc_range(ida, 0, ~0, gfp); in ida_alloc()
311 return ida_alloc_range(ida, min, ~0, gfp); in ida_alloc_min()
329 return ida_alloc_range(ida, 0, max, gfp); in ida_alloc_max()
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_pd.c53 id = ida_alloc_range(&pd_ida->ida, pd_ida->min, pd_ida->max, in hns_roce_alloc_pd()
90 id = ida_alloc_range(&uar_ida->ida, uar_ida->min, uar_ida->max, in hns_roce_uar_alloc()
125 id = ida_alloc_range(&xrcd_ida->ida, xrcd_ida->min, xrcd_ida->max, in hns_roce_xrcd_alloc()
H A Dhns_roce_mr.c61 id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max, in alloc_mr_key()
/linux/fs/smb/server/mgmt/
H A Dksmbd_ida.c11 return ida_alloc_range(ida, 1, 0xFFFFFFFE, KSMBD_DEFAULT_GFP); in ksmbd_acquire_smb2_tid()
/linux/arch/powerpc/mm/book3s64/
H A Dmmu_context.c31 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/drivers/greybus/
H A Dhd.c53 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 Dinterface.c134 ret = ida_alloc_range(&svc->device_id_map, GB_SVC_DEVICE_ID_MIN, in gb_interface_route_create()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dgid.c94 index = ida_alloc_range(&dev->roce.reserved_gids.ida, in mlx5_core_reserved_gid_alloc()
/linux/lib/
H A Didr.c382 int ida_alloc_range(struct ida *ida, unsigned int min, unsigned int max, in ida_alloc_range() function
479 EXPORT_SYMBOL(ida_alloc_range);
H A Dobjagg.c248 root_id = ida_alloc_range(&objagg->root_ida, min, max, GFP_KERNEL); in objagg_obj_root_id_alloc()
/linux/drivers/fsi/
H A Dfsi-core.c977 id = ida_alloc_range(&fsi_minor_ida, id, id, GFP_KERNEL); in __fsi_get_new_minor()
988 id = ida_alloc_range(&fsi_minor_ida, FSI_CHAR_LEGACY_TOP, in __fsi_get_new_minor()
1014 id = ida_alloc_range(&fsi_minor_ida, id, id, GFP_KERNEL); in fsi_get_new_minor()
1370 master->idx = ida_alloc_range(&master_ida, master->idx, in fsi_master_register()
H A Dfsi-occ.c655 occ->idx = ida_alloc_range(&occ_ida, reg, reg, in occ_probe()
/linux/drivers/staging/greybus/
H A Dfw-management.c159 ret = ida_alloc_range(&fw_mgmt->id_map, 1, 255, GFP_KERNEL); in fw_mgmt_load_and_validate_operation()
302 ret = ida_alloc_range(&fw_mgmt->id_map, 1, 255, GFP_KERNEL); in fw_mgmt_backend_fw_update_operation()
H A Dfw-download.c173 ret = ida_alloc_range(&fw_download->id_map, 1, 255, GFP_KERNEL); in find_firmware()
/linux/drivers/tty/serial/
H A Dserial_base_bus.c169 err = ida_alloc_range(&ctrl_dev->port_ida, min, max, GFP_KERNEL); in serial_base_port_add()
/linux/tools/testing/radix-tree/
H A Didr-test.c530 assert(ida_alloc_range(&ida, 5, 30, GFP_KERNEL) < 0); in ida_alloc_free_test()
568 ret = ida_alloc_range(ida, 128, 128, GFP_KERNEL); in ida_leak_fn()
/linux/drivers/vfio/
H A Diommufd.c199 rc = ida_alloc_range(&vdev->pasids, pasid, pasid, GFP_KERNEL); in vfio_iommufd_physical_pasid_attach_ioas()
/linux/drivers/pci/
H A Dide.c41 ret = ida_alloc_range(&pdev->ide_stream_ida, idx, idx, GFP_KERNEL); in reserve_stream_index()
49 ret = ida_alloc_range(&hb->ide_stream_ids_ida, id, id, GFP_KERNEL); in reserve_stream_id()
/linux/drivers/rtc/
H A Dclass.c262 id = ida_alloc_range(&rtc_ida, of_id, of_id, GFP_KERNEL); in rtc_device_get_id()
/linux/drivers/net/ipvlan/
H A Dipvlan_main.c613 err = ida_alloc_range(&port->ida, port->dev_id_start, 0xFFFD, in ipvlan_link_new()
616 err = ida_alloc_range(&port->ida, 0x1, port->dev_id_start - 1, in ipvlan_link_new()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dlag_conf.c114 id = ida_alloc_range(&lag->ida_handle, NFP_FL_LAG_GROUP_MIN, in nfp_fl_lag_group_create()
/linux/drivers/cdx/
H A Dcdx.c925 ret = ida_alloc_range(&cdx_controller_ida, 0, MAX_CDX_CONTROLLERS - 1, GFP_KERNEL); in cdx_register_controller()
/linux/net/core/
H A Dxdp.c244 id = ida_alloc_range(&mem_id_pool, mem_id_next, MEM_ID_MAX - 1, gfp); in __mem_id_cyclic_get()
/linux/drivers/thunderbolt/
H A Dxdomain.c2196 return ida_alloc_range(&xd->in_hopids, hopid, xd->local_max_hopid, in tb_xdomain_alloc_in_hopid()
2222 return ida_alloc_range(&xd->out_hopids, hopid, xd->remote_max_hopid, in tb_xdomain_alloc_out_hopid()
/linux/drivers/media/platform/renesas/rcar-vin/
H A Drcar-core.c1148 id = ida_alloc_range(&rvin_ida, 0, RCAR_VIN_NUM - 1, in rvin_id_get()

12