Defined in 1 files as a prototype:

Defined in 1 files as a member:

Defined in 8 files as a function:

Referenced in 19 files:

Smatch caller information:

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> do_write()

Type Parameter Key Value
PARAM_VALUE 0 ms 4096-ptr_max
PARAM_VALUE 0 ms->bad_lun_okay 0
PARAM_VALUE 0 ms->cmnd 4096-ptr_max
PARAM_VALUE 0 ms->cmnd_size 0-s32max
PARAM_VALUE 0 ms->curlun 0,4096-ptr_max
PARAM_VALUE 0 ms->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 ms->curlun->info_valid 0
PARAM_VALUE 0 ms->curlun->sense_data 0
PARAM_VALUE 0 ms->curlun->sense_data_info 0
PARAM_VALUE 0 ms->filesem.dep_map->name 0-255
PARAM_VALUE 0 ms->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 ms->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 ms->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 ms->filesem.first_waiter->type 0-1
PARAM_VALUE 0 ms->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ms->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 ms->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 ms->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 ms->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 ms->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 ms->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 ms->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 ms->running 1
PARAM_VALUE 0 ms->short_packet_received 0
PARAM_VALUE 0 ms->state 0
BUF_SIZE 0 ms 128
BUF_SIZE 0 ms 128
CAPPED_DATA 0 ms->cmnd_size 1
CAPPED_DATA 0 &ms->filesem 1
DATA_SOURCE 0 ms $0
LOCK2 0 &ms->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> do_write()

Type Parameter Key Value
PARAM_VALUE 0 ms 4096-ptr_max
PARAM_VALUE 0 ms->bad_lun_okay 0
PARAM_VALUE 0 ms->cmnd 4096-ptr_max
PARAM_VALUE 0 ms->cmnd_size 0-s32max
PARAM_VALUE 0 ms->curlun 0,4096-ptr_max
PARAM_VALUE 0 ms->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 ms->curlun->info_valid 0
PARAM_VALUE 0 ms->curlun->sense_data 0
PARAM_VALUE 0 ms->curlun->sense_data_info 0
PARAM_VALUE 0 ms->filesem.dep_map->name 0-255
PARAM_VALUE 0 ms->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 ms->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 ms->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 ms->filesem.first_waiter->type 0-1
PARAM_VALUE 0 ms->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ms->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 ms->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 ms->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 ms->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 ms->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 ms->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 ms->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 ms->running 1
PARAM_VALUE 0 ms->short_packet_received 0
PARAM_VALUE 0 ms->state 0
BUF_SIZE 0 ms 128
BUF_SIZE 0 ms 128
CAPPED_DATA 0 ms->cmnd_size 1
CAPPED_DATA 0 &ms->filesem 1
DATA_SOURCE 0 ms $0
LOCK2 0 &ms->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> do_write()

Type Parameter Key Value
PARAM_VALUE 0 ms 4096-ptr_max
PARAM_VALUE 0 ms->bad_lun_okay 0
PARAM_VALUE 0 ms->cmnd 4096-ptr_max
PARAM_VALUE 0 ms->cmnd_size 0-s32max
PARAM_VALUE 0 ms->curlun 0,4096-ptr_max
PARAM_VALUE 0 ms->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 ms->curlun->info_valid 0
PARAM_VALUE 0 ms->curlun->sense_data 0
PARAM_VALUE 0 ms->curlun->sense_data_info 0
PARAM_VALUE 0 ms->filesem.dep_map->name 0-255
PARAM_VALUE 0 ms->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 ms->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 ms->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 ms->filesem.first_waiter->type 0-1
PARAM_VALUE 0 ms->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ms->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 ms->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 ms->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 ms->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 ms->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 ms->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 ms->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 ms->running 1
PARAM_VALUE 0 ms->short_packet_received 0
PARAM_VALUE 0 ms->state 0
BUF_SIZE 0 ms 128
BUF_SIZE 0 ms 128
CAPPED_DATA 0 ms->cmnd_size 1
CAPPED_DATA 0 &ms->filesem 1
DATA_SOURCE 0 ms $0
LOCK2 0 &ms->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> do_write()

Type Parameter Key Value
PARAM_VALUE 0 ms 4096-ptr_max
PARAM_VALUE 0 ms->bad_lun_okay 0
PARAM_VALUE 0 ms->cmnd 4096-ptr_max
PARAM_VALUE 0 ms->cmnd_size 0-s32max
PARAM_VALUE 0 ms->curlun 0,4096-ptr_max
PARAM_VALUE 0 ms->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 ms->curlun->info_valid 0
PARAM_VALUE 0 ms->curlun->sense_data 0
PARAM_VALUE 0 ms->curlun->sense_data_info 0
PARAM_VALUE 0 ms->filesem.dep_map->name 0-255
PARAM_VALUE 0 ms->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 ms->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 ms->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 ms->filesem.first_waiter->type 0-1
PARAM_VALUE 0 ms->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 ms->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 ms->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 ms->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 ms->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 ms->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 ms->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 ms->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 ms->running 1
PARAM_VALUE 0 ms->short_packet_received 0
PARAM_VALUE 0 ms->state 0
BUF_SIZE 0 ms 128
BUF_SIZE 0 ms 128
CAPPED_DATA 0 ms->cmnd_size 1
CAPPED_DATA 0 &ms->filesem 1
DATA_SOURCE 0 ms $0
LOCK2 0 &ms->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/mmc/host/cavium.c cvm_mmc_interrupt() -> do_write()

Type Parameter Key Value
PARAM_VALUE 0 ms 4096-ptr_max
PARAM_VALUE 0 ms->data 1-u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 &host->irq_handler_lock
HALF_LOCKED2 flags

drivers/mtd/tests/stresstest.c do_operation() -> do_write()

Type Parameter Key Value

drivers/md/dm-raid1.c do_writes() -> do_write()

Type Parameter Key Value
PARAM_VALUE 0 ms 4096-ptr_max
PARAM_VALUE 0 ms->failures.head 0
PARAM_VALUE 0 ms->failures.tail 0
PARAM_VALUE 0 ms->features 1-u64max
PARAM_VALUE 0 ms->in_sync 1
PARAM_VALUE 0 ms->kcopyd_client->job_pool.curr_nr s32min-s32max
PARAM_VALUE 0 ms->leg_failure 0
PARAM_VALUE 0 ms->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ms->reads.head 0
PARAM_VALUE 0 ms->reads.tail 0
PARAM_VALUE 0 ms->rh 4096-ptr_max
PARAM_VALUE 0 ms->rh->hash_lock.dep_map->name 0-255
PARAM_VALUE 0 ms->rh->hash_lock.owner (-1)
PARAM_VALUE 0 ms->rh->hash_lock.owner_cpu 4294967295
PARAM_VALUE 0 ms->rh->hash_lock.raw_lock.cnts.counter 0-s32max
PARAM_VALUE 0 ms->rh->hash_lock.raw_lock.wlocked 0
PARAM_VALUE 0 ms->rh->log s64min-(-4096),4096-s64max
PARAM_VALUE 0 ms->rh->log->context->flush_entry_pool.curr_nr s32min-s32max
PARAM_VALUE 0 ms->rh->log->context->flush_failed 1
PARAM_VALUE 0 ms->rh->log->context->flush_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ms->rh->log->context->flush_log_work.cpu s32min-s32max
PARAM_VALUE 0 ms->rh->log->context->flush_log_work.timer.flags 0-4294967295
PARAM_VALUE 0 ms->rh->log->context->io_req.bi_opf 1,262145
PARAM_VALUE 0 ms->rh->log->context->io_req.client->pool.curr_nr s32min-s32max
PARAM_VALUE 0 ms->rh->log->context->log_dev_failed 1
PARAM_VALUE 0 ms->rh->log->context->log_dev_flush_failed 1
PARAM_VALUE 0 ms->rh->log->context->sched_flush.counter 0-1
PARAM_VALUE 0 ms->rh->log->context->touched_dirtied 0-1
PARAM_VALUE 0 ms->rh->log->type s64min-(-4096),4096-s64max
PARAM_VALUE 0 ms->rh->log->type->flush s64min-(-4096),4096-s64max
PARAM_VALUE 0 ms->rh->recovery_count.count 0-4294967295
PARAM_VALUE 0 ms->rh->recovery_count.first_waiter->up 0-1
PARAM_VALUE 0 ms->rh->recovery_count.lock.dep_map->name 0-255
PARAM_VALUE 0 ms->rh->recovery_count.lock.owner (-1)
PARAM_VALUE 0 ms->rh->recovery_count.lock.owner_cpu 4294967295
PARAM_VALUE 0 ms->rh->recovery_in_flight.counter s32min-s32max
PARAM_VALUE 0 ms->rh->region_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ms->rh->region_pool.curr_nr s32min-s32max
PARAM_VALUE 0 ms->ti->table->event_context->event_nr.counter s32min-s32max
PARAM_VALUE 0 ms->ti->table->event_context->uevent_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ms->writes.head 0,4096-ptr_max
PARAM_VALUE 0 ms->writes.tail 0,4096-ptr_max
PARAM_VALUE 1 bio 4096-ptr_max
PARAM_VALUE 1 bio->bi_next 0
DATA_SOURCE 0 ms $0
DATA_SOURCE 1 bio r bio_list_pop
NOCHECK_CALL
UNITS 1 bio unit_jiffy
HALF_LOCKED2 &pool->lock