Home
last modified time | relevance | path

Searched refs:fileName (Results 1 – 25 of 31) sorted by relevance

12

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DCachingFileFetcher.cs43 string fileName; in FetchFromUri()
44 if(!TryFetchFromUri(uri, out fileName)) in FetchFromUri()
48 return fileName; in FetchFromUri()
59 public bool TryFetchFromUri(Uri uri, out string fileName) in TryFetchFromUri() argument
61 fileName = null; in TryFetchFromUri()
73 ? TryFetchFromUriInner(uri, out fileName) in TryFetchFromUri()
74 : TryFetchFromCacheOrUriInner(uri, out fileName); in TryFetchFromUri()
102 private bool TryFetchFromCacheOrUriInner(Uri uri, out string fileName) in TryFetchFromCacheOrUriInner() argument
106 if(TryGetFromCache(uri, out fileName)) in TryFetchFromCacheOrUriInner()
108 fetchedFiles.Add(fileName, uri.ToString()); in TryFetchFromCacheOrUriInner()
[all …]
DELFUtils.cs15 public static IELF LoadELF(ReadFilePath fileName) in LoadELF() argument
19 if(!ELFReader.TryLoad(fileName, out var result)) in LoadELF()
DTemporaryFilesManager.cs37 …var fileName = string.Format(fileNameSuffix != null ? $"{Guid.NewGuid()}-{fileNameSuffix}" : $"{Gu… in GetTemporaryFile()
38 path = Path.Combine(emulatorTemporaryPath, fileName); in GetTemporaryFile()
58 … public bool TryCreateFile(string fileName, out string path, bool overwriteExistingFile = false) in TryCreateFile() argument
60 path = Path.Combine(emulatorTemporaryPath, fileName); in TryCreateFile()
DIBlobProvider.cs16 void BlobIsReady(string fileName, long offset, long length); in BlobIsReady() argument
DAssemblyHelper.cs96 private static string ExtractAssemblyToFile(Stream stream, string fileName) in ExtractAssemblyToFile() argument
98 var outputFile = TemporaryFilesManager.Instance.GetTemporaryFile(fileName); in ExtractAssemblyToFile()
DFilePath.cs184 var fileName = path.Substring(lastSplit + 1); in Validate()
185 var pathGlob = string.Concat(fileName, ".*"); in Validate()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/Extensions/
DFileLoaderExtensions.cs24 …public static void LoadBinary(this ICanLoadFiles loader, ReadFilePath fileName, ulong loadPoint, I… in LoadBinary() argument
29 Logger.LogAs(loader, LogLevel.Debug, "Loading binary file {0}.", fileName); in LoadBinary()
32 using(var reader = new FileStream(fileName, FileMode.Open, FileAccess.Read)) in LoadBinary()
51 … RecoverableException(string.Format("Exception while loading file {0}: {1}", fileName, e.Message)); in LoadBinary()
55 loader.LoadFileChunks(fileName, chunks, cpu); in LoadBinary()
58 …public static void LoadHEX(this ICanLoadFiles loader, ReadFilePath fileName, IInitableCPU cpu = nu… in LoadHEX() argument
67 Logger.LogAs(loader, LogLevel.Debug, "Loading HEX file {0}.", fileName); in LoadHEX()
70 using(var file = new System.IO.StreamReader(fileName)) in LoadHEX()
169 loader.LoadFileChunks(fileName, chunks, cpu); in LoadHEX()
172 …public static void LoadSRecord(this ICanLoadFiles loader, ReadFilePath fileName, IInitableCPU cpu … in LoadSRecord() argument
[all …]
DMemoryDumpExtensions.cs18 …public static void DumpBinary(this IMemory memory, SequencedFilePath fileName, ulong offset = 0, I… in DumpBinary() argument
20 memory.DumpBinary(fileName, offset, (ulong)memory.Size - offset, context); in DumpBinary()
23 …public static void DumpBinary(this IMemory memory, SequencedFilePath fileName, ulong offset, ulong… in DumpBinary() argument
29 using(var writer = new FileStream(fileName, FileMode.Create, FileAccess.Write)) in DumpBinary()
48 …public static void DumpHEX(this IMemory memory, SequencedFilePath fileName, ulong offset = 0, ICPU… in DumpHEX() argument
50 memory.DumpHEX(fileName, offset, (ulong)memory.Size - offset, context, addressOption); in DumpHEX()
53 …public static void DumpHEX(this IMemory memory, SequencedFilePath fileName, ulong offset, ulong si… in DumpHEX() argument
76 using(var writer = new StreamWriter(fileName)) in DumpHEX()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/
DPlatformsProvider.cs46 foreach(var fileName in Directory.EnumerateFiles(scriptsPath)) in LoadPlatforms()
48 var tagParser = new PropertyTagParser(File.ReadAllLines(fileName)); in LoadPlatforms()
85 platform.ScriptPath = fileName; in LoadPlatforms()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/MTD/
DCFIFlashExtensions.cs18 …public static void CFIFlashFromFile(this IMachine machine, string fileName, ulong whereToRegister,… in CFIFlashFromFile() argument
23 flash = new CFIFlash(fileName, size, busWidth, nonPersistent); in CFIFlashFromFile()
DSamsungK9NANDFlash.cs22 …public static void SamsungK9NANDFlashFromFile(this IMachine machine, string fileName, ulong busAdd… in SamsungK9NANDFlashFromFile() argument
28 … flash = new SamsungK9NANDFlash(machine, fileName, nonPersistent, partId, manufacturerId); in SamsungK9NANDFlashFromFile()
41 public SamsungK9NANDFlash(IMachine machine, string fileName, bool nonPersistent = false, in SamsungK9NANDFlash() argument
46 …backingStream = DataStorage.Create(fileName, persistent: !nonPersistent, paddingByte: ErasedValue); in SamsungK9NANDFlash()
DCFIFlash.cs23 …public CFIFlash(string fileName, int? size = null, SysbusAccessWidth bits = SysbusAccessWidth.Doub… in CFIFlash() argument
39 Init(fileName, size, nonPersistent); in CFIFlash()
255 private void Init(string fileName, int? requestedSize, bool nonPersistent) in Init() argument
260 FileCopier.Copy(fileName, tempFile, true); in Init()
261 fileName = tempFile; in Init()
264 …stream = new SerializableStreamView(new FileStream(fileName, FileMode.OpenOrCreate), requestedSize… in Init()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Sound/
DEOSS3_Voice.cs39 public void SetInputFile(string fileName, Channel channel = Channel.Left, int repeat = 1) in SetInputFile() argument
52 decoderLeft.LoadFile(fileName); in SetInputFile()
54 inputFileLeft = fileName; in SetInputFile()
67 decoderRight.LoadFile(fileName); in SetInputFile()
69 inputFileRight = fileName; in SetInputFile()
DNRF52840_PDM.cs49 public void SetInputFile(string fileName, Channel channel = Channel.Left, int repeat = 1) in SetInputFile() argument
62 decoderLeft.LoadFile(fileName); in SetInputFile()
64 inputFileLeft = fileName; in SetInputFile()
77 decoderRight.LoadFile(fileName); in SetInputFile()
79 inputFileRight = fileName; in SetInputFile()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Utilities/
DMachineExtensions.cs27 public static void LoadPeripheralsFromJSONFile(this IMachine machine, String fileName) in LoadPeripheralsFromJSONFile() argument
29 if(!File.Exists(fileName)) in LoadPeripheralsFromJSONFile()
31 …tion("Cannot load devices configuration from file {0} as it does not exist.".FormatWith(fileName)); in LoadPeripheralsFromJSONFile()
33 new DevicesConfig(File.ReadAllText(fileName), machine); in LoadPeripheralsFromJSONFile()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/ExecutionTracer/
DExecutionTracer.cs23 …d CreateExecutionTracing(this TranslationCPU @this, string name, string fileName, TraceFormat form… in CreateExecutionTracing() argument
25 var writerBuilder = new TraceWriterBuilder(@this, fileName, format, isBinary, compress); in CreateExecutionTracing()
42 …cutionTracingSynchronous(this TranslationCPU @this, string name, string fileName, TraceFormat form… in CreateExecutionTracingSynchronous() argument
44 CreateExecutionTracing(@this, name, fileName, format, isBinary, compress, true); in CreateExecutionTracingSynchronous()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Testing/
DFrameBufferTester.cs86 public FrameBufferTester WaitForFrame(string fileName, float? timeout = null) in WaitForFrame() argument
88 var image = Image.FromFile(fileName); in WaitForFrame()
121 …public FrameBufferTester WaitForFrameROI(string fileName, uint startX, uint startY, uint width, ui… in WaitForFrameROI() argument
123 var image = Image.FromFile(fileName); in WaitForFrameROI()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/
DSVDParserTests.cs1021 var fileName = TemporaryFilesManager.Instance.GetTemporaryFile(); in SetUpDeviceWithInfix()
1022 … File.WriteAllText(fileName, (littleEndian ? Prefix : BigEndianPrefix) + infix + Postfix); in SetUpDeviceWithInfix()
1023 device = new SVDParser(fileName, currentMachine.SystemBus); in SetUpDeviceWithInfix()
1028 var fileName = TemporaryFilesManager.Instance.GetTemporaryFile(); in SetUpDeviceWithString()
1029 File.WriteAllText(fileName, content); in SetUpDeviceWithString()
1030 device = new SVDParser(fileName, currentMachine.SystemBus); in SetUpDeviceWithString()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/MemoryControllers/
DOpenTitan_ROMController.cs59 public void LoadVmem(string fileName) in LoadVmem() argument
64 var reader = new VmemReader(fileName); in LoadVmem()
74 … RecoverableException(string.Format("Exception while loading file {0}: {1}", fileName, e.Message)); in LoadVmem()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Storage/
DSerializableStreamView.cs130 var fileName = TemporaryFilesManager.Instance.GetTemporaryFile(); in Load()
131 underlyingStream = new FileStream(fileName, FileMode.OpenOrCreate); in Load()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Wireless/
DSlipRadio.cs26 public static void CreateSlipRadio(this Emulation emulation, string name, string fileName) in CreateSlipRadio() argument
29 emulation.ExternalsManager.AddExternal(new SlipRadio(fileName), name); in CreateSlipRadio()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/
DIBusController.cs102 void LoadUImage(ReadFilePath fileName, IInitableCPU cpu = null); in LoadUImage() argument
183 …public static void LoadSymbolsFrom(this IBusController bus, ReadFilePath fileName, bool useVirtual… in LoadSymbolsFrom() argument
185 using(var elf = ELFUtils.LoadELF(fileName)) in LoadSymbolsFrom()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/
DMonitorPythonEngine.cs119 public bool TryExecutePythonScript(ReadFilePath fileName, ICommandInteraction writer) in TryExecutePythonScript() argument
121 var script = Engine.CreateScriptSourceFromFile(fileName); in TryExecutePythonScript()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Logging/
DLogger.cs375 [CallerFilePath] string fileName = null) in Trace() argument
396 [CallerFilePath] string fileName = null) in Trace() argument
398 Trace(o, LogLevel.Info, message, lineNumber, caller, fileName); in Trace()
404 [CallerFilePath] string fileName = null) in TraceRegion() argument
407 Trace(o, $"Entering: {message}", lineNumber, caller, fileName); in TraceRegion()
408 …egisterDisposeAction(() => Trace(o, $"Leaving: {message}. Entered", lineNumber, caller, fileName)); in TraceRegion()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/
DIMachine.cs55 void PlayFrom(ReadFilePath fileName); in PlayFrom() argument
57 void RecordTo(string fileName, RecordingBehaviour recordingBehaviour); in RecordTo() argument

12