Lines Matching refs:p
6 static inline u16 __get_unaligned_be16(const u8 *p) in __get_unaligned_be16() argument
8 return p[0] << 8 | p[1]; in __get_unaligned_be16()
11 static inline u32 __get_unaligned_be32(const u8 *p) in __get_unaligned_be32() argument
13 return p[0] << 24 | p[1] << 16 | p[2] << 8 | p[3]; in __get_unaligned_be32()
16 static inline u64 __get_unaligned_be64(const u8 *p) in __get_unaligned_be64() argument
18 return (u64)__get_unaligned_be32(p) << 32 | in __get_unaligned_be64()
19 __get_unaligned_be32(p + 4); in __get_unaligned_be64()
22 static inline void __put_unaligned_be16(u16 val, u8 *p) in __put_unaligned_be16() argument
24 *p++ = val >> 8; in __put_unaligned_be16()
25 *p++ = val; in __put_unaligned_be16()
28 static inline void __put_unaligned_be32(u32 val, u8 *p) in __put_unaligned_be32() argument
30 __put_unaligned_be16(val >> 16, p); in __put_unaligned_be32()
31 __put_unaligned_be16(val, p + 2); in __put_unaligned_be32()
34 static inline void __put_unaligned_be64(u64 val, u8 *p) in __put_unaligned_be64() argument
36 __put_unaligned_be32(val >> 32, p); in __put_unaligned_be64()
37 __put_unaligned_be32(val, p + 4); in __put_unaligned_be64()
40 static inline u16 get_unaligned_be16(const void *p) in get_unaligned_be16() argument
42 return __get_unaligned_be16((const u8 *)p); in get_unaligned_be16()
45 static inline u32 get_unaligned_be32(const void *p) in get_unaligned_be32() argument
47 return __get_unaligned_be32((const u8 *)p); in get_unaligned_be32()
50 static inline u64 get_unaligned_be64(const void *p) in get_unaligned_be64() argument
52 return __get_unaligned_be64((const u8 *)p); in get_unaligned_be64()
55 static inline void put_unaligned_be16(u16 val, void *p) in put_unaligned_be16() argument
57 __put_unaligned_be16(val, p); in put_unaligned_be16()
60 static inline void put_unaligned_be32(u32 val, void *p) in put_unaligned_be32() argument
62 __put_unaligned_be32(val, p); in put_unaligned_be32()
65 static inline void put_unaligned_be64(u64 val, void *p) in put_unaligned_be64() argument
67 __put_unaligned_be64(val, p); in put_unaligned_be64()