Lines Matching refs:p

24 static __always_inline u32 __get_unaligned_cpu32(const u8 *p)  in __get_unaligned_cpu32()  argument
31 : "r" (p) in __get_unaligned_cpu32()
41 static inline u16 __get_unaligned_cpu16(const u8 *p) in __get_unaligned_cpu16() argument
44 return p[0] | p[1] << 8; in __get_unaligned_cpu16()
46 return p[0] << 8 | p[1]; in __get_unaligned_cpu16()
55 static inline u64 __get_unaligned_cpu64(const u8 *p) in __get_unaligned_cpu64() argument
58 return (u64)__get_unaligned_cpu32(p + 4) << 32 | in __get_unaligned_cpu64()
59 __get_unaligned_cpu32(p); in __get_unaligned_cpu64()
61 return (u64)__get_unaligned_cpu32(p) << 32 | in __get_unaligned_cpu64()
62 __get_unaligned_cpu32(p + 4); in __get_unaligned_cpu64()
66 static inline u16 get_unaligned_le16(const void *p) in get_unaligned_le16() argument
68 return le16_to_cpu(__get_unaligned_cpu16(p)); in get_unaligned_le16()
71 static inline u32 get_unaligned_le32(const void *p) in get_unaligned_le32() argument
73 return le32_to_cpu(__get_unaligned_cpu32(p)); in get_unaligned_le32()
76 static inline u64 get_unaligned_le64(const void *p) in get_unaligned_le64() argument
78 return le64_to_cpu(__get_unaligned_cpu64(p)); in get_unaligned_le64()
81 static inline u16 get_unaligned_be16(const void *p) in get_unaligned_be16() argument
83 return be16_to_cpu(__get_unaligned_cpu16(p)); in get_unaligned_be16()
86 static inline u32 get_unaligned_be32(const void *p) in get_unaligned_be32() argument
88 return be32_to_cpu(__get_unaligned_cpu32(p)); in get_unaligned_be32()
91 static inline u64 get_unaligned_be64(const void *p) in get_unaligned_be64() argument
93 return be64_to_cpu(__get_unaligned_cpu64(p)); in get_unaligned_be64()
96 static inline void __put_le16_noalign(u8 *p, u16 val) in __put_le16_noalign() argument
98 *p++ = val; in __put_le16_noalign()
99 *p++ = val >> 8; in __put_le16_noalign()
102 static inline void __put_le32_noalign(u8 *p, u32 val) in __put_le32_noalign() argument
104 __put_le16_noalign(p, val); in __put_le32_noalign()
105 __put_le16_noalign(p + 2, val >> 16); in __put_le32_noalign()
108 static inline void __put_le64_noalign(u8 *p, u64 val) in __put_le64_noalign() argument
110 __put_le32_noalign(p, val); in __put_le64_noalign()
111 __put_le32_noalign(p + 4, val >> 32); in __put_le64_noalign()
114 static inline void __put_be16_noalign(u8 *p, u16 val) in __put_be16_noalign() argument
116 *p++ = val >> 8; in __put_be16_noalign()
117 *p++ = val; in __put_be16_noalign()
120 static inline void __put_be32_noalign(u8 *p, u32 val) in __put_be32_noalign() argument
122 __put_be16_noalign(p, val >> 16); in __put_be32_noalign()
123 __put_be16_noalign(p + 2, val); in __put_be32_noalign()
126 static inline void __put_be64_noalign(u8 *p, u64 val) in __put_be64_noalign() argument
128 __put_be32_noalign(p, val >> 32); in __put_be64_noalign()
129 __put_be32_noalign(p + 4, val); in __put_be64_noalign()
132 static inline void put_unaligned_le16(u16 val, void *p) in put_unaligned_le16() argument
135 ((struct __una_u16 *)p)->x = val; in put_unaligned_le16()
137 __put_le16_noalign(p, val); in put_unaligned_le16()
141 static inline void put_unaligned_le32(u32 val, void *p) in put_unaligned_le32() argument
144 ((struct __una_u32 *)p)->x = val; in put_unaligned_le32()
146 __put_le32_noalign(p, val); in put_unaligned_le32()
150 static inline void put_unaligned_le64(u64 val, void *p) in put_unaligned_le64() argument
153 ((struct __una_u64 *)p)->x = val; in put_unaligned_le64()
155 __put_le64_noalign(p, val); in put_unaligned_le64()
159 static inline void put_unaligned_be16(u16 val, void *p) in put_unaligned_be16() argument
162 ((struct __una_u16 *)p)->x = val; in put_unaligned_be16()
164 __put_be16_noalign(p, val); in put_unaligned_be16()
168 static inline void put_unaligned_be32(u32 val, void *p) in put_unaligned_be32() argument
171 ((struct __una_u32 *)p)->x = val; in put_unaligned_be32()
173 __put_be32_noalign(p, val); in put_unaligned_be32()
177 static inline void put_unaligned_be64(u64 val, void *p) in put_unaligned_be64() argument
180 ((struct __una_u64 *)p)->x = val; in put_unaligned_be64()
182 __put_be64_noalign(p, val); in put_unaligned_be64()