Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/mtd/mtdblock.c do_cached_write() -> write_cached_data()

Type Parameter Key Value
PARAM_VALUE 0 mtdblk 4096-ptr_max
PARAM_VALUE 0 mtdblk->cache_size 1-u32max
PARAM_VALUE 0 mtdblk->cache_state 2
BUF_SIZE 0 mtdblk->cache_data (-1)-s32max
CAPPED_DATA 0 mtdblk->cache_size 1
DATA_SOURCE 0 mtdblk $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->lock
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtd_blktrans_dev)->lock

drivers/mtd/mtdblock.c mtdblock_flush() -> write_cached_data()

Type Parameter Key Value
PARAM_VALUE 0 mtdblk 4096-ptr_max
PARAM_VALUE 0 mtdblk->cache_mutex.dep_map->name 0-255
PARAM_VALUE 0 mtdblk->cache_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 mtdblk->cache_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 mtdblk->cache_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 mtdblk->cache_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 mtdblk->cache_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 mtdblk->cache_mutex.wait_lock.owner_cpu u32max
CAPPED_DATA 0 &mtdblk->cache_mutex 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->lock
LOCK2 0 &mtdblk->cache_mutex
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtd_blktrans_dev)->lock
TYPE_LOCK (struct mtdblk_dev)->cache_mutex

drivers/mtd/mtdblock.c mtdblock_release() -> write_cached_data()

Type Parameter Key Value
PARAM_VALUE 0 mtdblk 4096-ptr_max
PARAM_VALUE 0 mtdblk->cache_mutex.dep_map->name 0-255
PARAM_VALUE 0 mtdblk->cache_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 mtdblk->cache_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 mtdblk->cache_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 mtdblk->cache_mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 mtdblk->cache_mutex.wait_lock.owner (-1)
PARAM_VALUE 0 mtdblk->cache_mutex.wait_lock.owner_cpu u32max
CAPPED_DATA 0 &mtdblk->cache_mutex 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &mbd->lock
LOCK2 0 &mtdblk->cache_mutex
HALF_LOCKED2 &disk->open_mutex
HALF_LOCKED2 global &mtd_table_mutex
TYPE_LOCK (struct mtd_blktrans_dev)->lock
TYPE_LOCK (struct mtdblk_dev)->cache_mutex