Home
last modified time | relevance | path

Searched refs:scsi_req (Results 1 – 25 of 33) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/ide/
Dide-eh.c16 scsi_req(rq)->result |= ERROR_RESET; in ide_ata_error()
29 scsi_req(rq)->result = ERROR_MAX; in ide_ata_error()
32 scsi_req(rq)->result |= ERROR_RECAL; in ide_ata_error()
43 if (scsi_req(rq)->result >= ERROR_MAX || blk_noretry_request(rq)) { in ide_ata_error()
49 scsi_req(rq)->result |= ERROR_RESET; in ide_ata_error()
51 if ((scsi_req(rq)->result & ERROR_RESET) == ERROR_RESET) { in ide_ata_error()
52 ++scsi_req(rq)->result; in ide_ata_error()
56 if ((scsi_req(rq)->result & ERROR_RECAL) == ERROR_RECAL) in ide_ata_error()
59 ++scsi_req(rq)->result; in ide_ata_error()
72 scsi_req(rq)->result |= ERROR_RESET; in ide_atapi_error()
[all …]
Dide-atapi.c107 memcpy(scsi_req(rq)->cmd, pc->c, 12); in ide_queue_pc_tail()
109 scsi_req(rq)->cmd[13] = REQ_IDETAPE_PC1; in ide_queue_pc_tail()
111 error = scsi_req(rq)->result ? -EIO : 0; in ide_queue_pc_tail()
206 req = scsi_req(sense_rq); in ide_prep_sense()
279 memcpy(pc->c, scsi_req(sense_rq)->cmd, 12); in ide_retry_pc()
301 debug_log("%s: scsi_req(rq)->cmd[0]: 0x%x\n", __func__, scsi_req(rq)->cmd[0]); in ide_cd_expiry()
309 switch (scsi_req(rq)->cmd[0]) { in ide_cd_expiry()
320 scsi_req(rq)->cmd[0]); in ide_cd_expiry()
449 scsi_req(rq)->resid_len = 0; in ide_pc_intr()
466 (stat & ATA_ERR) && scsi_req(rq)->cmd[0] == REQUEST_SENSE) in ide_pc_intr()
[all …]
Dide-devsets.c171 scsi_req(rq)->cmd_len = 5; in ide_devset_execute()
172 scsi_req(rq)->cmd[0] = REQ_DEVSET_EXEC; in ide_devset_execute()
173 *(int *)&scsi_req(rq)->cmd[1] = arg; in ide_devset_execute()
177 ret = scsi_req(rq)->result; in ide_devset_execute()
187 err = setfunc(drive, *(int *)&scsi_req(rq)->cmd[1]); in ide_do_devset()
189 scsi_req(rq)->result = err; in ide_do_devset()
Dide-park.c36 scsi_req(rq)->cmd[0] = REQ_PARK_HEADS; in issue_park_cmd()
37 scsi_req(rq)->cmd_len = 1; in issue_park_cmd()
41 rc = scsi_req(rq)->result ? -EIO : 0; in issue_park_cmd()
54 scsi_req(rq)->cmd[0] = REQ_UNPARK_HEADS; in issue_park_cmd()
55 scsi_req(rq)->cmd_len = 1; in issue_park_cmd()
71 if (scsi_req(rq)->cmd[0] == REQ_PARK_HEADS) { in ide_do_park_unpark()
Dide-cd.c126 if (scsi_req(rq)->cmd[0] == GPCMD_START_STOP_UNIT && sense->asc == 0x24) in cdrom_log_sense()
168 if (failed_command && scsi_req(failed_command)->cmd[0] == GPCMD_READ_TOC_PMA_ATIP) in cdrom_analyze_sense_data()
228 memcpy(scsi_req(failed)->sense, sense, 18); in ide_cd_complete_failed_rq()
229 scsi_req(failed)->sense_len = scsi_req(rq)->sense_len; in ide_cd_complete_failed_rq()
251 if (!scsi_req(rq)->result) in ide_cd_breathe()
254 scsi_req(rq)->result = 1; in ide_cd_breathe()
309 if (blk_rq_is_scsi(rq) && !scsi_req(rq)->result) in cdrom_decode_status()
310 scsi_req(rq)->result = SAM_STAT_CHECK_CONDITION; in cdrom_decode_status()
340 if (++scsi_req(rq)->result > ERROR_MAX) in cdrom_decode_status()
351 if (scsi_req(rq)->cmd[0] == GPCMD_START_STOP_UNIT) in cdrom_decode_status()
[all …]
Dide-floppy.c103 scsi_req(rq)->result = uptodate ? 0 : IDE_DRV_ERROR_GENERAL; in ide_floppy_callback()
208 memcpy(scsi_req(rq)->cmd, pc->c, 12); in idefloppy_create_rw_cmd()
221 memcpy(pc->c, scsi_req(rq)->cmd, sizeof(pc->c)); in idefloppy_blockpc_cmd()
244 if (scsi_req(rq)->result >= ERROR_MAX) { in ide_floppy_do_request()
252 scsi_req(rq)->result = 0; in ide_floppy_do_request()
306 if (blk_rq_is_passthrough(rq) && scsi_req(rq)->result == 0) in ide_floppy_do_request()
307 scsi_req(rq)->result = -EIO; in ide_floppy_do_request()
Dide-cd_verbose.c319 scsi_req(failed_command)->cmd[0]) { in ide_cd_log_error()
324 scsi_req(failed_command)->cmd[0]) in ide_cd_log_error()
333 printk(KERN_CONT "%02x ", scsi_req(failed_command)->cmd[i]); in ide_cd_log_error()
Dide-ioctls.c141 err = scsi_req(rq)->result ? -EIO : 0; in ide_cmd_ioctl()
236 scsi_req(rq)->cmd_len = 1; in generic_drive_reset()
237 scsi_req(rq)->cmd[0] = REQ_DRIVE_RESET; in generic_drive_reset()
239 ret = scsi_req(rq)->result; in generic_drive_reset()
Dide-io.c154 scsi_req(rq)->result = 0; in ide_kill_rq()
157 scsi_req(rq)->result = IDE_DRV_ERROR_GENERAL; in ide_kill_rq()
158 else if (blk_rq_is_passthrough(rq) && scsi_req(rq)->result == 0) in ide_kill_rq()
159 scsi_req(rq)->result = -EIO; in ide_kill_rq()
287 scsi_req(rq)->result = 0; in execute_drive_cmd()
295 u8 cmd = scsi_req(rq)->cmd[0]; in ide_special_rq()
527 scsi_req(rq)->resid_len = blk_rq_bytes(rq); in ide_issue_rq()
Dide-pm.c31 ret = scsi_req(rq)->result ? -EIO : 0; in generic_ide_suspend()
49 scsi_req(rq)->result = -ENXIO; in ide_pm_execute_rq()
55 return scsi_req(rq)->result ? -EIO : 0; in ide_pm_execute_rq()
Dide-tape.c286 scsi_req(rq)->resid_len = tape->blk_size * get_unaligned_be32(&sense[3]); in idetape_analyze_error()
320 (blk_rq_bytes(rq) - scsi_req(rq)->resid_len)) in idetape_analyze_error()
352 (blk_rq_bytes(rq) - scsi_req(rq)->resid_len) / tape->blk_size; in ide_tape_callback()
370 scsi_req(rq)->result = err; in ide_tape_callback()
564 memcpy(scsi_req(rq)->cmd, pc->c, 12); in ide_tape_create_rw_cmd()
574 struct scsi_request *req = scsi_req(rq); in idetape_do_request()
860 scsi_req(rq)->cmd[13] = cmd; in idetape_queue_rw_tail()
874 size -= scsi_req(rq)->resid_len; in idetape_queue_rw_tail()
882 if (scsi_req(rq)->result == IDE_DRV_ERROR_GENERAL) in idetape_queue_rw_tail()
Dide-taskfile.c282 scsi_req(cmd->rq)->result = 0; in ide_pio_datablock()
324 scsi_req(rq)->result = err; in ide_finish_cmd()
447 error = scsi_req(rq)->result ? -EIO : 0; in ide_raw_taskfile()
Dide-dma.c491 scsi_req(hwif->rq)->result = 0; in ide_dma_timeout_retry()
Dide-cd_ioctl.c303 ret = scsi_req(rq)->result ? -EIO : 0; in ide_cdrom_reset()
/kernel/linux/linux-5.10/drivers/block/
Dskd_main.c401 skd_prep_rw_cdb(struct skd_scsi_request *scsi_req, in skd_prep_rw_cdb() argument
406 scsi_req->cdb[0] = READ_10; in skd_prep_rw_cdb()
408 scsi_req->cdb[0] = WRITE_10; in skd_prep_rw_cdb()
410 scsi_req->cdb[1] = 0; in skd_prep_rw_cdb()
411 scsi_req->cdb[2] = (lba & 0xff000000) >> 24; in skd_prep_rw_cdb()
412 scsi_req->cdb[3] = (lba & 0xff0000) >> 16; in skd_prep_rw_cdb()
413 scsi_req->cdb[4] = (lba & 0xff00) >> 8; in skd_prep_rw_cdb()
414 scsi_req->cdb[5] = (lba & 0xff); in skd_prep_rw_cdb()
415 scsi_req->cdb[6] = 0; in skd_prep_rw_cdb()
416 scsi_req->cdb[7] = (count & 0xff00) >> 8; in skd_prep_rw_cdb()
[all …]
/kernel/linux/linux-5.10/block/
Dscsi_ioctl.c223 struct scsi_request *req = scsi_req(rq); in blk_fill_sghdr_rq()
249 struct scsi_request *req = scsi_req(rq); in blk_complete_sghdr_rq()
317 req = scsi_req(rq); in sg_io()
445 req = scsi_req(rq); in sg_scsi_ioctl()
532 scsi_req(rq)->cmd[0] = cmd; in __blk_send_generic()
533 scsi_req(rq)->cmd[4] = data; in __blk_send_generic()
534 scsi_req(rq)->cmd_len = 6; in __blk_send_generic()
536 err = scsi_req(rq)->result ? -EIO : 0; in __blk_send_generic()
Dbsg.c68 struct scsi_request *sreq = scsi_req(rq); in bsg_scsi_fill_hdr()
91 struct scsi_request *sreq = scsi_req(rq); in bsg_scsi_complete_rq()
125 scsi_req_free_cmd(scsi_req(rq)); in bsg_scsi_free_rq()
/kernel/linux/linux-5.10/include/scsi/
Dscsi_request.h20 static inline struct scsi_request *scsi_req(struct request *rq) in scsi_req() function
/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_pscsi.c1003 scsi_req(req)->cmd_len = scsi_command_size(pt->pscsi_cdb); in pscsi_execute_cmd()
1004 scsi_req(req)->cmd = &pt->pscsi_cdb[0]; in pscsi_execute_cmd()
1010 scsi_req(req)->retries = PS_RETRY; in pscsi_execute_cmd()
1051 int result = scsi_req(req)->result; in pscsi_req_done()
1060 pscsi_complete_cmd(cmd, scsi_status, scsi_req(req)->sense); in pscsi_req_done()
1065 cmd->data_length - scsi_req(req)->resid_len); in pscsi_req_done()
/kernel/linux/linux-5.10/drivers/scsi/
Dscsi_debugfs.c37 struct scsi_cmnd *cmd = container_of(scsi_req(rq), typeof(*cmd), req); in scsi_show_rq()
Dscsi_lib.c256 rq = scsi_req(req); in __scsi_execute()
864 scsi_req(req)->sense_len = in scsi_io_completion_nz_result()
951 scsi_req(req)->result = cmd->result; in scsi_io_completion()
1195 cmd->cmd_len = scsi_req(req)->cmd_len; in scsi_setup_scsi_cmnd()
1196 cmd->cmnd = scsi_req(req)->cmd; in scsi_setup_scsi_cmnd()
1198 cmd->allowed = scsi_req(req)->retries; in scsi_setup_scsi_cmnd()
1588 cmd->cmnd = scsi_req(req)->cmd = scsi_req(req)->__cmd; in scsi_prepare_cmd()
1713 scsi_req(req)->result = DID_NO_CONNECT << 16; in scsi_queue_rq()
1715 scsi_req(req)->result = DID_ERROR << 16; in scsi_queue_rq()
/kernel/linux/linux-5.10/drivers/s390/scsi/
Dzfcp_aux.c219 adapter->pool.scsi_req = in zfcp_allocate_low_mem_buffers()
221 if (!adapter->pool.scsi_req) in zfcp_allocate_low_mem_buffers()
257 mempool_destroy(adapter->pool.scsi_req); in zfcp_free_low_mem_buffers()
Dzfcp_def.h141 mempool_t *scsi_req; member
/kernel/linux/linux-5.10/fs/nfsd/
Dblocklayout.c244 req = scsi_req(rq); in nfsd4_scsi_identify_device()
/kernel/linux/linux-5.10/drivers/message/fusion/
Dmptctl.c467 SCSIIORequest_t *scsi_req = (SCSIIORequest_t *) mf; in mptctl_timeout_expired() local
492 scsi_req->Bus, scsi_req->TargetID); in mptctl_timeout_expired()
496 scsi_req->Bus, 0); in mptctl_timeout_expired()
504 scsi_req->Bus, 0); in mptctl_timeout_expired()

12