Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 10 of 10) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/Crypto/
DPRINCECipher.cs67 var shift = i * 4; in Substitute()
68 state |= coefficients[(data >> shift) & 0xf] << shift; in Substitute()
102 var shift = (inverse ? i : (4 - i)) * 16; in ShiftRows()
103 state |= (row >> shift) | (row << (64 - shift)); in ShiftRows()
DPRESENTCipher.cs69 var shift = i * 4; in Substitute()
70 state |= coefficients[(data >> shift) & 0xf] << shift; in Substitute()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Timers/
DPULP_Timer.cs55 var shift = j * 4; in PULP_Timer()
57 var configReg = ((Registers)(Registers.ConfigLow + shift)).Define(this) in PULP_Timer()
96 ((Registers)(Registers.CounterValueLow + shift)).Define(this) in PULP_Timer()
111 ((Registers)(Registers.ComparatorLow + shift)).Define(this) in PULP_Timer()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/USBDeprecated/
DEHCIHostController.cs147 long shift; in ReadDoubleWord()
148 if(address.InRange(ehciBaseAddress, capabilitiesLength, out shift)) in ReadDoubleWord()
150 switch((CapabilityRegisters)shift) in ReadDoubleWord()
158 …ciPortStatusControlRegisterOffset + numberOfPorts * EhciPortStatusControlRegisterWidth, out shift)) in ReadDoubleWord()
160 switch((OperationalRegisters)shift) in ReadDoubleWord()
183 if(shift >= EhciPortStatusControlRegisterOffset) in ReadDoubleWord()
185 …var portNumber = (shift - EhciPortStatusControlRegisterOffset) / EhciPortStatusControlRegisterWidt… in ReadDoubleWord()
212 long shift; in WriteDoubleWord()
213 …ciPortStatusControlRegisterOffset + numberOfPorts * EhciPortStatusControlRegisterWidth, out shift)) in WriteDoubleWord()
215 switch((OperationalRegisters)shift) in WriteDoubleWord()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Sensors/
DHS3001.cs157 …ement(Temperature, temperatureResolution, value => ((1 << 14) - 1) * (value + 40) / 165, shift: 2); in Read()
236 …t(decimal value, MeasurementResolution resolution, Func<decimal, decimal> converter, int shift = 0) in ConvertMeasurement() argument
240 … return (ushort)(BitHelper.GetValue((uint)Math.Round(clamped), 0, MeasurementBits) << shift); in ConvertMeasurement()
DLIS2DW12.cs848 var shift = 2; in Convert()
866 shift = 4; in Convert()
875 var valueAsUshort = (ushort)(valueAsInt << shift); // left-align in Convert()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/Packets/
DPacket.cs209 var shift = (i << 3) - bitOffset; in TryDecode()
210 intermediate |= shift > 0 ? (ulong)b << shift : (ulong)b >> -shift; in TryDecode()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Backends/Display/
DPixelManipulationTools.cs610 var shift = (sbyte)(-bitOffset + additionalShift); in ByteInflate()
613 if ((mask >> shift) == (0xFF >> shift)) in ByteInflate()
618 var descriptor = new TransformationDescriptor(shift, (byte)mask, currentBits); in ByteInflate()
631 public TransformationDescriptor(sbyte shift, byte mask, byte usedBits) : this() in TransformationDescriptor()
633 ShiftBits = shift; in TransformationDescriptor()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Cores/RiscV/
DOpenTitan_BigNumberAcceleratorCore.cs538 var shift = (int)BitHelper.GetValue(opcode, 13, 2) << 6; in BnMulQAccHandler()
545 result = (result << shift) & WideRegister.MaxValueMask; in BnMulQAccHandler()
559 var shift = (int)BitHelper.GetValue(opcode, 13, 2) << 6; in BnMulQAccWithWriteHandler()
573 result = (result << shift) & WideRegister.MaxValueMask; in BnMulQAccWithWriteHandler()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/
DZynqMP_PlatformManagementUnit.cs426 var shift = GetShiftFromPllParam(pllParam); in HandlePllGetParameter()
430 response.Payload[0] = (resetValue >> shift) & mask; in HandlePllGetParameter()