Defined in 2 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/power/supply/stc3117_fuel_gauge.c stc3117_init() -> ram_write()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->battery 4096-ptr_max
PARAM_VALUE 0 mtd->battery->desc 4096-ptr_max
PARAM_VALUE 0 mtd->battery->desc->name 1-u64max
PARAM_VALUE 0 mtd->battery->desc->num_properties 1-u64max
PARAM_VALUE 0 mtd->battery->desc->properties 1-u64max
PARAM_VALUE 0 mtd->battery->dev.devres_head.next->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.devres_head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.devres_head.prev->prev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.dma_io_tlb_mem->dyn_alloc.data.counter 9007199250546704
PARAM_VALUE 0 mtd->battery->dev.dma_io_tlb_mem->dyn_alloc.entry.prev 1473117533515866344
PARAM_VALUE 0 mtd->battery->dev.dma_io_tlb_mem->dyn_alloc.func 1583282886040592384
PARAM_VALUE 0 mtd->battery->dev.dma_io_tlb_mem->pools.prev 1473117533515866320
PARAM_VALUE 0 mtd->battery->dev.dma_io_tlb_pools.next->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.dma_io_tlb_pools.prev->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.dma_io_tlb_pools.prev->prev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.dma_mem->pfn_base 0-s64max
PARAM_VALUE 0 mtd->battery->dev.dma_pools.next->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.dma_pools.prev->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.dma_pools.prev->prev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.flags 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.fwnode->dev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.fwnode->dev->fwnode 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.fwnode->dev->p 1-u64max
PARAM_VALUE 0 mtd->battery->dev.fwnode->dev->power.set_latency_tolerance 5740181548905971712
PARAM_VALUE 0 mtd->battery->dev.fwnode->suppliers.next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.fwnode->suppliers.next->prev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.kobj->name 0-255
PARAM_VALUE 0 mtd->battery->dev.kobj->release.timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.kobj.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.kobj.release->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.kobj.release.timer.is_hard 0-1
PARAM_VALUE 0 mtd->battery->dev.kobj.release.timer.is_lazy 0-1
PARAM_VALUE 0 mtd->battery->dev.kobj.release.timer.is_queued 0-1
PARAM_VALUE 0 mtd->battery->dev.kobj.release.timer.is_soft 0-1
PARAM_VALUE 0 mtd->battery->dev.kobj.release.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 mtd->battery->dev.links.consumers.next->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.links.consumers.prev->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.links.consumers.prev->prev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.links.defer_sync.next->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.links.defer_sync.prev->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.links.defer_sync.prev->prev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.links.suppliers.next->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.links.suppliers.prev->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.links.suppliers.prev->prev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.p->klist_children.get 2213798222526185472
PARAM_VALUE 0 mtd->battery->dev.p->klist_children.put 3126867300421632000
PARAM_VALUE 0 mtd->battery->dev.p->knode_class.n_ref.refcount.refs.counter 1
PARAM_VALUE 0 mtd->battery->dev.p->knode_parent.n_ref.refcount.refs.counter 1
PARAM_VALUE 0 mtd->battery->dev.parent->kobj.release->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.pins->p 0-s64max
PARAM_VALUE 0 mtd->battery->dev.power.entry.next->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.power.entry.prev->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.power.entry.prev->prev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.power.wait_queue.head.next->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.power.wait_queue.head.prev->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->dev.power.wait_queue.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->extensions.next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->extensions.next->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->extensions.prev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->extensions.prev->next 4096-ptr_max
PARAM_VALUE 0 mtd->battery->extensions.prev->prev 4096-ptr_max
PARAM_VALUE 0 mtd->battery->extensions_sem.dep_map->name 0-255
PARAM_VALUE 0 mtd->battery->extensions_sem.magic 4096-ptr_max
PARAM_VALUE 0 mtd->battery->initialized 1
PARAM_VALUE 0 mtd->battery->trig->activate 4620375215100928000
PARAM_VALUE 0 mtd->battery->tzd->last_temperature s32min-s32max
PARAM_VALUE 0 mtd->battery->tzd->mode 0-4294967295
PARAM_VALUE 0 mtd->battery->tzd->notify_event 0-4294967295
PARAM_VALUE 0 mtd->battery->tzd->passive s32min-s32max
PARAM_VALUE 0 mtd->battery->tzd->prev_high_trip s32min-s32max
PARAM_VALUE 0 mtd->battery->tzd->prev_low_trip s32min-s32max
PARAM_VALUE 0 mtd->battery->tzd->state 0-255
PARAM_VALUE 0 mtd->battery->tzd->temperature s32min-s32max
PARAM_VALUE 0 mtd->battery_info.sense_resistor 0
PARAM_VALUE 0 mtd->cc_cnf 0
PARAM_VALUE 0 mtd->client 4096-ptr_max
PARAM_VALUE 0 mtd->client->adapter 4096-ptr_max
PARAM_VALUE 0 mtd->client->debugfs 4096-u64max
PARAM_VALUE 0 mtd->client->dev.devres_head.prev 4096-ptr_max
PARAM_VALUE 0 mtd->client->devres_group_id 4096-ptr_max
PARAM_VALUE 0 mtd->presence 1
PARAM_VALUE 0 mtd->ram_data.ram_bytes 0
PARAM_VALUE 0 mtd->ram_data.reg.cc_cnf 0
PARAM_VALUE 0 mtd->ram_data.reg.state 0
PARAM_VALUE 0 mtd->ram_data.reg.testword 21417
PARAM_VALUE 0 mtd->ram_data.reg.vm_cnf 0
PARAM_VALUE 0 mtd->regmap 4096-ptr_max
PARAM_VALUE 0 mtd->regmap->async_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 mtd->regmap->cache_dirty 0-1
PARAM_VALUE 0 mtd->regmap->lock 4096-ptr_max
PARAM_VALUE 0 mtd->regmap->unlock 4096-ptr_max
PARAM_VALUE 0 mtd->vm_cnf 0
PARAM_VALUE 0 *mtd->ram_data.ram_bytes 0-255
PARAM_VALUE 0 *mtd->regmap->work_buf (-4611686018427387904)-4611686018427387903
BUF_SIZE 0 mtd 312
BUF_SIZE 0 mtd->battery 2248
CAPPED_DATA 0 mtd->battery->desc->num_properties 1
CAPPED_DATA 0 mtd->client->irq 1
DATA_SOURCE 0 mtd $0
MEM_ZERO 0 mtd
MEM_ZERO 0 mtd->ram_data.ram_bytes
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 mtd->battery->battery_info->resist_table_size
NO_OVERFLOW_SIMPLE 0 mtd->battery->desc->num_properties
NO_OVERFLOW_SIMPLE 0 mtd->client->irq

drivers/power/supply/stc3117_fuel_gauge.c stc3117_task() -> ram_write()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->presence 0
PARAM_VALUE 0 mtd->ram_data.reg.state 0
PARAM_VALUE 0 mtd->ram_data.reg.testword 0
PARAM_VALUE 0 mtd->regmap 4096-ptr_max
PARAM_VALUE 0 mtd->regmap->cache_dirty 0-1
PARAM_VALUE 0 mtd->regmap->lock 4096-ptr_max
PARAM_VALUE 0 mtd->regmap->unlock 4096-ptr_max
PARAM_VALUE 0 *mtd->ram_data.ram_bytes 0-255
PARAM_VALUE 0 *mtd->regmap->work_buf (-4611686018427387904)-4611686018427387903
DATA_SOURCE 0 mtd $0
HALF_LOCKED2 &pool->lock

drivers/power/supply/stc3117_fuel_gauge.c stc3117_task() -> ram_write()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->presence 1
PARAM_VALUE 0 mtd->ram_data.reg.testword 0,21417
PARAM_VALUE 0 mtd->regmap 4096-ptr_max
PARAM_VALUE 0 mtd->regmap->cache_dirty 0-1
PARAM_VALUE 0 mtd->regmap->lock 4096-ptr_max
PARAM_VALUE 0 mtd->regmap->unlock 4096-ptr_max
PARAM_VALUE 0 *mtd->ram_data.ram_bytes 0-255
PARAM_VALUE 0 *mtd->regmap->work_buf (-4611686018427387904)-4611686018427387903
DATA_SOURCE 0 mtd $0
FUZZY_MAX 0 mtd->ram_data.reg.testword 21417
BIT_INFO 0 mtd->ram_data.reg.testword 0x0,0x53a9
HALF_LOCKED2 &pool->lock

drivers/mtd/mtdcore.c mtd_write_oob_std() -> (struct mtd_info)->_write()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->_write_oob 0
PARAM_VALUE 0 mtd->parent 0
PARAM_VALUE 0 mtd->parent->parent 0
PARAM_VALUE 3 retlen 4096-ptr_max
BUF_SIZE 0 mtd (-1),2448
BUF_SIZE 0 mtd (-1),2448
BUF_SIZE 4 buf 1-s32max
DATA_SOURCE 0 mtd r mtd_get_master
DATA_SOURCE 1 to r mtd_get_master_ofs
CONTAINER 0 -144+0 $(-1)
PARAM_COMPARE 1 to == $1
NOSPEC 2 len
NOSPEC 2 len
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 1 to 0-5294967294[c]
HOST_DATA 2 len 0-u64max[c]
HOST_DATA 3 *retlen 0-157121500839936,18446744071562067968-u64max[c]
USER_DATA 1 to 0-s64max
USER_DATA 2 len 0-u64max[c]
USER_DATA 3 *retlen 0-u64max
USER_PTR 3 retlen
USER_PTR 4 buf
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &ftl->mutex
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 &mbd->lock