Lines Matching refs:newcommand
1021 tw_dev->srb[request_id]->result = (full_command_packet->command.newcommand.status << 1); in twa_fill_sense()
1302 if (full_command_packet->command.newcommand.status != 0) { in twa_interrupt()
1349 if ((scsi_sg_count(cmd) <= 1) && (full_command_packet->command.newcommand.status == 0)) { in twa_interrupt()
1350 …if (full_command_packet->command.newcommand.sg_list[0].length < scsi_bufflen(tw_dev->srb[request_i… in twa_interrupt()
1351 …scsi_set_resid(cmd, scsi_bufflen(cmd) - full_command_packet->command.newcommand.sg_list[0].length); in twa_interrupt()
1382 TW_Command_Apache *newcommand; in twa_load_sgl() local
1389 if (TW_OP_OUT(full_command_packet->command.newcommand.opcode__reserved) == TW_OP_EXECUTE_SCSI) { in twa_load_sgl()
1390 newcommand = &full_command_packet->command.newcommand; in twa_load_sgl()
1391 newcommand->request_id__lunl = in twa_load_sgl()
1392 cpu_to_le16(TW_REQ_LUN_IN(TW_LUN_OUT(newcommand->request_id__lunl), request_id)); in twa_load_sgl()
1394 newcommand->sg_list[0].address = TW_CPU_TO_SGL(dma_handle + sizeof(TW_Ioctl_Buf_Apache) - 1); in twa_load_sgl()
1395 newcommand->sg_list[0].length = cpu_to_le32(length); in twa_load_sgl()
1397 newcommand->sgl_entries__lunh = in twa_load_sgl()
1398 cpu_to_le16(TW_REQ_LUN_IN(TW_LUN_OUT(newcommand->sgl_entries__lunh), length ? 1 : 0)); in twa_load_sgl()
1451 if (TW_OP_OUT(full_command_packet->command.newcommand.opcode__reserved) == TW_OP_EXECUTE_SCSI) { in twa_poll_response()
1452 if (full_command_packet->command.newcommand.status != 0) { in twa_poll_response()
1840 command_packet = &full_command_packet->command.newcommand; in DEF_SCSI_QCMD()