Lines Matching refs:command_packet
297 TW_Command_Apache *command_packet; in twl_scsiop_execute_scsi() local
315 command_packet = &full_command_packet->command.newcommand; in twl_scsiop_execute_scsi()
316 command_packet->status = 0; in twl_scsiop_execute_scsi()
317 command_packet->opcode__reserved = TW_OPRES_IN(0, TW_OP_EXECUTE_SCSI); in twl_scsiop_execute_scsi()
321 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); in twl_scsiop_execute_scsi()
323 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); in twl_scsiop_execute_scsi()
326 command_packet->unit = srb->device->id; in twl_scsiop_execute_scsi()
327 command_packet->request_id__lunl = in twl_scsiop_execute_scsi()
330 command_packet->request_id__lunl = in twl_scsiop_execute_scsi()
332 command_packet->unit = 0; in twl_scsiop_execute_scsi()
335 command_packet->sgl_offset = 16; in twl_scsiop_execute_scsi()
345 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sg_dma_address(sg)); in twl_scsiop_execute_scsi()
346 command_packet->sg_list[i].length = TW_CPU_TO_SGL(sg_dma_len(sg)); in twl_scsiop_execute_scsi()
348 …command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_cou… in twl_scsiop_execute_scsi()
353 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sglistarg[i].address); in twl_scsiop_execute_scsi()
354 command_packet->sg_list[i].length = TW_CPU_TO_SGL(sglistarg[i].length); in twl_scsiop_execute_scsi()
356 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in twl_scsiop_execute_scsi()
416 TW_Command *command_packet; in twl_aen_sync_time() local
423 command_packet = &full_command_packet->command.oldcommand; in twl_aen_sync_time()
424 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); in twl_aen_sync_time()
425 command_packet->request_id = request_id; in twl_aen_sync_time()
426 …command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twl_aen_sync_time()
427 command_packet->byte8_offset.param.sgl[0].length = TW_CPU_TO_SGL(TW_SECTOR_SIZE); in twl_aen_sync_time()
428 command_packet->size = TW_COMMAND_SIZE; in twl_aen_sync_time()
429 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); in twl_aen_sync_time()
474 TW_Command *command_packet; in twl_aen_complete() local
483 command_packet = &full_command_packet->command.oldcommand; in twl_aen_complete()
486 if (TW_OP_OUT(command_packet->opcode__sgloffset) == TW_OP_SET_PARAM) { in twl_aen_complete()
933 TW_Command *command_packet; in twl_get_param() local
940 command_packet = &full_command_packet->command.oldcommand; in twl_get_param()
942 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in twl_get_param()
943 command_packet->size = TW_COMMAND_SIZE; in twl_get_param()
944 command_packet->request_id = request_id; in twl_get_param()
945 command_packet->byte6_offset.block_count = cpu_to_le16(1); in twl_get_param()
954 …command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twl_get_param()
955 command_packet->byte8_offset.param.sgl[0].length = TW_CPU_TO_SGL(TW_SECTOR_SIZE); in twl_get_param()