Home
last modified time | relevance | path

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

12

/linux-6.6.21/include/linux/
Didr.h257 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-6.6.21/drivers/infiniband/hw/hns/
Dhns_roce_pd.c54 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()
Dhns_roce_srq.c67 id = ida_alloc_range(&srq_ida->ida, srq_ida->min, srq_ida->max, in alloc_srqn()
Dhns_roce_mr.c59 id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max, in alloc_mr_key()
538 id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max, in hns_roce_alloc_mw()
Dhns_roce_cq.c69 id = ida_alloc_range(&bank->ida, bank->min, bank->max, GFP_KERNEL); in alloc_cqn()
Dhns_roce_qp.c211 id = ida_alloc_range(&bank->ida, bank->next, bank->max, GFP_KERNEL); in alloc_qpn_with_bankid()
213 id = ida_alloc_range(&bank->ida, bank->min, bank->max, in alloc_qpn_with_bankid()
/linux-6.6.21/arch/powerpc/mm/book3s64/
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-6.6.21/lib/
Didr.c380 int ida_alloc_range(struct ida *ida, unsigned int min, unsigned int max, in ida_alloc_range() function
477 EXPORT_SYMBOL(ida_alloc_range);
Dobjagg.c245 root_id = ida_alloc_range(&objagg->root_ida, min, max, GFP_KERNEL); in objagg_obj_root_id_alloc()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dgid.c94 index = ida_alloc_range(&dev->roce.reserved_gids.ida, in mlx5_core_reserved_gid_alloc()
/linux-6.6.21/drivers/tty/serial/
Dserial_base_bus.c161 err = ida_alloc_range(&ctrl_dev->port_ida, min, max, GFP_KERNEL); in serial_base_port_add()
/linux-6.6.21/drivers/char/
Dmisc.c74 ret = ida_alloc_range(&misc_minors_ida, MISC_DYNAMIC_MINOR + 1, in misc_minor_alloc()
/linux-6.6.21/drivers/fsi/
Dfsi-core.c922 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()
/linux-6.6.21/drivers/net/netdevsim/
Dbus.c277 err = ida_alloc_range(&nsim_bus_dev_ids, id, id, GFP_KERNEL); in nsim_bus_dev_new()
/linux-6.6.21/drivers/soundwire/
Dintel_auxdevice.c177 return ida_alloc_range(&intel_peripheral_ida, in intel_get_device_num_ida()
/linux-6.6.21/tools/testing/radix-tree/
Didr-test.c548 ret = ida_alloc_range(ida, 128, 128, GFP_KERNEL); in ida_leak_fn()
/linux-6.6.21/drivers/net/wwan/
Dwwan_core.c452 minor = ida_alloc_range(&minors, 0, WWAN_MAX_MINORS - 1, GFP_KERNEL); in wwan_create_port()
/linux-6.6.21/drivers/thunderbolt/
Dxdomain.c2134 return ida_alloc_range(&xd->in_hopids, hopid, xd->local_max_hopid, in tb_xdomain_alloc_in_hopid()
2156 return ida_alloc_range(&xd->out_hopids, hopid, xd->remote_max_hopid, in tb_xdomain_alloc_out_hopid()
/linux-6.6.21/drivers/iommu/
Dvirtio-iommu.c676 ret = ida_alloc_range(&viommu->domain_ids, viommu->first_domain, in viommu_domain_finalise()
/linux-6.6.21/block/
Dgenhd.c311 idx = ida_alloc_range(&ext_devt_ida, 0, NR_EXT_DEVT - 1, GFP_KERNEL); in blk_alloc_ext_minor()
/linux-6.6.21/kernel/trace/
Dtrace_output.c707 next = ida_alloc_range(&trace_event_ida, __TRACE_LAST_TYPE, in alloc_trace_event_type()
/linux-6.6.21/drivers/nvme/target/
Dcore.c1431 ret = ida_alloc_range(&cntlid_ida, in nvmet_alloc_ctrl()
/linux-6.6.21/drivers/block/
Dvirtio_blk.c1324 err = ida_alloc_range(&vd_index_ida, 0, in virtblk_probe()
/linux-6.6.21/fs/
Dsuper.c1265 dev = ida_alloc_range(&unnamed_dev_ida, 1, (1 << MINORBITS) - 1, in get_anon_bdev()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Dmain.c1839 dev->priv.sw_vhca_id = ida_alloc_range(&sw_vhca_ida, 1, in mlx5_mdev_init()

12