Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
drivers/scsi/sr_vendor.c sr_cd_check() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cd | 4096-ptr_max |
| PARAM_VALUE | 0 | cd->vendor | 1 |
| PARAM_VALUE | 1 | cgc | 4758495372042387456 |
| PARAM_VALUE | 1 | cgc->buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc->buflen | 12 |
| PARAM_VALUE | 1 | cgc->data_direction | 2 |
| PARAM_VALUE | 1 | cgc->quiet | 1 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| BUF_SIZE | 0 | cd | 328 |
| BIT_INFO | 0 | cd->cdi.mask | 0x0,0xffffffdf |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &disk->open_mutex |
drivers/scsi/sr_vendor.c sr_cd_check() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cd | 4096-ptr_max |
| PARAM_VALUE | 0 | cd->vendor | 2 |
| PARAM_VALUE | 1 | cgc | 4758495372042387456 |
| PARAM_VALUE | 1 | cgc->buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc->buflen | 22 |
| PARAM_VALUE | 1 | cgc->data_direction | 2 |
| PARAM_VALUE | 1 | cgc->quiet | 1 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| BUF_SIZE | 0 | cd | 328 |
| BIT_INFO | 0 | cd->cdi.mask | 0x0,0xffffffdf |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &disk->open_mutex |
drivers/scsi/sr_vendor.c sr_cd_check() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cd | 4096-ptr_max |
| PARAM_VALUE | 0 | cd->vendor | 3 |
| PARAM_VALUE | 1 | cgc | 4758495372042387456 |
| PARAM_VALUE | 1 | cgc->buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc->buflen | 4 |
| PARAM_VALUE | 1 | cgc->data_direction | 2 |
| PARAM_VALUE | 1 | cgc->quiet | 1 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| BUF_SIZE | 0 | cd | 328 |
| BIT_INFO | 0 | cd->cdi.mask | 0x0,0xffffffdf |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &disk->open_mutex |
drivers/scsi/sr_vendor.c sr_cd_check() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cd | 4096-ptr_max |
| PARAM_VALUE | 0 | cd->vendor | 4 |
| PARAM_VALUE | 1 | cgc | 4758495372042387456 |
| PARAM_VALUE | 1 | cgc->buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc->buflen | 4 |
| PARAM_VALUE | 1 | cgc->data_direction | 2 |
| PARAM_VALUE | 1 | cgc->quiet | 1 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| BUF_SIZE | 0 | cd | 328 |
| BIT_INFO | 0 | cd->cdi.mask | 0x0,0xffffffdf |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &disk->open_mutex |
drivers/scsi/sr_vendor.c sr_cd_check() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cd | 4096-ptr_max |
| PARAM_VALUE | 0 | cd->device | 4096-ptr_max |
| PARAM_VALUE | 0 | cd->device->host->shost_state | 0-4,8-u32max |
| PARAM_VALUE | 0 | cd->device->host->tmf_in_progress | 0 |
| PARAM_VALUE | 0 | cd->device->request_queue->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | cd->vendor | 4 |
| PARAM_VALUE | 1 | cgc | 4758495372042387456 |
| PARAM_VALUE | 1 | cgc->buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc->buflen | 12 |
| PARAM_VALUE | 1 | cgc->data_direction | 2 |
| PARAM_VALUE | 1 | cgc->quiet | 1 |
| PARAM_VALUE | 1 | cgc->stat | 0 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| BUF_SIZE | 0 | cd | 328 |
| BIT_INFO | 0 | cd->cdi.mask | 0x0,0xffffffdf |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &disk->open_mutex |
drivers/scsi/sr_vendor.c sr_set_blocklength() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cd | 4096-ptr_max |
| PARAM_VALUE | 0 | cd->device | 4096-ptr_max |
| PARAM_VALUE | 0 | cd->device->request_queue->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | cgc | 8022959236144316416 |
| PARAM_VALUE | 1 | cgc->buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc->buflen | 12 |
| PARAM_VALUE | 1 | cgc->data_direction | 1 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| BUF_SIZE | 0 | cd | (-1),328 |
| BUF_SIZE | 0 | cd | (-1),328 |
| DATA_SOURCE | 0 | cd | $0 |
| BIT_INFO | 0 | cd->cdi.mask | 0x0,0xffffffdf |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &disk->open_mutex |
drivers/scsi/sr_ioctl.c sr_fake_playtrkind() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cd | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc | 5046292519692603392 |
| PARAM_VALUE | 1 | cgc->data_direction | 3 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| LOCK2 | &cd->lock | ||
| TYPE_LOCK | (struct scsi_cd)->lock |
drivers/scsi/sr_ioctl.c sr_get_mcn() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cgc | 4864676852867731456 |
| PARAM_VALUE | 1 | cgc->buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc->buflen | 24 |
| PARAM_VALUE | 1 | cgc->data_direction | 2 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| BUF_SIZE | 0 | cd | 328 |
| MEM_ZERO | 1 | cgc | |
| LOCK2 | &cd->lock | ||
| TYPE_LOCK | (struct scsi_cd)->lock |
drivers/scsi/sr_ioctl.c sr_play_trkind() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cgc | 8871685405157490688 |
| PARAM_VALUE | 1 | cgc->data_direction | 3 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| BUF_SIZE | 0 | cd | 328 |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| LOCK2 | &cd->lock | ||
| TYPE_LOCK | (struct scsi_cd)->lock |
drivers/scsi/sr_ioctl.c sr_read_cd() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cd | 4096-ptr_max |
| PARAM_VALUE | 0 | cd->device->request_queue->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | cd->ms_offset | 0-16777215,18446744071562067968-u64max |
| PARAM_VALUE | 0 | cd->readcd_known | 1 |
| PARAM_VALUE | 0 | cd->xa_flag | 0 |
| PARAM_VALUE | 1 | cgc | 4295474205358170112 |
| PARAM_VALUE | 1 | cgc->buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc->buflen | 2336,2340,2352 |
| PARAM_VALUE | 1 | cgc->data_direction | 2 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| DATA_SOURCE | 0 | cd | $0 |
| BIT_INFO | 0 | cd->cdi.mask | 0x0,0xffffffdf |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &disk->open_mutex |
drivers/scsi/sr_ioctl.c sr_read_sector() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cd | 4096-ptr_max |
| PARAM_VALUE | 0 | cd->device | 4096-ptr_max |
| PARAM_VALUE | 0 | cd->device->request_queue->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | cd->device->sector_size | 2340 |
| PARAM_VALUE | 0 | cd->ms_offset | 0-16777215,18446744071562067968-u64max |
| PARAM_VALUE | 0 | cd->readcd_known | 0 |
| PARAM_VALUE | 0 | cd->xa_flag | 0 |
| PARAM_VALUE | 1 | cgc | 1279517596245725184 |
| PARAM_VALUE | 1 | cgc->buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc->buflen | 2340 |
| PARAM_VALUE | 1 | cgc->data_direction | 2 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| BUF_SIZE | 0 | cd | 328 |
| DATA_SOURCE | 0 | cd | $0 |
| BIT_INFO | 0 | cd->cdi.mask | 0x0,0xffffffdf |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &disk->open_mutex |
drivers/scsi/sr_ioctl.c sr_read_tocentry() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cgc | 4216951479569969152 |
| PARAM_VALUE | 1 | cgc->buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc->buflen | 12 |
| PARAM_VALUE | 1 | cgc->data_direction | 2 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| BUF_SIZE | 0 | cd | 328 |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &cd->lock |
drivers/scsi/sr_ioctl.c sr_read_tochdr() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cgc | 9202207445929095168 |
| PARAM_VALUE | 1 | cgc->buffer | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc->buflen | 12 |
| PARAM_VALUE | 1 | cgc->data_direction | 2 |
| PARAM_VALUE | 1 | cgc->quiet | 1 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| BUF_SIZE | 0 | cd | 328 |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &cd->lock |
drivers/scsi/sr_ioctl.c sr_select_speed() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cgc | 7344417161169674240 |
| PARAM_VALUE | 1 | cgc->data_direction | 3 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| BUF_SIZE | 0 | cd | 328 |
| MEM_ZERO | 1 | cgc | |
| LOCK2 | &cd->lock | ||
| TYPE_LOCK | (struct scsi_cd)->lock |
drivers/scsi/sr_ioctl.c sr_tray_move() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cgc | 930294756228227072 |
| PARAM_VALUE | 1 | cgc->data_direction | 3 |
| PARAM_VALUE | 1 | cgc->timeout | 7500 |
| BUF_SIZE | 0 | cd | 328 |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &cd->lock | ||
| HALF_LOCKED2 | &disk->open_mutex | ||
| TYPE_LOCK | (struct scsi_cd)->lock |
drivers/scsi/sr.c sr_packet() -> sr_do_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cd | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc | 4096-ptr_max |
| PARAM_VALUE | 1 | cgc->data_direction | 1-3 |
| PARAM_VALUE | 1 | cgc->timeout | 1-s32max |
| BUF_SIZE | 0 | cd | (-1),328 |
| BUF_SIZE | 0 | cd | (-1),328 |
| BUF_SIZE | 1 | cgc->buffer | (-1),32,2048,2336,2352 |
| BUF_SIZE | 1 | cgc->sshdr | (-1),8 |
| DATA_SOURCE | 1 | cgc | $1 |
| FUZZY_MAX | 1 | cgc->timeout | 7500 |
| HARD_MAX | 1 | cgc->data_direction | 3 |
| MEM_ZERO | 1 | cgc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | cgc->buflen | 2048-176400[c] |
| HALF_LOCKED2 | &cd->lock | ||
| HALF_LOCKED2 | &disk->open_mutex |