Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

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

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 mtd->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 mtd->parent->parent 0-1
PARAM_VALUE 0 mtd->partitions.next->next 4096-ptr_max
PARAM_VALUE 0 mtd->partitions.prev->next 4096-ptr_max
PARAM_VALUE 0 mtd->partitions.prev->prev 4096-ptr_max
BUF_SIZE 0 mtd 2448
DATA_SOURCE 0 mtd r allocate_partition
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 mtd->erasesize
NO_OVERFLOW_SIMPLE 0 mtd->parent->erasesize

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

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 mtd->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 mtd->parent->parent 0-1
PARAM_VALUE 0 mtd->partitions.next->next 4096-ptr_max
PARAM_VALUE 0 mtd->partitions.prev->next 4096-ptr_max
PARAM_VALUE 0 mtd->partitions.prev->prev 4096-ptr_max
BUF_SIZE 0 mtd 2448
DATA_SOURCE 0 mtd r allocate_partition
CAPABLE 0 21
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 mtd->erasesize
NO_OVERFLOW_SIMPLE 0 mtd->parent->erasesize
LOCK2 &master->master.chrdev_lock
TYPE_LOCK (struct mtd_master)->chrdev_lock

drivers/mtd/mtdpart.c release_mtd_partition() -> free_partition()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->parent 1
BUF_SIZE 0 mtd s32min-(-2),1-s32max
BUF_SIZE 0 mtd s32min-(-2),1-s32max
CAPPED_DATA 0 &mtd->part.node 1
DATA_SOURCE 0 mtd $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 mtd unit_byte
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &subsys->su_mutex