Lines Matching refs:command_packet
297 TW_Command_Apache *command_packet; in twl_scsiop_execute_scsi() local
312 command_packet = &full_command_packet->command.newcommand; in twl_scsiop_execute_scsi()
313 command_packet->status = 0; in twl_scsiop_execute_scsi()
314 command_packet->opcode__reserved = TW_OPRES_IN(0, TW_OP_EXECUTE_SCSI); in twl_scsiop_execute_scsi()
318 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); in twl_scsiop_execute_scsi()
320 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); in twl_scsiop_execute_scsi()
323 command_packet->unit = srb->device->id; in twl_scsiop_execute_scsi()
324 command_packet->request_id__lunl = in twl_scsiop_execute_scsi()
327 command_packet->request_id__lunl = in twl_scsiop_execute_scsi()
329 command_packet->unit = 0; in twl_scsiop_execute_scsi()
332 command_packet->sgl_offset = 16; in twl_scsiop_execute_scsi()
342 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sg_dma_address(sg)); in twl_scsiop_execute_scsi()
343 command_packet->sg_list[i].length = TW_CPU_TO_SGL(sg_dma_len(sg)); in twl_scsiop_execute_scsi()
345 …command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_cou… in twl_scsiop_execute_scsi()
350 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sglistarg[i].address); in twl_scsiop_execute_scsi()
351 command_packet->sg_list[i].length = TW_CPU_TO_SGL(sglistarg[i].length); in twl_scsiop_execute_scsi()
353 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in twl_scsiop_execute_scsi()
412 TW_Command *command_packet; in twl_aen_sync_time() local
419 command_packet = &full_command_packet->command.oldcommand; in twl_aen_sync_time()
420 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); in twl_aen_sync_time()
421 command_packet->request_id = request_id; in twl_aen_sync_time()
422 …command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twl_aen_sync_time()
423 command_packet->byte8_offset.param.sgl[0].length = TW_CPU_TO_SGL(TW_SECTOR_SIZE); in twl_aen_sync_time()
424 command_packet->size = TW_COMMAND_SIZE; in twl_aen_sync_time()
425 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); in twl_aen_sync_time()
469 TW_Command *command_packet; in twl_aen_complete() local
478 command_packet = &full_command_packet->command.oldcommand; in twl_aen_complete()
481 if (TW_OP_OUT(command_packet->opcode__sgloffset) == TW_OP_SET_PARAM) { in twl_aen_complete()
928 TW_Command *command_packet; in twl_get_param() local
935 command_packet = &full_command_packet->command.oldcommand; in twl_get_param()
937 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in twl_get_param()
938 command_packet->size = TW_COMMAND_SIZE; in twl_get_param()
939 command_packet->request_id = request_id; in twl_get_param()
940 command_packet->byte6_offset.block_count = cpu_to_le16(1); in twl_get_param()
949 …command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twl_get_param()
950 command_packet->byte8_offset.param.sgl[0].length = TW_CPU_TO_SGL(TW_SECTOR_SIZE); in twl_get_param()