Lines Matching refs:command

318 	if (ccb->command != NULL)  in blogic_dealloc_ccb()
319 scsi_dma_unmap(ccb->command); in blogic_dealloc_ccb()
324 ccb->command = NULL; in blogic_dealloc_ccb()
2749 struct scsi_cmnd *command = ccb->command; in blogic_process_ccbs() local
2777 while (command != NULL) { in blogic_process_ccbs()
2779 command->reset_chain; in blogic_process_ccbs()
2780 command->reset_chain = NULL; in blogic_process_ccbs()
2781 command->result = DID_RESET << 16; in blogic_process_ccbs()
2782 command->scsi_done(command); in blogic_process_ccbs()
2783 command = nxt_cmd; in blogic_process_ccbs()
2795 command = ccb->command; in blogic_process_ccbs()
2798 command->result = DID_RESET << 16; in blogic_process_ccbs()
2799 command->scsi_done(command); in blogic_process_ccbs()
2819 command->result = DID_OK << 16; in blogic_process_ccbs()
2825 command->result = DID_ABORT << 16; in blogic_process_ccbs()
2828 command->result = blogic_resultcode(adapter, in blogic_process_ccbs()
2836 …"Adapter Status %02X " "Target Status %02X\n", adapter, ccb->serial, ccb->tgt_id, command->result,… in blogic_process_ccbs()
2843 blogic_notice(" %02X", adapter, command->sense_buffer[i]); in blogic_process_ccbs()
2859 (struct scsi_inquiry *) scsi_sglist(command); in blogic_process_ccbs()
2871 command->scsi_done(command); in blogic_process_ccbs()
3024 static int blogic_qcmd_lck(struct scsi_cmnd *command, in blogic_qcmd_lck() argument
3028 (struct blogic_adapter *) command->device->host->hostdata; in blogic_qcmd_lck()
3030 &adapter->tgt_flags[command->device->id]; in blogic_qcmd_lck()
3032 unsigned char *cdb = command->cmnd; in blogic_qcmd_lck()
3033 int cdblen = command->cmd_len; in blogic_qcmd_lck()
3034 int tgt_id = command->device->id; in blogic_qcmd_lck()
3035 int lun = command->device->lun; in blogic_qcmd_lck()
3036 int buflen = scsi_bufflen(command); in blogic_qcmd_lck()
3047 if (cdb[0] == REQUEST_SENSE && command->sense_buffer[0] != 0) { in blogic_qcmd_lck()
3048 command->result = DID_OK << 16; in blogic_qcmd_lck()
3049 comp_cb(command); in blogic_qcmd_lck()
3066 command->result = DID_ERROR << 16; in blogic_qcmd_lck()
3067 comp_cb(command); in blogic_qcmd_lck()
3075 count = scsi_dma_map(command); in blogic_qcmd_lck()
3090 scsi_for_each_sg(command, sg, count, i) { in blogic_qcmd_lck()
3185 ccb->command = command; in blogic_qcmd_lck()
3187 command->sense_buffer, ccb->sense_datalen, in blogic_qcmd_lck()
3196 command->scsi_done = comp_cb; in blogic_qcmd_lck()
3217 command->result = DID_ERROR << 16; in blogic_qcmd_lck()
3218 command->scsi_done(command); in blogic_qcmd_lck()
3248 static int blogic_abort(struct scsi_cmnd *command) in DEF_SCSI_QCMD()
3251 (struct blogic_adapter *) command->device->host->hostdata; in DEF_SCSI_QCMD()
3253 int tgt_id = command->device->id; in DEF_SCSI_QCMD()
3262 if (ccb->command == command) in DEF_SCSI_QCMD()