Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/mtd/nand/ecc-mtk.c mtk_ecc_disable() -> mtk_ecc_wait_idle()

Type Parameter Key Value
PARAM_VALUE 0 ecc 4096-ptr_max
PARAM_VALUE 0 ecc->caps->num_ecc_strength 1-255
PARAM_VALUE 0 ecc->done.done 0-4294967293,u32max
PARAM_VALUE 0 ecc->done.wait.lock.owner (-1)
PARAM_VALUE 0 ecc->done.wait.lock.owner_cpu u32max
PARAM_VALUE 0 ecc->lock.dep_map->name 0-255
PARAM_VALUE 0 ecc->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ecc->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ecc->lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 op 0-1
CAPPED_DATA 0 ecc->caps->num_ecc_strength 1
DATA_SOURCE 0 ecc $0
FUZZY_MAX 1 op 1
HARD_MAX 1 op 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 0 &ecc->lock
HALF_LOCKED2 &mem->spi->controller->bus_lock_mutex
HALF_LOCKED2 &mem->spi->controller->io_mutex
TYPE_LOCK (struct mtk_ecc)->lock

drivers/mtd/nand/ecc-mtk.c mtk_ecc_enable() -> mtk_ecc_wait_idle()

Type Parameter Key Value
PARAM_VALUE 0 ecc->lock.dep_map->name 0-255
PARAM_VALUE 0 ecc->lock.first_waiter 0,4096-5159360019465732095,5159360019465732097-ptr_max
PARAM_VALUE 0 ecc->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ecc->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 ecc->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ecc->lock.wait_lock.owner (-1)
PARAM_VALUE 0 ecc->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 1 op 0-1
CAPPED_DATA 0 &ecc->lock 1
DATA_SOURCE 0 ecc $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &ecc->lock
HALF_LOCKED2 &mem->spi->controller->bus_lock_mutex
HALF_LOCKED2 &mem->spi->controller->io_mutex
TYPE_LOCK (struct mtk_ecc)->lock

drivers/mtd/nand/ecc-mtk.c mtk_ecc_encode() -> mtk_ecc_wait_idle()

Type Parameter Key Value
PARAM_VALUE 0 ecc 4096-ptr_max
PARAM_VALUE 0 ecc->caps->num_ecc_strength 1-255
PARAM_VALUE 0 ecc->dev->dma_io_tlb_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ecc->dev->dma_io_tlb_pools.next 4096-ptr_max
PARAM_VALUE 0 ecc->dev->dma_io_tlb_pools.next->prev 4096-ptr_max
PARAM_VALUE 0 ecc->dev->dma_io_tlb_pools.next->prev->prev 4096-ptr_max
PARAM_VALUE 0 ecc->dev->dma_uses_io_tlb 1
PARAM_VALUE 0 ecc->dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 ecc->dev->iommu->pci_32bit_workaround 0-1
PARAM_VALUE 0 ecc->done.done 0-4294967293,u32max
PARAM_VALUE 0 ecc->done.wait.lock.dep_map->name 0-255
PARAM_VALUE 0 ecc->done.wait.lock.owner (-1)
PARAM_VALUE 0 ecc->done.wait.lock.owner_cpu u32max
PARAM_VALUE 0 ecc->done.wait.task_list.next 4096-ptr_max
PARAM_VALUE 0 ecc->done.wait.task_list.next->next 4096-ptr_max
PARAM_VALUE 0 ecc->done.wait.task_list.prev->next 4096-ptr_max
PARAM_VALUE 0 ecc->done.wait.task_list.prev->next->next 4096-ptr_max
PARAM_VALUE 0 ecc->done.wait.task_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 ecc->lock.dep_map->name 0-255
PARAM_VALUE 0 ecc->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 ecc->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ecc->lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 op 0
CAPPED_DATA 0 ecc->caps->num_ecc_strength 1
DATA_SOURCE 0 ecc $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &ecc->lock
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock
TYPE_LOCK (struct mtk_ecc)->lock

drivers/mtd/nand/ecc-mtk.c mtk_ecc_hw_init() -> mtk_ecc_wait_idle()

Type Parameter Key Value
PARAM_VALUE 0 ecc 4096-ptr_max
PARAM_VALUE 0 ecc->clk 0,4096-ptr_max
PARAM_VALUE 0 ecc->clk->core->dev->power.deferred_resume 0-1
PARAM_VALUE 0 ecc->clk->core->dev->power.idle_notification 0-1
PARAM_VALUE 0 ecc->clk->core->dev->power.request 0-4
PARAM_VALUE 0 ecc->clk->core->dev->power.request_pending 0-1
PARAM_VALUE 0 ecc->clk->core->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 ecc->clk->core->dev->power.runtime_status s32min-s32max
PARAM_VALUE 0 ecc->clk->core->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 ecc->clk->core->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 ecc->clk->core->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ecc->clk->core->enable_count 0-4294967295
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.deferred_resume 0-1
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.idle_notification 0-1
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.request 0-4
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.request_pending 0-1
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.runtime_status s32min-s32max
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ecc->clk->core->parent->enable_count 0-4294967295
PARAM_VALUE 0 ecc->clk->core->parent->prepare_count 0-4294967295
PARAM_VALUE 0 ecc->clk->core->parent->protect_count 0-4294967295
PARAM_VALUE 0 ecc->clk->core->prepare_count 1-4294967295
PARAM_VALUE 0 ecc->clk->core->protect_count 0-4294967295
PARAM_VALUE 1 op 0
BUF_SIZE 0 ecc s32min-(-2),1-s32max
BUF_SIZE 0 ecc s32min-(-2),1-s32max
DATA_SOURCE 0 ecc $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 ecc unit_byte

drivers/mtd/nand/ecc-mtk.c mtk_ecc_hw_init() -> mtk_ecc_wait_idle()

Type Parameter Key Value
PARAM_VALUE 0 ecc 4096-ptr_max
PARAM_VALUE 0 ecc->clk 0,4096-ptr_max
PARAM_VALUE 0 ecc->clk->core->dev->power.deferred_resume 0-1
PARAM_VALUE 0 ecc->clk->core->dev->power.idle_notification 0-1
PARAM_VALUE 0 ecc->clk->core->dev->power.request 0-4
PARAM_VALUE 0 ecc->clk->core->dev->power.request_pending 0-1
PARAM_VALUE 0 ecc->clk->core->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 ecc->clk->core->dev->power.runtime_status s32min-s32max
PARAM_VALUE 0 ecc->clk->core->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 ecc->clk->core->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 ecc->clk->core->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ecc->clk->core->enable_count 0-4294967295
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.deferred_resume 0-1
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.idle_notification 0-1
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.request 0-4
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.request_pending 0-1
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.runtime_status s32min-s32max
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 ecc->clk->core->parent->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 ecc->clk->core->parent->enable_count 0-4294967295
PARAM_VALUE 0 ecc->clk->core->parent->prepare_count 0-4294967295
PARAM_VALUE 0 ecc->clk->core->parent->protect_count 0-4294967295
PARAM_VALUE 0 ecc->clk->core->prepare_count 1-4294967295
PARAM_VALUE 0 ecc->clk->core->protect_count 0-4294967295
PARAM_VALUE 1 op 1
BUF_SIZE 0 ecc s32min-(-2),1-s32max
BUF_SIZE 0 ecc s32min-(-2),1-s32max
DATA_SOURCE 0 ecc $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 ecc unit_byte