Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/mtd/nand/raw/nand_base.c nand_erase_nand() -> check_offs_len()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->base.ops->erase 0,2145616741012197376,5355711976263086080
PARAM_VALUE 0 mtd->base.ops->isbad 0,4230751433069776896,8612460838360965120
PARAM_VALUE 0 mtd->base.ops->markbad 0,4545526569871687680,7841708234825457664
PARAM_VALUE 0 *mtd->bbt_md->pages s32min-s32max
PARAM_VALUE 0 *mtd->bbt_md->version 0-255
PARAM_VALUE 0 *mtd->bbt_td->pages s32min-s32max
PARAM_VALUE 0 *mtd->bbt_td->version 0-255
BUF_SIZE 0 mtd->bbt_md (-1)-0,72
BUF_SIZE 0 mtd->bbt_md->pattern (-1),9
BUF_SIZE 0 mtd->bbt_td (-1)-0,72
BUF_SIZE 0 mtd->bbt_td->pattern (-1),9
CAPPED_DATA 0 mtd 1
DATA_SOURCE 0 mtd $0
STR_LEN 0 mtd->bbt_md->pattern (-1),8
STR_LEN 0 mtd->bbt_td->pattern (-1),8
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 mtd->cur_cs 1-s32max[c]
HOST_DATA 0 *mtd->oob_poi 0-255
USER_DATA 0 *mtd->oob_poi 0-255
USER_DATA 1 ofs s64min-(-2),0-s64max
USER_DATA 2 len 1-u64max
NO_OVERFLOW_SIMPLE 0 mtd->nr_secure_regions
UNITS 1 ofs unit_byte
UNITS 2 len unit_byte

drivers/mtd/devices/mtdram.c ram_erase() -> check_offs_len()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->_erase 1-u64max
PARAM_VALUE 0 mtd->parent 0
PARAM_VALUE 0 mtd->parent->parent 0
DATA_SOURCE 0 mtd $0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 ofs s64min-(-2),0-s64max
USER_DATA 2 len 1-u64max
UNITS 1 ofs unit_byte
UNITS 2 len unit_byte
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &mtd_table_mutex