Lines Matching refs:SCpnt
4704 static int prot_verify_write(struct scsi_cmnd *SCpnt, sector_t start_sec, in prot_verify_write() argument
4716 BUG_ON(scsi_sg_count(SCpnt) == 0); in prot_verify_write()
4717 BUG_ON(scsi_prot_sg_count(SCpnt) == 0); in prot_verify_write()
4719 sg_miter_start(&piter, scsi_prot_sglist(SCpnt), in prot_verify_write()
4720 scsi_prot_sg_count(SCpnt), in prot_verify_write()
4722 sg_miter_start(&diter, scsi_sglist(SCpnt), scsi_sg_count(SCpnt), in prot_verify_write()
4749 if (SCpnt->cmnd[1] >> 5 != 3) { /* WRPROTECT */ in prot_verify_write()
4764 dif_copy_prot(SCpnt, start_sec, sectors, false); in prot_verify_write()
6858 static int scsi_debug_abort(struct scsi_cmnd *SCpnt) in scsi_debug_abort() argument
6860 bool aborted = scsi_debug_abort_cmnd(SCpnt); in scsi_debug_abort()
6861 u8 *cmd = SCpnt->cmnd; in scsi_debug_abort()
6867 sdev_printk(KERN_INFO, SCpnt->device, in scsi_debug_abort()
6872 if (sdebug_fail_abort(SCpnt)) { in scsi_debug_abort()
6873 scmd_printk(KERN_INFO, SCpnt, "fail abort command 0x%x\n", in scsi_debug_abort()
6946 static int scsi_debug_device_reset(struct scsi_cmnd *SCpnt) in scsi_debug_device_reset() argument
6948 struct scsi_device *sdp = SCpnt->device; in scsi_debug_device_reset()
6950 u8 *cmd = SCpnt->cmnd; in scsi_debug_device_reset()
6961 if (SCpnt->device->type == TYPE_TAPE) in scsi_debug_device_reset()
6965 if (sdebug_fail_lun_reset(SCpnt)) { in scsi_debug_device_reset()
6966 scmd_printk(KERN_INFO, SCpnt, "fail lun reset 0x%x\n", opcode); in scsi_debug_device_reset()
6985 static int scsi_debug_target_reset(struct scsi_cmnd *SCpnt) in scsi_debug_target_reset() argument
6987 struct scsi_device *sdp = SCpnt->device; in scsi_debug_target_reset()
6990 u8 *cmd = SCpnt->cmnd; in scsi_debug_target_reset()
7001 if (SCpnt->device->type == TYPE_TAPE) in scsi_debug_target_reset()
7011 if (sdebug_fail_target_reset(SCpnt)) { in scsi_debug_target_reset()
7012 scmd_printk(KERN_INFO, SCpnt, "fail target reset 0x%x\n", in scsi_debug_target_reset()
7020 static int scsi_debug_bus_reset(struct scsi_cmnd *SCpnt) in scsi_debug_bus_reset() argument
7022 struct scsi_device *sdp = SCpnt->device; in scsi_debug_bus_reset()
7034 if (SCpnt->device->type == TYPE_TAPE) in scsi_debug_bus_reset()
7045 static int scsi_debug_host_reset(struct scsi_cmnd *SCpnt) in scsi_debug_host_reset() argument
7053 sdev_printk(KERN_INFO, SCpnt->device, "doing host reset\n"); in scsi_debug_host_reset()
7059 if (SCpnt->device->type == TYPE_TAPE) in scsi_debug_host_reset()
7067 sdev_printk(KERN_INFO, SCpnt->device, in scsi_debug_host_reset()