Documented in 2 files:

Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/mtd/nand/onenand/onenand_bbt.c onenand_memory_bbt() -> create_bbt()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->_block_isbad 3825209836983611392
PARAM_VALUE 0 mtd->_block_markbad 8290682792774684672
PARAM_VALUE 0 mtd->_erase 525826594191204352
PARAM_VALUE 0 mtd->_get_fact_prot_info 4100970008593666048
PARAM_VALUE 0 mtd->_get_user_prot_info 1251568976686637056
PARAM_VALUE 0 mtd->_lock 5134621137517969408
PARAM_VALUE 0 mtd->_lock_user_prot_reg 7793241162135580672
PARAM_VALUE 0 mtd->_panic_write 3046259128974516224
PARAM_VALUE 0 mtd->_point 0
PARAM_VALUE 0 mtd->_read_fact_prot_reg 8407988473533218816
PARAM_VALUE 0 mtd->_read_oob 4692067853875392512
PARAM_VALUE 0 mtd->_read_user_prot_reg 2876602620347895808
PARAM_VALUE 0 mtd->_resume 813392735273226240
PARAM_VALUE 0 mtd->_suspend 6943935975122276352
PARAM_VALUE 0 mtd->_sync 7707002625836818432
PARAM_VALUE 0 mtd->_unlock 5395590667353133056
PARAM_VALUE 0 mtd->_unpoint 0
PARAM_VALUE 0 mtd->_write_oob 1742122957502431232
PARAM_VALUE 0 mtd->_write_user_prot_reg 1675601244724527104
PARAM_VALUE 0 mtd->ecc_strength 1
PARAM_VALUE 0 mtd->flags 1024
PARAM_VALUE 0 mtd->oobavail 0
PARAM_VALUE 0 mtd->ooblayout->ecc 852363565877665792,4129873154768957440,6836751387214245888
PARAM_VALUE 0 mtd->ooblayout->free 820495098852958208,4390306440083038208,4940217667363753984
PARAM_VALUE 0 mtd->owner 0
PARAM_VALUE 0 mtd->parent 0
PARAM_VALUE 0 mtd->priv 4096-ptr_max
PARAM_VALUE 0 mtd->priv->chipsize 0,1048576-4293918720
PARAM_VALUE 0 mtd->priv->density_mask 0-4294967295
PARAM_VALUE 0 mtd->priv->device_id 0-u16max
PARAM_VALUE 0 mtd->priv->dies 1-2
PARAM_VALUE 0 mtd->priv->erase_shift 0-4294967295
PARAM_VALUE 0 mtd->priv->options 0-4294967295
PARAM_VALUE 0 mtd->priv->page_mask 0-4294967295
PARAM_VALUE 0 mtd->priv->page_shift 0-4294967295
PARAM_VALUE 0 mtd->priv->technology 0-u16max
PARAM_VALUE 0 mtd->priv->version_id 0-u16max
PARAM_VALUE 0 mtd->priv->writesize 0-131070
PARAM_VALUE 0 mtd->type 4,8
PARAM_VALUE 0 *mtd->priv->boundary 0-1023
PARAM_VALUE 2 bd 1-u64max
PARAM_VALUE 3 chip (-1)
BUF_SIZE 0 mtd (-1),2984
BUF_SIZE 0 mtd (-1),2984
BUF_SIZE 1 buf 1-262140
BUF_SIZE 2 bd (-1),72
BUF_SIZE 2 bd (-1),72
DATA_SOURCE 0 mtd $0
DATA_SOURCE 2 bd $1
FUZZY_MAX 0 mtd->type 8
BIT_INFO 0 mtd->type 0x0,0xc
HARD_MAX 0 mtd->type 8
RX_PATH
TASK_NOT_RUNNING

drivers/mtd/nand/raw/nand_bbt.c check_create() -> create_bbt()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->base.ops->erase 0,4096-ptr_max
PARAM_VALUE 0 mtd->base.ops->isbad 0,4096-ptr_max
PARAM_VALUE 0 mtd->manufacturer.desc->id 1,4,7,32,44,69,137,143,146,152,155,173,194,200,236,239
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
PARAM_VALUE 0 *mtd->id.data 0-255
PARAM_VALUE 1 buf 1-u64max
PARAM_VALUE 2 bd 1-u64max
PARAM_VALUE 3 chip (-1)-s32max
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 3 chip 1
DATA_SOURCE 0 mtd $0
DATA_SOURCE 1 buf $1
DATA_SOURCE 2 bd $2
STR_LEN 0 mtd->bbt_md->pattern (-1),8
STR_LEN 0 mtd->bbt_td->pattern (-1),8
BIT_INFO 0 mtd->bbt_options 0x0,0xfffffbff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 mtd->priv->curr_column s32min-s32max[c]
HOST_DATA 0 mtd->priv->curr_page_addr 1-s32max[c]
HOST_DATA 0 mtd->priv->offset 0-s32max[c]
HOST_DATA 0 *mtd->oob_poi 0-255
HOST_DATA 0 *mtd->priv->raw_buffer 0-255
UNITS 3 chip unit_array_size

drivers/mtd/nand/raw/nand_bbt.c nand_memory_bbt() -> create_bbt()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->badblock_pattern 1-u64max
PARAM_VALUE 0 mtd->base.ops->erase 0,4096-ptr_max
PARAM_VALUE 0 mtd->base.ops->isbad 0,4096-ptr_max
PARAM_VALUE 0 mtd->bbt 16,4096-ptr_max
PARAM_VALUE 0 mtd->bbt_td 0
PARAM_VALUE 0 mtd->manufacturer.desc->id 1,4,7,32,44,69,137,143,146,152,155,173,194,200,236,239
PARAM_VALUE 0 mtd->pagecache.page (-1)
PARAM_VALUE 0 *mtd->id.data 0-255
PARAM_VALUE 2 bd 1-u64max
PARAM_VALUE 3 chip (-1)
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
DATA_SOURCE 0 mtd $0
DATA_SOURCE 2 bd $1
STR_LEN 0 mtd->bbt_md->pattern (-1),8
STR_LEN 0 mtd->bbt_td->pattern (-1),8
PARAM_COMPARE 1 buf == $0->data_buf
PARAM_COMPARE 1 buf == $0->data_buf
RX_PATH
TASK_NOT_RUNNING