Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/mtd/mtdswap.c mtdswap_gc() -> mtdswap_rb_add()

Type Parameter Key Value
PARAM_VALUE 0 d 4096-ptr_max
PARAM_VALUE 0 d->curr_write->pad 0
PARAM_VALUE 0 d->max_erase_count 1-u32max
PARAM_VALUE 0 d->mtd 4096-ptr_max
PARAM_VALUE 1 eb 4096-ptr_max
PARAM_VALUE 1 eb->rb.rb_left 0,4096-ptr_max
PARAM_VALUE 1 eb->rb.rb_right 0,4096-ptr_max
PARAM_VALUE 1 eb->root 0
PARAM_VALUE 2 idx 0
BUF_SIZE 0 d 264,944
BUF_SIZE 0 d 264,944
CAPPED_DATA 0 d->pages_per_eblk 1
CAPPED_DATA 1 eb 1
DATA_SOURCE 0 d $0
DATA_SOURCE 1 eb r mtdswap_pick_gc_eblk
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->lock
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtd_blktrans_dev)->lock

drivers/mtd/mtdswap.c mtdswap_gc() -> mtdswap_rb_add()

Type Parameter Key Value
PARAM_VALUE 0 d 4096-ptr_max
PARAM_VALUE 0 d->curr_write 0
PARAM_VALUE 0 d->dev 0,4096-ptr_max
PARAM_VALUE 0 d->dev->bus 0,4096-ptr_max
PARAM_VALUE 0 d->dev->class 0,4096-ptr_max
PARAM_VALUE 0 d->dev->driver 0,4096-ptr_max
PARAM_VALUE 0 d->max_erase_count 1-u32max
PARAM_VALUE 0 d->mtd 4096-ptr_max
PARAM_VALUE 1 eb 4096-ptr_max
PARAM_VALUE 1 eb->rb.__rb_parent_color 1
PARAM_VALUE 1 eb->root 0,4096-ptr_max
PARAM_VALUE 1 eb->root->rb_node 4096-ptr_max
PARAM_VALUE 2 idx 4
BUF_SIZE 0 d 264,944
BUF_SIZE 0 d 264,944
CAPPED_DATA 0 d->pages_per_eblk 1
CAPPED_DATA 1 eb 1
DATA_SOURCE 0 d $0
DATA_SOURCE 1 eb r mtdswap_pick_gc_eblk
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->lock
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtd_blktrans_dev)->lock

drivers/mtd/mtdswap.c mtdswap_handle_write_error() -> mtdswap_rb_add()

Type Parameter Key Value
PARAM_VALUE 0 d 4096-ptr_max
PARAM_VALUE 0 d->curr_write 0
PARAM_VALUE 0 d->curr_write_pos 1-u32max
PARAM_VALUE 1 eb 4096-ptr_max
PARAM_VALUE 1 eb->flags 0,8-u32max
PARAM_VALUE 2 idx 6
BUF_SIZE 0 d 256,264,944
BUF_SIZE 0 d 256,264,944
CAPPED_DATA 0 d->pages_per_eblk 1
CAPPED_DATA 1 eb 1
DATA_SOURCE 0 d $0
DATA_SOURCE 1 eb $1
BIT_INFO 1 eb->flags 0x8,0xffffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->lock
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtd_blktrans_dev)->lock

drivers/mtd/mtdswap.c mtdswap_readsect() -> mtdswap_rb_add()

Type Parameter Key Value
PARAM_VALUE 0 d 4096-ptr_max
PARAM_VALUE 0 d->page_data 4096-ptr_max
PARAM_VALUE 0 d->revmap 4096-ptr_max
PARAM_VALUE 1 eb 4096-ptr_max
PARAM_VALUE 1 eb->flags 0,4-u32max
PARAM_VALUE 2 idx 5
BUF_SIZE 0 d 264,944
BUF_SIZE 0 d 264,944
BIT_INFO 1 eb->flags 0x4,0xffffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->lock
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtd_blktrans_dev)->lock

drivers/mtd/mtdswap.c mtdswap_readsect() -> mtdswap_rb_add()

Type Parameter Key Value
PARAM_VALUE 0 d 4096-ptr_max
PARAM_VALUE 0 d->dev 0,4096-ptr_max
PARAM_VALUE 0 d->dev->bus 0,4096-ptr_max
PARAM_VALUE 0 d->dev->class 0,4096-ptr_max
PARAM_VALUE 0 d->dev->driver 0,4096-ptr_max
PARAM_VALUE 0 d->page_data 4096-ptr_max
PARAM_VALUE 0 d->revmap 4096-ptr_max
PARAM_VALUE 1 eb 4096-ptr_max
PARAM_VALUE 1 eb->flags 0,16-u32max
PARAM_VALUE 2 idx 6
BUF_SIZE 0 d 264,944
BUF_SIZE 0 d 264,944
BIT_INFO 1 eb->flags 0x10,0xffffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->lock
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtd_blktrans_dev)->lock

drivers/mtd/mtdswap.c mtdswap_scan_eblks() -> mtdswap_rb_add()

Type Parameter Key Value
PARAM_VALUE 0 d 4096-ptr_max
PARAM_VALUE 0 d->eb_data 1-u64max
PARAM_VALUE 0 d->eblks 1-u32max
PARAM_VALUE 0 d->mbd_dev 4096-ptr_max
PARAM_VALUE 0 d->mbd_dev->mtd 4096-ptr_max
PARAM_VALUE 0 d->mtd 4096-ptr_max
PARAM_VALUE 0 d->oob_buf 16,4096-ptr_max
PARAM_VALUE 0 d->page_buf 4096-ptr_max
PARAM_VALUE 0 d->page_data 1-u64max
PARAM_VALUE 0 d->pages_per_eblk 0-1048575
PARAM_VALUE 0 d->revmap 1-u64max
PARAM_VALUE 0 d->trees 4096-ptr_max
PARAM_VALUE 1 eb 4096-ptr_max
PARAM_VALUE 2 idx 0-134217727
BUF_SIZE 0 d 264
BUF_SIZE 0 d->eb_data 0-s32max
BUF_SIZE 0 d->mbd_dev 352
BUF_SIZE 0 d->oob_buf 0-s32max
BUF_SIZE 0 d->page_buf 4096
BUF_SIZE 0 d->page_data 4
BUF_SIZE 0 d->revmap 4
CAPPED_DATA 0 d->eblks 1
CAPPED_DATA 0 d->spare_eblks 1
DATA_SOURCE 0 d $0
BIT_INFO 1 eb->flags 0x0,0xfffffffe
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &mtd_table_mutex

drivers/mtd/mtdswap.c mtdswap_store_eb() -> mtdswap_rb_add()

Type Parameter Key Value
PARAM_VALUE 0 d 4096-ptr_max
PARAM_VALUE 1 eb 4096-ptr_max
PARAM_VALUE 2 idx 5
BUF_SIZE 0 d 256,264,944
BUF_SIZE 0 d 256,264,944
DATA_SOURCE 0 d $0
DATA_SOURCE 1 eb $1
PARAM_COMPARE 0 d->curr_write != $1
PARAM_COMPARE 1 eb != $0->curr_write
BIT_INFO 1 eb->flags 0x4,0xffffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->lock
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtd_blktrans_dev)->lock

drivers/mtd/mtdswap.c mtdswap_store_eb() -> mtdswap_rb_add()

Type Parameter Key Value
PARAM_VALUE 0 d 4096-ptr_max
PARAM_VALUE 1 eb 4096-ptr_max
PARAM_VALUE 1 eb->flags 8-u32max
PARAM_VALUE 2 idx 6
BUF_SIZE 0 d 256,264,944
BUF_SIZE 0 d 256,264,944
DATA_SOURCE 0 d $0
DATA_SOURCE 1 eb $1
PARAM_COMPARE 0 d->curr_write != $1
PARAM_COMPARE 1 eb != $0->curr_write
BIT_INFO 1 eb->flags 0x0,0xfffffffb
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->lock
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtd_blktrans_dev)->lock

drivers/mtd/mtdswap.c mtdswap_store_eb() -> mtdswap_rb_add()

Type Parameter Key Value
PARAM_VALUE 0 d 4096-ptr_max
PARAM_VALUE 1 eb 4096-ptr_max
PARAM_VALUE 2 idx 1
BUF_SIZE 0 d 256,264,944
BUF_SIZE 0 d 256,264,944
DATA_SOURCE 0 d $0
DATA_SOURCE 1 eb $1
PARAM_COMPARE 0 d->curr_write != $1
PARAM_COMPARE 1 eb != $0->curr_write
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->lock
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtd_blktrans_dev)->lock

drivers/mtd/mtdswap.c mtdswap_store_eb() -> mtdswap_rb_add()

Type Parameter Key Value
PARAM_VALUE 0 d 4096-ptr_max
PARAM_VALUE 1 eb 4096-ptr_max
PARAM_VALUE 1 eb->active_count 0
PARAM_VALUE 2 idx 4
BUF_SIZE 0 d 256,264,944
BUF_SIZE 0 d 256,264,944
DATA_SOURCE 0 d $0
DATA_SOURCE 1 eb $1
PARAM_COMPARE 0 d->curr_write != $1
PARAM_COMPARE 1 eb != $0->curr_write
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->lock
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtd_blktrans_dev)->lock

drivers/mtd/mtdswap.c mtdswap_store_eb() -> mtdswap_rb_add()

Type Parameter Key Value
PARAM_VALUE 0 d 4096-ptr_max
PARAM_VALUE 1 eb 4096-ptr_max
PARAM_VALUE 1 eb->active_count 1-u32max
PARAM_VALUE 2 idx 2
BUF_SIZE 0 d 256,264,944
BUF_SIZE 0 d 256,264,944
DATA_SOURCE 0 d $0
DATA_SOURCE 1 eb $1
PARAM_COMPARE 0 d->curr_write != $1
PARAM_COMPARE 1 eb != $0->curr_write
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->lock
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtd_blktrans_dev)->lock

drivers/mtd/mtdswap.c mtdswap_store_eb() -> mtdswap_rb_add()

Type Parameter Key Value
PARAM_VALUE 0 d 4096-ptr_max
PARAM_VALUE 1 eb 4096-ptr_max
PARAM_VALUE 1 eb->active_count 1-u32max
PARAM_VALUE 2 idx 3
BUF_SIZE 0 d 256,264,944
BUF_SIZE 0 d 256,264,944
DATA_SOURCE 0 d $0
DATA_SOURCE 1 eb $1
PARAM_COMPARE 0 d->curr_write != $1
PARAM_COMPARE 1 eb != $0->curr_write
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &dev->lock
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct mtd_blktrans_dev)->lock