Home
last modified time | relevance | path

Searched refs:command (Results 1 – 25 of 63) sorted by relevance

123

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DSudoTools.cs28 …public static Process EnsureSudoExecute(string command, string arguments = "", string description … in EnsureSudoExecute() argument
31 …process = Misc.IsRoot ? Process.Start(command, arguments) : SudoExecute(command + " " + arguments,… in EnsureSudoExecute()
53 var command = sudoProcess.StartInfo.FileName + " " + sudoProcess.StartInfo.Arguments; in EnsureSudoProcess()
54 sudoProcess.StartInfo.Arguments = SudoDecorateCommand(sudoName, command, description); in EnsureSudoProcess()
99 private static Process SudoExecute(string command, string description = "") in SudoExecute() argument
103 command = SudoDecorateCommand(sudoName, command, description); in SudoExecute()
104 process = Process.Start(sudoName, command); in SudoExecute()
115 …private static string SudoDecorateCommand(string sudoName, string command, string description = "") in SudoDecorateCommand() argument
123 result = string.Format(@"-D ""{0}"" ""{1}""", description, command); in SudoDecorateCommand()
126 result = string.Format(@"-c ""{0}"" --comment ""{1}""", command, description); in SudoDecorateCommand()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Network/
DAtCommandModemParsing.cs145 public ParsedCommand(string command) in ParsedCommand() argument
147 if(!command.StartsWith("AT", true, CultureInfo.InvariantCulture)) in ParsedCommand()
152 if(command.EndsWith("=?")) // Test command in ParsedCommand()
154 Command = command.Substring(0, command.Length - 2); in ParsedCommand()
157 else if(command.EndsWith("?")) // Read command in ParsedCommand()
159 Command = command.Substring(0, command.Length - 1); in ParsedCommand()
162 else if(command.Contains("=")) // Write command in ParsedCommand()
164 var parts = command.Split(new [] { '=' }, 2); in ParsedCommand()
174 if(char.IsDigit(command.Last())) in ParsedCommand()
176 arguments = command.Last().ToString(); in ParsedCommand()
[all …]
DAtCommandModem.cs79 var command = lineBuffer.ToString(); in WriteChar()
81 if(command == "") in WriteChar()
86 this.Log(LogLevel.Debug, "Command received: '{0}'", command); in WriteChar()
87 var response = HandleCommand(command); in WriteChar()
106 …public void OverrideResponseForCommand(string command, string status, string parameters = "", bool… in OverrideResponseForCommand() argument
109 … commandOverrides[command] = new CommandOverride(new Response(status, splitParams), oneShot); in OverrideResponseForCommand()
272 private bool TryFindCommandMethod(ParsedCommand command, out MethodInfo method) in TryFindCommandMethod() argument
274 if(!commandMethods.TryGetValue(command.Command, out var types)) in TryFindCommandMethod()
281 if(!types.TryGetValue(command.Type, out method)) in TryFindCommandMethod()
286 if(command.Type == CommandType.Test) in TryFindCommandMethod()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Utilities/GDB/Commands/
DSupportedQueryCommand.cs20 var command = new StringBuilder(); in Execute()
22command.Append(string.Format("PacketSize={0};qXfer:features:read+;swbreak+;hwbreak+;t32extensions+… in Execute()
25 command.Append(";qXfer:threads:read+;vContSupported+"); in Execute()
27 return new PacketData(command.ToString()); in Execute()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/Exceptions/
DParametersMismatchException.cs15 …public ParametersMismatchException(Type type, string command, string name) : base("Parameters did … in ParametersMismatchException() argument
19 Command = command; in ParametersMismatchException()
21 …public ParametersMismatchException(Type type, string command, string name, string message) : base(… in ParametersMismatchException() argument
25 Command = command; in ParametersMismatchException()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SPI/
DPULP_uDMA_SPI.cs103 command = Commands.None; in Reset()
115 if(command != Commands.None) in TryExecuteTransaction()
125 command = ReadCommand(); in TryExecuteTransaction()
126 switch(command) in TryExecuteTransaction()
135 this.Log(LogLevel.Error, "Encountered unsupported command: 0x{0:X}", command); in TryExecuteTransaction()
136 command = Commands.None; in TryExecuteTransaction()
144 if(!rxEnable.Value || command != Commands.ReceiveData) in TryStartReception()
162 command = Commands.None; in TryStartReception()
168 if(!txEnable.Value || command != Commands.TransferData) in TryStartTransmission()
183 command = Commands.None; in TryStartTransmission()
[all …]
DCypress_S25H.cs85 protected override int GetDummyBytes(Commands command) in GetDummyBytes() argument
87 switch(command) in GetDummyBytes()
92 return base.GetDummyBytes(command); in GetDummyBytes()
DCadence_xSPI.cs143 if(TryGetDMACommand(TransmissionDirection.Write, out var command)) in WriteUsingDMA()
145 command.WriteData(data); in WriteUsingDMA()
153 if(TryGetDMACommand(TransmissionDirection.Read, out var command)) in ReadUsingDMA()
155 var data = command.ReadData(length); in ReadUsingDMA()
163 … private bool TryGetDMACommand(TransmissionDirection accessDirection, out IDMACommand command) in TryGetDMACommand() argument
165 command = currentCommand as IDMACommand; in TryGetDMACommand()
166 if(command == null) in TryGetDMACommand()
171 if(command.DMADirection != accessDirection) in TryGetDMACommand()
173 …a using DMA with the wrong direction ({0}), expected {1}.", accessDirection, command.DMADirection); in TryGetDMACommand()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Sensors/
DSI70xx.cs49 if(!commands.TryGetCommand(data, out var command)) in Write()
54 command(data); in Write()
100 private void MeasureHumidity(byte[] command) in MeasureHumidity() argument
106 private void MeasureTemperature(byte[] command) in MeasureTemperature() argument
112 private void ReadElectronicId1stByte(byte[] command) in ReadElectronicId1stByte() argument
125 private void ReadElectronicId2ndByte(byte[] command) in ReadElectronicId2ndByte() argument
140 private void ResetOutputBuffer(byte[] command) in ResetOutputBuffer() argument
DICP_101xx.cs34 command = null; in SoftwareReset()
61 command = (Command)BitHelper.ToUInt16(data, 0, reverse: false); in Write()
67 if(!command.HasValue) in Read()
293 …private void RegisterCommand(Command command, Action<byte[], int> writeHandler = null, Func<int, I… in RegisterCommand() argument
295 if(writeHandlers.ContainsKey(command) || readHandlers.ContainsKey(command)) in RegisterCommand()
300 this.Log(LogLevel.Noisy, "Registered command 0x{0:X}.", command); in RegisterCommand()
302 writeHandlers.Add(command, writeHandler ?? ((data, offset) => in RegisterCommand()
306 … this.Log(LogLevel.Warning, "Attempted write while handling read-only command '{0}'.", command); in RegisterCommand()
309 readHandlers.Add(command, readHandler ?? (count => in RegisterCommand()
313 … this.Log(LogLevel.Warning, "Attempted read while handling write-only command '{0}'.", command); in RegisterCommand()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/MonitorTests/CommandTests/
DActionArguments.cs77 public void CommandResultShouldContain(string command, string expected) in CommandResultShouldContain() argument
79 monitor.Parse(command, commandEater); in CommandResultShouldContain()
92 public void CommandShouldFail(string command) in CommandShouldFail() argument
94 CommandResultShouldContain(command, "The following methods are available"); in CommandShouldFail()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/I2C/
DI2CCommandManager.cs27 … var command = commands.FirstOrDefault(x => x.Item1.SequenceEqual(data.Take(x.Item1.Length))); in TryGetCommand()
28 if(command == null) in TryGetCommand()
34 handler = command.Item2; in TryGetCommand()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/
DMonitorPythonEngine.cs68 public bool ExecuteBuiltinCommand(Token[] command, ICommandInteraction writer) in ExecuteBuiltinCommand() argument
70 var command_name = ((LiteralToken)command[0]).Value; in ExecuteBuiltinCommand()
77 var arguments = command.Skip(1); in ExecuteBuiltinCommand()
78 var argumentsLength = command.Length - 1; in ExecuteBuiltinCommand()
126 public object ExecutePythonCommand(string command, ICommandInteraction writer) in ExecutePythonCommand() argument
130 var script = Engine.CreateScriptSourceFromString(command); in ExecutePythonCommand()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/
DSAM4S_EEFC.cs103 private void ExecuteFlashCommand(Commands command, int argument) in ExecuteFlashCommand() argument
105 this.Log(LogLevel.Debug, "Executing command {0}, argument 0x{1:X}", command, argument); in ExecuteFlashCommand()
110 switch(command) in ExecuteFlashCommand()
228 this.Log(LogLevel.Warning, "{0} command is not supported", command); in ExecuteFlashCommand()
256 .WithValueField(0, 8, out var command, name: "FCMD") in DefineRegisters()
261 … if(key.Value != Password || !Enum.IsDefined(typeof(Commands), (int)command.Value)) in DefineRegisters()
268 ExecuteFlashCommand((Commands)command.Value, (int)argument.Value); in DefineRegisters()
DOpenTitan_BigNumberAccelerator.cs188 … .WithEnumField<DoubleWordRegister, Command>(0, 8, FieldMode.Write, writeCallback: (_, command) => in DefineRegisters()
192 EnterState(command); in DefineRegisters()
195 HandleCommand(command); in DefineRegisters()
294 private void EnterState(Command command) in EnterState() argument
296 switch(command) in EnterState()
308 this.Log(LogLevel.Error, "Unrecognized command : 0x{0:X}", command); in EnterState()
313 private void HandleCommand(Command command) in HandleCommand() argument
315 switch(command) in HandleCommand()
327 this.Log(LogLevel.Error, "Unrecognized command : 0x{0:X}", command); in HandleCommand()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/ATAPI/
DCDROM.cs64 var command = SCSICommandDescriptorBlock.DecodeCommand(packet, 0); in HandleCommand()
65 this.Log(LogLevel.Debug, "Decoded command: {0}", command); in HandleCommand()
66 switch(command) in HandleCommand()
93 this.Log(LogLevel.Error, "Unsupported SCSI command: {0}", command); in HandleCommand()
/Renode-Infrastructure-v1.15.3-29f510e/src/UI/ConsoleBackendAnalyzers/
DGnomeTerminalProvider.cs15 protected override Process CreateProcess(string consoleName, string command) in CreateProcess() argument
21 …"{3}\" --title '{0}' --geometry=+{1}+{2}", consoleName, (int)position.X, (int)position.Y, command); in CreateProcess()
DXTermProvider.cs15 protected override Process CreateProcess(string consoleName, string command) in CreateProcess() argument
51 … consoleName, (int)position.X, (int)position.Y, fonts, keys, minFaceSize, scrollKeys, command); in CreateProcess()
DTerminalAppProvider.cs18 protected override Process CreateProcess(string consoleName, string command) in CreateProcess() argument
23 command in CreateProcess()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/Commands/
DPythonExecuteCommand.cs40 public void Run(ICommandInteraction writer, StringToken command) in Run() argument
42 Execute(command.Value, writer); in Run()
DWatchCommand.cs25 public void Run(ICommandInteraction writer, StringToken command, DecimalIntegerToken delay) in Run() argument
38 monitor.Parse(command.Value, eater); in Run()
DHelpCommand.cs41 var command = GetCommands().First(x => x.Name == commandName.Value); in CommandHelp()
42 command.PrintHelp(writer); in CommandHelp()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Test/PeripheralsTests/
DOpenTitan_I2C_Test.cs68 var command = new I2C.FormatIndicator(data: Sensor1Address, start: true); in ShouldSetExceptionOnFmtWatermark()
71 EnqueueCommand(command); in ShouldSetExceptionOnFmtWatermark()
75 EnqueueCommand(command); in ShouldSetExceptionOnFmtWatermark()
104 var command = new I2C.FormatIndicator(data: Sensor1Address, start: true); in ShouldSetExceptionOnOverflow()
107 EnqueueCommand(command); in ShouldSetExceptionOnOverflow()
111 EnqueueCommand(command); in ShouldSetExceptionOnOverflow()
317 private void EnqueueCommand(I2C.FormatIndicator command) in EnqueueCommand() argument
319 WriteToRegister(I2C.Registers.FormatData, command.ToRegisterFormat()); in EnqueueCommand()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Python/
DPythonPeripheral.cs126 public void ControlWrite(long command, ulong value) in ControlWrite() argument
129 ControlRead(command, value); in ControlWrite()
132 public ulong ControlRead(long command, ulong value) in ControlRead() argument
138 pythonRunner.Request.offset = command; in ControlRead()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SD/
DMMCController.cs45 …protected uint[] ExecuteCommand(Commands command, uint args, bool sendInitSequence, bool dataTrans… in ExecuteCommand() argument
53 switch(command) in ExecuteCommand()
104 … this.Log(LogLevel.Warning, "Unhandled MMC command: 0x{0:X} with args 0x{1:X}", command, args); in ExecuteCommand()

123