Lines Matching refs:p

16 static inline u16 get_unaligned_le16(const void *p)  in get_unaligned_le16()  argument
18 return le16_to_cpu(__get_unaligned_t(__le16, p)); in get_unaligned_le16()
21 static inline u32 get_unaligned_le32(const void *p) in get_unaligned_le32() argument
23 return le32_to_cpu(__get_unaligned_t(__le32, p)); in get_unaligned_le32()
26 static inline u64 get_unaligned_le64(const void *p) in get_unaligned_le64() argument
28 return le64_to_cpu(__get_unaligned_t(__le64, p)); in get_unaligned_le64()
31 static inline void put_unaligned_le16(u16 val, void *p) in put_unaligned_le16() argument
33 __put_unaligned_t(__le16, cpu_to_le16(val), p); in put_unaligned_le16()
36 static inline void put_unaligned_le32(u32 val, void *p) in put_unaligned_le32() argument
38 __put_unaligned_t(__le32, cpu_to_le32(val), p); in put_unaligned_le32()
41 static inline void put_unaligned_le64(u64 val, void *p) in put_unaligned_le64() argument
43 __put_unaligned_t(__le64, cpu_to_le64(val), p); in put_unaligned_le64()
46 static inline u16 get_unaligned_be16(const void *p) in get_unaligned_be16() argument
48 return be16_to_cpu(__get_unaligned_t(__be16, p)); in get_unaligned_be16()
51 static inline u32 get_unaligned_be32(const void *p) in get_unaligned_be32() argument
53 return be32_to_cpu(__get_unaligned_t(__be32, p)); in get_unaligned_be32()
56 static inline u64 get_unaligned_be64(const void *p) in get_unaligned_be64() argument
58 return be64_to_cpu(__get_unaligned_t(__be64, p)); in get_unaligned_be64()
61 static inline void put_unaligned_be16(u16 val, void *p) in put_unaligned_be16() argument
63 __put_unaligned_t(__be16, cpu_to_be16(val), p); in put_unaligned_be16()
66 static inline void put_unaligned_be32(u32 val, void *p) in put_unaligned_be32() argument
68 __put_unaligned_t(__be32, cpu_to_be32(val), p); in put_unaligned_be32()
71 static inline void put_unaligned_be64(u64 val, void *p) in put_unaligned_be64() argument
73 __put_unaligned_t(__be64, cpu_to_be64(val), p); in put_unaligned_be64()
76 static inline u32 __get_unaligned_be24(const u8 *p) in __get_unaligned_be24() argument
78 return p[0] << 16 | p[1] << 8 | p[2]; in __get_unaligned_be24()
81 static inline u32 get_unaligned_be24(const void *p) in get_unaligned_be24() argument
83 return __get_unaligned_be24(p); in get_unaligned_be24()
86 static inline u32 __get_unaligned_le24(const u8 *p) in __get_unaligned_le24() argument
88 return p[0] | p[1] << 8 | p[2] << 16; in __get_unaligned_le24()
91 static inline u32 get_unaligned_le24(const void *p) in get_unaligned_le24() argument
93 return __get_unaligned_le24(p); in get_unaligned_le24()
96 static inline void __put_unaligned_be24(const u32 val, u8 *p) in __put_unaligned_be24() argument
98 *p++ = (val >> 16) & 0xff; in __put_unaligned_be24()
99 *p++ = (val >> 8) & 0xff; in __put_unaligned_be24()
100 *p++ = val & 0xff; in __put_unaligned_be24()
103 static inline void put_unaligned_be24(const u32 val, void *p) in put_unaligned_be24() argument
105 __put_unaligned_be24(val, p); in put_unaligned_be24()
108 static inline void __put_unaligned_le24(const u32 val, u8 *p) in __put_unaligned_le24() argument
110 *p++ = val & 0xff; in __put_unaligned_le24()
111 *p++ = (val >> 8) & 0xff; in __put_unaligned_le24()
112 *p++ = (val >> 16) & 0xff; in __put_unaligned_le24()
115 static inline void put_unaligned_le24(const u32 val, void *p) in put_unaligned_le24() argument
117 __put_unaligned_le24(val, p); in put_unaligned_le24()
120 static inline void __put_unaligned_be48(const u64 val, u8 *p) in __put_unaligned_be48() argument
122 *p++ = (val >> 40) & 0xff; in __put_unaligned_be48()
123 *p++ = (val >> 32) & 0xff; in __put_unaligned_be48()
124 *p++ = (val >> 24) & 0xff; in __put_unaligned_be48()
125 *p++ = (val >> 16) & 0xff; in __put_unaligned_be48()
126 *p++ = (val >> 8) & 0xff; in __put_unaligned_be48()
127 *p++ = val & 0xff; in __put_unaligned_be48()
130 static inline void put_unaligned_be48(const u64 val, void *p) in put_unaligned_be48() argument
132 __put_unaligned_be48(val, p); in put_unaligned_be48()
135 static inline u64 __get_unaligned_be48(const u8 *p) in __get_unaligned_be48() argument
137 return (u64)p[0] << 40 | (u64)p[1] << 32 | (u64)p[2] << 24 | in __get_unaligned_be48()
138 p[3] << 16 | p[4] << 8 | p[5]; in __get_unaligned_be48()
141 static inline u64 get_unaligned_be48(const void *p) in get_unaligned_be48() argument
143 return __get_unaligned_be48(p); in get_unaligned_be48()