Home
last modified time | relevance | path

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

12

/Linux-v5.10/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.10/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.10/drivers/gpu/drm/etnaviv/
Detnaviv_sched.c162 submit->out_fence_id = idr_alloc_cyclic(&submit->gpu->fence_idr, in etnaviv_sched_push_job()
/Linux-v5.10/include/linux/
Didr.h117 int idr_alloc_cyclic(struct idr *, void *ptr, int start, int end, gfp_t);
/Linux-v5.10/Documentation/core-api/
Didr.rst43 idr_alloc_cyclic(). The IDR becomes less efficient when dealing
/Linux-v5.10/drivers/slimbus/
Dmessaging.c69 ret = idr_alloc_cyclic(&ctrl->tid_idr, txn, 0, in slim_alloc_txn_tid()
/Linux-v5.10/fs/vboxsf/
Dutils.c30 ret = idr_alloc_cyclic(&sbi->ino_idr, inode, 1, 0, GFP_ATOMIC); in vboxsf_new_inode()
/Linux-v5.10/kernel/
Dpid.c233 nr = idr_alloc_cyclic(&tmp->idr, NULL, pid_min, in alloc_pid()
/Linux-v5.10/ipc/
Dutil.c229 idx = idr_alloc_cyclic(&ids->ipcs_idr, NULL, 0, max_idx, in ipc_idr_alloc()
/Linux-v5.10/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.10/fs/notify/inotify/
Dinotify_user.c367 ret = idr_alloc_cyclic(idr, i_mark, 1, 0, GFP_NOWAIT); in inotify_add_to_idr()
/Linux-v5.10/drivers/soc/qcom/
Dqmi_interface.c321 ret = idr_alloc_cyclic(&qmi->txns, txn, 0, U16_MAX, GFP_KERNEL); in qmi_txn_init()
/Linux-v5.10/drivers/rpmsg/
Dqcom_glink_native.c420 ret = idr_alloc_cyclic(&glink->lcids, channel, in qcom_glink_send_open_req()
670 ret = idr_alloc_cyclic(&channel->liids, intent, 1, -1, GFP_ATOMIC); in qcom_glink_alloc_intent()
/Linux-v5.10/net/rxrpc/
Dconn_client.c60 id = idr_alloc_cyclic(&rxrpc_client_conn_ids, conn, in rxrpc_get_client_connection_id()
/Linux-v5.10/drivers/target/
Dtarget_core_device.c933 id = idr_alloc_cyclic(&devices_idr, dev, 0, INT_MAX, GFP_KERNEL); in target_configure_device()
/Linux-v5.10/net/netlink/
Dgenetlink.c424 family->id = idr_alloc_cyclic(&genl_fam_idr, family, in genl_register_family()
/Linux-v5.10/fs/kernfs/
Ddir.c633 ret = idr_alloc_cyclic(&root->ino_idr, kn, 1, 0, GFP_ATOMIC); in __kernfs_new_node()
/Linux-v5.10/kernel/bpf/
Dsyscall.c421 id = idr_alloc_cyclic(&map_idr, map, 1, INT_MAX, GFP_ATOMIC); in bpf_map_alloc_id()
1682 id = idr_alloc_cyclic(&prog_idr, prog, 1, INT_MAX, GFP_ATOMIC); in bpf_prog_alloc_id()
2413 id = idr_alloc_cyclic(&link_idr, link, 1, INT_MAX, GFP_ATOMIC); in bpf_link_alloc_id()
/Linux-v5.10/net/sctp/
Dassociola.c1631 ret = idr_alloc_cyclic(&sctp_assocs_id, asoc, SCTP_ALL_ASSOC + 1, 0, in sctp_assoc_set_id()
/Linux-v5.10/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.10/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c94 req_id = idr_alloc_cyclic(&qp_ctx->req_idr, NULL, in sec_alloc_req_id()
/Linux-v5.10/drivers/misc/
Dfastrpc.c493 ret = idr_alloc_cyclic(&cctx->ctx_idr, ctx, 1, in fastrpc_context_alloc()
/Linux-v5.10/drivers/rapidio/
Drio_cm.c1303 id = idr_alloc_cyclic(&ch_idr, ch, start, end, GFP_NOWAIT); in riocm_ch_alloc()
/Linux-v5.10/fs/nfsd/
Dnfs4state.c726 new_id = idr_alloc_cyclic(&cl->cl_stateids, stid, 1, 0, GFP_NOWAIT); in nfs4_alloc_stid()
770 new_id = idr_alloc_cyclic(&nn->s2s_cp_stateids, stid, 0, 0, GFP_NOWAIT); in nfs4_init_cp_state()
/Linux-v5.10/drivers/crypto/hisilicon/
Dqm.c1670 qp_id = idr_alloc_cyclic(&qm->qp_idr, NULL, 0, qm->qp_num, GFP_ATOMIC); in qm_create_qp_nolock()

12