Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/mtd/inftlmount.c INFTL_mount() -> INFTL_formatblock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inftl | 4096-ptr_max |
| PARAM_VALUE | 0 | inftl->MediaHdr.BlockMultiplierBits | 0-1 |
| PARAM_VALUE | 0 | inftl->MediaHdr.NoOfBDTLPartitions | 1-u32max |
| PARAM_VALUE | 0 | inftl->PUtable | 4096-ptr_max |
| PARAM_VALUE | 0 | inftl->VUtable | 16,4096-ptr_max |
| PARAM_VALUE | 0 | inftl->instr.fail_addr | 0,u64max |
| PARAM_VALUE | 0 | inftl->instr.len | 0-u32max |
| PARAM_VALUE | 0 | inftl->mbd.devnum | (-1) |
| PARAM_VALUE | 0 | inftl->mbd.mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | inftl->mbd.size | 0-u32max |
| PARAM_VALUE | 0 | inftl->mbd.tr | 6796921757799104512 |
| PARAM_VALUE | 0 | inftl->mbd.tr->add_mtd | 7634399880854491136 |
| PARAM_VALUE | 0 | inftl->mbd.tr->background | 0 |
| PARAM_VALUE | 0 | inftl->mbd.tr->blksize | 512 |
| PARAM_VALUE | 0 | inftl->mbd.tr->discard | 0 |
| PARAM_VALUE | 0 | inftl->mbd.tr->flush | 0 |
| PARAM_VALUE | 0 | inftl->mbd.tr->getgeo | 1575400401045803008 |
| PARAM_VALUE | 0 | inftl->mbd.tr->major | 0-s32max |
| PARAM_VALUE | 0 | inftl->mbd.tr->name | 1460556743244468224 |
| PARAM_VALUE | 0 | inftl->mbd.tr->open | 0 |
| PARAM_VALUE | 0 | inftl->mbd.tr->owner | 0 |
| PARAM_VALUE | 0 | inftl->mbd.tr->part_bits | 4 |
| PARAM_VALUE | 0 | inftl->mbd.tr->readsect | 5017586822155870208 |
| PARAM_VALUE | 0 | inftl->mbd.tr->release | 0 |
| PARAM_VALUE | 0 | inftl->mbd.tr->remove_dev | 1140733748735856640 |
| PARAM_VALUE | 0 | inftl->mbd.tr->writesect | 8636453807941865472 |
| PARAM_VALUE | 0 | inftl->nb_blocks | 0-s32max |
| PARAM_VALUE | 0 | inftl->numvunits | 0 |
| PARAM_VALUE | 0 | *inftl->PUtable | 65532 |
| PARAM_VALUE | 1 | block | 0-u16max |
| BUF_SIZE | 0 | inftl | 592 |
| BUF_SIZE | 0 | inftl->mbd.mtd | (-1),2448,2984 |
| CAPPED_DATA | 0 | inftl->LastFreeEUN | 1 |
| CAPPED_DATA | 0 | inftl->lastEUN | 1 |
| CAPPED_DATA | 0 | inftl->mbd.mtd | 1 |
| CAPPED_DATA | 0 | inftl->nb_blocks | 1 |
| CAPPED_DATA | 1 | block | 1 |
| DATA_SOURCE | 0 | inftl | $0 |
| STR_LEN | 0 | inftl->mbd.mtd | (-1),18 |
| STR_LEN | 0 | inftl->mbd.mtd->dev.driver_data | (-1) |
| STR_LEN | 0 | inftl->mbd.mtd->name | (-1) |
| STR_LEN | 0 | inftl->mbd.mtd->parent | (-1) |
| STR_LEN | 0 | inftl->mbd.tr | (-1),18 |
| PARAM_COMPARE | 0 | inftl->nb_blocks | >= $0->numvunits |
| PARAM_COMPARE | 1 | block | <= $0->lastEUN |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | inftl->EraseSize | |
| NO_OVERFLOW_SIMPLE | 0 | inftl->LastFreeEUN | |
| NO_OVERFLOW_SIMPLE | 0 | inftl->mbd.mtd->erasesize | |
| NO_OVERFLOW_SIMPLE | 0 | inftl->nb_blocks | |
| NO_OVERFLOW_SIMPLE | 1 | block | |
| LOCK2 | global &mtd_table_mutex |
drivers/mtd/inftlmount.c format_chain() -> INFTL_formatblock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inftl | 4096-ptr_max |
| PARAM_VALUE | 0 | inftl->MediaHdr.BlockMultiplierBits | 0-1 |
| PARAM_VALUE | 0 | inftl->MediaHdr.NoOfBDTLPartitions | 1-u32max |
| PARAM_VALUE | 0 | inftl->PUtable | 4096-ptr_max |
| PARAM_VALUE | 0 | inftl->VUtable | 16,4096-ptr_max |
| PARAM_VALUE | 0 | inftl->instr.fail_addr | 0,u64max |
| PARAM_VALUE | 0 | inftl->instr.len | 0-u32max |
| PARAM_VALUE | 0 | inftl->mbd.devnum | (-1) |
| PARAM_VALUE | 0 | inftl->mbd.mtd | 4096-ptr_max |
| PARAM_VALUE | 0 | inftl->mbd.size | 0-u32max |
| PARAM_VALUE | 0 | inftl->mbd.tr | 6796921757799104512 |
| PARAM_VALUE | 0 | inftl->mbd.tr->add_mtd | 7634399880854491136 |
| PARAM_VALUE | 0 | inftl->mbd.tr->background | 0 |
| PARAM_VALUE | 0 | inftl->mbd.tr->blksize | 512 |
| PARAM_VALUE | 0 | inftl->mbd.tr->discard | 0 |
| PARAM_VALUE | 0 | inftl->mbd.tr->flush | 0 |
| PARAM_VALUE | 0 | inftl->mbd.tr->getgeo | 1575400401045803008 |
| PARAM_VALUE | 0 | inftl->mbd.tr->major | 0-s32max |
| PARAM_VALUE | 0 | inftl->mbd.tr->name | 1460556743244468224 |
| PARAM_VALUE | 0 | inftl->mbd.tr->open | 0 |
| PARAM_VALUE | 0 | inftl->mbd.tr->owner | 0 |
| PARAM_VALUE | 0 | inftl->mbd.tr->part_bits | 4 |
| PARAM_VALUE | 0 | inftl->mbd.tr->readsect | 5017586822155870208 |
| PARAM_VALUE | 0 | inftl->mbd.tr->release | 0 |
| PARAM_VALUE | 0 | inftl->mbd.tr->remove_dev | 1140733748735856640 |
| PARAM_VALUE | 0 | inftl->mbd.tr->writesect | 8636453807941865472 |
| PARAM_VALUE | 0 | inftl->nb_blocks | 0-s32max |
| PARAM_VALUE | 0 | *inftl->PUtable | 65532 |
| BUF_SIZE | 0 | inftl | 592 |
| CAPPED_DATA | 0 | inftl->mbd.mtd | 1 |
| CAPPED_DATA | 0 | inftl->nb_blocks | 1 |
| CAPPED_DATA | 1 | block | 1 |
| DATA_SOURCE | 0 | inftl | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | inftl->EraseSize | |
| NO_OVERFLOW_SIMPLE | 0 | inftl->mbd.mtd->erasesize | |
| NO_OVERFLOW_SIMPLE | 0 | inftl->nb_blocks | |
| LOCK2 | global &mtd_table_mutex |
drivers/mtd/inftlcore.c INFTL_foldchain() -> INFTL_formatblock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inftl | 4096-ptr_max |
| PARAM_VALUE | 0 | inftl->PUtable | 4096-ptr_max |
| PARAM_VALUE | 0 | inftl->VUtable | 4096-ptr_max |
| PARAM_VALUE | 0 | inftl->lastEUN | 0-65534 |
| PARAM_VALUE | 0 | inftl->nb_blocks | 0-u16max |
| PARAM_VALUE | 1 | block | 0-u16max |
| BUF_SIZE | 0 | inftl | 64,128,280,736,792,816,1000-s32max |
| BUF_SIZE | 0 | inftl | 64,128,280,736,792,816,1000-s32max |
| CAPPED_DATA | 0 | inftl->lastEUN | 1 |
| CAPPED_DATA | 0 | inftl->nb_blocks | 1 |
| DATA_SOURCE | 0 | inftl | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mbd->lock | ||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct mtd_blktrans_dev)->lock |
drivers/mtd/inftlcore.c INFTL_trydeletechain() -> INFTL_formatblock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inftl | 4096-ptr_max |
| PARAM_VALUE | 0 | inftl->PUtable | 4096-ptr_max |
| PARAM_VALUE | 0 | inftl->VUtable | 4096-ptr_max |
| PARAM_VALUE | 0 | inftl->nb_blocks | 0-u16max |
| PARAM_VALUE | 1 | block | 0-65534 |
| BUF_SIZE | 0 | inftl | 64,128,280,736,792,816,1000-s32max |
| BUF_SIZE | 0 | inftl | 64,128,280,736,792,816,1000-s32max |
| CAPPED_DATA | 0 | inftl->nb_blocks | 1 |
| DATA_SOURCE | 0 | inftl | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mbd->lock | ||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct mtd_blktrans_dev)->lock |