Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/mtd/nand/raw/lpc32xx_mlc.c lpc32xx_nand_probe() -> lpc32xx_wp_enable()

Type Parameter Key Value
PARAM_VALUE 0 host 4096-ptr_max
PARAM_VALUE 0 host->clk 0,4096-u64max
PARAM_VALUE 0 host->clk->core->dev->power.deferred_resume 0-1
PARAM_VALUE 0 host->clk->core->dev->power.idle_notification 0-1
PARAM_VALUE 0 host->clk->core->dev->power.request 0-4294967295
PARAM_VALUE 0 host->clk->core->dev->power.request_pending 0-1
PARAM_VALUE 0 host->clk->core->dev->power.runtime_error s32min-s32max
PARAM_VALUE 0 host->clk->core->dev->power.runtime_status s32min-s32max
PARAM_VALUE 0 host->clk->core->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 host->clk->core->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 host->clk->core->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 host->clk->core->new_parent_index 0-254
PARAM_VALUE 0 host->clk->core->owner->refcnt.counter 0-s32max
PARAM_VALUE 0 host->clk->core->parent->dev->power.deferred_resume 0-1
PARAM_VALUE 0 host->clk->core->parent->dev->power.idle_notification 0-1
PARAM_VALUE 0 host->clk->core->parent->dev->power.request 0-4294967295
PARAM_VALUE 0 host->clk->core->parent->dev->power.request_pending 0-1
PARAM_VALUE 0 host->clk->core->parent->dev->power.runtime_error s32min-s32max
PARAM_VALUE 0 host->clk->core->parent->dev->power.runtime_status s32min-s32max
PARAM_VALUE 0 host->clk->core->parent->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 host->clk->core->parent->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 host->clk->core->parent->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 host->clk->core->parent->prepare_count 0-4294967295
PARAM_VALUE 0 host->clk->core->parent->protect_count 0-4294967295
PARAM_VALUE 0 host->clk->core->prepare_count 0-4294967295
PARAM_VALUE 0 host->comp_controller.done 0
PARAM_VALUE 0 host->comp_controller.wait.lock.magic 0,3735899821
PARAM_VALUE 0 host->comp_controller.wait.lock.owner 0,(-1)
PARAM_VALUE 0 host->comp_controller.wait.lock.owner_cpu 0,u32max
PARAM_VALUE 0 host->comp_controller.wait.task_list.next->next 4096-ptr_max
PARAM_VALUE 0 host->comp_controller.wait.task_list.prev->next 4096-ptr_max
PARAM_VALUE 0 host->comp_controller.wait.task_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 host->comp_nand.done 0
PARAM_VALUE 0 host->comp_nand.wait.lock.magic 0,3735899821
PARAM_VALUE 0 host->comp_nand.wait.lock.owner 0,(-1)
PARAM_VALUE 0 host->comp_nand.wait.lock.owner_cpu 0,u32max
PARAM_VALUE 0 host->comp_nand.wait.task_list.next 0,4096-ptr_max
PARAM_VALUE 0 host->comp_nand.wait.task_list.next->next 4096-ptr_max
PARAM_VALUE 0 host->comp_nand.wait.task_list.prev 0,4096-ptr_max
PARAM_VALUE 0 host->comp_nand.wait.task_list.prev->next 4096-ptr_max
PARAM_VALUE 0 host->comp_nand.wait.task_list.prev->prev 4096-ptr_max
PARAM_VALUE 0 host->dma_chan 0,4096-u64max
PARAM_VALUE 0 host->dma_chan->router->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 host->dma_slave_config.device_fc 0
PARAM_VALUE 0 host->dma_slave_config.direction 0,2
PARAM_VALUE 0 host->dma_slave_config.dst_addr 0
PARAM_VALUE 0 host->dma_slave_config.dst_addr_width 0,4
PARAM_VALUE 0 host->dma_slave_config.dst_maxburst 0,128
PARAM_VALUE 0 host->dma_slave_config.peripheral_size 0,12
PARAM_VALUE 0 host->dma_slave_config.src_addr 0
PARAM_VALUE 0 host->dma_slave_config.src_addr_width 0,4
PARAM_VALUE 0 host->dma_slave_config.src_maxburst 0,128
PARAM_VALUE 0 host->io_base 4096-ptr_max
PARAM_VALUE 0 host->irq (-4095)-s32max
PARAM_VALUE 0 host->nand_chip.base.ops->erase 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.base.ops->isbad 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.controller 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.controller->lock.dep_map->name 0-255
PARAM_VALUE 0 host->nand_chip.controller->lock.magic 4096-ptr_max
PARAM_VALUE 0 host->nand_chip.controller->supported_op.data_only_read 1
PARAM_VALUE 0 host->nand_chip.cur_cs (-1)-0
PARAM_VALUE 0 host->nand_chip.data_buf 0
PARAM_VALUE 0 host->nand_chip.ecc.algo 0-3
PARAM_VALUE 0 host->nand_chip.id.len 0-8
PARAM_VALUE 0 host->nand_chip.lock.dep_map->name 0-255
PARAM_VALUE 0 host->nand_chip.lock.first_waiter 0
PARAM_VALUE 0 host->nand_chip.lock.magic 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.lock.osq.tail.counter 0
PARAM_VALUE 0 host->nand_chip.lock.owner.counter 0
PARAM_VALUE 0 host->nand_chip.manufacturer.desc 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.manufacturer.desc->id 1,4,7,32,44,69,137,143,146,152,155,173,194,200,236,239
PARAM_VALUE 0 host->nand_chip.manufacturer.priv 0
PARAM_VALUE 0 host->nand_chip.parameters.model 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.parameters.onfi 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.priv->dma_error 0
PARAM_VALUE 0 host->nand_chip.priv->dmabuf->_refcount.counter s32min-s32max
PARAM_VALUE 0 host->nand_chip.priv->dmabuf->page_type 0-4294967295
PARAM_VALUE 0 host->nand_chip.priv->pdev->dev.dma_mem->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 host->nand_chip.resume_wq.head.next 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.resume_wq.head.next->next 4096-ptr_max
PARAM_VALUE 0 host->nand_chip.resume_wq.head.prev 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.resume_wq.head.prev->next 4096-ptr_max
PARAM_VALUE 0 host->nand_chip.resume_wq.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 host->ncfg 4096-ptr_max
PARAM_VALUE 0 host->ncfg->busy_delay 1-u32max
PARAM_VALUE 0 host->ncfg->nand_ta 1-u32max
PARAM_VALUE 0 host->ncfg->num_parts 0
PARAM_VALUE 0 host->ncfg->rd_high 1-u32max
PARAM_VALUE 0 host->ncfg->rd_low 1-u32max
PARAM_VALUE 0 host->ncfg->tcea_delay 1-u32max
PARAM_VALUE 0 host->ncfg->wr_high 1-u32max
PARAM_VALUE 0 host->ncfg->wr_low 1-u32max
PARAM_VALUE 0 host->pdev 4096-ptr_max
PARAM_VALUE 0 host->pdev->dev.devres_head.prev 4096-ptr_max
PARAM_VALUE 0 host->wp_gpio 0,4096-ptr_max
PARAM_VALUE 0 *host->nand_chip->id.data 0-255
BUF_SIZE 0 host 4216
BUF_SIZE 0 host->clk (-1),24,72
BUF_SIZE 0 host->irq s32min-(-1),1-s32max
BUF_SIZE 0 host->ncfg 48
BUF_SIZE 0 host->pdata s32min-(-2),1-s32max
BUF_SIZE 0 host->wp_gpio s32min-(-1),1-s32max
CAPPED_DATA 0 host->clk 1
DATA_SOURCE 0 host r devm_kzalloc
FUZZY_MAX 0 host->comp_controller.wait.lock.magic 0
FUZZY_MAX 0 host->comp_controller.wait.lock.owner_cpu 0
FUZZY_MAX 0 host->comp_nand.wait.lock.magic 0
FUZZY_MAX 0 host->comp_nand.wait.lock.owner_cpu 0
FUZZY_MAX 0 host->dma_slave_config.direction 0
FUZZY_MAX 0 host->dma_slave_config.dst_addr_width 0
FUZZY_MAX 0 host->dma_slave_config.dst_maxburst 0
FUZZY_MAX 0 host->dma_slave_config.peripheral_size 0
FUZZY_MAX 0 host->dma_slave_config.src_addr_width 0
FUZZY_MAX 0 host->dma_slave_config.src_maxburst 0
FUZZY_MAX 0 host->nand_chip.ecc.algo 0
FUZZY_MAX 0 host->nand_chip.id.len 0
MEM_ZERO 0 host
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 host unit_byte

drivers/mtd/nand/raw/lpc32xx_mlc.c lpc32xx_nand_remove() -> lpc32xx_wp_enable()

Type Parameter Key Value
PARAM_VALUE 0 host 4096-ptr_max
PARAM_VALUE 0 host->clk 0,4096-u64max
PARAM_VALUE 0 host->clk->core->dev->power.deferred_resume 0-1
PARAM_VALUE 0 host->clk->core->dev->power.idle_notification 0-1
PARAM_VALUE 0 host->clk->core->dev->power.request 0-4
PARAM_VALUE 0 host->clk->core->dev->power.request_pending 0-1
PARAM_VALUE 0 host->clk->core->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 host->clk->core->dev->power.runtime_status 0,2
PARAM_VALUE 0 host->clk->core->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 host->clk->core->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 host->clk->core->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 host->clk->core->enable_count 0-4294967295
PARAM_VALUE 0 host->clk->core->new_parent_index 0-254
PARAM_VALUE 0 host->clk->core->owner->refcnt.counter 0-s32max
PARAM_VALUE 0 host->clk->core->parent->dev->power.deferred_resume 0-1
PARAM_VALUE 0 host->clk->core->parent->dev->power.idle_notification 0-1
PARAM_VALUE 0 host->clk->core->parent->dev->power.request 0-4294967295
PARAM_VALUE 0 host->clk->core->parent->dev->power.request_pending 0-1
PARAM_VALUE 0 host->clk->core->parent->dev->power.runtime_error s32min-s32max
PARAM_VALUE 0 host->clk->core->parent->dev->power.runtime_status 0,2
PARAM_VALUE 0 host->clk->core->parent->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 host->clk->core->parent->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 host->clk->core->parent->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 host->clk->core->parent->enable_count 0-4294967295
PARAM_VALUE 0 host->clk->core->parent->prepare_count 0-4294967295
PARAM_VALUE 0 host->clk->core->parent->protect_count 0-4294967295
PARAM_VALUE 0 host->clk->core->prepare_count 0-4294967295
PARAM_VALUE 0 host->clk->core->protect_count 0-4294967295
PARAM_VALUE 0 host->dma_chan->router->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 host->nand_chip.badblock_pattern 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.controller 4096-ptr_max
PARAM_VALUE 0 host->nand_chip.manufacturer.priv 0
PARAM_VALUE 0 host->nand_chip.priv->dmabuf->_refcount.counter s32min-s32max
PARAM_VALUE 0 host->nand_chip.priv->dmabuf->page_type 0-4294967295
PARAM_VALUE 0 host->nand_chip.priv->pdev->dev.dma_mem->spinlock.rlock.dep_map->name 0-255
BUF_SIZE 0 host s32min-(-2),1-s32max
BUF_SIZE 0 host s32min-(-2),1-s32max
CAPPED_DATA 0 host 1
CAPPED_DATA 0 host->clk 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 host unit_byte
HALF_LOCKED2 &_dev->mutex

drivers/mtd/nand/raw/lpc32xx_mlc.c lpc32xx_nand_suspend() -> lpc32xx_wp_enable()

Type Parameter Key Value
BUF_SIZE 0 host s32min-(-2),1-s32max
BUF_SIZE 0 host s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 host unit_byte
HALF_LOCKED2 &dev->mutex

drivers/mtd/nand/raw/lpc32xx_slc.c lpc32xx_nand_probe() -> lpc32xx_wp_enable()

Type Parameter Key Value
PARAM_VALUE 0 host 4096-ptr_max
PARAM_VALUE 0 host->clk 0,4096-u64max
PARAM_VALUE 0 host->clk->core->dev->power.deferred_resume 0-1
PARAM_VALUE 0 host->clk->core->dev->power.idle_notification 0-1
PARAM_VALUE 0 host->clk->core->dev->power.request 0-4294967295
PARAM_VALUE 0 host->clk->core->dev->power.request_pending 0-1
PARAM_VALUE 0 host->clk->core->dev->power.runtime_error s32min-s32max
PARAM_VALUE 0 host->clk->core->dev->power.runtime_status s32min-s32max
PARAM_VALUE 0 host->clk->core->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 host->clk->core->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 host->clk->core->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 host->dma_buf_len 0,4160
PARAM_VALUE 0 host->dma_chan 0,4096-u64max
PARAM_VALUE 0 host->dma_chan->completed_cookie 1
PARAM_VALUE 0 host->dma_chan->cookie 1
PARAM_VALUE 0 host->dma_chan->dbg_client_name 0
PARAM_VALUE 0 host->dma_chan->device->dev->kobj.release->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 host->dma_chan->device->global_node.next->prev 4096-ptr_max
PARAM_VALUE 0 host->dma_chan->name 0
PARAM_VALUE 0 host->dma_chan->route_data 0
PARAM_VALUE 0 host->dma_chan->router 0,4096-ptr_max
PARAM_VALUE 0 host->dma_chan->router->dev->driver_data->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 host->dma_chan->router->dev->driver_data->regmap->cache->cached_rbnode->base_reg 0-4294967295
PARAM_VALUE 0 host->dma_chan->router->dev->driver_data->regmap->cache->cached_rbnode->blklen 0-4294967295
PARAM_VALUE 0 host->dma_chan->router->dev->driver_data->regmap->cache_dirty 0-1
PARAM_VALUE 0 host->dma_chan->router->dev->power.request 0-4
PARAM_VALUE 0 host->dma_chan->router->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 host->dma_chan->router->dev->power.runtime_status 0,2
PARAM_VALUE 0 host->dma_chan->router->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 host->io_base 4096-ptr_max
PARAM_VALUE 0 host->nand_chip.base.ops->erase 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.base.ops->isbad 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.controller 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.controller->lock.dep_map->name 0-255
PARAM_VALUE 0 host->nand_chip.controller->lock.magic 4096-ptr_max
PARAM_VALUE 0 host->nand_chip.controller->supported_op.data_only_read 1
PARAM_VALUE 0 host->nand_chip.cur_cs (-1)-0
PARAM_VALUE 0 host->nand_chip.data_buf 0
PARAM_VALUE 0 host->nand_chip.ecc.algo 0-3
PARAM_VALUE 0 host->nand_chip.id.len 0-8
PARAM_VALUE 0 host->nand_chip.lock.dep_map->name 0-255
PARAM_VALUE 0 host->nand_chip.lock.first_waiter 0
PARAM_VALUE 0 host->nand_chip.lock.magic 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.lock.osq.tail.counter 0
PARAM_VALUE 0 host->nand_chip.lock.owner.counter 0
PARAM_VALUE 0 host->nand_chip.manufacturer.desc 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.manufacturer.desc->id 1,4,7,32,44,69,137,143,146,152,155,173,194,200,236,239
PARAM_VALUE 0 host->nand_chip.manufacturer.priv 0
PARAM_VALUE 0 host->nand_chip.parameters.model 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.parameters.onfi 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.priv->dma_error 0
PARAM_VALUE 0 host->nand_chip.priv->dmabuf->_refcount.counter s32min-s32max
PARAM_VALUE 0 host->nand_chip.priv->dmabuf->page_type 0-4294967295
PARAM_VALUE 0 host->nand_chip.priv->pdev->dev.dma_mem->spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 host->nand_chip.resume_wq.head.next 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.resume_wq.head.next->next 4096-ptr_max
PARAM_VALUE 0 host->nand_chip.resume_wq.head.prev 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.resume_wq.head.prev->next 4096-ptr_max
PARAM_VALUE 0 host->nand_chip.resume_wq.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 host->ncfg 4096-ptr_max
PARAM_VALUE 0 host->ncfg->num_parts 0
PARAM_VALUE 0 host->ncfg->rdr_clks 1-u32max
PARAM_VALUE 0 host->ncfg->rhold 1-u32max
PARAM_VALUE 0 host->ncfg->rsetup 1-u32max
PARAM_VALUE 0 host->ncfg->rwidth 1-u32max
PARAM_VALUE 0 host->ncfg->wdr_clks 1-u32max
PARAM_VALUE 0 host->ncfg->whold 1-u32max
PARAM_VALUE 0 host->ncfg->wsetup 1-u32max
PARAM_VALUE 0 host->ncfg->wwidth 1-u32max
PARAM_VALUE 0 host->wp_gpio 0,4096-ptr_max
PARAM_VALUE 0 *host->nand_chip->id.data 0-255
BUF_SIZE 0 host 3984
BUF_SIZE 0 host->clk (-1),1-s32max
BUF_SIZE 0 host->data_buf 0,4160
BUF_SIZE 0 host->ncfg 48
BUF_SIZE 0 host->pdata s32min-(-2),1-s32max
BUF_SIZE 0 host->wp_gpio s32min-(-1),1-s32max
CAPPED_DATA 0 host->wp_gpio 1
DATA_SOURCE 0 host r devm_kzalloc
FUZZY_MAX 0 host->dma_buf_len 4160
FUZZY_MAX 0 host->nand_chip.ecc.algo 0
FUZZY_MAX 0 host->nand_chip.id.len 0
HARD_MAX 0 host->dma_buf_len 4160
MEM_ZERO 0 host
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/mtd/nand/raw/lpc32xx_slc.c lpc32xx_nand_remove() -> lpc32xx_wp_enable()

Type Parameter Key Value
PARAM_VALUE 0 host 4096-ptr_max
PARAM_VALUE 0 host->dma_chan 4096-ptr_max
PARAM_VALUE 0 host->dma_chan->completed_cookie 1
PARAM_VALUE 0 host->dma_chan->cookie 1
PARAM_VALUE 0 host->dma_chan->dbg_client_name 0
PARAM_VALUE 0 host->dma_chan->device 4096-ptr_max
PARAM_VALUE 0 host->dma_chan->device->dev->kobj.release->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 host->dma_chan->device->global_node.next->prev 4096-ptr_max
PARAM_VALUE 0 host->dma_chan->name 0
PARAM_VALUE 0 host->dma_chan->route_data 0
PARAM_VALUE 0 host->dma_chan->router 0,4096-ptr_max
PARAM_VALUE 0 host->dma_chan->router->dev->driver_data->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 host->dma_chan->router->dev->driver_data->regmap->cache->cached_rbnode->base_reg 0-4294967295
PARAM_VALUE 0 host->dma_chan->router->dev->driver_data->regmap->cache->cached_rbnode->blklen 0-4294967295
PARAM_VALUE 0 host->dma_chan->router->dev->driver_data->regmap->cache_dirty 0-1
PARAM_VALUE 0 host->dma_chan->router->dev->power.request 0-4
PARAM_VALUE 0 host->dma_chan->router->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 host->dma_chan->router->dev->power.runtime_status 0,2
PARAM_VALUE 0 host->dma_chan->router->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 host->dma_chan->slave 0
PARAM_VALUE 0 host->nand_chip.badblock_pattern 0,4096-ptr_max
PARAM_VALUE 0 host->nand_chip.controller 4096-ptr_max
PARAM_VALUE 0 host->nand_chip.manufacturer.priv 0
PARAM_VALUE 0 host->nand_chip.priv->dmabuf->_refcount.counter s32min-s32max
PARAM_VALUE 0 host->nand_chip.priv->dmabuf->page_type 0-4294967295
PARAM_VALUE 0 host->nand_chip.priv->pdev->dev.dma_mem->spinlock.rlock.dep_map->name 0-255
BUF_SIZE 0 host s32min-(-2),1-s32max
BUF_SIZE 0 host s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 host unit_byte
HALF_LOCKED2 &_dev->mutex

drivers/mtd/nand/raw/lpc32xx_slc.c lpc32xx_nand_suspend() -> lpc32xx_wp_enable()

Type Parameter Key Value
PARAM_VALUE 0 host 4096-ptr_max
BUF_SIZE 0 host s32min-(-2),1-s32max
BUF_SIZE 0 host s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 host unit_byte
HALF_LOCKED2 &dev->mutex