Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/mtd/spi-nor/otp.c spi_nor_mtd_otp_erase() -> spi_nor_prep_and_lock()

Type Parameter Key Value
PARAM_VALUE 0 nor 4096-ptr_max
PARAM_VALUE 0 nor->params 4096-ptr_max
PARAM_VALUE 0 nor->params->otp.ops 4096-ptr_max
PARAM_VALUE 0 nor->params->otp.ops->erase 5617413967985901568
PARAM_VALUE 0 nor->params->otp.org 4096-ptr_max
DATA_SOURCE 0 nor r mtd_to_spi_nor
LOCK2 &master->master.chrdev_lock
TYPE_LOCK (struct mtd_master)->chrdev_lock

drivers/mtd/spi-nor/otp.c spi_nor_mtd_otp_info() -> spi_nor_prep_and_lock()

Type Parameter Key Value
PARAM_VALUE 0 nor 4096-ptr_max
PARAM_VALUE 0 nor->params 4096-ptr_max
PARAM_VALUE 0 nor->params->otp.org 4096-ptr_max
PARAM_VALUE 0 nor->params->otp.org->n_regions 0-341
DATA_SOURCE 0 nor r mtd_to_spi_nor
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &master->master.chrdev_lock

drivers/mtd/spi-nor/otp.c spi_nor_mtd_otp_lock() -> spi_nor_prep_and_lock()

Type Parameter Key Value
PARAM_VALUE 0 nor 4096-ptr_max
PARAM_VALUE 0 nor->params 4096-ptr_max
PARAM_VALUE 0 nor->params->otp.org 4096-ptr_max
DATA_SOURCE 0 nor r mtd_to_spi_nor
LOCK2 &master->master.chrdev_lock
TYPE_LOCK (struct mtd_master)->chrdev_lock

drivers/mtd/spi-nor/otp.c spi_nor_mtd_otp_read_write() -> spi_nor_prep_and_lock()

Type Parameter Key Value
PARAM_VALUE 0 nor 4096-ptr_max
PARAM_VALUE 0 nor->params 4096-ptr_max
PARAM_VALUE 0 nor->params->otp.org 4096-ptr_max
DATA_SOURCE 0 nor r mtd_to_spi_nor
RX_PATH
TASK_NOT_RUNNING

drivers/mtd/spi-nor/swp.c spi_nor_is_locked() -> spi_nor_prep_and_lock()

Type Parameter Key Value
PARAM_VALUE 0 nor 4096-ptr_max
DATA_SOURCE 0 nor r mtd_to_spi_nor
HALF_LOCKED2 &master->master.chrdev_lock

drivers/mtd/spi-nor/swp.c spi_nor_lock() -> spi_nor_prep_and_lock()

Type Parameter Key Value
PARAM_VALUE 0 nor 4096-ptr_max
DATA_SOURCE 0 nor r mtd_to_spi_nor
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &master->master.chrdev_lock

drivers/mtd/spi-nor/swp.c spi_nor_unlock() -> spi_nor_prep_and_lock()

Type Parameter Key Value
PARAM_VALUE 0 nor 4096-ptr_max
DATA_SOURCE 0 nor r mtd_to_spi_nor
RX_PATH
TASK_NOT_RUNNING

drivers/mtd/spi-nor/sst.c sst_nor_write() -> spi_nor_prep_and_lock()

Type Parameter Key Value
PARAM_VALUE 0 nor 4096-ptr_max
DATA_SOURCE 0 nor r mtd_to_spi_nor
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &mbd->lock