Documented in 1 files:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
drivers/mtd/nand/spi/core.c nanddev_io_block_iter_init() -> nanddev_offs_to_pos()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nand | 4096-ptr_max |
| PARAM_VALUE | 2 | pos | 7449369908295270404 |
| DATA_SOURCE | 0 | nand | $0 |
| DATA_SOURCE | 1 | offs | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | offs | 0-5294967294[c] |
| USER_DATA | 1 | offs | 0-s64max |
| LOCK2 | &spinand->lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &master->master.chrdev_lock | ||
| HALF_LOCKED2 | global &mtd_table_mutex | ||
| TYPE_LOCK | (struct spinand_device)->lock |
drivers/mtd/nand/spi/core.c nanddev_io_page_iter_init() -> nanddev_offs_to_pos()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nand | 4096-ptr_max |
| PARAM_VALUE | 2 | pos | 1554265744632967172,7495527609023025156 |
| DATA_SOURCE | 0 | nand | $0 |
| DATA_SOURCE | 1 | offs | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | offs | 0-5294967294[c] |
| USER_DATA | 1 | offs | 0-s64max |
| LOCK2 | &spinand->lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &master->master.chrdev_lock | ||
| TYPE_LOCK | (struct spinand_device)->lock |
drivers/mtd/nand/spi/core.c spinand_mtd_block_isbad() -> nanddev_offs_to_pos()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nand | 4096-ptr_max |
| PARAM_VALUE | 2 | pos | 3002645948086362112 |
| DATA_SOURCE | 0 | nand | r mtd_to_nanddev |
| DATA_SOURCE | 1 | offs | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | offs | s64min-s64max[c] |
| HALF_LOCKED2 | &master->master.chrdev_lock |
drivers/mtd/nand/spi/core.c spinand_mtd_block_isreserved() -> nanddev_offs_to_pos()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nand | 4096-ptr_max |
| PARAM_VALUE | 2 | pos | 5185854944691576832 |
| DATA_SOURCE | 0 | nand | r mtd_to_nanddev |
| DATA_SOURCE | 1 | offs | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &master->master.chrdev_lock |
drivers/mtd/nand/spi/core.c spinand_mtd_block_markbad() -> nanddev_offs_to_pos()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nand | 4096-ptr_max |
| PARAM_VALUE | 2 | pos | 7842519832191152128 |
| DATA_SOURCE | 0 | nand | r mtd_to_nanddev |
| DATA_SOURCE | 1 | offs | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | offs | s64min-s64max[c] |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &master->master.chrdev_lock | ||
| HALF_LOCKED2 | &ubi->work_sem |
drivers/mtd/nand/spi/core.c spinand_use_cont_read() -> nanddev_offs_to_pos()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nand | 4096-ptr_max |
| PARAM_VALUE | 2 | pos | 4325762723788050432 |
| DATA_SOURCE | 0 | nand | r mtd_to_nanddev |
| DATA_SOURCE | 1 | offs | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 1 | offs | 0-5294967294[c] |
| USER_DATA | 1 | offs | 0-s64max |
| LOCK2 | &spinand->lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &master->master.chrdev_lock | ||
| HALF_LOCKED2 | global &mtd_table_mutex | ||
| TYPE_LOCK | (struct spinand_device)->lock |
drivers/mtd/nand/spi/core.c spinand_use_cont_read() -> nanddev_offs_to_pos()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nand | 4096-ptr_max |
| PARAM_VALUE | 2 | pos | 84793682864205824 |
| DATA_SOURCE | 0 | nand | r mtd_to_nanddev |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | offs | unit_byte |
| LOCK2 | &spinand->lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &master->master.chrdev_lock | ||
| HALF_LOCKED2 | global &mtd_table_mutex | ||
| TYPE_LOCK | (struct spinand_device)->lock |
drivers/mtd/nand/core.c nanddev_mtd_erase() -> nanddev_offs_to_pos()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nand | 4096-ptr_max |
| PARAM_VALUE | 2 | pos | 7440426648030420992 |
| DATA_SOURCE | 0 | nand | r mtd_to_nanddev |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | offs | s64min-(-2),0-s64max |
| UNITS | 1 | offs | unit_byte |
| LOCK2 | &spinand->lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &ftl->mutex | ||
| HALF_LOCKED2 | &master->master.chrdev_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &mtd_table_mutex | ||
| TYPE_LOCK | (struct spinand_device)->lock |
drivers/mtd/nand/core.c nanddev_mtd_erase() -> nanddev_offs_to_pos()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nand | 4096-ptr_max |
| PARAM_VALUE | 2 | pos | 3923546704494391296 |
| DATA_SOURCE | 0 | nand | r mtd_to_nanddev |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | offs | unit_byte |
| LOCK2 | &spinand->lock | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &ftl->mutex | ||
| HALF_LOCKED2 | &master->master.chrdev_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &mtd_table_mutex | ||
| TYPE_LOCK | (struct spinand_device)->lock |
drivers/mtd/nand/core.c nanddev_mtd_max_bad_blocks() -> nanddev_offs_to_pos()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nand | 4096-ptr_max |
| PARAM_VALUE | 1 | offs | 0 |
| PARAM_VALUE | 2 | pos | 8563675985235107840 |
| DATA_SOURCE | 0 | nand | r mtd_to_nanddev |
| DATA_SOURCE | 1 | offs | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &ubi_devices_mutex | ||
| HALF_LOCKED2 | global &mtd_table_mutex |
drivers/mtd/nand/core.c nanddev_mtd_max_bad_blocks() -> nanddev_offs_to_pos()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nand | 4096-ptr_max |
| PARAM_VALUE | 2 | pos | 6025174598873440256 |
| DATA_SOURCE | 0 | nand | r mtd_to_nanddev |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &ubi_devices_mutex | ||
| HALF_LOCKED2 | global &mtd_table_mutex |
drivers/mtd/nand/core.c nanddev_mtd_max_bad_blocks() -> nanddev_offs_to_pos()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nand | 4096-ptr_max |
| PARAM_VALUE | 1 | offs | 0 |
| PARAM_VALUE | 2 | pos | 8563675985235107840 |
| PARAM_VALUE | 2 | pos->eraseblock | 0 |
| PARAM_VALUE | 2 | pos->lun | 0 |
| PARAM_VALUE | 2 | pos->page | 0 |
| PARAM_VALUE | 2 | pos->plane | 0 |
| PARAM_VALUE | 2 | pos->target | 0 |
| DATA_SOURCE | 0 | nand | r mtd_to_nanddev |
| DATA_SOURCE | 1 | offs | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &ubi_devices_mutex | ||
| HALF_LOCKED2 | global &mtd_table_mutex |