/include/linux/unaligned/ |
D | be_byteshift.h | 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() [all …]
|
D | le_byteshift.h | 6 static inline u16 __get_unaligned_le16(const u8 *p) in __get_unaligned_le16() argument 8 return p[0] | p[1] << 8; in __get_unaligned_le16() 11 static inline u32 __get_unaligned_le32(const u8 *p) in __get_unaligned_le32() argument 13 return p[0] | p[1] << 8 | p[2] << 16 | p[3] << 24; in __get_unaligned_le32() 16 static inline u64 __get_unaligned_le64(const u8 *p) in __get_unaligned_le64() argument 18 return (u64)__get_unaligned_le32(p + 4) << 32 | in __get_unaligned_le64() 19 __get_unaligned_le32(p); in __get_unaligned_le64() 22 static inline void __put_unaligned_le16(u16 val, u8 *p) in __put_unaligned_le16() argument 24 *p++ = val; in __put_unaligned_le16() 25 *p++ = val >> 8; in __put_unaligned_le16() [all …]
|
D | access_ok.h | 7 static inline u16 get_unaligned_le16(const void *p) in get_unaligned_le16() argument 9 return le16_to_cpup((__le16 *)p); in get_unaligned_le16() 12 static inline u32 get_unaligned_le32(const void *p) in get_unaligned_le32() argument 14 return le32_to_cpup((__le32 *)p); in get_unaligned_le32() 17 static inline u64 get_unaligned_le64(const void *p) in get_unaligned_le64() argument 19 return le64_to_cpup((__le64 *)p); in get_unaligned_le64() 22 static inline u16 get_unaligned_be16(const void *p) in get_unaligned_be16() argument 24 return be16_to_cpup((__be16 *)p); in get_unaligned_be16() 27 static inline u32 get_unaligned_be32(const void *p) in get_unaligned_be32() argument 29 return be32_to_cpup((__be32 *)p); in get_unaligned_be32() [all …]
|
D | be_struct.h | 6 static inline u16 get_unaligned_be16(const void *p) in get_unaligned_be16() argument 8 return __get_unaligned_cpu16((const u8 *)p); in get_unaligned_be16() 11 static inline u32 get_unaligned_be32(const void *p) in get_unaligned_be32() argument 13 return __get_unaligned_cpu32((const u8 *)p); in get_unaligned_be32() 16 static inline u64 get_unaligned_be64(const void *p) in get_unaligned_be64() argument 18 return __get_unaligned_cpu64((const u8 *)p); in get_unaligned_be64() 21 static inline void put_unaligned_be16(u16 val, void *p) in put_unaligned_be16() argument 23 __put_unaligned_cpu16(val, p); in put_unaligned_be16() 26 static inline void put_unaligned_be32(u32 val, void *p) in put_unaligned_be32() argument 28 __put_unaligned_cpu32(val, p); in put_unaligned_be32() [all …]
|
D | be_memmove.h | 6 static inline u16 get_unaligned_be16(const void *p) in get_unaligned_be16() argument 8 return __get_unaligned_memmove16((const u8 *)p); in get_unaligned_be16() 11 static inline u32 get_unaligned_be32(const void *p) in get_unaligned_be32() argument 13 return __get_unaligned_memmove32((const u8 *)p); in get_unaligned_be32() 16 static inline u64 get_unaligned_be64(const void *p) in get_unaligned_be64() argument 18 return __get_unaligned_memmove64((const u8 *)p); in get_unaligned_be64() 21 static inline void put_unaligned_be16(u16 val, void *p) in put_unaligned_be16() argument 23 __put_unaligned_memmove16(val, p); in put_unaligned_be16() 26 static inline void put_unaligned_be32(u32 val, void *p) in put_unaligned_be32() argument 28 __put_unaligned_memmove32(val, p); in put_unaligned_be32() [all …]
|
D | le_struct.h | 6 static inline u16 get_unaligned_le16(const void *p) in get_unaligned_le16() argument 8 return __get_unaligned_cpu16((const u8 *)p); in get_unaligned_le16() 11 static inline u32 get_unaligned_le32(const void *p) in get_unaligned_le32() argument 13 return __get_unaligned_cpu32((const u8 *)p); in get_unaligned_le32() 16 static inline u64 get_unaligned_le64(const void *p) in get_unaligned_le64() argument 18 return __get_unaligned_cpu64((const u8 *)p); in get_unaligned_le64() 21 static inline void put_unaligned_le16(u16 val, void *p) in put_unaligned_le16() argument 23 __put_unaligned_cpu16(val, p); in put_unaligned_le16() 26 static inline void put_unaligned_le32(u32 val, void *p) in put_unaligned_le32() argument 28 __put_unaligned_cpu32(val, p); in put_unaligned_le32() [all …]
|
D | le_memmove.h | 6 static inline u16 get_unaligned_le16(const void *p) in get_unaligned_le16() argument 8 return __get_unaligned_memmove16((const u8 *)p); in get_unaligned_le16() 11 static inline u32 get_unaligned_le32(const void *p) in get_unaligned_le32() argument 13 return __get_unaligned_memmove32((const u8 *)p); in get_unaligned_le32() 16 static inline u64 get_unaligned_le64(const void *p) in get_unaligned_le64() argument 18 return __get_unaligned_memmove64((const u8 *)p); in get_unaligned_le64() 21 static inline void put_unaligned_le16(u16 val, void *p) in put_unaligned_le16() argument 23 __put_unaligned_memmove16(val, p); in put_unaligned_le16() 26 static inline void put_unaligned_le32(u32 val, void *p) in put_unaligned_le32() argument 28 __put_unaligned_memmove32(val, p); in put_unaligned_le32() [all …]
|
D | memmove.h | 9 static inline u16 __get_unaligned_memmove16(const void *p) in __get_unaligned_memmove16() argument 12 memmove(&tmp, p, 2); in __get_unaligned_memmove16() 16 static inline u32 __get_unaligned_memmove32(const void *p) in __get_unaligned_memmove32() argument 19 memmove(&tmp, p, 4); in __get_unaligned_memmove32() 23 static inline u64 __get_unaligned_memmove64(const void *p) in __get_unaligned_memmove64() argument 26 memmove(&tmp, p, 8); in __get_unaligned_memmove64() 30 static inline void __put_unaligned_memmove16(u16 val, void *p) in __put_unaligned_memmove16() argument 32 memmove(p, &val, 2); in __put_unaligned_memmove16() 35 static inline void __put_unaligned_memmove32(u32 val, void *p) in __put_unaligned_memmove32() argument 37 memmove(p, &val, 4); in __put_unaligned_memmove32() [all …]
|
D | packed_struct.h | 10 static inline u16 __get_unaligned_cpu16(const void *p) in __get_unaligned_cpu16() argument 12 const struct __una_u16 *ptr = (const struct __una_u16 *)p; in __get_unaligned_cpu16() 16 static inline u32 __get_unaligned_cpu32(const void *p) in __get_unaligned_cpu32() argument 18 const struct __una_u32 *ptr = (const struct __una_u32 *)p; in __get_unaligned_cpu32() 22 static inline u64 __get_unaligned_cpu64(const void *p) in __get_unaligned_cpu64() argument 24 const struct __una_u64 *ptr = (const struct __una_u64 *)p; in __get_unaligned_cpu64() 28 static inline void __put_unaligned_cpu16(u16 val, void *p) in __put_unaligned_cpu16() argument 30 struct __una_u16 *ptr = (struct __una_u16 *)p; in __put_unaligned_cpu16() 34 static inline void __put_unaligned_cpu32(u32 val, void *p) in __put_unaligned_cpu32() argument 36 struct __una_u32 *ptr = (struct __una_u32 *)p; in __put_unaligned_cpu32() [all …]
|
/include/linux/ceph/ |
D | decode.h | 16 static inline u64 ceph_decode_64(void **p) in ceph_decode_64() argument 18 u64 v = get_unaligned_le64(*p); in ceph_decode_64() 19 *p += sizeof(u64); in ceph_decode_64() 22 static inline u32 ceph_decode_32(void **p) in ceph_decode_32() argument 24 u32 v = get_unaligned_le32(*p); in ceph_decode_32() 25 *p += sizeof(u32); in ceph_decode_32() 28 static inline u16 ceph_decode_16(void **p) in ceph_decode_16() argument 30 u16 v = get_unaligned_le16(*p); in ceph_decode_16() 31 *p += sizeof(u16); in ceph_decode_16() 34 static inline u8 ceph_decode_8(void **p) in ceph_decode_8() argument [all …]
|
/include/linux/ |
D | parport_pc.h | 8 #define ECONTROL(p) ((p)->base_hi + 0x2) argument 9 #define CONFIGB(p) ((p)->base_hi + 0x1) argument 10 #define CONFIGA(p) ((p)->base_hi + 0x0) argument 11 #define FIFO(p) ((p)->base_hi + 0x0) argument 12 #define EPPDATA(p) ((p)->base + 0x4) argument 13 #define EPPADDR(p) ((p)->base + 0x3) argument 14 #define CONTROL(p) ((p)->base + 0x2) argument 15 #define STATUS(p) ((p)->base + 0x1) argument 16 #define DATA(p) ((p)->base + 0x0) argument 62 static __inline__ void parport_pc_write_data(struct parport *p, unsigned char d) in parport_pc_write_data() argument [all …]
|
D | rcupdate.h | 470 #define rcu_dereference_sparse(p, space) \ argument 471 ((void)(((typeof(*p) space *)p) == p)) 473 #define rcu_dereference_sparse(p, space) argument 476 #define __rcu_access_pointer(p, space) \ argument 478 typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \ 479 rcu_dereference_sparse(p, space); \ 480 ((typeof(*p) __force __kernel *)(_________p1)); \ 482 #define __rcu_dereference_check(p, c, space) \ argument 484 typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \ 487 rcu_dereference_sparse(p, space); \ [all …]
|
D | swab.h | 148 static inline __u16 __swab16p(const __u16 *p) in __swab16p() argument 151 return __arch_swab16p(p); in __swab16p() 153 return __swab16(*p); in __swab16p() 161 static inline __u32 __swab32p(const __u32 *p) in __swab32p() argument 164 return __arch_swab32p(p); in __swab32p() 166 return __swab32(*p); in __swab32p() 174 static inline __u64 __swab64p(const __u64 *p) in __swab64p() argument 177 return __arch_swab64p(p); in __swab64p() 179 return __swab64(*p); in __swab64p() 189 static inline __u32 __swahw32p(const __u32 *p) in __swahw32p() argument [all …]
|
D | quicklist.h | 36 void **p = NULL; in quicklist_alloc() local 39 p = q->page; in quicklist_alloc() 40 if (likely(p)) { in quicklist_alloc() 41 q->page = p[0]; in quicklist_alloc() 42 p[0] = NULL; in quicklist_alloc() 46 if (likely(p)) in quicklist_alloc() 47 return p; in quicklist_alloc() 49 p = (void *)__get_free_page(flags | __GFP_ZERO); in quicklist_alloc() 50 if (ctor && p) in quicklist_alloc() 51 ctor(p); in quicklist_alloc() [all …]
|
D | parport.h | 537 #define parport_write_data(p,x) parport_pc_write_data(p,x) argument 538 #define parport_read_data(p) parport_pc_read_data(p) argument 539 #define parport_write_control(p,x) parport_pc_write_control(p,x) argument 540 #define parport_read_control(p) parport_pc_read_control(p) argument 541 #define parport_frob_control(p,m,v) parport_pc_frob_control(p,m,v) argument 542 #define parport_read_status(p) parport_pc_read_status(p) argument 543 #define parport_enable_irq(p) parport_pc_enable_irq(p) argument 544 #define parport_disable_irq(p) parport_pc_disable_irq(p) argument 545 #define parport_data_forward(p) parport_pc_data_forward(p) argument 546 #define parport_data_reverse(p) parport_pc_data_reverse(p) argument [all …]
|
D | irqflags.h | 22 # define trace_hardirq_context(p) ((p)->hardirq_context) argument 23 # define trace_softirq_context(p) ((p)->softirq_context) argument 24 # define trace_hardirqs_enabled(p) ((p)->hardirqs_enabled) argument 25 # define trace_softirqs_enabled(p) ((p)->softirqs_enabled) argument 36 # define trace_hardirq_context(p) 0 argument 37 # define trace_softirq_context(p) 0 argument 38 # define trace_hardirqs_enabled(p) 0 argument 39 # define trace_softirqs_enabled(p) 0 argument
|
/include/linux/usb/ |
D | ehci_def.h | 33 #define HC_LENGTH(ehci, p) (0x00ff&((p) >> /* bits 7:0 / offset 00h */ \ argument 35 #define HC_VERSION(ehci, p) (0xffff&((p) >> /* bits 31:16 / offset 02h */ \ argument 38 #define HCS_DEBUG_PORT(p) (((p)>>20)&0xf) /* bits 23:20, debug port? */ argument 39 #define HCS_INDICATOR(p) ((p)&(1 << 16)) /* true: has port indicators */ argument 40 #define HCS_N_CC(p) (((p)>>12)&0xf) /* bits 15:12, #companion HCs */ argument 41 #define HCS_N_PCC(p) (((p)>>8)&0xf) /* bits 11:8, ports per CC */ argument 42 #define HCS_PORTROUTED(p) ((p)&(1 << 7)) /* true: port routing */ argument 43 #define HCS_PPC(p) ((p)&(1 << 4)) /* true: port power control */ argument 44 #define HCS_N_PORTS(p) (((p)>>0)&0xf) /* bits 3:0, ports on HC */ argument 48 #define HCC_32FRAME_PERIODIC_LIST(p) ((p)&(1 << 19)) argument [all …]
|
/include/asm-generic/bitops/ |
D | atomic.h | 68 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in set_bit() local 71 _atomic_spin_lock_irqsave(p, flags); in set_bit() 72 *p |= mask; in set_bit() 73 _atomic_spin_unlock_irqrestore(p, flags); in set_bit() 89 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in clear_bit() local 92 _atomic_spin_lock_irqsave(p, flags); in clear_bit() 93 *p &= ~mask; in clear_bit() 94 _atomic_spin_unlock_irqrestore(p, flags); in clear_bit() 110 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in change_bit() local 113 _atomic_spin_lock_irqsave(p, flags); in change_bit() [all …]
|
D | non-atomic.h | 18 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __set_bit() local 20 *p |= mask; in __set_bit() 26 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __clear_bit() local 28 *p &= ~mask; in __clear_bit() 43 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __change_bit() local 45 *p ^= mask; in __change_bit() 60 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_set_bit() local 61 unsigned long old = *p; in __test_and_set_bit() 63 *p = old | mask; in __test_and_set_bit() 79 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_clear_bit() local [all …]
|
/include/net/ |
D | red.h | 169 static inline void red_set_parms(struct red_parms *p, in red_set_parms() argument 176 p->qth_min = qth_min << Wlog; in red_set_parms() 177 p->qth_max = qth_max << Wlog; in red_set_parms() 178 p->Wlog = Wlog; in red_set_parms() 179 p->Plog = Plog; in red_set_parms() 182 p->qth_delta = delta; in red_set_parms() 187 p->max_P = max_P; in red_set_parms() 190 p->max_P_reciprocal = reciprocal_value(max_p_delta); in red_set_parms() 197 p->target_min = qth_min + 2*delta; in red_set_parms() 198 p->target_max = qth_min + 3*delta; in red_set_parms() [all …]
|
/include/linux/pinctrl/ |
D | consumer.h | 33 extern void pinctrl_put(struct pinctrl *p); 35 struct pinctrl *p, 37 extern int pinctrl_select_state(struct pinctrl *p, struct pinctrl_state *s); 65 static inline void pinctrl_put(struct pinctrl *p) in pinctrl_put() argument 70 struct pinctrl *p, in pinctrl_lookup_state() argument 76 static inline int pinctrl_select_state(struct pinctrl *p, in pinctrl_select_state() argument 87 struct pinctrl *p; in pinctrl_get_select() local 91 p = pinctrl_get(dev); in pinctrl_get_select() 92 if (IS_ERR(p)) in pinctrl_get_select() 93 return p; in pinctrl_get_select() [all …]
|
/include/linux/byteorder/ |
D | big_endian.h | 43 static inline __le64 __cpu_to_le64p(const __u64 *p) in __cpu_to_le64p() argument 45 return (__force __le64)__swab64p(p); in __cpu_to_le64p() 47 static inline __u64 __le64_to_cpup(const __le64 *p) in __le64_to_cpup() argument 49 return __swab64p((__u64 *)p); in __le64_to_cpup() 51 static inline __le32 __cpu_to_le32p(const __u32 *p) in __cpu_to_le32p() argument 53 return (__force __le32)__swab32p(p); in __cpu_to_le32p() 55 static inline __u32 __le32_to_cpup(const __le32 *p) in __le32_to_cpup() argument 57 return __swab32p((__u32 *)p); in __le32_to_cpup() 59 static inline __le16 __cpu_to_le16p(const __u16 *p) in __cpu_to_le16p() argument 61 return (__force __le16)__swab16p(p); in __cpu_to_le16p() [all …]
|
D | little_endian.h | 43 static inline __le64 __cpu_to_le64p(const __u64 *p) in __cpu_to_le64p() argument 45 return (__force __le64)*p; in __cpu_to_le64p() 47 static inline __u64 __le64_to_cpup(const __le64 *p) in __le64_to_cpup() argument 49 return (__force __u64)*p; in __le64_to_cpup() 51 static inline __le32 __cpu_to_le32p(const __u32 *p) in __cpu_to_le32p() argument 53 return (__force __le32)*p; in __cpu_to_le32p() 55 static inline __u32 __le32_to_cpup(const __le32 *p) in __le32_to_cpup() argument 57 return (__force __u32)*p; in __le32_to_cpup() 59 static inline __le16 __cpu_to_le16p(const __u16 *p) in __cpu_to_le16p() argument 61 return (__force __le16)*p; in __cpu_to_le16p() [all …]
|
/include/crypto/ |
D | b128ops.h | 64 static inline void u128_xor(u128 *r, const u128 *p, const u128 *q) in u128_xor() argument 66 r->a = p->a ^ q->a; in u128_xor() 67 r->b = p->b ^ q->b; in u128_xor() 70 static inline void be128_xor(be128 *r, const be128 *p, const be128 *q) in be128_xor() argument 72 u128_xor((u128 *)r, (u128 *)p, (u128 *)q); in be128_xor() 75 static inline void le128_xor(le128 *r, const le128 *p, const le128 *q) in le128_xor() argument 77 u128_xor((u128 *)r, (u128 *)p, (u128 *)q); in le128_xor()
|
/include/linux/sunrpc/ |
D | xdr.h | 99 __be32 *xdr_encode_opaque_fixed(__be32 *p, const void *ptr, unsigned int len); 100 __be32 *xdr_encode_opaque(__be32 *p, const void *ptr, unsigned int len); 101 __be32 *xdr_encode_string(__be32 *p, const char *s); 102 __be32 *xdr_decode_string_inplace(__be32 *p, char **sp, unsigned int *lenp, 104 __be32 *xdr_encode_netobj(__be32 *p, const struct xdr_netobj *); 105 __be32 *xdr_decode_netobj(__be32 *p, struct xdr_netobj *); 113 static inline __be32 *xdr_encode_array(__be32 *p, const void *s, unsigned int len) in xdr_encode_array() argument 115 return xdr_encode_opaque(p, s, len); in xdr_encode_array() 122 xdr_encode_hyper(__be32 *p, __u64 val) in xdr_encode_hyper() argument 124 put_unaligned_be64(val, p); in xdr_encode_hyper() [all …]
|