Home
last modified time | relevance | path

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

/Linux-v5.4/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()
381 id = idr_alloc_cyclic(&idr, item, 0, 0, GFP_KERNEL); in idr_checks()
/Linux-v5.4/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-v5.4/drivers/gpu/drm/etnaviv/
Detnaviv_sched.c161 submit->out_fence_id = idr_alloc_cyclic(&submit->gpu->fence_idr, in etnaviv_sched_push_job()
/Linux-v5.4/include/linux/
Didr.h117 int idr_alloc_cyclic(struct idr *, void *ptr, int start, int end, gfp_t);
/Linux-v5.4/drivers/slimbus/
Dmessaging.c69 ret = idr_alloc_cyclic(&ctrl->tid_idr, txn, 0, in slim_alloc_txn_tid()
/Linux-v5.4/Documentation/core-api/
Didr.rst43 :c:func:`idr_alloc_cyclic`. The IDR becomes less efficient when dealing
/Linux-v5.4/kernel/
Dpid.c193 nr = idr_alloc_cyclic(&tmp->idr, NULL, pid_min, in alloc_pid()
/Linux-v5.4/drivers/tty/serial/
Dmps2-uart.c538 id = idr_alloc_cyclic(&ports_idr, (void *)mps_port, 0, MPS2_MAX_PORTS, GFP_KERNEL); in mps2_of_get_port()
/Linux-v5.4/ipc/
Dutil.c229 idx = idr_alloc_cyclic(&ids->ipcs_idr, NULL, 0, max_idx, in ipc_idr_alloc()
/Linux-v5.4/fs/notify/inotify/
Dinotify_user.c365 ret = idr_alloc_cyclic(idr, i_mark, 1, 0, GFP_NOWAIT); in inotify_add_to_idr()
/Linux-v5.4/drivers/rpmsg/
Dqcom_glink_native.c399 ret = idr_alloc_cyclic(&glink->lcids, channel, in qcom_glink_send_open_req()
649 ret = idr_alloc_cyclic(&channel->liids, intent, 1, -1, GFP_ATOMIC); in qcom_glink_alloc_intent()
/Linux-v5.4/drivers/soc/qcom/
Dqmi_interface.c321 ret = idr_alloc_cyclic(&qmi->txns, txn, 0, U16_MAX, GFP_KERNEL); in qmi_txn_init()
/Linux-v5.4/net/rxrpc/
Dconn_client.c111 id = idr_alloc_cyclic(&rxrpc_client_conn_ids, conn, in rxrpc_get_client_connection_id()
/Linux-v5.4/drivers/target/
Dtarget_core_device.c933 id = idr_alloc_cyclic(&devices_idr, dev, 0, INT_MAX, GFP_KERNEL); in target_configure_device()
/Linux-v5.4/net/netlink/
Dgenetlink.c365 family->id = idr_alloc_cyclic(&genl_fam_idr, family, in genl_register_family()
/Linux-v5.4/fs/kernfs/
Ddir.c639 ret = idr_alloc_cyclic(&root->ino_idr, kn, 1, 0, GFP_ATOMIC); in __kernfs_new_node()
/Linux-v5.4/kernel/bpf/
Dsyscall.c263 id = idr_alloc_cyclic(&map_idr, map, 1, INT_MAX, GFP_ATOMIC); in bpf_map_alloc_id()
1291 id = idr_alloc_cyclic(&prog_idr, prog, 1, INT_MAX, GFP_ATOMIC); in bpf_prog_alloc_id()
Dbtf.c867 id = idr_alloc_cyclic(&btf_idr, btf, 1, INT_MAX, GFP_ATOMIC); in btf_alloc_id()
/Linux-v5.4/net/sctp/
Dassociola.c1631 ret = idr_alloc_cyclic(&sctp_assocs_id, asoc, SCTP_ALL_ASSOC + 1, 0, in sctp_assoc_set_id()
/Linux-v5.4/net/sched/
Dcls_u32.c308 int id = idr_alloc_cyclic(&tp_c->handle_idr, ptr, 1, 0x7FF, GFP_KERNEL); in gen_new_htid()
/Linux-v5.4/drivers/misc/
Dfastrpc.c462 ret = idr_alloc_cyclic(&cctx->ctx_idr, ctx, 1, in fastrpc_context_alloc()
/Linux-v5.4/drivers/rapidio/
Drio_cm.c1303 id = idr_alloc_cyclic(&ch_idr, ch, start, end, GFP_NOWAIT); in riocm_ch_alloc()
/Linux-v5.4/fs/nfsd/
Dnfs4state.c712 new_id = idr_alloc_cyclic(&cl->cl_stateids, stid, 1, 0, GFP_NOWAIT); in nfs4_alloc_stid()
750 new_id = idr_alloc_cyclic(&nn->s2s_cp_stateids, copy, 0, 0, GFP_NOWAIT); in nfs4_init_cp_state()
/Linux-v5.4/kernel/cgroup/
Dcgroup.c1295 id = idr_alloc_cyclic(&cgroup_hierarchy_idr, root, 0, 0, GFP_KERNEL); in cgroup_init_root_id()