Documented in 1 files:

Defined in 1 files as a function:

Referenced in 61 files:

Smatch caller information:

drivers/usb/gadget/function/rndis.c rndis_get_nr() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 5897738827887394816
PARAM_VALUE 1 max 999
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dir->i_rwsem
HALF_LOCKED2 &gi->lock

sound/soc/sof/ipc4-topology.c _sof_ipc4_prepare_copier_module() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 2912023209930555392
PARAM_VALUE 1 max 7
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

sound/soc/sof/ipc4-topology.c sof_ipc4_get_queue_id() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 1 max 2-u32max
PARAM_VALUE 2 gfp 3264
BUF_SIZE 0 ida 88
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 _T->lock

sound/soc/sof/ipc4-topology.c sof_ipc4_widget_assign_instance_id() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 1 max 0-u16max
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 _T->lock

sound/soc/sof/ipc4-topology.c sof_ipc4_widget_setup() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 1571160840516362240
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
UNITS 1 max unit_array_size
HALF_LOCKED2 _T->lock

drivers/dax/super.c alloc_dax() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 6323345948076052480
PARAM_VALUE 1 max 1048575
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &dax_region_rwsem

drivers/vfio/vfio_main.c vfio_init_device() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 7300783830034927616
PARAM_VALUE 1 max 1048575
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/mellanox/mlx5/core/fs_core.c insert_fte() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &counter->lock
HALF_LOCKED2 &ct_priv->control_lock
HALF_LOCKED2 &dev->flow_db->lock
HALF_LOCKED2 &esw->fdb_table.offloads.indir->lock
HALF_LOCKED2 &esw->offloads.reps_lock
HALF_LOCKED2 &esw->offloads.termtbl_mutex
HALF_LOCKED2 &esw->state_lock
HALF_LOCKED2 &fg->node.lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &priv->int_ports_lock
HALF_LOCKED2 &priv->macsec->lock
HALF_LOCKED2 &stats->lock
HALF_LOCKED2 global &rtnl_mutex

drivers/soundwire/bus_type.c sdw_bus_probe() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 1 max 15
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/pci/ide.c alloc_stream_index() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 3560,4096-ptr_max
PARAM_VALUE 1 max 0-65534
PARAM_VALUE 2 gfp 3264
DATA_SOURCE 0 ida $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/nouveau/nouveau_backlight.c nouveau_get_backlight_name() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 2156929199525732352
PARAM_VALUE 1 max 99
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
LOCK2 &connector->mutex
HALF_LOCKED2 &device->clients_lock
TYPE_LOCK (struct drm_connector)->mutex

drivers/vhost/vdpa.c vhost_vdpa_probe() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 7798587227221188608
PARAM_VALUE 1 max 1048575
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/pps/generators/pps_gen.c pps_gen_register_cdev() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4186322036700545024
PARAM_VALUE 1 max 15
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/net/can/virtio_can.c virtio_can_alloc_tx_idx() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 2 gfp 2080
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &txq->_xmit_lock
HALF_LOCKED2 bh
HALF_LOCKED2 flags
HALF_LOCKED2 rcu_read

drivers/mmc/core/block.c mmc_blk_alloc_req() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 6906064058386083840
PARAM_VALUE 1 max 0-255,u32max
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/mmc/core/block.c mmc_blk_alloc_rpmb_part() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 328077378558570496
PARAM_VALUE 1 max 0-255,u32max
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/dma/idxd/cdev.c idxd_wq_add_cdev() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 1 max 1048575
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
LOCK2 &wq->wq_lock
TYPE_LOCK (struct idxd_wq)->wq_lock

sound/soc/intel/avs/utils.c avs_module_id_alloc() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock
HALF_LOCKED2 &adev->comp_list_mutex
HALF_LOCKED2 &adev->path_mutex

drivers/platform/chrome/wilco_ec/telemetry.c telem_device_probe() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 7413795780153208832
PARAM_VALUE 1 max 127
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/media/dvb-frontends/dvb-pll.c dvb_pll_attach() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 7999728967266869248
PARAM_VALUE 1 max 63
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/block/rnbd/rnbd-clt.c init_dev() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 7161739973581332480
PARAM_VALUE 1 max 16383
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/slimbus/core.c slim_device_alloc_laddr() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 1 max 254
PARAM_VALUE 2 gfp 3264
RX_PATH
LOCK2 &ctrl->lock
TYPE_LOCK (struct slim_controller)->lock

drivers/tty/serial/sc16is7xx.c sc16is7xx_setup_channel() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 3917903691934302208
PARAM_VALUE 1 max 7
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/rpmsg/rpmsg_ctrl.c rpmsg_ctrldev_probe() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 848359268080840704
PARAM_VALUE 1 max 1048575
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/fwctl/main.c _alloc_device() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 1226333052012965888
PARAM_VALUE 1 max 4095
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/core/uverbs_main.c ib_uverbs_add_one() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 8336505106525102080
PARAM_VALUE 1 max 8191
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
LOCK2 &device->client_data_rwsem
LOCK2 global &clients_rwsem
LOCK2 global &devices_rwsem
HALF_LOCKED2 &device->unregistration_lock
TYPE_LOCK (struct ib_device)->client_data_rwsem

lib/region_alloc_benchmark.c benchmark_ida() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 2889017341295325184
PARAM_VALUE 0 ida->xa.xa_flags 33554437
PARAM_VALUE 0 ida->xa.xa_head 0
PARAM_VALUE 2 gfp 3264

drivers/block/ublk_drv.c ublk_ctrl_reg_buf() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 1 max u16max
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ub->mutex
HALF_LOCKED2 &ctx->uring_lock
TYPE_LOCK (struct ublk_device)->mutex

sound/soc/intel/avs/dsp.c avs_dsp_create_pipeline() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 _T->lock

drivers/android/binderfs.c binderfs_binder_ctl_create() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 9037680373306703872
PARAM_VALUE 1 max 1048571,1048575
PARAM_VALUE 2 gfp 3264
FUZZY_MAX 1 max 1048575
BIT_INFO 1 max 0xffffb,0xfffff
HARD_MAX 1 max 1048575
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &binderfs_minors_mutex
HALF_LOCKED2 &fc->uapi_mutex
HALF_LOCKED2 &sb->s_umount

drivers/android/binderfs.c binderfs_binder_device_create() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 9037680373306703872
PARAM_VALUE 1 max 1048571,1048575
PARAM_VALUE 2 gfp 3264
FUZZY_MAX 1 max 1048575
BIT_INFO 1 max 0xffffb,0xfffff
HARD_MAX 1 max 1048575
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &binderfs_minors_mutex

drivers/peci/core.c peci_controller_alloc() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 1590027717656059904
PARAM_VALUE 1 max 255
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c vmw_gmrid_man_get_node() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/staging/greybus/fw-management.c gb_fw_mgmt_connection_init() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 2709980812403810304
PARAM_VALUE 1 max 254
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

net/bluetooth/hci_core.c hci_register_dev() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 2720876086950940672
PARAM_VALUE 1 max 9999
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &data->open_mutex
HALF_LOCKED2 &tty->ldisc_sem

drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c nfp_tunnel_add_shared_mac() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 1 max 255
PARAM_VALUE 2 gfp 3264

drivers/cxl/core/memdev.c cxl_memdev_alloc() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 2474771830980538368
PARAM_VALUE 1 max u16max
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

fs/devpts/inode.c devpts_new_index() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock

drivers/block/rbd.c rbd_dev_create() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 314349055326793728
PARAM_VALUE 1 max u16max
PARAM_VALUE 2 gfp 3264
CAPABLE 0 21
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/infiniband/hw/ionic/ionic_hw_stats.c ionic_counter_alloc_stats() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 1 max 16777215
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/media/platform/chips-media/coda/coda-common.c coda_open() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 1 max 3,u32max
PARAM_VALUE 2 gfp 3264
FUZZY_MAX 1 max u32max
BIT_INFO 1 max 0x3,0xffffffff
HARD_MAX 1 max u32max
RX_PATH
TASK_NOT_RUNNING

fs/proc/generic.c proc_alloc_inum() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 7190395521707315200
PARAM_VALUE 1 max 268435455
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/vfio/group.c vfio_group_alloc() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 6143122596409852072
PARAM_VALUE 1 max 1048575
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &vfio.group_lock
TYPE_LOCK (struct vfio)->group_lock

drivers/gpu/drm/i915/intel_memory_region.c mock_region_create() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 1 max 5
PARAM_VALUE 2 gfp 3264

drivers/hwmon/coretemp.c init_temp_data() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &cpuhp_state_mutex
HALF_LOCKED2 irq

drivers/thunderbolt/pci.c nhi_pci_ring_request_msix() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 1 max 15
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &dt->lock

drivers/gpu/drm/drm_connector.c drm_connector_init_only() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 1 max 31
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 ida->xa.xa_flags 0-u32max

drivers/infiniband/core/user_mad.c ib_umad_init_port() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 8581924438488150016
PARAM_VALUE 1 max 8191
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
LOCK2 &device->client_data_rwsem
LOCK2 global &clients_rwsem
LOCK2 global &devices_rwsem
HALF_LOCKED2 &device->unregistration_lock
TYPE_LOCK (struct ib_device)->client_data_rwsem

drivers/staging/greybus/authentication.c gb_cap_connection_init() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 7285013911238541312
PARAM_VALUE 1 max 254
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/media/rc/lirc_dev.c lirc_register() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 888610173821861888
PARAM_VALUE 1 max 255
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &hdev->driver_input_lock
HALF_LOCKED2 &ictx->lock
HALF_LOCKED2 global &devlist
HALF_LOCKED2 global &em28xx_devlist_mutex
HALF_LOCKED2 global &g_smscore_deviceslock

drivers/rpmsg/rpmsg_char.c rpmsg_chrdev_eptdev_add() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 8608014783806005248
PARAM_VALUE 1 max 1048575
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ctrldev->ctrl_lock

drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c mlxsw_sp_acl_tcam_group_id_get() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4096-ptr_max
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c mlxsw_sp_acl_tcam_region_id_get() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &vregion->lock

drivers/md/bcache/super.c bcache_device_init() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 3773104517794885632
PARAM_VALUE 1 max 8191
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &bch_register_lock

drivers/media/rc/rc-main.c rc_register_device() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 5140398151075835904
PARAM_VALUE 1 max 255
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &hdev->driver_input_lock
HALF_LOCKED2 &ictx->lock
HALF_LOCKED2 global &devlist
HALF_LOCKED2 global &em28xx_devlist_mutex
HALF_LOCKED2 global &g_smscore_deviceslock

block/bsg.c bsg_register_queue() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 3326572293254553600
PARAM_VALUE 1 max 1048575
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &shost->scan_mutex

sound/core/timer.c snd_utimer_take_id() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 6163209973432299520
PARAM_VALUE 1 max 127
PARAM_VALUE 2 gfp 3264
LOCK2 _T->lock

drivers/gnss/core.c gnss_allocate_device() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 4946447738891452416
PARAM_VALUE 1 max 15
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING

drivers/platform/chrome/wilco_ec/event.c event_device_probe() -> ida_alloc_max()

Type Parameter Key Value
PARAM_VALUE 0 ida 2243365718171635712
PARAM_VALUE 1 max 127
PARAM_VALUE 2 gfp 3264
RX_PATH
TASK_NOT_RUNNING