Lines Matching refs:SCpnt
3806 static int prot_verify_write(struct scsi_cmnd *SCpnt, sector_t start_sec,
3818 BUG_ON(scsi_sg_count(SCpnt) == 0);
3819 BUG_ON(scsi_prot_sg_count(SCpnt) == 0);
3821 sg_miter_start(&piter, scsi_prot_sglist(SCpnt),
3822 scsi_prot_sg_count(SCpnt),
3824 sg_miter_start(&diter, scsi_sglist(SCpnt), scsi_sg_count(SCpnt),
3851 if (SCpnt->cmnd[1] >> 5 != 3) { /* WRPROTECT */
3866 dif_copy_prot(SCpnt, start_sec, sectors, false);
5770 static int scsi_debug_abort(struct scsi_cmnd *SCpnt)
5772 bool ok = scsi_debug_abort_cmnd(SCpnt);
5773 u8 *cmd = SCpnt->cmnd;
5779 sdev_printk(KERN_INFO, SCpnt->device,
5783 if (sdebug_fail_abort(SCpnt)) {
5784 scmd_printk(KERN_INFO, SCpnt, "fail abort command 0x%x\n",
5840 static int scsi_debug_device_reset(struct scsi_cmnd *SCpnt)
5842 struct scsi_device *sdp = SCpnt->device;
5844 u8 *cmd = SCpnt->cmnd;
5856 if (sdebug_fail_lun_reset(SCpnt)) {
5857 scmd_printk(KERN_INFO, SCpnt, "fail lun reset 0x%x\n", opcode);
5876 static int scsi_debug_target_reset(struct scsi_cmnd *SCpnt)
5878 struct scsi_device *sdp = SCpnt->device;
5881 u8 *cmd = SCpnt->cmnd;
5900 if (sdebug_fail_target_reset(SCpnt)) {
5901 scmd_printk(KERN_INFO, SCpnt, "fail target reset 0x%x\n",
5909 static int scsi_debug_bus_reset(struct scsi_cmnd *SCpnt)
5911 struct scsi_device *sdp = SCpnt->device;
5932 static int scsi_debug_host_reset(struct scsi_cmnd *SCpnt)
5940 sdev_printk(KERN_INFO, SCpnt->device, "%s\n", __func__);
5952 sdev_printk(KERN_INFO, SCpnt->device,