Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/scsi/ch.c, line 888
- drivers/scsi/scsi_ioctl.c, line 963
- drivers/scsi/sd.c, line 1765
- drivers/scsi/sg.c
- drivers/scsi/sr.c, line 557
- drivers/scsi/st.c, line 3575
Smatch caller information:
drivers/scsi/sg.c sg_ioctl_common() -> scsi_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | cmd | 1 |
| DATA_SOURCE | 2 | cmd | $3 |
| DATA_SOURCE | 3 | arg | $4 |
| BIT_INFO | 1 | open_for_write | 0x0,0x2 |
| USER_DATA | 2 | cmd | 1 |
| UNITS | 0 | sdev | unit_byte |
drivers/scsi/sd.c sd_ioctl() -> scsi_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sdev->host | 4096-ptr_max |
| PARAM_VALUE | 0 | sdev->host->shost_state | 0-4,8-u32max |
| PARAM_VALUE | 0 | sdev->host->tmf_in_progress | 0 |
| PARAM_VALUE | 0 | sdev->sdev_state | 0-3,5,8-u32max |
| DATA_SOURCE | 2 | cmd | $2 |
| DATA_SOURCE | 3 | arg | $3 |
| BIT_INFO | 1 | open_for_write | 0x0,0x2 |
| USER_DATA | 2 | cmd | 0-768,770-4703,4705-4706,4708,4710-4712,4714-1074270832 |
drivers/scsi/ch.c ch_ioctl() -> scsi_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sdev->host | 4096-ptr_max |
| PARAM_VALUE | 0 | sdev->host->shost_state | 0-4,8-u32max |
| PARAM_VALUE | 0 | sdev->host->tmf_in_progress | 0 |
| PARAM_VALUE | 0 | sdev->sdev_state | 0-3,5,8-u32max |
| PARAM_VALUE | 2 | cmd | s32min-(-2146147579),(-2146147577)-(-2140118254),(-2140118252)-25360,25362-1074291463,1074291465-1074553602,1074553604-1074815751,1074815753-1075077888,1075077890-1075602177,1075602179-1076912913,1076912915-s32max |
| DATA_SOURCE | 2 | cmd | $1 |
| DATA_SOURCE | 3 | arg | $2 |
| BIT_INFO | 1 | open_for_write | 0x0,0x2 |
| USER_DATA | 2 | cmd | s32min-(-2146147579),(-2146147577)-(-2140118254),(-2140118252)- |
drivers/scsi/st.c st_common_ioctl() -> scsi_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 2 | cmd | $3 |
| DATA_SOURCE | 3 | arg | $4 |
| BIT_INFO | 1 | open_for_write | 0x0,0x2 |
drivers/scsi/sr.c sr_block_ioctl() -> scsi_ioctl()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sdev | 4096-ptr_max |
| PARAM_VALUE | 0 | sdev->host | 4096-ptr_max |
| PARAM_VALUE | 0 | sdev->host->shost_state | 0-4,8-u32max |
| PARAM_VALUE | 0 | sdev->host->tmf_in_progress | 0 |
| PARAM_VALUE | 0 | sdev->sdev_gendev.bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | sdev->sdev_gendev.power.request | 0-4 |
| PARAM_VALUE | 0 | sdev->sdev_gendev.power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | sdev->sdev_gendev.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | sdev->sdev_gendev.type | 0,4096-ptr_max |
| PARAM_VALUE | 0 | sdev->sdev_state | 0-3,5,8-u32max |
| PARAM_VALUE | 2 | cmd | 0-21252,21254-21280,21282-21286,21288,21290-21295,21392,21398 |
| DATA_SOURCE | 2 | cmd | $2 |
| DATA_SOURCE | 3 | arg | $3 |
| BIT_INFO | 1 | open_for_write | 0x0,0x2 |
| USER_DATA | 2 | cmd | 0-768,770-4703,4705-4706,4708,4710-4712,4714-21252,21254-21256, |
| LOCK2 | &cd->lock | ||
| TYPE_LOCK | (struct scsi_cd)->lock |