Lines Matching refs:scp
774 static void mk_sense_invalid_fld(struct scsi_cmnd *scp, in mk_sense_invalid_fld() argument
782 sbuff = scp->sense_buffer; in mk_sense_invalid_fld()
784 sdev_printk(KERN_ERR, scp->device, in mk_sense_invalid_fld()
809 sdev_printk(KERN_INFO, scp->device, "%s: [sense_key,asc,ascq" in mk_sense_invalid_fld()
814 static void mk_sense_buffer(struct scsi_cmnd *scp, int key, int asc, int asq) in mk_sense_buffer() argument
818 sbuff = scp->sense_buffer; in mk_sense_buffer()
820 sdev_printk(KERN_ERR, scp->device, in mk_sense_buffer()
829 sdev_printk(KERN_INFO, scp->device, in mk_sense_buffer()
834 static void mk_sense_invalid_opcode(struct scsi_cmnd *scp) in mk_sense_invalid_opcode() argument
836 mk_sense_buffer(scp, ILLEGAL_REQUEST, INVALID_OPCODE, 0); in mk_sense_invalid_opcode()
928 static int make_ua(struct scsi_cmnd *scp, struct sdebug_dev_info *devip) in make_ua() argument
938 mk_sense_buffer(scp, UNIT_ATTENTION, UA_RESET_ASC, in make_ua()
944 mk_sense_buffer(scp, UNIT_ATTENTION, UA_RESET_ASC, in make_ua()
950 mk_sense_buffer(scp, UNIT_ATTENTION, UA_CHANGED_ASC, in make_ua()
956 mk_sense_buffer(scp, UNIT_ATTENTION, UA_CHANGED_ASC, in make_ua()
962 mk_sense_buffer(scp, UNIT_ATTENTION, in make_ua()
969 mk_sense_buffer(scp, UNIT_ATTENTION, in make_ua()
986 mk_sense_buffer(scp, UNIT_ATTENTION, in make_ua()
1000 sdev_printk(KERN_INFO, scp->device, in make_ua()
1009 static int fill_from_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fill_from_dev_buffer() argument
1013 struct scsi_data_buffer *sdb = scsi_in(scp); in fill_from_dev_buffer()
1017 if (!(scsi_bidi_cmnd(scp) || scp->sc_data_direction == DMA_FROM_DEVICE)) in fill_from_dev_buffer()
1022 sdb->resid = scsi_bufflen(scp) - act_len; in fill_from_dev_buffer()
1032 static int p_fill_from_dev_buffer(struct scsi_cmnd *scp, const void *arr, in p_fill_from_dev_buffer() argument
1036 struct scsi_data_buffer *sdb = scsi_in(scp); in p_fill_from_dev_buffer()
1041 if (!(scsi_bidi_cmnd(scp) || scp->sc_data_direction == DMA_FROM_DEVICE)) in p_fill_from_dev_buffer()
1047 __func__, off_dst, scsi_bufflen(scp), act_len, sdb->resid); in p_fill_from_dev_buffer()
1048 n = (int)scsi_bufflen(scp) - ((int)off_dst + act_len); in p_fill_from_dev_buffer()
1056 static int fetch_to_dev_buffer(struct scsi_cmnd *scp, unsigned char *arr, in fetch_to_dev_buffer() argument
1059 if (!scsi_bufflen(scp)) in fetch_to_dev_buffer()
1061 if (!(scsi_bidi_cmnd(scp) || scp->sc_data_direction == DMA_TO_DEVICE)) in fetch_to_dev_buffer()
1064 return scsi_sg_copy_to_buffer(scp, arr, arr_len); in fetch_to_dev_buffer()
1395 static int resp_inquiry(struct scsi_cmnd *scp, struct sdebug_dev_info *devip) in resp_inquiry() argument
1399 unsigned char *cmd = scp->cmnd; in resp_inquiry()
1408 have_wlun = scsi_is_wlun(scp->device->lun); in resp_inquiry()
1417 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 1, 1); in resp_inquiry()
1502 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 2, -1); in resp_inquiry()
1507 ret = fill_from_dev_buffer(scp, arr, in resp_inquiry()
1540 ret = fill_from_dev_buffer(scp, arr, in resp_inquiry()
1549 static int resp_requests(struct scsi_cmnd *scp, in resp_requests() argument
1553 unsigned char *cmd = scp->cmnd; in resp_requests()
1560 sbuff = scp->sense_buffer; in resp_requests()
1606 mk_sense_buffer(scp, 0, NO_ADDITIONAL_SENSE, 0); in resp_requests()
1607 return fill_from_dev_buffer(scp, arr, len); in resp_requests()
1610 static int resp_start_stop(struct scsi_cmnd *scp, in resp_start_stop() argument
1613 unsigned char *cmd = scp->cmnd; in resp_start_stop()
1619 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 4, 7); in resp_start_stop()
1643 static int resp_readcap(struct scsi_cmnd *scp, in resp_readcap() argument
1658 return fill_from_dev_buffer(scp, arr, SDEBUG_READCAP_ARR_SZ); in resp_readcap()
1662 static int resp_readcap16(struct scsi_cmnd *scp, in resp_readcap16() argument
1665 unsigned char *cmd = scp->cmnd; in resp_readcap16()
1695 return fill_from_dev_buffer(scp, arr, in resp_readcap16()
1701 static int resp_report_tgtpgs(struct scsi_cmnd *scp, in resp_report_tgtpgs() argument
1704 unsigned char *cmd = scp->cmnd; in resp_report_tgtpgs()
1771 ret = fill_from_dev_buffer(scp, arr, in resp_report_tgtpgs()
1777 static int resp_rsup_opcodes(struct scsi_cmnd *scp, in resp_rsup_opcodes() argument
1788 u8 *cmd = scp->cmnd; in resp_rsup_opcodes()
1796 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 6, -1); in resp_rsup_opcodes()
1805 mk_sense_buffer(scp, ILLEGAL_REQUEST, INSUFF_RES_ASC, in resp_rsup_opcodes()
1866 mk_sense_invalid_fld(scp, SDEB_IN_CDB, in resp_rsup_opcodes()
1874 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 4, -1); in resp_rsup_opcodes()
1917 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 2, 2); in resp_rsup_opcodes()
1923 errsts = fill_from_dev_buffer(scp, arr, len); in resp_rsup_opcodes()
1928 static int resp_rsup_tmfs(struct scsi_cmnd *scp, in resp_rsup_tmfs() argument
1934 u8 *cmd = scp->cmnd; in resp_rsup_tmfs()
1940 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 6, -1); in resp_rsup_tmfs()
1952 return fill_from_dev_buffer(scp, arr, len); in resp_rsup_tmfs()
2117 static int resp_mode_sense(struct scsi_cmnd *scp, in resp_mode_sense() argument
2123 int target = scp->device->id; in resp_mode_sense()
2126 unsigned char *cmd = scp->cmnd; in resp_mode_sense()
2143 mk_sense_buffer(scp, ILLEGAL_REQUEST, SAVING_PARAMS_UNSUP, 0); in resp_mode_sense()
2185 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 3, -1); in resp_mode_sense()
2219 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 3, -1); in resp_mode_sense()
2256 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 3, -1); in resp_mode_sense()
2265 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 2, 5); in resp_mode_sense()
2272 return fill_from_dev_buffer(scp, arr, min(alloc_len, offset)); in resp_mode_sense()
2277 static int resp_mode_select(struct scsi_cmnd *scp, in resp_mode_select() argument
2283 unsigned char *cmd = scp->cmnd; in resp_mode_select()
2291 mk_sense_invalid_fld(scp, SDEB_IN_CDB, mselect6 ? 4 : 7, -1); in resp_mode_select()
2294 res = fetch_to_dev_buffer(scp, arr, param_len); in resp_mode_select()
2298 sdev_printk(KERN_INFO, scp->device, in resp_mode_select()
2304 mk_sense_invalid_fld(scp, SDEB_IN_DATA, 0, -1); in resp_mode_select()
2311 mk_sense_invalid_fld(scp, SDEB_IN_DATA, off, 7); in resp_mode_select()
2318 mk_sense_buffer(scp, ILLEGAL_REQUEST, in resp_mode_select()
2348 mk_sense_invalid_fld(scp, SDEB_IN_DATA, off, 5); in resp_mode_select()
2380 static int resp_log_sense(struct scsi_cmnd *scp, in resp_log_sense() argument
2385 unsigned char *cmd = scp->cmnd; in resp_log_sense()
2391 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 1, ppc ? 1 : 0); in resp_log_sense()
2414 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 2, 5); in resp_log_sense()
2446 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 2, 5); in resp_log_sense()
2450 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 3, -1); in resp_log_sense()
2454 return fill_from_dev_buffer(scp, arr, in resp_log_sense()
2458 static int check_device_access_params(struct scsi_cmnd *scp, in check_device_access_params() argument
2462 mk_sense_buffer(scp, ILLEGAL_REQUEST, LBA_OUT_OF_RANGE, 0); in check_device_access_params()
2468 mk_sense_buffer(scp, ILLEGAL_REQUEST, INVALID_FIELD_IN_CDB, 0); in check_device_access_params()
2659 static int resp_read_dt0(struct scsi_cmnd *scp, struct sdebug_dev_info *devip) in resp_read_dt0() argument
2661 u8 *cmd = scp->cmnd; in resp_read_dt0()
2712 mk_sense_invalid_opcode(scp); in resp_read_dt0()
2718 sdev_printk(KERN_ERR, scp->device, "Unprotected RD " in resp_read_dt0()
2722 sqcp = (struct sdebug_queued_cmd *)scp->host_scribble; in resp_read_dt0()
2733 mk_sense_buffer(scp, ILLEGAL_REQUEST, LBA_OUT_OF_RANGE, 0); in resp_read_dt0()
2739 mk_sense_buffer(scp, ILLEGAL_REQUEST, INVALID_FIELD_IN_CDB, 0); in resp_read_dt0()
2747 mk_sense_buffer(scp, MEDIUM_ERROR, UNRECOVERED_READ_ERR, 0); in resp_read_dt0()
2749 if (0x70 == (scp->sense_buffer[0] & 0x7f)) { in resp_read_dt0()
2750 scp->sense_buffer[0] |= 0x80; /* Valid bit */ in resp_read_dt0()
2753 put_unaligned_be32(ret, scp->sense_buffer + 3); in resp_read_dt0()
2755 scsi_set_resid(scp, scsi_bufflen(scp)); in resp_read_dt0()
2762 if (unlikely(sdebug_dix && scsi_prot_sg_count(scp))) { in resp_read_dt0()
2763 int prot_ret = prot_verify_read(scp, lba, num, ei_lba); in resp_read_dt0()
2767 mk_sense_buffer(scp, ABORTED_COMMAND, 0x10, prot_ret); in resp_read_dt0()
2772 ret = do_device_access(scp, 0, lba, num, false); in resp_read_dt0()
2777 scsi_in(scp)->resid = scsi_bufflen(scp) - ret; in resp_read_dt0()
2781 mk_sense_buffer(scp, RECOVERED_ERROR, in resp_read_dt0()
2785 mk_sense_buffer(scp, ABORTED_COMMAND, in resp_read_dt0()
2790 mk_sense_buffer(scp, ABORTED_COMMAND, 0x10, 1); in resp_read_dt0()
2793 mk_sense_buffer(scp, ILLEGAL_REQUEST, 0x10, 1); in resp_read_dt0()
2973 static int resp_write_dt0(struct scsi_cmnd *scp, struct sdebug_dev_info *devip) in resp_write_dt0() argument
2975 u8 *cmd = scp->cmnd; in resp_write_dt0()
3025 mk_sense_invalid_opcode(scp); in resp_write_dt0()
3031 sdev_printk(KERN_ERR, scp->device, "Unprotected WR " in resp_write_dt0()
3037 mk_sense_buffer(scp, ILLEGAL_REQUEST, LBA_OUT_OF_RANGE, 0); in resp_write_dt0()
3043 mk_sense_buffer(scp, ILLEGAL_REQUEST, INVALID_FIELD_IN_CDB, 0); in resp_write_dt0()
3050 if (unlikely(sdebug_dix && scsi_prot_sg_count(scp))) { in resp_write_dt0()
3051 int prot_ret = prot_verify_write(scp, lba, num, ei_lba); in resp_write_dt0()
3055 mk_sense_buffer(scp, ILLEGAL_REQUEST, 0x10, prot_ret); in resp_write_dt0()
3060 ret = do_device_access(scp, 0, lba, num, true); in resp_write_dt0()
3068 sdev_printk(KERN_INFO, scp->device, in resp_write_dt0()
3074 (struct sdebug_queued_cmd *)scp->host_scribble; in resp_write_dt0()
3078 mk_sense_buffer(scp, RECOVERED_ERROR, in resp_write_dt0()
3083 mk_sense_buffer(scp, ABORTED_COMMAND, 0x10, 1); in resp_write_dt0()
3086 mk_sense_buffer(scp, ILLEGAL_REQUEST, 0x10, 1); in resp_write_dt0()
3098 static int resp_write_scat(struct scsi_cmnd *scp, in resp_write_scat() argument
3101 u8 *cmd = scp->cmnd; in resp_write_scat()
3130 mk_sense_invalid_opcode(scp); in resp_write_scat()
3136 sdev_printk(KERN_ERR, scp->device, in resp_write_scat()
3144 sdev_printk(KERN_INFO, scp->device, in resp_write_scat()
3147 mk_sense_buffer(scp, ILLEGAL_REQUEST, INVALID_FIELD_IN_CDB, 0); in resp_write_scat()
3153 sdev_printk(KERN_INFO, scp->device, in resp_write_scat()
3156 mk_sense_buffer(scp, ILLEGAL_REQUEST, INVALID_FIELD_IN_CDB, 0); in resp_write_scat()
3163 sdev_printk(KERN_INFO, scp->device, in resp_write_scat()
3166 res = fetch_to_dev_buffer(scp, lrdp, lbdof_blen); in resp_write_scat()
3180 sdev_printk(KERN_INFO, scp->device, in resp_write_scat()
3185 ret = check_device_access_params(scp, lba, num); in resp_write_scat()
3193 sdev_printk(KERN_INFO, scp->device, in resp_write_scat()
3196 mk_sense_buffer(scp, ILLEGAL_REQUEST, WRITE_ERROR_ASC, in resp_write_scat()
3203 if (unlikely(sdebug_dix && scsi_prot_sg_count(scp))) { in resp_write_scat()
3204 int prot_ret = prot_verify_write(scp, lba, num, in resp_write_scat()
3208 mk_sense_buffer(scp, ILLEGAL_REQUEST, 0x10, in resp_write_scat()
3215 ret = do_device_access(scp, sg_off, lba, num, true); in resp_write_scat()
3222 sdev_printk(KERN_INFO, scp->device, in resp_write_scat()
3228 (struct sdebug_queued_cmd *)scp->host_scribble; in resp_write_scat()
3232 mk_sense_buffer(scp, RECOVERED_ERROR, in resp_write_scat()
3238 mk_sense_buffer(scp, ABORTED_COMMAND, in resp_write_scat()
3243 mk_sense_buffer(scp, ILLEGAL_REQUEST, in resp_write_scat()
3261 static int resp_write_same(struct scsi_cmnd *scp, u64 lba, u32 num, in resp_write_same() argument
3269 ret = check_device_access_params(scp, lba, num); in resp_write_same()
3286 ret = fetch_to_dev_buffer(scp, fake_storep + lba_off, in resp_write_same()
3293 sdev_printk(KERN_INFO, scp->device, in resp_write_same()
3312 static int resp_write_same_10(struct scsi_cmnd *scp, in resp_write_same_10() argument
3315 u8 *cmd = scp->cmnd; in resp_write_same_10()
3323 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 1, 3); in resp_write_same_10()
3331 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 7, -1); in resp_write_same_10()
3334 return resp_write_same(scp, lba, num, ei_lba, unmap, false); in resp_write_same_10()
3337 static int resp_write_same_16(struct scsi_cmnd *scp, in resp_write_same_16() argument
3340 u8 *cmd = scp->cmnd; in resp_write_same_16()
3349 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 1, 3); in resp_write_same_16()
3359 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 10, -1); in resp_write_same_16()
3362 return resp_write_same(scp, lba, num, ei_lba, unmap, ndob); in resp_write_same_16()
3368 static int resp_write_buffer(struct scsi_cmnd *scp, in resp_write_buffer() argument
3371 u8 *cmd = scp->cmnd; in resp_write_buffer()
3372 struct scsi_device *sdp = scp->device; in resp_write_buffer()
3414 static int resp_comp_write(struct scsi_cmnd *scp, in resp_comp_write() argument
3417 u8 *cmd = scp->cmnd; in resp_comp_write()
3434 mk_sense_invalid_opcode(scp); in resp_comp_write()
3440 sdev_printk(KERN_ERR, scp->device, "Unprotected WR " in resp_comp_write()
3445 mk_sense_buffer(scp, ILLEGAL_REQUEST, LBA_OUT_OF_RANGE, 0); in resp_comp_write()
3451 mk_sense_buffer(scp, ILLEGAL_REQUEST, INVALID_FIELD_IN_CDB, 0); in resp_comp_write()
3457 mk_sense_buffer(scp, ILLEGAL_REQUEST, INSUFF_RES_ASC, in resp_comp_write()
3468 ret = do_device_access(scp, 0, 0, dnum, true); in resp_comp_write()
3474 sdev_printk(KERN_INFO, scp->device, "%s: compare_write: cdb " in resp_comp_write()
3478 mk_sense_buffer(scp, MISCOMPARE, MISCOMPARE_VERIFY_ASC, 0); in resp_comp_write()
3496 static int resp_unmap(struct scsi_cmnd *scp, struct sdebug_dev_info *devip) in resp_unmap() argument
3507 payload_len = get_unaligned_be16(scp->cmnd + 7); in resp_unmap()
3508 BUG_ON(scsi_bufflen(scp) != payload_len); in resp_unmap()
3512 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 7, -1); in resp_unmap()
3516 buf = kzalloc(scsi_bufflen(scp), GFP_ATOMIC); in resp_unmap()
3518 mk_sense_buffer(scp, ILLEGAL_REQUEST, INSUFF_RES_ASC, in resp_unmap()
3523 scsi_sg_copy_to_buffer(scp, buf, scsi_bufflen(scp)); in resp_unmap()
3536 ret = check_device_access_params(scp, lba, num); in resp_unmap()
3554 static int resp_get_lba_status(struct scsi_cmnd *scp, in resp_get_lba_status() argument
3557 u8 *cmd = scp->cmnd; in resp_get_lba_status()
3569 ret = check_device_access_params(scp, lba, 1); in resp_get_lba_status()
3591 return fill_from_dev_buffer(scp, arr, SDEBUG_GET_LBA_STATUS_LEN); in resp_get_lba_status()
3594 static int resp_sync_cache(struct scsi_cmnd *scp, in resp_sync_cache() argument
3600 u8 *cmd = scp->cmnd; in resp_sync_cache()
3610 mk_sense_buffer(scp, ILLEGAL_REQUEST, LBA_OUT_OF_RANGE, 0); in resp_sync_cache()
3630 static int resp_report_luns(struct scsi_cmnd *scp, in resp_report_luns() argument
3633 unsigned char *cmd = scp->cmnd; in resp_report_luns()
3654 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 6, -1); in resp_report_luns()
3676 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 2, -1); in resp_report_luns()
3685 scsi_set_resid(scp, scsi_bufflen(scp)); in resp_report_luns()
3707 res = p_fill_from_dev_buffer(scp, arr, n, off_rsp); in resp_report_luns()
3717 res = p_fill_from_dev_buffer(scp, arr, j * sz_lun, off_rsp); in resp_report_luns()
3721 static int resp_xdwriteread(struct scsi_cmnd *scp, unsigned long long lba, in resp_xdwriteread() argument
3727 struct scsi_data_buffer *sdb = scsi_in(scp); in resp_xdwriteread()
3731 buf = kzalloc(scsi_bufflen(scp), GFP_ATOMIC); in resp_xdwriteread()
3733 mk_sense_buffer(scp, ILLEGAL_REQUEST, INSUFF_RES_ASC, in resp_xdwriteread()
3738 scsi_sg_copy_to_buffer(scp, buf, scsi_bufflen(scp)); in resp_xdwriteread()
3757 static int resp_xdwriteread_10(struct scsi_cmnd *scp, in resp_xdwriteread_10() argument
3760 u8 *cmd = scp->cmnd; in resp_xdwriteread_10()
3765 if (!scsi_bidi_cmnd(scp)) { in resp_xdwriteread_10()
3766 mk_sense_buffer(scp, ILLEGAL_REQUEST, INSUFF_RES_ASC, in resp_xdwriteread_10()
3770 errsts = resp_read_dt0(scp, devip); in resp_xdwriteread_10()
3774 errsts = resp_write_dt0(scp, devip); in resp_xdwriteread_10()
3780 return resp_xdwriteread(scp, lba, num, devip); in resp_xdwriteread_10()
3803 struct scsi_cmnd *scp; in sdebug_q_cmd_complete() local
3822 scp = sqcp->a_cmnd; in sdebug_q_cmd_complete()
3823 if (unlikely(scp == NULL)) { in sdebug_q_cmd_complete()
3829 devip = (struct sdebug_dev_info *)scp->device->hostdata; in sdebug_q_cmd_complete()
3865 scp->scsi_done(scp); /* callback to mid level */ in sdebug_q_cmd_complete()
5651 static bool fake_timeout(struct scsi_cmnd *scp) in fake_timeout() argument
5659 scsi_medium_access_command(scp)) in fake_timeout()
5665 static bool fake_host_busy(struct scsi_cmnd *scp) in fake_host_busy() argument
5672 struct scsi_cmnd *scp) in scsi_debug_queuecommand() argument
5675 struct scsi_device *sdp = scp->device; in scsi_debug_queuecommand()
5679 u8 *cmd = scp->cmnd; in scsi_debug_queuecommand()
5689 scsi_set_resid(scp, 0); in scsi_debug_queuecommand()
5697 len = scp->cmd_len; in scsi_debug_queuecommand()
5707 blk_mq_unique_tag(scp->request), b); in scsi_debug_queuecommand()
5709 if (fake_host_busy(scp)) in scsi_debug_queuecommand()
5744 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 1, 4); in scsi_debug_queuecommand()
5746 mk_sense_invalid_fld(scp, SDEB_IN_CDB, 8, 7); in scsi_debug_queuecommand()
5748 mk_sense_invalid_opcode(scp); in scsi_debug_queuecommand()
5754 mk_sense_invalid_opcode(scp); in scsi_debug_queuecommand()
5761 mk_sense_invalid_opcode(scp); in scsi_debug_queuecommand()
5775 mk_sense_invalid_fld(scp, SDEB_IN_CDB, k, j); in scsi_debug_queuecommand()
5783 errsts = make_ua(scp, devip); in scsi_debug_queuecommand()
5788 mk_sense_buffer(scp, NOT_READY, LOGICAL_UNIT_NOT_READY, 0x2); in scsi_debug_queuecommand()
5799 if (fake_timeout(scp)) in scsi_debug_queuecommand()
5809 return schedule_resp(scp, devip, errsts, pfp, 0, 0); in scsi_debug_queuecommand()
5822 return schedule_resp(scp, devip, errsts, pfp, jdelay, 0); in scsi_debug_queuecommand()
5824 return schedule_resp(scp, devip, errsts, pfp, sdebug_jdelay, in scsi_debug_queuecommand()
5827 return schedule_resp(scp, devip, check_condition_result, NULL, 0, 0); in scsi_debug_queuecommand()
5829 return schedule_resp(scp, NULL, DID_NO_CONNECT << 16, NULL, 0, 0); in scsi_debug_queuecommand()