Documented in 1 files:

Defined in 3 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/accel/amdxdna/aie2_solver.c create_solver_node() -> allocate_partition()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 1 part 4096-ptr_max
PARAM_VALUE 1 part->rid 4096-18446744073709547520
PARAM_VALUE 2 partno 4096-ptr_max
PARAM_VALUE 2 partno->rid 4096-18446744073709547520
BUF_SIZE 1 part 48-17179869228
BUF_SIZE 1 part 48-17179869228
BUF_SIZE 2 partno 56
BUF_SIZE 2 partno->cdo.start_cols 4
CAPPED_DATA 2 partno->cdo.ncols 1
CAPPED_DATA 2 partno->rqos.fps 1
DATA_SOURCE 0 parent $0
DATA_SOURCE 1 part r _kzalloc_noprof
DATA_SOURCE 2 partno $1
USER_DATA 2 partno->rqos.dma_bw 0-u32max
USER_DATA 2 partno->rqos.exec_time 0-u32max
USER_DATA 2 partno->rqos.fps 0-u32max[c]
USER_DATA 2 partno->rqos.gops 0-u32max
USER_DATA 2 partno->rqos.latency 0-u32max
USER_DATA 2 partno->rqos.priority 0-u32max
LOCK2 _T->lock
LOCK2 global &drm_unplug_srcu

drivers/mtd/mtdpart.c add_mtd_partitions() -> allocate_partition()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 0 parent->dbg.dfs_dir->d_inode->i_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 parent->dbg.dfs_dir->d_inode->i_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 parent->dev.devres_head.next->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.devres_head.prev->prev 4096-ptr_max
PARAM_VALUE 0 parent->dev.dma_io_tlb_mem->can_grow 0-1
PARAM_VALUE 0 parent->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 parent->dev.dma_io_tlb_mem->dyn_alloc.data.counter 9007199250546704
PARAM_VALUE 0 parent->dev.dma_io_tlb_mem->dyn_alloc.entry.prev 1473117533515866344
PARAM_VALUE 0 parent->dev.dma_io_tlb_mem->dyn_alloc.func 1583282886040592384
PARAM_VALUE 0 parent->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 parent->dev.dma_io_tlb_mem->force_bounce 0-1
PARAM_VALUE 0 parent->dev.dma_io_tlb_mem->nslabs 0-s64max
PARAM_VALUE 0 parent->dev.dma_io_tlb_mem->phys_limit 0-s64max
PARAM_VALUE 0 parent->dev.dma_io_tlb_mem->pools.prev 1473117533515866320
PARAM_VALUE 0 parent->dev.dma_io_tlb_pools.next->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.dma_io_tlb_pools.prev->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.dma_io_tlb_pools.prev->prev 4096-ptr_max
PARAM_VALUE 0 parent->dev.dma_pools.next->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.dma_pools.prev->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.dma_pools.prev->prev 4096-ptr_max
PARAM_VALUE 0 parent->dev.kobj.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 parent->dev.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 parent->dev.kobj.release->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 parent->dev.kobj.release.timer.is_hard 0-1
PARAM_VALUE 0 parent->dev.kobj.release.timer.is_lazy 0-1
PARAM_VALUE 0 parent->dev.kobj.release.timer.is_queued 0-1
PARAM_VALUE 0 parent->dev.kobj.release.timer.is_soft 0-1
PARAM_VALUE 0 parent->dev.kobj.release.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 parent->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 parent->dev.links.consumers.next->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.links.consumers.prev->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.links.consumers.prev->prev 4096-ptr_max
PARAM_VALUE 0 parent->dev.links.defer_sync.next->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.links.defer_sync.prev->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.links.defer_sync.prev->prev 4096-ptr_max
PARAM_VALUE 0 parent->dev.links.suppliers.next->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.links.suppliers.prev->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.links.suppliers.prev->prev 4096-ptr_max
PARAM_VALUE 0 parent->dev.p->dead 0-1
PARAM_VALUE 0 parent->dev.p->deferred_probe_reason 0-s64max
PARAM_VALUE 0 parent->dev.p->klist_children.get 2213798222526185472
PARAM_VALUE 0 parent->dev.p->klist_children.put 3126867300421632000
PARAM_VALUE 0 parent->dev.p->knode_class.n_ref.refcount.refs.counter 1
PARAM_VALUE 0 parent->dev.p->knode_parent.n_ref.refcount.refs.counter 1
PARAM_VALUE 0 parent->dev.parent->kobj.release->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 parent->dev.physical_location->dock 0
PARAM_VALUE 0 parent->dev.physical_location->lid 0
PARAM_VALUE 0 parent->dev.physical_location->panel 0
PARAM_VALUE 0 parent->dev.power.entry.next->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.power.entry.prev->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.power.entry.prev->prev 4096-ptr_max
PARAM_VALUE 0 parent->dev.power.wait_queue.head.next->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.power.wait_queue.head.prev->next 4096-ptr_max
PARAM_VALUE 0 parent->dev.power.wait_queue.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 parent->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 parent->dev.type->devnode 0
PARAM_VALUE 0 parent->dev.type->groups 1157374916128129024
PARAM_VALUE 0 parent->dev.type->name 2440683486689492992
PARAM_VALUE 0 parent->dev.type->pm 0
PARAM_VALUE 0 parent->dev.type->release 6356374343853568000
PARAM_VALUE 0 parent->dev.type->uevent 0
PARAM_VALUE 0 parent->nvmem->dev.dma_io_tlb_mem->dyn_alloc.data.counter 9007199250546704
PARAM_VALUE 0 parent->nvmem->dev.dma_io_tlb_mem->dyn_alloc.entry.prev 1473117533515866344
PARAM_VALUE 0 parent->nvmem->dev.dma_io_tlb_mem->dyn_alloc.func 1583282886040592384
PARAM_VALUE 0 parent->nvmem->dev.dma_io_tlb_mem->pools.prev 1473117533515866320
PARAM_VALUE 0 parent->nvmem->dev.fwnode->dev->power.set_latency_tolerance 5740181548905971712
PARAM_VALUE 0 parent->nvmem->dev.kobj->name 0-255
PARAM_VALUE 0 parent->nvmem->dev.kobj.ktype->get_ownership 0,754295003445952512,1770093955000758272,2031763320308453376,9073032014207823872,9089295143347961856
PARAM_VALUE 0 parent->nvmem->dev.kobj.release.timer.is_hard 0-1
PARAM_VALUE 0 parent->nvmem->dev.kobj.release.timer.is_lazy 0-1
PARAM_VALUE 0 parent->nvmem->dev.kobj.release.timer.is_queued 0-1
PARAM_VALUE 0 parent->nvmem->dev.kobj.release.timer.is_soft 0-1
PARAM_VALUE 0 parent->nvmem->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 parent->nvmem->dev.p->klist_children.get 2213798222526185472
PARAM_VALUE 0 parent->nvmem->dev.p->klist_children.put 3126867300421632000
PARAM_VALUE 0 parent->nvmem->dev.parent->kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 parent->nvmem->dev.parent->kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 parent->nvmem->dev.parent->kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 parent->nvmem->srcu.dep_map->name 0-255
PARAM_VALUE 0 parent->nvmem->srcu.srcu_sup->srcu_gp_seq s64max
PARAM_VALUE 0 parent->nvmem->srcu.srcu_sup->srcu_gp_seq_needed s64max
PARAM_VALUE 0 parent->nvmem->srcu.srcu_sup->srcu_gp_seq_needed_exp s64max
PARAM_VALUE 0 parent->nvmem->srcu.srcu_sup->srcu_size_state 0-1,8
PARAM_VALUE 0 parent->ooblayout->ecc 0,4096-ptr_max
PARAM_VALUE 0 parent->ooblayout->free 0,4096-ptr_max
PARAM_VALUE 1 part 4096-ptr_max
PARAM_VALUE 2 partno 0-s32max
BUF_SIZE 0 parent (-1),2448,2984
BUF_SIZE 0 parent (-1),2448,2984
CAPPED_DATA 0 parent 1
CAPPED_DATA 2 partno 1
DATA_SOURCE 0 parent $0
STR_LEN 0 parent (-1),18
STR_LEN 0 parent (-1),18
STR_LEN 0 parent->name (-1)
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 parent->erasesize
NO_OVERFLOW_SIMPLE 0 parent->parent->erasesize
UNITS 2 partno unit_array_size
UNITS 3 cur_offset unit_byte

drivers/mtd/mtdpart.c mtd_add_partition() -> allocate_partition()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 0 parent->parent 0-1
PARAM_VALUE 1 part 8348069570203443200
PARAM_VALUE 1 part->name 4096-ptr_max
PARAM_VALUE 1 part->offset 0-9223372036854775806
PARAM_VALUE 1 part->size 1-9223372036854775807
PARAM_VALUE 2 partno (-1)
PARAM_VALUE 3 cur_offset 0-9223372036854775806
CAPPED_DATA 3 cur_offset 1
DATA_SOURCE 0 parent $0
DATA_SOURCE 3 cur_offset $2
CAPABLE 0 21
TERMINATED 1 part->name 1
MEM_ZERO 1 part
USER_DATA 1 part->offset 0-9223372036854775806[c]
USER_DATA 1 part->size 1-9223372036854775807
USER_DATA 3 cur_offset 0-9223372036854775806[c]
UNITS 3 cur_offset unit_byte
USER_PTR 1 part->name
LOCK2 &master->master.chrdev_lock
TYPE_LOCK (struct mtd_master)->chrdev_lock

drivers/md/dm-vdo/encodings.c decode_layout() -> allocate_partition()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 0 parent->num_partitions 1-4
DATA_SOURCE 0 parent $4
BIT_INFO 0 parent->num_partitions 0x0,0xff
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 parent->size

drivers/md/dm-vdo/encodings.c make_partition() -> allocate_partition()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 1 part 0-3
PARAM_VALUE 3 cur_offset 1-u64max
CAPPED_DATA 1 part 1
CAPPED_DATA 3 cur_offset 1
CAPPED_DATA 3 cur_offset 1
DATA_SOURCE 0 parent $0
DATA_SOURCE 1 part $1
DATA_SOURCE 3 cur_offset $2 [m]
HALF_LOCKED2 &md->type_lock