Lines Matching refs:newcommand
993 tw_dev->srb[request_id]->result = (full_command_packet->command.newcommand.status << 1);
1279 if (full_command_packet->command.newcommand.status != 0) {
1322 if ((tw_dev->srb[request_id]->use_sg <= 1) && (full_command_packet->command.newcommand.status == 0)) {
1323 if (full_command_packet->command.newcommand.sg_list[0].length < tw_dev->srb[request_id]->request_bufflen)
1324 tw_dev->srb[request_id]->resid = tw_dev->srb[request_id]->request_bufflen - full_command_packet->command.newcommand.sg_list[0].length;
1355 TW_Command_Apache *newcommand;
1358 if (TW_OP_OUT(full_command_packet->command.newcommand.opcode__reserved) == TW_OP_EXECUTE_SCSI) {
1359 newcommand = &full_command_packet->command.newcommand;
1360 newcommand->request_id__lunl =
1361 cpu_to_le16(TW_REQ_LUN_IN(TW_LUN_OUT(newcommand->request_id__lunl), request_id));
1362 newcommand->sg_list[0].address = TW_CPU_TO_SGL(dma_handle + sizeof(TW_Ioctl_Buf_Apache) - 1);
1363 newcommand->sg_list[0].length = cpu_to_le32(length);
1364 newcommand->sgl_entries__lunh =
1365 cpu_to_le16(TW_REQ_LUN_IN(TW_LUN_OUT(newcommand->sgl_entries__lunh), 1));
1448 if (TW_OP_OUT(full_command_packet->command.newcommand.opcode__reserved) == TW_OP_EXECUTE_SCSI) {
1449 if (full_command_packet->command.newcommand.status != 0) {
1835 command_packet = &full_command_packet->command.newcommand;