Documented in 1 files:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/mtd/ubi/eba.c ubi_eba_atomic_leb_change() -> leb_write_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ubi | 4096-ptr_max |
| PARAM_VALUE | 0 | ubi->alc_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ubi->alc_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ubi->alc_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ubi->alc_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ubi->alc_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ubi->alc_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | ubi->alc_mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | ubi->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | ubi->fm_eba_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ubi->fm_eba_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ubi->fm_protect.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ubi->fm_protect.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ubi->ro_mode | 0 |
| PARAM_VALUE | 0 | ubi->vid_hdr_alsize | 0-4000000 |
| PARAM_VALUE | 0 | ubi->work_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ubi->work_sem.first_waiter->type | 0-1 |
| CAPPED_DATA | 0 | &ubi->alc_mutex | 1 |
| DATA_SOURCE | 0 | ubi | $0 |
| DATA_SOURCE | 2 | lnum | $2 |
| STR_LEN | 0 | ubi->dev.parent->driver_data | (-1) |
| STR_LEN | 0 | ubi->mtd | (-1) |
| STR_LEN | 0 | ubi->mtd->dev.driver_data | (-1) |
| STR_LEN | 0 | ubi->mtd->name | (-1) |
| NOSPEC | 2 | lnum | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | ubi->bgt_thread->dl.pi_se->dl_runtime | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->ec_hdr_alsize | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->mtd->erasesize | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->peb_count | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->peb_size | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->vid_hdr_aloffset | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->vtbl_size | |
| NO_OVERFLOW_SIMPLE | 2 | lnum->free | |
| UNITS | 1 | vol_id | unit_array_size |
| UNITS | 2 | lnum | unit_byte |
| LOCK2 | 0 | &ubi->alc_mutex | |
| HALF_LOCKED2 | 0 | &ubi->device_mutex | |
| TYPE_LOCK | (struct ubi_device)->alc_mutex |
drivers/mtd/ubi/eba.c ubi_eba_unmap_leb() -> leb_write_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ubi | 4096-ptr_max |
| PARAM_VALUE | 0 | ubi->dev.dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 0 | ubi->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | ubi->dev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | ubi->dev.dma_io_tlb_mem->force_bounce | 0-1 |
| PARAM_VALUE | 0 | ubi->dev.dma_io_tlb_mem->nslabs | 0-s64max |
| PARAM_VALUE | 0 | ubi->dev.dma_io_tlb_mem->phys_limit | 0-s64max |
| PARAM_VALUE | 0 | ubi->fm_eba_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ubi->fm_eba_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ubi->fm_protect.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ubi->fm_protect.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ubi->ro_mode | 0 |
| PARAM_VALUE | 0 | ubi->work_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ubi->work_sem.first_waiter->type | 0-1 |
| DATA_SOURCE | 0 | ubi | $0 |
| DATA_SOURCE | 2 | lnum | $2 |
| NOSPEC | 2 | lnum | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *ubi->peb_buf | 0-255 |
| USER_DATA | 2 | lnum | 0-2147483646[c] |
| NO_OVERFLOW_SIMPLE | 0 | ubi->bgt_thread->dl.pi_se->dl_runtime | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->mtd->erasesize | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->peb_count | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->peb_size | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->vid_hdr_aloffset | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->vid_hdr_alsize | |
| UNITS | 1 | vol_id | unit_array_size |
| HALF_LOCKED2 | &ubi->device_mutex | ||
| HALF_LOCKED2 | 0 | &ubi->device_mutex |
drivers/mtd/ubi/eba.c ubi_eba_write_leb() -> leb_write_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ubi | 4096-ptr_max |
| PARAM_VALUE | 0 | ubi->dev.dma_io_tlb_mem->can_grow | 0-1 |
| PARAM_VALUE | 0 | ubi->dev.dma_io_tlb_mem->debugfs | 0-s64max |
| PARAM_VALUE | 0 | ubi->dev.dma_io_tlb_mem->for_alloc | 0-1 |
| PARAM_VALUE | 0 | ubi->dev.dma_io_tlb_mem->force_bounce | 0-1 |
| PARAM_VALUE | 0 | ubi->dev.dma_io_tlb_mem->nslabs | 0-s64max |
| PARAM_VALUE | 0 | ubi->dev.dma_io_tlb_mem->phys_limit | 0-s64max |
| PARAM_VALUE | 0 | ubi->fm_eba_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ubi->fm_eba_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ubi->fm_protect.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ubi->fm_protect.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ubi->ro_mode | 0 |
| PARAM_VALUE | 0 | ubi->work_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ubi->work_sem.first_waiter->type | 0-1 |
| DATA_SOURCE | 0 | ubi | $0 |
| DATA_SOURCE | 2 | lnum | $2 |
| NOSPEC | 2 | lnum | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | lnum | 0-2147483646[c] |
| USER_DATA | 0 | *ubi->peb_buf | 0-255 |
| USER_DATA | 2 | lnum | 0-2147483646[c] |
| NO_OVERFLOW_SIMPLE | 0 | ubi->bgt_thread->dl.pi_se->dl_runtime | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->mtd->erasesize | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->peb_count | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->peb_size | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->vid_hdr_aloffset | |
| NO_OVERFLOW_SIMPLE | 0 | ubi->vid_hdr_alsize | |
| UNITS | 1 | vol_id | unit_array_size |
| UNITS | 2 | lnum | unit_byte |
| HALF_LOCKED2 | 0 | &ubi->device_mutex |
drivers/mtd/ubi/eba.c ubi_eba_write_leb_st() -> leb_write_lock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ubi | 4096-ptr_max |
| PARAM_VALUE | 0 | ubi->fm_eba_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ubi->fm_eba_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ubi->fm_protect.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ubi->fm_protect.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | ubi->ro_mode | 0 |
| PARAM_VALUE | 0 | ubi->vid_hdr_alsize | 0-4000000 |
| PARAM_VALUE | 0 | ubi->work_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ubi->work_sem.first_waiter->type | 0-1 |
| DATA_SOURCE | 0 | ubi | $0 |
| DATA_SOURCE | 2 | lnum | $2 |
| NO_OVERFLOW_SIMPLE | 0 | ubi->bgt_thread->dl.pi_se->dl_runtime | |
| UNITS | 1 | vol_id | unit_array_size |