Lines Matching refs:SCpnt
813 static int check_readiness(struct scsi_cmnd *SCpnt, int uas_only, in check_readiness() argument
825 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
831 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
837 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
843 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
849 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
855 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
872 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
887 sdev_printk(KERN_INFO, SCpnt->device, in check_readiness()
893 mk_sense_buffer(SCpnt, NOT_READY, LOGICAL_UNIT_NOT_READY, in check_readiness()
896 sdev_printk(KERN_INFO, SCpnt->device, in check_readiness()
2472 static void dif_copy_prot(struct scsi_cmnd *SCpnt, sector_t sector, in dif_copy_prot() argument
2483 sg_miter_start(&miter, scsi_prot_sglist(SCpnt), in dif_copy_prot()
2484 scsi_prot_sg_count(SCpnt), SG_MITER_ATOMIC | in dif_copy_prot()
2515 static int prot_verify_read(struct scsi_cmnd *SCpnt, sector_t start_sec, in prot_verify_read() argument
2538 dif_copy_prot(SCpnt, start_sec, sectors, true); in prot_verify_read()
2706 static int prot_verify_write(struct scsi_cmnd *SCpnt, sector_t start_sec, in prot_verify_write() argument
2718 BUG_ON(scsi_sg_count(SCpnt) == 0); in prot_verify_write()
2719 BUG_ON(scsi_prot_sg_count(SCpnt) == 0); in prot_verify_write()
2721 sg_miter_start(&piter, scsi_prot_sglist(SCpnt), in prot_verify_write()
2722 scsi_prot_sg_count(SCpnt), in prot_verify_write()
2724 sg_miter_start(&diter, scsi_sglist(SCpnt), scsi_sg_count(SCpnt), in prot_verify_write()
2766 dif_copy_prot(SCpnt, start_sec, sectors, false); in prot_verify_write()
3763 static int scsi_debug_abort(struct scsi_cmnd *SCpnt) in scsi_debug_abort() argument
3766 if (SCpnt) { in scsi_debug_abort()
3767 if (SCpnt->device && in scsi_debug_abort()
3769 sdev_printk(KERN_INFO, SCpnt->device, "%s\n", in scsi_debug_abort()
3771 stop_queued_cmnd(SCpnt); in scsi_debug_abort()
3776 static int scsi_debug_device_reset(struct scsi_cmnd * SCpnt) in scsi_debug_device_reset() argument
3781 if (SCpnt && SCpnt->device) { in scsi_debug_device_reset()
3782 struct scsi_device *sdp = SCpnt->device; in scsi_debug_device_reset()
3793 static int scsi_debug_target_reset(struct scsi_cmnd *SCpnt) in scsi_debug_target_reset() argument
3802 if (!SCpnt) in scsi_debug_target_reset()
3804 sdp = SCpnt->device; in scsi_debug_target_reset()
3829 static int scsi_debug_bus_reset(struct scsi_cmnd * SCpnt) in scsi_debug_bus_reset() argument
3838 if (!(SCpnt && SCpnt->device)) in scsi_debug_bus_reset()
3840 sdp = SCpnt->device; in scsi_debug_bus_reset()
3862 static int scsi_debug_host_reset(struct scsi_cmnd * SCpnt) in scsi_debug_host_reset() argument
3869 if ((SCpnt->device) && (SCSI_DEBUG_OPT_ALL_NOISE & scsi_debug_opts)) in scsi_debug_host_reset()
3870 sdev_printk(KERN_INFO, SCpnt->device, "%s\n", __func__); in scsi_debug_host_reset()
3882 sdev_printk(KERN_INFO, SCpnt->device, in scsi_debug_host_reset()