Lines Matching refs:command_packet
229 TW_Command *command_packet; in twa_aen_complete() local
238 command_packet = &full_command_packet->command.oldcommand; in twa_aen_complete()
241 if (TW_OP_OUT(command_packet->opcode__sgloffset) == TW_OP_SET_PARAM) { in twa_aen_complete()
478 TW_Command *command_packet; in twa_aen_sync_time() local
485 command_packet = &full_command_packet->command.oldcommand; in twa_aen_sync_time()
486 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); in twa_aen_sync_time()
487 command_packet->request_id = request_id; in twa_aen_sync_time()
488 …command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twa_aen_sync_time()
489 command_packet->byte8_offset.param.sgl[0].length = cpu_to_le32(TW_SECTOR_SIZE); in twa_aen_sync_time()
490 command_packet->size = TW_COMMAND_SIZE; in twa_aen_sync_time()
491 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); in twa_aen_sync_time()
1060 TW_Command *command_packet; in twa_get_param() local
1067 command_packet = &full_command_packet->command.oldcommand; in twa_get_param()
1069 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in twa_get_param()
1070 command_packet->size = TW_COMMAND_SIZE; in twa_get_param()
1071 command_packet->request_id = request_id; in twa_get_param()
1072 command_packet->byte6_offset.block_count = cpu_to_le16(1); in twa_get_param()
1081 …command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twa_get_param()
1082 command_packet->byte8_offset.param.sgl[0].length = cpu_to_le32(TW_SECTOR_SIZE); in twa_get_param()
1808 TW_Command_Apache *command_packet; in DEF_SCSI_QCMD() local
1827 command_packet = &full_command_packet->command.newcommand; in DEF_SCSI_QCMD()
1828 command_packet->status = 0; in DEF_SCSI_QCMD()
1829 command_packet->opcode__reserved = TW_OPRES_IN(0, TW_OP_EXECUTE_SCSI); in DEF_SCSI_QCMD()
1833 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); in DEF_SCSI_QCMD()
1835 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); in DEF_SCSI_QCMD()
1838 command_packet->unit = srb->device->id; in DEF_SCSI_QCMD()
1839 command_packet->request_id__lunl = in DEF_SCSI_QCMD()
1842 command_packet->request_id__lunl = in DEF_SCSI_QCMD()
1844 command_packet->unit = 0; in DEF_SCSI_QCMD()
1847 command_packet->sgl_offset = 16; in DEF_SCSI_QCMD()
1859 command_packet->sg_list[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[request_id]); in DEF_SCSI_QCMD()
1860 command_packet->sg_list[0].length = cpu_to_le32(TW_MIN_SGL_LENGTH); in DEF_SCSI_QCMD()
1867 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sg_dma_address(sg)); in DEF_SCSI_QCMD()
1868 command_packet->sg_list[i].length = cpu_to_le32(sg_dma_len(sg)); in DEF_SCSI_QCMD()
1869 if (command_packet->sg_list[i].address & TW_CPU_TO_SGL(TW_ALIGNMENT_9000_SGL)) { in DEF_SCSI_QCMD()
1875 …command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_cou… in DEF_SCSI_QCMD()
1880 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sglistarg[i].address); in DEF_SCSI_QCMD()
1881 command_packet->sg_list[i].length = cpu_to_le32(sglistarg[i].length); in DEF_SCSI_QCMD()
1882 if (command_packet->sg_list[i].address & TW_CPU_TO_SGL(TW_ALIGNMENT_9000_SGL)) { in DEF_SCSI_QCMD()
1887 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in DEF_SCSI_QCMD()