Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/mtd/nand/spi/micron.c mt29f2g01abagd_otp_is_locked() -> spinand_user_otp_read()

Type Parameter Key Value
PARAM_VALUE 0 spinand 4096-ptr_max
PARAM_VALUE 0 spinand->cur_target 0-4294967294
PARAM_VALUE 0 spinand->fact_otp->ops 0,4096-ptr_max
PARAM_VALUE 0 spinand->lock.dep_map->name 0-255
PARAM_VALUE 0 spinand->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 spinand->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 spinand->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 spinand->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 spinand->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 spinand->lock.wait_lock.owner (-1)
PARAM_VALUE 0 spinand->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 spinand->lock.wait_lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 0 spinand->spimem->spi->controller->bus_lock_mutex.dep_map->name 0-255
PARAM_VALUE 0 spinand->spimem->spi->controller->bus_lock_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 spinand->spimem->spi->controller->bus_lock_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 spinand->spimem->spi->controller->bus_lock_mutex.first_waiter->task->blocked_on 0
PARAM_VALUE 0 spinand->spimem->spi->controller->bus_lock_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 spinand->spimem->spi->controller->bus_lock_spinlock.rlock.dep_map->name 0-255
PARAM_VALUE 0 spinand->spimem->spi->controller->cur_msg_completion.wait.lock.owner (-1)
PARAM_VALUE 0 spinand->spimem->spi->controller->cur_msg_completion.wait.lock.owner_cpu u32max
PARAM_VALUE 0 spinand->spimem->spi->controller->cur_msg_completion.wait.task_list.prev->next 4096-ptr_max
PARAM_VALUE 0 spinand->spimem->spi->controller->cur_msg_completion.wait.task_list.prev->next->next 4096-ptr_max
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->lock->wait_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->op_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->rx_dma.ch->client_count 1-s32max
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->rx_dma.ch->completed_cookie 1
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->rx_dma.ch->cookie 1
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->rx_dma.ch->dbg_client_name 0
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->rx_dma.ch->device->owner->state 0-1,3-4294967295
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->rx_dma.ch->name 0
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->rx_dma.ch->route_data 0
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->tx_dma.ch->client_count 1-s32max
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->tx_dma.ch->completed_cookie 1
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->tx_dma.ch->cookie 1
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->tx_dma.ch->dbg_client_name 0
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->tx_dma.ch->device->owner->state 0-1,3-4294967295
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->tx_dma.ch->name 0
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->tx_dma.ch->route_data 0
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->wq->first_flusher->done.done 0-4294967295
PARAM_VALUE 0 spinand->spimem->spi->controller->dev.driver_data->wq->flusher_queue.prev->next 2906673126597898240
PARAM_VALUE 0 spinand->spimem->spi->controller->dma_rx->client_count 1-s32max
PARAM_VALUE 0 spinand->spimem->spi->controller->dma_tx->client_count 1-s32max
PARAM_VALUE 0 spinand->spimem->spi->controller->io_mutex->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 spinand->spimem->spi->controller->io_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 spinand->spimem->spi->controller->io_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 spinand->spimem->spi->controller->io_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 spinand->spimem->spi->controller->io_mutex.first_waiter->task->blocked_on 0
PARAM_VALUE 0 spinand->spimem->spi->controller->io_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 spinand->spimem->spi->controller->kworker->lock.owner (-1)
PARAM_VALUE 0 spinand->spimem->spi->controller->kworker->lock.owner_cpu u32max
PARAM_VALUE 0 spinand->spimem->spi->controller->kworker->work_list.prev->next 4096-ptr_max
PARAM_VALUE 0 spinand->spimem->spi->controller->kworker->work_list.prev->next->next 4096-ptr_max
PARAM_VALUE 0 spinand->spimem->spi->controller->pump_messages.node.next->prev 4096-ptr_max
PARAM_VALUE 0 spinand->spimem->spi->controller->pump_messages.worker->lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 0 spinand->spimem->spi->controller->queue.prev 4096-ptr_max
PARAM_VALUE 0 spinand->spimem->spi->controller->queue_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 spinand->user_otp->ops 0,4096-ptr_max
PARAM_VALUE 0 *spinand->spimem->spi->controller->cur_msg->context->msg.opt_state (-4611686018427387904)-4611686018427387903
PARAM_VALUE 1 ofs 0
PARAM_VALUE 2 len 0-4000000
PARAM_VALUE 3 retlen 7473825367148027904
PARAM_VALUE 4 buf 16,4096-ptr_max
BUF_SIZE 4 buf 0-8589934590
BUF_SIZE 4 buf 0-8589934590
CAPPED_DATA 0 spinand->cur_target 1
DATA_SOURCE 0 spinand $0
DATA_SOURCE 2 len r spinand_otp_page_size
DATA_SOURCE 4 buf r _kmalloc_noprof
CONSTRAINT 0 spinand->cur_target <2716
BIT_INFO 2 len 0x0,0x1ffffffff
HOST_DATA 0 spinand->spimem->spi->controller->dev.driver_data->ctx.modulctrl 0-4294967291[c]
HOST_DATA 0 spinand->spimem->spi->controller->dev.driver_data->para 0-255
BYTE_COUNT 4 ==buf2 8050
LOCK2 0 &spinand->lock
HALF_LOCKED2 &master->master.chrdev_lock
TYPE_LOCK (struct spinand_device)->lock

drivers/mtd/nand/spi/otp.c spinand_mtd_otp_read() -> (struct spinand_user_otp_ops)->read()

Type Parameter Key Value
PARAM_VALUE 0 spinand 4096-ptr_max
PARAM_VALUE 0 spinand->lock.dep_map->name 0-255
PARAM_VALUE 0 spinand->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 spinand->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 spinand->lock.first_waiter->task->blocked_on 0
PARAM_VALUE 0 spinand->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 spinand->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 spinand->lock.wait_lock.owner (-1)
PARAM_VALUE 0 spinand->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 spinand->user_otp 4096-ptr_max
PARAM_VALUE 0 spinand->user_otp->ops 4096-ptr_max
PARAM_VALUE 1 ofs 0-s64max
PARAM_VALUE 2 len 1-u64max
PARAM_VALUE 3 retlen 1650582699143004160,6084512727775047680
PARAM_VALUE 3 *retlen 0
BUF_SIZE 4 buf (-1)-s32max
BUF_SIZE 4 buf (-1)-s32max
CAPPED_DATA 0 &spinand->lock 1
DATA_SOURCE 0 spinand r mtd_to_spinand
DATA_SOURCE 1 ofs $1
DATA_SOURCE 2 len $2
DATA_SOURCE 3 retlen $3
DATA_SOURCE 4 buf $4
CONTAINER 0 -24-8-4176+0 $(-1)
PARAM_COMPARE 4 buf == $2
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 1 ofs 0-5294967294[c]
HOST_DATA 2 len 2-3999999[c]
USER_DATA 1 ofs 0-4294967294
USER_DATA 2 len 1-u32max[c]
BYTE_COUNT 4 ==buf2 8050
LOCK2 0 &spinand->lock
HALF_LOCKED2 _T->lock
TYPE_LOCK (struct spinand_device)->lock