Home
last modified time | relevance | path

Searched refs:idr_alloc_cyclic (Results 1 – 25 of 33) sorted by relevance

12

/Linux-v6.6/tools/testing/radix-tree/
Didr-test.c38 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0, 0x4000, GFP_KERNEL) == 0); in idr_alloc_test()
39 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0x3ffd, 0x4000, GFP_KERNEL) == 0x3ffd); in idr_alloc_test()
52 id = idr_alloc_cyclic(&idr, item, 1, 0x4000, GFP_KERNEL); in idr_alloc_test()
394 id = idr_alloc_cyclic(&idr, item, 0, 0, GFP_KERNEL); in idr_checks()
/Linux-v6.6/Documentation/translations/zh_CN/core-api/
Didr.rst50 如果需要按顺序分配ID,可以使用idr_alloc_cyclic()。处理较大数量的ID时,IDR的效率会
/Linux-v6.6/lib/
Didr.c117 int idr_alloc_cyclic(struct idr *idr, void *ptr, int start, int end, gfp_t gfp) in idr_alloc_cyclic() function
136 EXPORT_SYMBOL(idr_alloc_cyclic);
/Linux-v6.6/include/linux/
Didr.h117 int idr_alloc_cyclic(struct idr *, void *ptr, int start, int end, gfp_t);
/Linux-v6.6/Documentation/core-api/
Didr.rst46 idr_alloc_cyclic(). The IDR becomes less efficient when dealing
/Linux-v6.6/drivers/slimbus/
Dmessaging.c69 ret = idr_alloc_cyclic(&ctrl->tid_idr, txn, 1, in slim_alloc_txn_tid()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_pgt.c77 err = idr_alloc_cyclic(&mlxsw_sp->pgt->pgt_idr, NULL, in mlxsw_sp_pgt_mid_alloc_range()
/Linux-v6.6/drivers/net/ethernet/marvell/prestera/
Dprestera_counter.c235 free_id = idr_alloc_cyclic(&block->counter_idr, NULL, block->offset, in prestera_counter_get_vacant()
/Linux-v6.6/kernel/
Dpid.c236 nr = idr_alloc_cyclic(&tmp->idr, NULL, pid_min, in alloc_pid()
/Linux-v6.6/fs/vboxsf/
Dutils.c31 ret = idr_alloc_cyclic(&sbi->ino_idr, inode, 1, 0, GFP_ATOMIC); in vboxsf_new_inode()
/Linux-v6.6/drivers/tty/serial/
Dmps2-uart.c519 id = idr_alloc_cyclic(&ports_idr, (void *)mps_port, 0, MPS2_MAX_PORTS, GFP_KERNEL); in mps2_of_get_port()
/Linux-v6.6/ipc/
Dutil.c230 idx = idr_alloc_cyclic(&ids->ipcs_idr, NULL, 0, max_idx, in ipc_idr_alloc()
/Linux-v6.6/fs/smb/server/
Dvfs_cache.c538 ret = idr_alloc_cyclic(ft->idr, fp, 0, INT_MAX - 1, GFP_NOWAIT); in __open_id()
/Linux-v6.6/drivers/soc/qcom/
Dapr.c110 id = idr_alloc_cyclic(&pr->svcs_idr, svc, GPR_DYNAMIC_PORT_START, in gpr_alloc_port()
Dqmi_interface.c322 ret = idr_alloc_cyclic(&qmi->txns, txn, 0, U16_MAX, GFP_KERNEL); in qmi_txn_init()
/Linux-v6.6/fs/notify/inotify/
Dinotify_user.c403 ret = idr_alloc_cyclic(idr, i_mark, 1, 0, GFP_NOWAIT); in inotify_add_to_idr()
/Linux-v6.6/net/rxrpc/
Dconn_client.c155 id = idr_alloc_cyclic(&local->conn_ids, conn, 1, 0x40000000, in rxrpc_alloc_client_connection()
/Linux-v6.6/drivers/rpmsg/
Dqcom_glink_native.c470 ret = idr_alloc_cyclic(&glink->lcids, channel, in qcom_glink_send_open_req()
720 ret = idr_alloc_cyclic(&channel->liids, intent, 1, -1, GFP_ATOMIC); in qcom_glink_alloc_intent()
/Linux-v6.6/drivers/gpu/drm/msm/
Dmsm_gem_submit.c954 submit->fence_id = idr_alloc_cyclic(&queue->fence_idr, in msm_ioctl_gem_submit()
/Linux-v6.6/drivers/target/
Dtarget_core_device.c919 id = idr_alloc_cyclic(&devices_idr, dev, 0, INT_MAX, GFP_KERNEL); in target_configure_device()
/Linux-v6.6/fs/kernfs/
Ddir.c621 ret = idr_alloc_cyclic(&root->ino_idr, kn, 1, 0, GFP_ATOMIC); in __kernfs_new_node()
/Linux-v6.6/sound/soc/qcom/qdsp6/
Dtopology.c184 ret = idr_alloc_cyclic(&apm->modules_idr, mod, in audioreach_tplg_alloc_module()
/Linux-v6.6/net/sctp/
Dassociola.c1638 ret = idr_alloc_cyclic(&sctp_assocs_id, asoc, SCTP_ALL_ASSOC + 1, 0, in sctp_assoc_set_id()
/Linux-v6.6/net/sched/
Dcls_u32.c310 int id = idr_alloc_cyclic(&tp_c->handle_idr, ptr, 1, 0x7FF, GFP_KERNEL); in gen_new_htid()
/Linux-v6.6/kernel/bpf/
Dsyscall.c356 id = idr_alloc_cyclic(&map_idr, map, 1, INT_MAX, GFP_ATOMIC); in bpf_map_alloc_id()
2070 id = idr_alloc_cyclic(&prog_idr, prog, 1, INT_MAX, GFP_ATOMIC); in bpf_prog_alloc_id()
2936 id = idr_alloc_cyclic(&link_idr, link, 1, INT_MAX, GFP_ATOMIC); in bpf_link_alloc_id()

12