Lines Matching refs:newValue
61 public static uint SetBitsFrom(uint source, uint newValue, int position, int width) in SetBitsFrom() argument
64 var bitsToSet = newValue & mask; in SetBitsFrom()
68 public static ulong SetBitsFrom(ulong source, ulong newValue, int position, int width) in SetBitsFrom() argument
71 var bitsToSet = newValue & mask; in SetBitsFrom()
236 public static void UpdateWithShifted(ref uint reg, uint newValue, int position, int width) in UpdateWithShifted() argument
238 UpdateWith(ref reg, newValue << position, position, width); in UpdateWithShifted()
241 public static void UpdateWithShifted(ref ulong reg, ulong newValue, int position, int width) in UpdateWithShifted() argument
243 UpdateWith(ref reg, newValue << position, position, width); in UpdateWithShifted()
246 public static void UpdateWithMasked(ref uint reg, uint newValue, uint mask) in UpdateWithMasked() argument
248 reg = (reg & ~mask) | (newValue & mask); in UpdateWithMasked()
251 public static void UpdateWithMasked(ref ulong reg, ulong newValue, ulong mask) in UpdateWithMasked() argument
253 reg = (reg & ~mask) | (newValue & mask); in UpdateWithMasked()
256 public static void UpdateWith(ref uint reg, uint newValue, int position, int width) in UpdateWith() argument
259 reg = (reg & ~mask) | (newValue & mask); in UpdateWith()
262 public static void UpdateWith(ref ulong reg, ulong newValue, int position, int width) in UpdateWith() argument
265 reg = (reg & ~mask) | (newValue & mask); in UpdateWith()
268 public static void OrWith(ref uint reg, uint newValue, int position, int width) in OrWith() argument
271 reg |= (newValue & mask); in OrWith()
274 public static void OrWith(ref ulong reg, ulong newValue, int position, int width) in OrWith() argument
277 reg |= (newValue & mask); in OrWith()
280 public static void AndWithNot(ref uint reg, uint newValue, int position, int width) in AndWithNot() argument
283 reg &= ~(newValue & mask); in AndWithNot()
286 public static void AndWithNot(ref ulong reg, ulong newValue, int position, int width) in AndWithNot() argument
289 reg &= ~(newValue & mask); in AndWithNot()
292 public static void XorWith(ref uint reg, uint newValue, int position, int width) in XorWith() argument
295 reg ^= (newValue & mask); in XorWith()
298 public static void XorWith(ref ulong reg, ulong newValue, int position, int width) in XorWith() argument
301 reg ^= (newValue & mask); in XorWith()