Lines Matching refs:command_packet
227 TW_Command *command_packet; in twa_aen_complete() local
236 command_packet = &full_command_packet->command.oldcommand; in twa_aen_complete()
239 if (TW_OP_OUT(command_packet->opcode__sgloffset) == TW_OP_SET_PARAM) { in twa_aen_complete()
476 TW_Command *command_packet; in twa_aen_sync_time() local
483 command_packet = &full_command_packet->command.oldcommand; in twa_aen_sync_time()
484 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); in twa_aen_sync_time()
485 command_packet->request_id = request_id; in twa_aen_sync_time()
486 …command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twa_aen_sync_time()
487 command_packet->byte8_offset.param.sgl[0].length = cpu_to_le32(TW_SECTOR_SIZE); in twa_aen_sync_time()
488 command_packet->size = TW_COMMAND_SIZE; in twa_aen_sync_time()
489 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); in twa_aen_sync_time()
1056 TW_Command *command_packet; in twa_get_param() local
1063 command_packet = &full_command_packet->command.oldcommand; in twa_get_param()
1065 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in twa_get_param()
1066 command_packet->size = TW_COMMAND_SIZE; in twa_get_param()
1067 command_packet->request_id = request_id; in twa_get_param()
1068 command_packet->byte6_offset.block_count = cpu_to_le16(1); in twa_get_param()
1077 …command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twa_get_param()
1078 command_packet->byte8_offset.param.sgl[0].length = cpu_to_le32(TW_SECTOR_SIZE); in twa_get_param()
1802 TW_Command_Apache *command_packet; in DEF_SCSI_QCMD() local
1821 command_packet = &full_command_packet->command.newcommand; in DEF_SCSI_QCMD()
1822 command_packet->status = 0; in DEF_SCSI_QCMD()
1823 command_packet->opcode__reserved = TW_OPRES_IN(0, TW_OP_EXECUTE_SCSI); in DEF_SCSI_QCMD()
1827 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); in DEF_SCSI_QCMD()
1829 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); in DEF_SCSI_QCMD()
1832 command_packet->unit = srb->device->id; in DEF_SCSI_QCMD()
1833 command_packet->request_id__lunl = in DEF_SCSI_QCMD()
1836 command_packet->request_id__lunl = in DEF_SCSI_QCMD()
1838 command_packet->unit = 0; in DEF_SCSI_QCMD()
1841 command_packet->sgl_offset = 16; in DEF_SCSI_QCMD()
1853 command_packet->sg_list[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[request_id]); in DEF_SCSI_QCMD()
1854 command_packet->sg_list[0].length = cpu_to_le32(TW_MIN_SGL_LENGTH); in DEF_SCSI_QCMD()
1861 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sg_dma_address(sg)); in DEF_SCSI_QCMD()
1862 command_packet->sg_list[i].length = cpu_to_le32(sg_dma_len(sg)); in DEF_SCSI_QCMD()
1863 if (command_packet->sg_list[i].address & TW_CPU_TO_SGL(TW_ALIGNMENT_9000_SGL)) { in DEF_SCSI_QCMD()
1869 …command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_cou… in DEF_SCSI_QCMD()
1874 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sglistarg[i].address); in DEF_SCSI_QCMD()
1875 command_packet->sg_list[i].length = cpu_to_le32(sglistarg[i].length); in DEF_SCSI_QCMD()
1876 if (command_packet->sg_list[i].address & TW_CPU_TO_SGL(TW_ALIGNMENT_9000_SGL)) { in DEF_SCSI_QCMD()
1881 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in DEF_SCSI_QCMD()