Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/cdrom/cdrom.c cdrom_dvd_rw_close_write() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 4395742402999468032
PARAM_VALUE 1 buf 0
PARAM_VALUE 2 len 0
PARAM_VALUE 3 type 3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &cd->lock
LOCK2 &disk->open_mutex
TYPE_LOCK (struct gendisk)->open_mutex
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c cdrom_dvd_rw_close_write() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 4395742402999468032
PARAM_VALUE 0 cgc->buffer 0
PARAM_VALUE 0 cgc->data_direction 3
PARAM_VALUE 0 cgc->quiet 0
PARAM_VALUE 0 cgc->sshdr 0
PARAM_VALUE 0 cgc->stat s32min-0
PARAM_VALUE 0 cgc->timeout 7500
PARAM_VALUE 1 buf 0
PARAM_VALUE 2 len 0
PARAM_VALUE 3 type 3
MEM_ZERO 0 cgc
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &cd->lock
LOCK2 &disk->open_mutex
TYPE_LOCK (struct gendisk)->open_mutex
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c cdrom_dvd_rw_close_write() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 4395742402999468032
PARAM_VALUE 0 cgc->buffer 0
PARAM_VALUE 0 cgc->data_direction 3
PARAM_VALUE 0 cgc->quiet 1
PARAM_VALUE 0 cgc->sshdr 0
PARAM_VALUE 0 cgc->stat s32min-0
PARAM_VALUE 0 cgc->timeout 7500,750000
PARAM_VALUE 1 buf 0
PARAM_VALUE 2 len 0
PARAM_VALUE 3 type 3
MEM_ZERO 0 cgc
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &cd->lock
LOCK2 &disk->open_mutex
TYPE_LOCK (struct gendisk)->open_mutex
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c cdrom_flush_cache() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 3054548991329697792
PARAM_VALUE 1 buf 0
PARAM_VALUE 2 len 0
PARAM_VALUE 3 type 3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &cd->lock
LOCK2 &disk->open_mutex
TYPE_LOCK (struct gendisk)->open_mutex
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c cdrom_get_disc_info() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 4344939122346389504
PARAM_VALUE 1 buf 2366079161951195136,3741770305398190080,4707246167402037248,7308301344559050752,7349873624599478272
PARAM_VALUE 2 len 36
PARAM_VALUE 3 type 2
DATA_SOURCE 1 buf $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte
HALF_LOCKED2 &cd->lock
HALF_LOCKED2 &disk->open_mutex

drivers/cdrom/cdrom.c cdrom_get_media_event() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 6379026929838436352
PARAM_VALUE 1 buf 6108094598741196800
PARAM_VALUE 2 len 8
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 8
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte
LOCK2 &cd->lock
HALF_LOCKED2 &disk->open_mutex
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c cdrom_get_random_writable() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 7477541306297204736
PARAM_VALUE 1 buf 2077358085999644672
PARAM_VALUE 2 len 24
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 24
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte
HALF_LOCKED2 &cd->lock
HALF_LOCKED2 &disk->open_mutex

drivers/cdrom/cdrom.c cdrom_get_track_info() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 1802210863140405248
PARAM_VALUE 1 buf 155174664492445696,6017446900729901056
PARAM_VALUE 2 len 8
PARAM_VALUE 3 type 2
DATA_SOURCE 1 buf $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &cd->lock

drivers/cdrom/cdrom.c cdrom_has_defect_mgt() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 2143821612182073344
PARAM_VALUE 1 buf 5109895612310188032
PARAM_VALUE 2 len 16
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 16
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte
LOCK2 &cd->lock
LOCK2 &disk->open_mutex
TYPE_LOCK (struct gendisk)->open_mutex
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c cdrom_is_mrw() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 8147637743010017280
PARAM_VALUE 1 buf 7723483178045083648
PARAM_VALUE 2 len 16
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 16
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte

drivers/cdrom/cdrom.c cdrom_load_unload() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 222444757648740352
PARAM_VALUE 1 buf 0
PARAM_VALUE 2 len 0
PARAM_VALUE 3 type 3
NOCHECK_CALL
LOCK2 &cd->lock
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c cdrom_mmc3_profile() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 2954463936291594240
PARAM_VALUE 1 buf 4740342172937928704
PARAM_VALUE 2 len 32
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 32
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte
LOCK2 &cd->lock
LOCK2 &disk->open_mutex
TYPE_LOCK (struct gendisk)->open_mutex
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c cdrom_mrw_bgformat() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 6223101781344968704
PARAM_VALUE 1 buf 230842637041704960
PARAM_VALUE 2 len 12
PARAM_VALUE 3 type 1
BUF_SIZE 1 buf 12
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte
LOCK2 &cd->lock
LOCK2 &disk->open_mutex
TYPE_LOCK (struct gendisk)->open_mutex
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c cdrom_mrw_bgformat_susp() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 6260280314291855360
PARAM_VALUE 1 buf 0
PARAM_VALUE 2 len 0
PARAM_VALUE 3 type 3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &cd->lock
LOCK2 &disk->open_mutex
TYPE_LOCK (struct gendisk)->open_mutex
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c cdrom_mrw_probe_pc() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 6612571925102120960
PARAM_VALUE 1 buf 928873506118946816
PARAM_VALUE 2 len 16
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 16
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte

drivers/cdrom/cdrom.c cdrom_mrw_set_lba_space() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 2033057123061092352
PARAM_VALUE 1 buf 7858129032707080192
PARAM_VALUE 2 len 16
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 16
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte
LOCK2 &cd->lock
LOCK2 &disk->open_mutex
TYPE_LOCK (struct gendisk)->open_mutex
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c cdrom_read_mech_status() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 6877112086290001920
PARAM_VALUE 1 buf 4096-ptr_max
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 1032
DATA_SOURCE 1 buf $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte
HALF_LOCKED2 &cd->lock

drivers/cdrom/cdrom.c cdrom_read_subchannel() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 1169555463641710592
PARAM_VALUE 1 buf 6267936077752926208
PARAM_VALUE 2 len 16
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 32
NOCHECK_CALL
LOCK2 &cd->lock
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c dvd_do_auth() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 167834409892917248
PARAM_VALUE 1 buf 2628450471998009344
PARAM_VALUE 2 len 0
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 20
NOCHECK_CALL
LOCK2 &cd->lock
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c dvd_read_bca() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 182906272456085504
PARAM_VALUE 1 buf 4096-ptr_max
PARAM_VALUE 2 len 192
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 192
DATA_SOURCE 0 cgc $2
DATA_SOURCE 1 buf r _kmalloc_noprof
MEM_ZERO 0 cgc
NOCHECK_CALL
LOCK2 &cd->lock
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c dvd_read_copyright() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 182906272456085504
PARAM_VALUE 1 buf 1808029391689572352
PARAM_VALUE 2 len 8
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 8
DATA_SOURCE 0 cgc $2
MEM_ZERO 0 cgc
NOCHECK_CALL
UNITS 2 len unit_byte
LOCK2 &cd->lock
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c dvd_read_disckey() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 182906272456085504
PARAM_VALUE 1 buf 4096-ptr_max
PARAM_VALUE 2 len 2052
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 2052
DATA_SOURCE 0 cgc $2
DATA_SOURCE 1 buf r _kmalloc_noprof
MEM_ZERO 0 cgc
NOCHECK_CALL
UNITS 2 len unit_byte
LOCK2 &cd->lock
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c dvd_read_manufact() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 182906272456085504
PARAM_VALUE 1 buf 4096-ptr_max
PARAM_VALUE 2 len 2052
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 2052
DATA_SOURCE 0 cgc $2
DATA_SOURCE 1 buf r _kmalloc_noprof
MEM_ZERO 0 cgc
NOCHECK_CALL
UNITS 2 len unit_byte
LOCK2 &cd->lock
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c dvd_read_physical() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 182906272456085504
PARAM_VALUE 1 buf 5602738286034731008
PARAM_VALUE 2 len 21
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 21
DATA_SOURCE 0 cgc $2
MEM_ZERO 0 cgc
NOCHECK_CALL
UNITS 2 len unit_byte
LOCK2 &cd->lock
TYPE_LOCK (struct scsi_cd)->lock

drivers/cdrom/cdrom.c mo_open_write() -> init_cdrom_command()

Type Parameter Key Value
PARAM_VALUE 0 cgc 1059220210155421696
PARAM_VALUE 1 buf 3536016254898114560
PARAM_VALUE 2 len 4
PARAM_VALUE 3 type 2
BUF_SIZE 1 buf 255
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &cd->lock
LOCK2 &disk->open_mutex
TYPE_LOCK (struct gendisk)->open_mutex
TYPE_LOCK (struct scsi_cd)->lock