Lines Matching refs:context
47 …public <#= type #> Read<#= name #>(ulong address, IPeripheral context = null, ulong? cpuState = nu…
50 if(IsAddressRangeLocked(address.By((ulong)accessWidth), context))
57 using(SetLocalContext(context, cpuState))
59 …if(!TryFindPeripheralAccessMethods(address, context, out var accessMethods, out var startAddress, …
91 …public <#= type #> Read<#= name #>WithState(ulong address, IPeripheral context, IContextState stat…
94 if(!TryConvertStateToUlongForContext(context, stateObj, out ulong? state))
96 ….Log(LogLevel.Warning, "Tried to read {0} bytes at 0x{1:X} but failed on context state conversion,…
100 return Read<#=name#>(address, context, state);
103 …public void Write<#=name#>(ulong address, <#=type#> value, IPeripheral context = null, ulong? cpuS…
106 if(IsAddressRangeLocked(address.By((ulong)accessWidth), context))
113 using(SetLocalContext(context, cpuState))
115 …if(!TryFindPeripheralAccessMethods(address, context, out var accessMethods, out var startAddress, …
149 …public void Write<#=name#>WithState(ulong address, <#=type#> value, IPeripheral context, IContextS…
152 if(!TryConvertStateToUlongForContext(context, stateObj, out ulong? state))
154 …el.Warning, "Tried to write {0} bytes (0x{1:X}) at 0x{2:X} but failed on context state conversion,…
158 Write<#=name#>(address, value, context, state);
214 …private bool TryFindPeripheralAccessMethods(ulong address, IPeripheral context, out PeripheralAcce…
216 if(context == null)
219 context = cpu;
221 if(context != null)
223 … if(peripheralsCollectionByContext.TryGetValue(context, cpuState, out var collection))