Lines Matching refs:command_packet

293 	TW_Command_Apache *command_packet;  in twl_scsiop_execute_scsi()  local
311 command_packet = &full_command_packet->command.newcommand; in twl_scsiop_execute_scsi()
312 command_packet->status = 0; in twl_scsiop_execute_scsi()
313 command_packet->opcode__reserved = TW_OPRES_IN(0, TW_OP_EXECUTE_SCSI); in twl_scsiop_execute_scsi()
317 memcpy(command_packet->cdb, srb->cmnd, TW_MAX_CDB_LEN); in twl_scsiop_execute_scsi()
319 memcpy(command_packet->cdb, cdb, TW_MAX_CDB_LEN); in twl_scsiop_execute_scsi()
322 command_packet->unit = srb->device->id; in twl_scsiop_execute_scsi()
323 command_packet->request_id__lunl = in twl_scsiop_execute_scsi()
326 command_packet->request_id__lunl = in twl_scsiop_execute_scsi()
328 command_packet->unit = 0; in twl_scsiop_execute_scsi()
331 command_packet->sgl_offset = 16; in twl_scsiop_execute_scsi()
341 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sg_dma_address(sg)); in twl_scsiop_execute_scsi()
342 command_packet->sg_list[i].length = TW_CPU_TO_SGL(sg_dma_len(sg)); in twl_scsiop_execute_scsi()
344command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_cou… in twl_scsiop_execute_scsi()
349 command_packet->sg_list[i].address = TW_CPU_TO_SGL(sglistarg[i].address); in twl_scsiop_execute_scsi()
350 command_packet->sg_list[i].length = TW_CPU_TO_SGL(sglistarg[i].length); in twl_scsiop_execute_scsi()
352 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg)); in twl_scsiop_execute_scsi()
411 TW_Command *command_packet; in twl_aen_sync_time() local
418 command_packet = &full_command_packet->command.oldcommand; in twl_aen_sync_time()
419 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_SET_PARAM); in twl_aen_sync_time()
420 command_packet->request_id = request_id; in twl_aen_sync_time()
421command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twl_aen_sync_time()
422 command_packet->byte8_offset.param.sgl[0].length = TW_CPU_TO_SGL(TW_SECTOR_SIZE); in twl_aen_sync_time()
423 command_packet->size = TW_COMMAND_SIZE; in twl_aen_sync_time()
424 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); in twl_aen_sync_time()
468 TW_Command *command_packet; in twl_aen_complete() local
477 command_packet = &full_command_packet->command.oldcommand; in twl_aen_complete()
480 if (TW_OP_OUT(command_packet->opcode__sgloffset) == TW_OP_SET_PARAM) { in twl_aen_complete()
927 TW_Command *command_packet; in twl_get_param() local
934 command_packet = &full_command_packet->command.oldcommand; in twl_get_param()
936 command_packet->opcode__sgloffset = TW_OPSGL_IN(2, TW_OP_GET_PARAM); in twl_get_param()
937 command_packet->size = TW_COMMAND_SIZE; in twl_get_param()
938 command_packet->request_id = request_id; in twl_get_param()
939 command_packet->byte6_offset.block_count = cpu_to_le16(1); in twl_get_param()
948command_packet->byte8_offset.param.sgl[0].address = TW_CPU_TO_SGL(tw_dev->generic_buffer_phys[requ… in twl_get_param()
949 command_packet->byte8_offset.param.sgl[0].length = TW_CPU_TO_SGL(TW_SECTOR_SIZE); in twl_get_param()