Lines Matching refs:command_packet

230 	TW_Command *command_packet;  in twa_aen_complete()  local
239 command_packet = &full_command_packet->command.oldcommand; in twa_aen_complete()
242 if (TW_OP_OUT(command_packet->opcode__sgloffset) == TW_OP_SET_PARAM) { in twa_aen_complete()
481 TW_Command *command_packet; in twa_aen_sync_time() local
488 command_packet = &full_command_packet->command.oldcommand; in twa_aen_sync_time()
489 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); in twa_aen_sync_time()
490 command_packet->request_id = request_id; in twa_aen_sync_time()
491command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twa_aen_sync_time()
492 command_packet->byte8_offset.param.sgl[0].length = cpu_to_le32(TW_SECTOR_SIZE); in twa_aen_sync_time()
493 command_packet->size = TW_COMMAND_SIZE; in twa_aen_sync_time()
494 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); in twa_aen_sync_time()
1058 TW_Command *command_packet; in twa_get_param() local
1065 command_packet = &full_command_packet->command.oldcommand; in twa_get_param()
1067 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in twa_get_param()
1068 command_packet->size = TW_COMMAND_SIZE; in twa_get_param()
1069 command_packet->request_id = request_id; in twa_get_param()
1070 command_packet->byte6_offset.block_count = cpu_to_le16(1); in twa_get_param()
1079command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twa_get_param()
1080 command_packet->byte8_offset.param.sgl[0].length = cpu_to_le32(TW_SECTOR_SIZE); in twa_get_param()
1804 TW_Command_Apache *command_packet; in DEF_SCSI_QCMD() local
1823 command_packet = &full_command_packet->command.newcommand; in DEF_SCSI_QCMD()
1824 command_packet->status = 0; in DEF_SCSI_QCMD()
1825 command_packet->opcode__reserved = TW_OPRES_IN(0, TW_OP_EXECUTE_SCSI); in DEF_SCSI_QCMD()
1829 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); in DEF_SCSI_QCMD()
1831 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); in DEF_SCSI_QCMD()
1834 command_packet->unit = srb->device->id; in DEF_SCSI_QCMD()
1835 command_packet->request_id__lunl = in DEF_SCSI_QCMD()
1838 command_packet->request_id__lunl = in DEF_SCSI_QCMD()
1840 command_packet->unit = 0; in DEF_SCSI_QCMD()
1843 command_packet->sgl_offset = 16; in DEF_SCSI_QCMD()
1855 command_packet->sg_list[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[request_id]); in DEF_SCSI_QCMD()
1856 command_packet->sg_list[0].length = cpu_to_le32(TW_MIN_SGL_LENGTH); in DEF_SCSI_QCMD()
1863 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sg_dma_address(sg)); in DEF_SCSI_QCMD()
1864 command_packet->sg_list[i].length = cpu_to_le32(sg_dma_len(sg)); in DEF_SCSI_QCMD()
1865 if (command_packet->sg_list[i].address & TW_CPU_TO_SGL(TW_ALIGNMENT_9000_SGL)) { in DEF_SCSI_QCMD()
1871command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_cou… in DEF_SCSI_QCMD()
1876 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sglistarg[i].address); in DEF_SCSI_QCMD()
1877 command_packet->sg_list[i].length = cpu_to_le32(sglistarg[i].length); in DEF_SCSI_QCMD()
1878 if (command_packet->sg_list[i].address & TW_CPU_TO_SGL(TW_ALIGNMENT_9000_SGL)) { in DEF_SCSI_QCMD()
1883 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in DEF_SCSI_QCMD()