Lines Matching refs:command_packet

231 	TW_Command *command_packet;  in twa_aen_complete()  local
240 command_packet = &full_command_packet->command.oldcommand; in twa_aen_complete()
243 if (TW_OP_OUT(command_packet->opcode__sgloffset) == TW_OP_SET_PARAM) { in twa_aen_complete()
480 TW_Command *command_packet; in twa_aen_sync_time() local
487 command_packet = &full_command_packet->command.oldcommand; in twa_aen_sync_time()
488 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); in twa_aen_sync_time()
489 command_packet->request_id = request_id; in twa_aen_sync_time()
490command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twa_aen_sync_time()
491 command_packet->byte8_offset.param.sgl[0].length = cpu_to_le32(TW_SECTOR_SIZE); in twa_aen_sync_time()
492 command_packet->size = TW_COMMAND_SIZE; in twa_aen_sync_time()
493 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); in twa_aen_sync_time()
1059 TW_Command *command_packet; in twa_get_param() local
1066 command_packet = &full_command_packet->command.oldcommand; in twa_get_param()
1068 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in twa_get_param()
1069 command_packet->size = TW_COMMAND_SIZE; in twa_get_param()
1070 command_packet->request_id = request_id; in twa_get_param()
1071 command_packet->byte6_offset.block_count = cpu_to_le16(1); in twa_get_param()
1080command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twa_get_param()
1081 command_packet->byte8_offset.param.sgl[0].length = cpu_to_le32(TW_SECTOR_SIZE); in twa_get_param()
1803 TW_Command_Apache *command_packet; in DEF_SCSI_QCMD() local
1819 command_packet = &full_command_packet->command.newcommand; in DEF_SCSI_QCMD()
1820 command_packet->status = 0; in DEF_SCSI_QCMD()
1821 command_packet->opcode__reserved = TW_OPRES_IN(0, TW_OP_EXECUTE_SCSI); in DEF_SCSI_QCMD()
1825 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); in DEF_SCSI_QCMD()
1827 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); in DEF_SCSI_QCMD()
1830 command_packet->unit = srb->device->id; in DEF_SCSI_QCMD()
1831 command_packet->request_id__lunl = in DEF_SCSI_QCMD()
1834 command_packet->request_id__lunl = in DEF_SCSI_QCMD()
1836 command_packet->unit = 0; in DEF_SCSI_QCMD()
1839 command_packet->sgl_offset = 16; in DEF_SCSI_QCMD()
1851 command_packet->sg_list[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[request_id]); in DEF_SCSI_QCMD()
1852 command_packet->sg_list[0].length = cpu_to_le32(TW_MIN_SGL_LENGTH); in DEF_SCSI_QCMD()
1859 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sg_dma_address(sg)); in DEF_SCSI_QCMD()
1860 command_packet->sg_list[i].length = cpu_to_le32(sg_dma_len(sg)); in DEF_SCSI_QCMD()
1861 if (command_packet->sg_list[i].address & TW_CPU_TO_SGL(TW_ALIGNMENT_9000_SGL)) { in DEF_SCSI_QCMD()
1867command_packet->sgl_entries__lunh = TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->s… in DEF_SCSI_QCMD()
1872 command_packet->sg_list[i].address = sglistarg[i].address; in DEF_SCSI_QCMD()
1873 command_packet->sg_list[i].length = sglistarg[i].length; in DEF_SCSI_QCMD()
1874 if (command_packet->sg_list[i].address & TW_CPU_TO_SGL(TW_ALIGNMENT_9000_SGL)) { in DEF_SCSI_QCMD()
1879 command_packet->sgl_entries__lunh = TW_REQ_LUN_IN(0, use_sg); in DEF_SCSI_QCMD()