Lines Matching refs:p

25 static inline u16 get_unaligned_le16(const void *p)  in get_unaligned_le16()  argument
27 return le16_to_cpu(__get_unaligned_t(__le16, p)); in get_unaligned_le16()
30 static inline u32 get_unaligned_le32(const void *p) in get_unaligned_le32() argument
32 return le32_to_cpu(__get_unaligned_t(__le32, p)); in get_unaligned_le32()
35 static inline u64 get_unaligned_le64(const void *p) in get_unaligned_le64() argument
37 return le64_to_cpu(__get_unaligned_t(__le64, p)); in get_unaligned_le64()
40 static inline void put_unaligned_le16(u16 val, void *p) in put_unaligned_le16() argument
42 __put_unaligned_t(__le16, cpu_to_le16(val), p); in put_unaligned_le16()
45 static inline void put_unaligned_le32(u32 val, void *p) in put_unaligned_le32() argument
47 __put_unaligned_t(__le32, cpu_to_le32(val), p); in put_unaligned_le32()
50 static inline void put_unaligned_le64(u64 val, void *p) in put_unaligned_le64() argument
52 __put_unaligned_t(__le64, cpu_to_le64(val), p); in put_unaligned_le64()
55 static inline u16 get_unaligned_be16(const void *p) in get_unaligned_be16() argument
57 return be16_to_cpu(__get_unaligned_t(__be16, p)); in get_unaligned_be16()
60 static inline u32 get_unaligned_be32(const void *p) in get_unaligned_be32() argument
62 return be32_to_cpu(__get_unaligned_t(__be32, p)); in get_unaligned_be32()
65 static inline u64 get_unaligned_be64(const void *p) in get_unaligned_be64() argument
67 return be64_to_cpu(__get_unaligned_t(__be64, p)); in get_unaligned_be64()
70 static inline void put_unaligned_be16(u16 val, void *p) in put_unaligned_be16() argument
72 __put_unaligned_t(__be16, cpu_to_be16(val), p); in put_unaligned_be16()
75 static inline void put_unaligned_be32(u32 val, void *p) in put_unaligned_be32() argument
77 __put_unaligned_t(__be32, cpu_to_be32(val), p); in put_unaligned_be32()
80 static inline void put_unaligned_be64(u64 val, void *p) in put_unaligned_be64() argument
82 __put_unaligned_t(__be64, cpu_to_be64(val), p); in put_unaligned_be64()
85 static inline u32 __get_unaligned_be24(const u8 *p) in __get_unaligned_be24() argument
87 return p[0] << 16 | p[1] << 8 | p[2]; in __get_unaligned_be24()
90 static inline u32 get_unaligned_be24(const void *p) in get_unaligned_be24() argument
92 return __get_unaligned_be24(p); in get_unaligned_be24()
95 static inline u32 __get_unaligned_le24(const u8 *p) in __get_unaligned_le24() argument
97 return p[0] | p[1] << 8 | p[2] << 16; in __get_unaligned_le24()
100 static inline u32 get_unaligned_le24(const void *p) in get_unaligned_le24() argument
102 return __get_unaligned_le24(p); in get_unaligned_le24()
105 static inline void __put_unaligned_be24(const u32 val, u8 *p) in __put_unaligned_be24() argument
107 *p++ = (val >> 16) & 0xff; in __put_unaligned_be24()
108 *p++ = (val >> 8) & 0xff; in __put_unaligned_be24()
109 *p++ = val & 0xff; in __put_unaligned_be24()
112 static inline void put_unaligned_be24(const u32 val, void *p) in put_unaligned_be24() argument
114 __put_unaligned_be24(val, p); in put_unaligned_be24()
117 static inline void __put_unaligned_le24(const u32 val, u8 *p) in __put_unaligned_le24() argument
119 *p++ = val & 0xff; in __put_unaligned_le24()
120 *p++ = (val >> 8) & 0xff; in __put_unaligned_le24()
121 *p++ = (val >> 16) & 0xff; in __put_unaligned_le24()
124 static inline void put_unaligned_le24(const u32 val, void *p) in put_unaligned_le24() argument
126 __put_unaligned_le24(val, p); in put_unaligned_le24()
129 static inline void __put_unaligned_be48(const u64 val, u8 *p) in __put_unaligned_be48() argument
131 *p++ = (val >> 40) & 0xff; in __put_unaligned_be48()
132 *p++ = (val >> 32) & 0xff; in __put_unaligned_be48()
133 *p++ = (val >> 24) & 0xff; in __put_unaligned_be48()
134 *p++ = (val >> 16) & 0xff; in __put_unaligned_be48()
135 *p++ = (val >> 8) & 0xff; in __put_unaligned_be48()
136 *p++ = val & 0xff; in __put_unaligned_be48()
139 static inline void put_unaligned_be48(const u64 val, void *p) in put_unaligned_be48() argument
141 __put_unaligned_be48(val, p); in put_unaligned_be48()
144 static inline u64 __get_unaligned_be48(const u8 *p) in __get_unaligned_be48() argument
146 return (u64)p[0] << 40 | (u64)p[1] << 32 | (u64)p[2] << 24 | in __get_unaligned_be48()
147 p[3] << 16 | p[4] << 8 | p[5]; in __get_unaligned_be48()
150 static inline u64 get_unaligned_be48(const void *p) in get_unaligned_be48() argument
152 return __get_unaligned_be48(p); in get_unaligned_be48()