staticblk_status_tsd_setup_rw10_cmnd(structscsi_cmnd*cmd,bool write,sector_tlba,unsignedintnr_blocks,unsignedcharflags){inta=0;cmd->cmd_len=10;cmd->cmnd[0]=write?WRITE_10:READ_10;cmd->cmnd[1]=flags;// cmd->cmnd[6] = 0;// cmd->cmnd[6] = (unsigned char)0xc0; // RESERVED 11...
ret = scsi_device_state_check(sdev, req); if (ret != BLK_STS_OK) goto out_put_budget; } ... blk_mq_start_request(req); reason = scsi_dispatch_cmd(cmd); if (reason) { scsi_set_blocked(cmd, reason); ret = BLK_STS_RESOURCE;goto out_dec_host_busy; } return BLK_STS_OK; o...
void scsi_scan_host(struct Scsi_Host *shost) |--data = scsi_prep_async_scan(shost); | if (!data) | do_scsi_scan_host(shost); | scsi_autopm_put_host(shost); | return; |--async_schedule(do_scan_async, data); |--do_scan_async(void *_data, async_cookie_t c) |--struct ...
unsigned char sb_len_wr; /* [o] */ unsigned short host_status; /* [o] */ unsigned short driver_status; /* [o] */ int resid; /* [o] */ unsigned int duration; /* [o] */ unsigned int info; /* [o] */ } sg_io_hdr_t; /* 64 bytes long (on i386) */ 不需要用到这...
sas_remove_host(asd_ha->sas_ha.core.shost);scsi_host_put(asd_ha->sas_ha.core.shost);sas_remove_host(asd_ha->sas_ha.shost);scsi_host_put(asd_ha->sas_ha.shost);kfree(asd_ha->sas_ha.sas_phy);kfree(asd_ha->sas_ha.sas_port);...
scsi_host_put(pshost); } MODULE_DESCRIPTION("ACARD SCSI host adapter driver"); MODULE_LICENSE("GPL"); static const struct scsi_host_template atp870u_template = {1 change: 1 addition & 0 deletions 1 drivers/scsi/elx/efct/efct_driver.c Original file line numberDiff line numberDiff lin...
530 * host). 531 */ 532 while (--ticks_remaining >= 0) 533 mdelay(1 + 999 / HZ); 534 host->resetting = 0; 535 } 536 537 /* 538 * AK: unlikely race here: for some reason the timer could 539 * expire before the serial number is set up below. ...
void scsi_eh_wakeup(struct Scsi_Host *shost, unsigned int busy) { lockdep_assert_held(shost->host_lock); if (busy == shost->host_failed) { trace_scsi_eh_wakeup(shost); wake_up_process(shost->ehandler); SCSI_LOG_ERROR_RECOVERY(5, shost_printk(KERN_INFO, shost, "...
1/**2* scsi_dispatch_command - Dispatch a command to the low-level driver.3* @cmd: command block we are dispatching.4*5* Return: nonzero return request was rejected and device's queue needs to be6* plugged.7*/8intscsi_dispatch_cmd(structscsi_cmnd *cmd)9{10structScsi_Host *host =...
PURPOSE:To improve the through-put of an SCSI bus by providing the 1st and 2nd bus selectors, and selecting DMA transfer using a data buffer or DMA transfer using no data buffer. CONSTITUTION:When DMA transfer through the data buffer 10 is specified, DMA buses 12, 13 are selected by the...