Lines Matching refs:val
69 inline static u16 NETSwapBytes16( u16 val ) in NETSwapBytes16() argument
71 return (u16)( (((val) >> 8UL) & 0x00FFUL) | in NETSwapBytes16()
72 (((val) << 8UL) & 0xFF00UL) ); in NETSwapBytes16()
75 inline static u32 NETSwapBytes32( u32 val ) in NETSwapBytes32() argument
77 return (u32)( (((val) >> 24UL) & 0x000000FFUL) | in NETSwapBytes32()
78 (((val) >> 8UL) & 0x0000FF00UL) | in NETSwapBytes32()
79 (((val) << 8UL) & 0x00FF0000UL) | in NETSwapBytes32()
80 (((val) << 24UL) & 0xFF000000UL) ); in NETSwapBytes32()
94 inline static void NETWriteSwappedBytes16( u16* dst, u16 val ) in NETWriteSwappedBytes16() argument
96 __sthbrx(val, (void*)(dst), 0); in NETWriteSwappedBytes16()
99 inline static void NETWriteSwappedBytes32( u32* dst, u32 val ) in NETWriteSwappedBytes32() argument
101 __stwbrx(val, (void*)(dst), 0); in NETWriteSwappedBytes32()
114 inline static void NETWriteSwappedBytes16( u16* dst, u16 val ) in NETWriteSwappedBytes16() argument
116 *dst = NETSwapBytes16(val); in NETWriteSwappedBytes16()
119 inline static void NETWriteSwappedBytes32( u32* dst, u32 val ) in NETWriteSwappedBytes32() argument
121 *dst = NETSwapBytes32(val); in NETWriteSwappedBytes32()