Lines Matching refs:SCpnt

810 static int check_readiness(struct scsi_cmnd *SCpnt, int uas_only,  in check_readiness()  argument
822 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
828 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
834 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
840 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
846 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
852 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
869 mk_sense_buffer(SCpnt, UNIT_ATTENTION, in check_readiness()
884 sdev_printk(KERN_INFO, SCpnt->device, in check_readiness()
890 mk_sense_buffer(SCpnt, NOT_READY, LOGICAL_UNIT_NOT_READY, in check_readiness()
893 sdev_printk(KERN_INFO, SCpnt->device, in check_readiness()
2475 static void dif_copy_prot(struct scsi_cmnd *SCpnt, sector_t sector, in dif_copy_prot() argument
2486 sg_miter_start(&miter, scsi_prot_sglist(SCpnt), in dif_copy_prot()
2487 scsi_prot_sg_count(SCpnt), SG_MITER_ATOMIC | in dif_copy_prot()
2518 static int prot_verify_read(struct scsi_cmnd *SCpnt, sector_t start_sec, in prot_verify_read() argument
2541 dif_copy_prot(SCpnt, start_sec, sectors, true); in prot_verify_read()
2709 static int prot_verify_write(struct scsi_cmnd *SCpnt, sector_t start_sec, in prot_verify_write() argument
2721 BUG_ON(scsi_sg_count(SCpnt) == 0); in prot_verify_write()
2722 BUG_ON(scsi_prot_sg_count(SCpnt) == 0); in prot_verify_write()
2724 sg_miter_start(&piter, scsi_prot_sglist(SCpnt), in prot_verify_write()
2725 scsi_prot_sg_count(SCpnt), in prot_verify_write()
2727 sg_miter_start(&diter, scsi_sglist(SCpnt), scsi_sg_count(SCpnt), in prot_verify_write()
2769 dif_copy_prot(SCpnt, start_sec, sectors, false); in prot_verify_write()
3767 static int scsi_debug_abort(struct scsi_cmnd *SCpnt) in scsi_debug_abort() argument
3770 if (SCpnt) { in scsi_debug_abort()
3771 if (SCpnt->device && in scsi_debug_abort()
3773 sdev_printk(KERN_INFO, SCpnt->device, "%s\n", in scsi_debug_abort()
3775 stop_queued_cmnd(SCpnt); in scsi_debug_abort()
3780 static int scsi_debug_device_reset(struct scsi_cmnd * SCpnt) in scsi_debug_device_reset() argument
3785 if (SCpnt && SCpnt->device) { in scsi_debug_device_reset()
3786 struct scsi_device *sdp = SCpnt->device; in scsi_debug_device_reset()
3797 static int scsi_debug_target_reset(struct scsi_cmnd *SCpnt) in scsi_debug_target_reset() argument
3806 if (!SCpnt) in scsi_debug_target_reset()
3808 sdp = SCpnt->device; in scsi_debug_target_reset()
3833 static int scsi_debug_bus_reset(struct scsi_cmnd * SCpnt) in scsi_debug_bus_reset() argument
3842 if (!(SCpnt && SCpnt->device)) in scsi_debug_bus_reset()
3844 sdp = SCpnt->device; in scsi_debug_bus_reset()
3866 static int scsi_debug_host_reset(struct scsi_cmnd * SCpnt) in scsi_debug_host_reset() argument
3873 if ((SCpnt->device) && (SCSI_DEBUG_OPT_ALL_NOISE & scsi_debug_opts)) in scsi_debug_host_reset()
3874 sdev_printk(KERN_INFO, SCpnt->device, "%s\n", __func__); in scsi_debug_host_reset()
3886 sdev_printk(KERN_INFO, SCpnt->device, in scsi_debug_host_reset()