Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/usb/gadget/function/f_mass_storage.c do_read() -> sleep_thread()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common | 4096-ptr_max |
| PARAM_VALUE | 0 | common->bad_lun_okay | 0 |
| PARAM_VALUE | 0 | common->cmnd | 4096-ptr_max |
| PARAM_VALUE | 0 | common->cmnd_size | 0-s32max |
| PARAM_VALUE | 0 | common->curlun | 4096-ptr_max |
| PARAM_VALUE | 0 | common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->curlun->info_valid | 0 |
| PARAM_VALUE | 0 | common->curlun->num_sectors | s64min-(-1),1-s64max |
| PARAM_VALUE | 0 | common->curlun->sense_data | 0 |
| PARAM_VALUE | 0 | common->curlun->sense_data_info | 0 |
| PARAM_VALUE | 0 | common->data_size_from_cmnd | 1-u32max |
| PARAM_VALUE | 0 | common->filesem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->filesem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | common->filesem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | common->filesem.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | common->io_wait.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | common->io_wait.head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | common->next_buffhd_to_drain | 1-u64max |
| PARAM_VALUE | 0 | common->running | 1 |
| PARAM_VALUE | 0 | common->short_packet_received | 0 |
| PARAM_VALUE | 0 | common->state | 0 |
| PARAM_VALUE | 1 | can_freeze | 0 |
| BUF_SIZE | 0 | common | 128 |
| BUF_SIZE | 0 | common | 128 |
| CAPPED_DATA | 0 | common->cmnd_size | 1 |
| DATA_SOURCE | 0 | common | $0 |
| LOCK2 | 0 | &common->filesem | |
| TYPE_LOCK | (struct fsg_common)->filesem |
drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> sleep_thread()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common | 4096-ptr_max |
| PARAM_VALUE | 0 | common->cmnd_size | 0-s32max |
| PARAM_VALUE | 0 | common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->running | 1 |
| PARAM_VALUE | 0 | common->state | 0 |
| PARAM_VALUE | 1 | can_freeze | 0 |
| BUF_SIZE | 0 | common | 128 |
| BUF_SIZE | 0 | common | 128 |
| CAPPED_DATA | 0 | common->cmnd_size | 1 |
| DATA_SOURCE | 0 | common | $0 |
drivers/usb/gadget/function/f_mass_storage.c do_write() -> sleep_thread()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common | 4096-ptr_max |
| PARAM_VALUE | 0 | common->bad_lun_okay | 0 |
| PARAM_VALUE | 0 | common->cmnd | 4096-ptr_max |
| PARAM_VALUE | 0 | common->cmnd_size | 0-s32max |
| PARAM_VALUE | 0 | common->curlun | 4096-ptr_max |
| PARAM_VALUE | 0 | common->curlun->filp | 4096-ptr_max |
| PARAM_VALUE | 0 | common->curlun->filp->f_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->curlun->num_sectors | s64min-(-1),1-s64max |
| PARAM_VALUE | 0 | common->curlun->ro | 0 |
| PARAM_VALUE | 0 | common->curlun->sense_data | 0,336128 |
| PARAM_VALUE | 0 | common->filesem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->filesem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | common->filesem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | common->filesem.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | common->io_wait.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | common->io_wait.head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | common->next_buffhd_to_drain | 4096-ptr_max |
| PARAM_VALUE | 0 | common->next_buffhd_to_fill | 4096-ptr_max |
| PARAM_VALUE | 0 | common->running | 1 |
| PARAM_VALUE | 0 | common->short_packet_received | 0 |
| PARAM_VALUE | 0 | common->state | 0 |
| PARAM_VALUE | 1 | can_freeze | 0 |
| PARAM_VALUE | 2 | bh | 4096-ptr_max |
| BUF_SIZE | 0 | common | 128 |
| BUF_SIZE | 0 | common | 128 |
| CAPPED_DATA | 0 | common->cmnd_size | 1 |
| DATA_SOURCE | 0 | common | $0 |
| FUZZY_MAX | 0 | common->curlun->sense_data | 336128 |
| HARD_MAX | 0 | common->curlun->sense_data | 336128 |
| LOCK2 | 0 | &common->filesem | |
| TYPE_LOCK | (struct fsg_common)->filesem |
drivers/usb/gadget/function/f_mass_storage.c fsg_main_thread() -> sleep_thread()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common | 4096-ptr_max |
| PARAM_VALUE | 0 | common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->running | 0 |
| PARAM_VALUE | 0 | common->state | 0 |
| PARAM_VALUE | 1 | can_freeze | 1 |
| PARAM_VALUE | 2 | bh | 0 |
| BUF_SIZE | 0 | common | 128 |
| BUF_SIZE | 0 | common | 128 |
| DATA_SOURCE | 0 | common | $0 |
| NOCHECK_CALL |
drivers/usb/gadget/function/f_mass_storage.c get_next_command() -> sleep_thread()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common | 4096-ptr_max |
| PARAM_VALUE | 0 | common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->running | 1 |
| PARAM_VALUE | 0 | common->state | 0 |
| PARAM_VALUE | 1 | can_freeze | 1 |
| BUF_SIZE | 0 | common | 128 |
| BUF_SIZE | 0 | common | 128 |
| DATA_SOURCE | 0 | common | $0 |
drivers/usb/gadget/function/f_mass_storage.c get_next_command() -> sleep_thread()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common | 4096-ptr_max |
| PARAM_VALUE | 0 | common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->fsg | 4096-ptr_max |
| PARAM_VALUE | 0 | common->io_wait.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | common->io_wait.head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | common->next_buffhd_to_fill | 4096-ptr_max |
| PARAM_VALUE | 0 | common->next_buffhd_to_fill->bulk_out_intended_length | 31 |
| PARAM_VALUE | 0 | common->next_buffhd_to_fill->outreq | 4096-ptr_max |
| PARAM_VALUE | 0 | common->next_buffhd_to_fill->outreq->status | s32min-(-1) |
| PARAM_VALUE | 0 | common->next_buffhd_to_fill->state | (-1),1 |
| PARAM_VALUE | 0 | common->running | 1 |
| PARAM_VALUE | 0 | common->state | 0 |
| PARAM_VALUE | 1 | can_freeze | 1 |
| PARAM_VALUE | 2 | bh | 4096-ptr_max |
| PARAM_VALUE | 2 | bh->bulk_out_intended_length | 31 |
| PARAM_VALUE | 2 | bh->outreq | 4096-ptr_max |
| PARAM_VALUE | 2 | bh->outreq->length | 31 |
| PARAM_VALUE | 2 | bh->outreq->status | s32min-(-1) |
| PARAM_VALUE | 2 | bh->state | (-1),1 |
| BUF_SIZE | 0 | common | 128 |
| BUF_SIZE | 0 | common | 128 |
| DATA_SOURCE | 0 | common | $0 |
drivers/usb/gadget/function/f_mass_storage.c handle_exception() -> sleep_thread()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common | 4096-ptr_max |
| PARAM_VALUE | 0 | common->buffhds | 4096-ptr_max |
| PARAM_VALUE | 0 | common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->fsg | 1-u64max |
| PARAM_VALUE | 0 | common->fsg_num_buffers | 1-u32max |
| PARAM_VALUE | 0 | common->state | 0-4,6-u32max |
| PARAM_VALUE | 1 | can_freeze | 0 |
| PARAM_VALUE | 2 | bh | 4096-ptr_max |
| BUF_SIZE | 0 | common | 128 |
| BUF_SIZE | 0 | common | 128 |
| DATA_SOURCE | 0 | common | $0 |
drivers/usb/gadget/function/f_mass_storage.c send_status() -> sleep_thread()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common | 4096-ptr_max |
| PARAM_VALUE | 0 | common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->state | 0 |
| PARAM_VALUE | 1 | can_freeze | 0 |
| BUF_SIZE | 0 | common | 128 |
| BUF_SIZE | 0 | common | 128 |
| DATA_SOURCE | 0 | common | $0 |
drivers/usb/gadget/function/f_mass_storage.c throw_away_data() -> sleep_thread()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | common | 4096-ptr_max |
| PARAM_VALUE | 0 | common->cmnd_size | 0-s32max |
| PARAM_VALUE | 0 | common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->data_dir | 1 |
| PARAM_VALUE | 0 | common->filesem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->handoff_set | 1 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->list.next | 2212933610777083904,2624917664208203776 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->list.prev | 2212933610777083904,2624917664208203776 |
| PARAM_VALUE | 0 | common->filesem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | common->io_wait.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | common->io_wait.head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | common->next_buffhd_to_fill | 4096-ptr_max |
| PARAM_VALUE | 0 | common->residue | 1-u32max |
| PARAM_VALUE | 0 | common->short_packet_received | 0 |
| PARAM_VALUE | 0 | common->state | 0 |
| PARAM_VALUE | 1 | can_freeze | 0 |
| PARAM_VALUE | 2 | bh | 4096-ptr_max |
| BUF_SIZE | 0 | common | 128 |
| BUF_SIZE | 0 | common | 128 |
| CAPPED_DATA | 0 | common->cmnd_size | 1 |
| DATA_SOURCE | 0 | common | $0 |