Documented in 1 files:

Defined in 1 files as a function:

Referenced in 40 files:

Smatch caller information:

drivers/net/ethernet/freescale/fman/fman_muram.c fman_muram_alloc() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool->algo 7427687418366767104
PARAM_VALUE 0 pool->data 0
PARAM_VALUE 0 pool->lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 size 2048,2432,4096,4736,102400,139264,159744,302080
DATA_SOURCE 1 size $1
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_dma_ring_alloc() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 1-u64max
PARAM_VALUE 1 size 0,128,256,32768,65536
DATA_SOURCE 1 size $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/ti/davinci_cpdma.c cpdma_desc_alloc() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 0-s32max,18446744071562067968-u64max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &chan->lock
LOCK2 flags
TYPE_LOCK (struct cpdma_chan)->lock

drivers/accel/habanalabs/common/firmware_if.c hl_fw_cpu_accessible_dma_pool_alloc() -> gen_pool_alloc()

Type Parameter Key Value
BUF_SIZE 0 pool (-1),120
BUF_SIZE 0 pool (-1),120
DATA_SOURCE 1 size $1
NOSPEC 1 size
NOSPEC 1 size
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 size 0-1048576[c]
HALF_LOCKED2 &hdev->fpriv_list_lock
HALF_LOCKED2 &of->mutex

drivers/edac/igen6_edac.c ecclog_gen_pool_add() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 24
RX_PATH
TASK_NOT_RUNNING
UNITS 1 size unit_byte
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 global &mem_ctls_mutex

drivers/acpi/apei/ghes.c ghes_defer_non_standard_event() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 88-2147483735
RX_PATH
TASK_NOT_RUNNING
UNITS 1 size unit_byte
HALF_LOCKED2 global &ghes_notify_lock_irq

drivers/acpi/apei/ghes.c ghes_do_memory_failure() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 32
RX_PATH
TASK_NOT_RUNNING
UNITS 1 size unit_byte
HALF_LOCKED2 global &ghes_notify_lock_irq

drivers/acpi/apei/ghes.c ghes_estatus_cache_alloc() -> gen_pool_alloc()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 1 size unit_byte
HALF_LOCKED2 global &ghes_notify_lock_irq

drivers/acpi/apei/ghes.c ghes_handle_aer() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 100
RX_PATH
TASK_NOT_RUNNING
UNITS 1 size unit_byte
HALF_LOCKED2 global &ghes_notify_lock_irq

drivers/acpi/apei/ghes.c ghes_in_nmi_queue_one_entry() -> gen_pool_alloc()

Type Parameter Key Value
PREEMPT_ADD
UNITS 1 size unit_byte
HALF_LOCKED2 &ghes_notify_lock_nmi
HALF_LOCKED2 rcu_read

drivers/accel/habanalabs/common/command_buffer.c cb_map_mem() -> gen_pool_alloc()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/accel/habanalabs/common/command_buffer.c hl_cb_alloc() -> gen_pool_alloc()

Type Parameter Key Value
DATA_SOURCE 1 size $1
RX_PATH
TASK_NOT_RUNNING
UNITS 1 size unit_byte

drivers/tee/tee_heap.c protmem_pool_op_static_alloc() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 4096-u64max
DATA_SOURCE 1 size $2
BIT_INFO 1 size 0x0,0xfffffffffffff000
BIT_INFO 1 size 0x0,0xfffffffffffff000
USER_DATA 1 size 4096-u64max[c]

drivers/soc/fsl/qbman/bman.c bm_alloc_bpid_range() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 1
DATA_SOURCE 1 size $1
RX_PATH
TASK_NOT_RUNNING

drivers/soc/fsl/qbman/qman.c qman_alloc_range() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 1-u64max
PARAM_VALUE 1 size 1,256
DATA_SOURCE 0 pool $0
DATA_SOURCE 1 size $2
HARD_MAX 1 size 256
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &rx_pool_channel_init

drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c mlxsw_sp_rif_index_alloc() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 1
DATA_SOURCE 1 size $2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mlxsw_sp->router->lock

kernel/dma/pool.c __dma_alloc_from_pool() -> gen_pool_alloc()

Type Parameter Key Value
DATA_SOURCE 0 pool $2
DATA_SOURCE 1 size $1

drivers/firmware/qcom/qcom_tzmem.c qcom_tzmem_alloc() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 0,4096-u64max
BIT_INFO 1 size 0x0,0xfffffffffffff000
BIT_INFO 1 size 0x0,0xfffffffffffff000
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 size 0,4096[c]
UNITS 1 size unit_byte
HALF_LOCKED2 &profile->lock
HALF_LOCKED2 global &__qcuefi_lock
HALF_LOCKED2 global &efivars_lock

drivers/net/ethernet/ti/icssm/icssm_prueth.c icssm_prueth_probe() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 1-u64max
PARAM_VALUE 1 size 57344,65536
DATA_SOURCE 0 pool r of_gen_pool_get
FUZZY_MAX 1 size 65536
BIT_INFO 1 size 0x0,0x1e000
BIT_INFO 1 size 0x0,0x1e000
HARD_MAX 1 size 65536
RX_PATH
TASK_NOT_RUNNING

drivers/accel/habanalabs/common/mmu/mmu.c hl_mmu_dr_alloc_hop() -> gen_pool_alloc()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &hdev->fpriv_list_lock

drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c mlxsw_sp_acl_erp_table_alloc() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 0-u32max
RX_PATH
TASK_NOT_RUNNING

drivers/remoteproc/meson_mx_ao_arc.c meson_mx_ao_arc_rproc_probe() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 4096-ptr_max
DATA_SOURCE 0 pool r of_gen_pool_get
DATA_SOURCE 1 size r gen_pool_avail
RX_PATH
TASK_NOT_RUNNING

arch/x86/kernel/cpu/mce/genpool.c mce_gen_pool_add() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 0 pool 4096-ptr_max
PARAM_VALUE 1 size 152
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 1 size unit_byte

drivers/accel/habanalabs/common/memory.c alloc_device_memory() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 1-u64max

drivers/accel/habanalabs/common/memory.c alloc_device_memory() -> gen_pool_alloc()

Type Parameter Key Value
USER_DATA 1 size 0-u32max[u]

drivers/accel/ivpu/ivpu_ipc.c ivpu_ipc_tx_prepare() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 192
RX_PATH
TASK_NOT_RUNNING
UNITS 1 size unit_byte
LOCK2 &ipc->lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &vdev->pm->reset_lock
TYPE_LOCK (struct ivpu_ipc_info)->lock

drivers/infiniband/hw/cxgb4/resource.c c4iw_ocqp_pool_alloc() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 0-s32max,18446744071562067968-u64max
DATA_SOURCE 1 size $1
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/hw/cxgb4/resource.c c4iw_pblpool_alloc() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 0,8-s32max,18446744071562067968-18446744073709551608
CAPPED_DATA 1 size 1
DATA_SOURCE 1 size $1
BIT_INFO 1 size 0x0,0x7ffffff8
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 size 0,8-s32max,18446744071562067968-18446744073709551608[c]

drivers/infiniband/hw/cxgb4/resource.c c4iw_rqtpool_alloc() -> gen_pool_alloc()

Type Parameter Key Value
PARAM_VALUE 1 size 0,64-s32max,18446744071562067968-18446744073709551552
BIT_INFO 1 size 0x0,0xffffffc0
RX_PATH
TASK_NOT_RUNNING