Documented in 1 files:

Defined in 1 files as a function:

Referenced in 26 files:

Smatch caller information:

net/core/devmem.c net_devmem_bind_dmabuf() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 8604830728305070080
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 1743186229550850048
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 424
DATA_SOURCE 2 entry r _kmalloc_node_noprof
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->lock
LOCK2 &priv->lock
HALF_LOCKED2 &devlink->lock
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &dpll_lock
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &net_dm_mutex
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct netdev_nl_sock)->lock

drivers/infiniband/hw/erdma/erdma_verbs.c erdma_create_cq() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
DATA_SOURCE 2 entry r to_ecq
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/hw/erdma/erdma_verbs.c erdma_create_qp() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
DATA_SOURCE 2 entry r to_eqp
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/etnaviv/etnaviv_drv.c etnaviv_open() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 1488
DATA_SOURCE 2 entry r _kzalloc_noprof
CAPABLE 0 21
RX_PATH
TASK_NOT_RUNNING

drivers/accel/amdxdna/amdxdna_ctx.c amdxdna_drm_create_hwctx_ioctl() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 192
DATA_SOURCE 2 entry r _kzalloc_noprof
LOCK2 _T->lock
LOCK2 global &drm_unplug_srcu

net/devlink/core.c __devlink_alloc() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4553836652040720384
PARAM_VALUE 1 id 1-18446744073709551614
PARAM_VALUE 2 entry 1-18446744073709551614
PARAM_VALUE 4 next 3646514007174725632
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 928-u64max
DATA_SOURCE 2 entry r __kvmalloc_node_noprof
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &shd_mutex

net/devlink/core.c devlink_rel_alloc() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 7321265008373088256
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 6187941446157455360
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 224
DATA_SOURCE 2 entry r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/core/mad.c ib_register_mad_agent() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4908492917613588480
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 5573893042536812544
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 648
DATA_SOURCE 2 entry r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->cmd.poll_sem
HALF_LOCKED2 &device->client_data_rwsem
HALF_LOCKED2 &file->mutex
HALF_LOCKED2 &file->port->file_mutex
HALF_LOCKED2 global &clients_rwsem
HALF_LOCKED2 global &devices_rwsem
HALF_LOCKED2 global &mthca_device_mutex

drivers/accel/ivpu/ivpu_job.c ivpu_cmdq_create() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 48
DATA_SOURCE 2 entry r ivpu_cmdq_alloc
LOCK2 &file_priv->lock
HALF_LOCKED2 &vdev->pm->reset_lock
HALF_LOCKED2 &vdev->submitted_jobs_lock
HALF_LOCKED2 global &drm_unplug_srcu
TYPE_LOCK (struct ivpu_file_priv)->lock

drivers/accel/ivpu/ivpu_job.c ivpu_job_submit() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 88-524360
DATA_SOURCE 2 entry $0
LOCK2 &file_priv->lock
LOCK2 &vdev->pm->reset_lock
LOCK2 &vdev->submitted_jobs_lock
LOCK2 global &drm_unplug_srcu
TYPE_LOCK (struct ivpu_device)->submitted_jobs_lock
TYPE_LOCK (struct ivpu_file_priv)->lock
TYPE_LOCK (struct ivpu_pm_info)->reset_lock

drivers/accel/ivpu/ivpu_job.c ivpu_register_db() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 1 *id 0
PARAM_VALUE 2 entry 0
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
LOCK2 &file_priv->lock
LOCK2 &vdev->pm->reset_lock
LOCK2 &vdev->submitted_jobs_lock
LOCK2 global &drm_unplug_srcu
TYPE_LOCK (struct ivpu_device)->submitted_jobs_lock
TYPE_LOCK (struct ivpu_file_priv)->lock
TYPE_LOCK (struct ivpu_pm_info)->reset_lock

net/psp/psp_main.c psp_dev_create() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 2069410475834298368
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 3462349430664171520
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 304
DATA_SOURCE 2 entry r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &psp_devs_lock
HALF_LOCKED2 &ns->psp.rereg_lock

drivers/net/phy/phy_link_topology.c phy_link_topo_add_phy() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 1-u64max
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 1 *id 0
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 32
DATA_SOURCE 2 entry r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING

drivers/tee/qcomtee/core.c qcomtee_idx_alloc() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 76781800526467072
PARAM_VALUE 2 entry 0,4096-ptr_max
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry (-1),120
DATA_SOURCE 1 id $1
DATA_SOURCE 2 entry $2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

net/core/page_pool_user.c page_pool_list() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 6146116929101664256
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 1611031062636199936
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 1984
DATA_SOURCE 2 entry $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &page_pools_lock

drivers/infiniband/core/device.c assign_name() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 1621717402798952448
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 7794649218151600128
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry (-1),5000
DATA_SOURCE 2 entry $0
STR_LEN 0 xa (-1),6-9,11-12
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &devices_rwsem
HALF_LOCKED2 &dev->cmd.poll_sem
HALF_LOCKED2 global &be_adapter_list_lock
HALF_LOCKED2 global &bnxt_re_mutex
HALF_LOCKED2 global &link_ops_rwsem
HALF_LOCKED2 global &mthca_device_mutex
HALF_LOCKED2 global &qedr_dev_list_lock
HALF_LOCKED2 global &usnic_ib_ibdev_list_lock

drivers/gpu/drm/xe/xe_vm.c xe_vm_create() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 9207547082151444480
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 10240
BUF_SIZE 2 entry 3000
DATA_SOURCE 2 entry r _kzalloc_noprof
POWER_OF_TWO 2 entry
RX_PATH
TASK_NOT_RUNNING
LOCK2 &xe->usm.lock
TYPE_LOCK (struct xe_device)->usm.lock

drivers/dpll/dpll_core.c dpll_device_alloc() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 713065895789006848
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 6019595516236820480
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 272
DATA_SOURCE 2 entry r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &dpll_lock

drivers/dpll/dpll_core.c dpll_pin_alloc() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 5509511993196265472
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 2856933528982728704
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 576
DATA_SOURCE 2 entry r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &dpll_lock

drivers/infiniband/hw/mlx4/cm.c id_map_alloc() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 256
DATA_SOURCE 2 entry r _kmalloc_noprof
HALF_LOCKED2 &pool->lock

net/sched/cls_api.c tcf_exts_miss_cookie_base_alloc() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 5341845889069101056
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 706994274653675520
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 56
DATA_SOURCE 2 entry r _kzalloc_noprof
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex

drivers/infiniband/core/cm.c cm_alloc_id_priv() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 1496044493816312008
PARAM_VALUE 1 id 3674245431082262528
PARAM_VALUE 2 entry 0
PARAM_VALUE 4 next 1496044493816312096
PARAM_VALUE 5 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/sw/siw/siw_mem.c siw_mr_add_mem() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 2966489375682494464
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 955977768971141120
PARAM_VALUE 4 *next 0-16777215
PARAM_VALUE 5 gfp 3264
BUF_SIZE 2 entry 64
DATA_SOURCE 2 entry r _kzalloc_noprof
BIT_INFO 3 limit 0x0,0x7fffffffffffffff
BIT_INFO 3 limit 0x0,0x7fffffffffffffff
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/etnaviv/etnaviv_sched.c etnaviv_sched_push_job() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 0
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
LOCK2 &gpu->sched_lock
TYPE_LOCK (struct etnaviv_gpu)->sched_lock

drivers/infiniband/sw/rxe/rxe_pool.c __rxe_add_to_pool() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 0
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 2080,3264
FUZZY_MAX 5 gfp 3264
BIT_INFO 5 gfp 0x800,0xce0
HARD_MAX 5 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &file->hw_destroy_rwsem
HALF_LOCKED2 &file->ucontext_lock

lib/test_xarray.c check_xa_alloc_3() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4028468817162313728,6789482655478472704
PARAM_VALUE 0 xa->xa_head 0
PARAM_VALUE 1 id 6993050292674781184
PARAM_VALUE 2 entry 1,3-u64max
PARAM_VALUE 4 next 8991335334158946304
PARAM_VALUE 4 *next 0
PARAM_VALUE 5 gfp 3264
DATA_SOURCE 0 xa $0
BIT_INFO 3 limit 0x0,0x7fffffffffffffff
BIT_INFO 3 limit 0x0,0x7fffffffffffffff

lib/test_xarray.c check_xa_alloc_3() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4028468817162313728,6789482655478472704
PARAM_VALUE 0 xa->xa_head 0
PARAM_VALUE 0 xa->xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 id 6993050292674781184
PARAM_VALUE 2 entry 1,3-u64max
PARAM_VALUE 4 next 8991335334158946304
PARAM_VALUE 4 *next 16381
PARAM_VALUE 5 gfp 3264
DATA_SOURCE 0 xa $0
BIT_INFO 3 limit 0x0,0x7fffffffffffffff
BIT_INFO 3 limit 0x0,0x7fffffffffffffff

lib/test_xarray.c check_xa_alloc_3() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4028468817162313728,6789482655478472704
PARAM_VALUE 0 xa->xa_head 0
PARAM_VALUE 0 xa->xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 id 6993050292674781184
PARAM_VALUE 2 entry 1,3-u64max
PARAM_VALUE 4 next 8991335334158946304
PARAM_VALUE 5 gfp 3264
DATA_SOURCE 0 xa $0
BIT_INFO 3 limit 0x0,0x7fffffffffffffff
BIT_INFO 3 limit 0x0,0x7fffffffffffffff

lib/test_xarray.c check_xa_alloc_3() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4028468817162313728,6789482655478472704
PARAM_VALUE 0 xa->xa_head 0
PARAM_VALUE 0 xa->xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 id 6993050292674781184
PARAM_VALUE 2 entry 1,3-u64max
PARAM_VALUE 4 next 8991335334158946304
PARAM_VALUE 4 *next u32max
PARAM_VALUE 5 gfp 3264
DATA_SOURCE 0 xa $0

lib/test_xarray.c check_xa_alloc_3() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4028468817162313728,6789482655478472704
PARAM_VALUE 0 xa->xa_head 0
PARAM_VALUE 0 xa->xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 id 6993050292674781184
PARAM_VALUE 2 entry 1,3-u64max
PARAM_VALUE 4 next 8991335334158946304
PARAM_VALUE 5 gfp 3264
DATA_SOURCE 0 xa $0

lib/test_xarray.c check_xa_alloc_3() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4028468817162313728,6789482655478472704
PARAM_VALUE 0 xa->xa_head 0
PARAM_VALUE 0 xa->xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 id 6993050292674781184
PARAM_VALUE 2 entry 1,3-u64max
PARAM_VALUE 4 next 8991335334158946304
PARAM_VALUE 5 gfp 3264
DATA_SOURCE 0 xa $0

lib/test_xarray.c check_xa_alloc_3() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4028468817162313728,6789482655478472704
PARAM_VALUE 0 xa->xa_head 0
PARAM_VALUE 0 xa->xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 id 6993050292674781184
PARAM_VALUE 2 entry 1,3-u64max
PARAM_VALUE 4 next 8991335334158946304
PARAM_VALUE 4 *next u32max
PARAM_VALUE 5 gfp 3264
DATA_SOURCE 0 xa $0

net/core/dev.c dev_index_reserve() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 *id 0
PARAM_VALUE 2 entry 0
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &rtnl_mutex

drivers/infiniband/core/restrack.c rdma_restrack_add() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 4096-ptr_max
PARAM_VALUE 2 entry 4096-ptr_max
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
DATA_SOURCE 2 entry $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &file->hw_destroy_rwsem
HALF_LOCKED2 &file->ucontext_lock
HALF_LOCKED2 &id_priv->handler_mutex
HALF_LOCKED2 &listen_id_priv->handler_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &lock

io_uring/register.c io_register_personality() -> xa_alloc_cyclic()

Type Parameter Key Value
PARAM_VALUE 0 xa 4096-ptr_max
PARAM_VALUE 1 id 448796492384018432
PARAM_VALUE 2 entry 0,4096-ptr_max
PARAM_VALUE 4 next 4096-ptr_max
PARAM_VALUE 5 gfp 3264
LOCK2 &ctx->uring_lock
TYPE_LOCK (struct io_ring_ctx)->uring_lock