| /include/linux/ |
| D | unaligned.h | 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() [all …]
|
| D | parport_pc.h | 9 #define ECONTROL(p) ((p)->base_hi + 0x2) argument 10 #define CONFIGB(p) ((p)->base_hi + 0x1) argument 11 #define CONFIGA(p) ((p)->base_hi + 0x0) argument 12 #define FIFO(p) ((p)->base_hi + 0x0) argument 13 #define EPPDATA(p) ((p)->base + 0x4) argument 14 #define EPPADDR(p) ((p)->base + 0x3) argument 15 #define CONTROL(p) ((p)->base + 0x2) argument 16 #define STATUS(p) ((p)->base + 0x1) argument 17 #define DATA(p) ((p)->base + 0x0) argument 66 static __inline__ void parport_pc_write_data(struct parport *p, unsigned char d) in parport_pc_write_data() argument [all …]
|
| D | fortify-string.h | 63 #define __compiletime_strlen(p) \ argument 65 char *__p = (char *)(p); \ 67 const size_t __p_size = __member_size(p); \ 81 extern void *__underlying_memset(void *p, int c, __kernel_size_t size) __RENAME(memset); 82 extern void *__underlying_memmove(void *p, const void *q, __kernel_size_t size) __RENAME(memmove); 83 extern void *__underlying_memcpy(void *p, const void *q, __kernel_size_t size) __RENAME(memcpy); 85 extern void *__underlying_memset(void *p, int c, __kernel_size_t size) __RENAME(__asan_memset); 86 extern void *__underlying_memmove(void *p, const void *q, __kernel_size_t size) __RENAME(__asan_mem… 87 extern void *__underlying_memcpy(void *p, const void *q, __kernel_size_t size) __RENAME(__asan_memc… 89 extern void *__underlying_memset(void *p, int c, __kernel_size_t size) __RENAME(__hwasan_memset); [all …]
|
| D | rcupdate.h | 508 #define rcu_check_sparse(p, space) \ argument 509 ((void)(((typeof(*p) space *)p) == p)) 511 #define rcu_check_sparse(p, space) argument 514 #define __unrcu_pointer(p, local) \ argument 516 typeof(*p) *local = (typeof(*p) *__force)(p); \ 517 rcu_check_sparse(p, __rcu); \ 518 ((typeof(*p) __force __kernel *)(local)); \ 527 #define unrcu_pointer(p) __unrcu_pointer(p, __UNIQUE_ID(rcu)) argument 529 #define __rcu_access_pointer(p, local, space) \ argument 531 typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \ [all …]
|
| D | parport.h | 514 #define parport_write_data(p,x) parport_pc_write_data(p,x) argument 515 #define parport_read_data(p) parport_pc_read_data(p) argument 516 #define parport_write_control(p,x) parport_pc_write_control(p,x) argument 517 #define parport_read_control(p) parport_pc_read_control(p) argument 518 #define parport_frob_control(p,m,v) parport_pc_frob_control(p,m,v) argument 519 #define parport_read_status(p) parport_pc_read_status(p) argument 520 #define parport_enable_irq(p) parport_pc_enable_irq(p) argument 521 #define parport_disable_irq(p) parport_pc_disable_irq(p) argument 522 #define parport_data_forward(p) parport_pc_data_forward(p) argument 523 #define parport_data_reverse(p) parport_pc_data_reverse(p) argument [all …]
|
| D | cpufreq_times.h | 23 void cpufreq_task_times_init(struct task_struct *p); 24 void cpufreq_task_times_alloc(struct task_struct *p); 25 void cpufreq_task_times_exit(struct task_struct *p); 27 struct pid *pid, struct task_struct *p); 28 void cpufreq_acct_update_power(struct task_struct *p, u64 cputime); 33 static inline void cpufreq_task_times_init(struct task_struct *p) {} in cpufreq_task_times_init() argument 34 static inline void cpufreq_task_times_alloc(struct task_struct *p) {} in cpufreq_task_times_alloc() argument 35 static inline void cpufreq_task_times_exit(struct task_struct *p) {} in cpufreq_task_times_exit() argument 36 static inline void cpufreq_acct_update_power(struct task_struct *p, in cpufreq_acct_update_power() argument
|
| D | u64_stats_sync.h | 77 static inline u64 u64_stats_read(const u64_stats_t *p) in u64_stats_read() argument 79 return local64_read(&p->v); in u64_stats_read() 82 static inline void u64_stats_set(u64_stats_t *p, u64 val) in u64_stats_set() argument 84 local64_set(&p->v, val); in u64_stats_set() 87 static inline void u64_stats_add(u64_stats_t *p, unsigned long val) in u64_stats_add() argument 89 local64_add(val, &p->v); in u64_stats_add() 92 static inline void u64_stats_inc(u64_stats_t *p) in u64_stats_inc() argument 94 local64_inc(&p->v); in u64_stats_inc() 118 static inline u64 u64_stats_read(const u64_stats_t *p) in u64_stats_read() argument 120 return p->v; in u64_stats_read() [all …]
|
| /include/linux/ceph/ |
| D | decode.h | 19 static inline u64 ceph_decode_64(void **p) in ceph_decode_64() argument 21 u64 v = get_unaligned_le64(*p); in ceph_decode_64() 22 *p += sizeof(u64); in ceph_decode_64() 25 static inline u32 ceph_decode_32(void **p) in ceph_decode_32() argument 27 u32 v = get_unaligned_le32(*p); in ceph_decode_32() 28 *p += sizeof(u32); in ceph_decode_32() 31 static inline u16 ceph_decode_16(void **p) in ceph_decode_16() argument 33 u16 v = get_unaligned_le16(*p); in ceph_decode_16() 34 *p += sizeof(u16); in ceph_decode_16() 37 static inline u8 ceph_decode_8(void **p) in ceph_decode_8() argument [all …]
|
| /include/linux/usb/ |
| D | ehci_def.h | 22 #define HC_LENGTH(ehci, p) (0x00ff&((p) >> /* bits 7:0 / offset 00h */ \ argument 24 #define HC_VERSION(ehci, p) (0xffff&((p) >> /* bits 31:16 / offset 02h */ \ argument 27 #define HCS_DEBUG_PORT(p) (((p)>>20)&0xf) /* bits 23:20, debug port? */ argument 28 #define HCS_INDICATOR(p) ((p)&(1 << 16)) /* true: has port indicators */ argument 29 #define HCS_N_CC(p) (((p)>>12)&0xf) /* bits 15:12, #companion HCs */ argument 30 #define HCS_N_PCC(p) (((p)>>8)&0xf) /* bits 11:8, ports per CC */ argument 31 #define HCS_PORTROUTED(p) ((p)&(1 << 7)) /* true: port routing */ argument 32 #define HCS_PPC(p) ((p)&(1 << 4)) /* true: port power control */ argument 33 #define HCS_N_PORTS(p) (((p)>>0)&0xf) /* bits 3:0, ports on HC */ argument 38 #define HCC_32FRAME_PERIODIC_LIST(p) ((p)&(1 << 19)) argument [all …]
|
| /include/linux/sunrpc/xdrgen/ |
| D | _builtins.h | 30 __be32 *p = xdr_inline_decode(xdr, XDR_UNIT); in xdrgen_decode_bool() local 32 if (unlikely(!p)) in xdrgen_decode_bool() 34 *ptr = (*p != xdr_zero); in xdrgen_decode_bool() 41 __be32 *p = xdr_reserve_space(xdr, XDR_UNIT); in xdrgen_encode_bool() local 43 if (unlikely(!p)) in xdrgen_encode_bool() 45 *p = val ? xdr_one : xdr_zero; in xdrgen_encode_bool() 52 __be32 *p = xdr_inline_decode(xdr, XDR_UNIT); in xdrgen_decode_int() local 54 if (unlikely(!p)) in xdrgen_decode_int() 56 *ptr = be32_to_cpup(p); in xdrgen_decode_int() 63 __be32 *p = xdr_reserve_space(xdr, XDR_UNIT); in xdrgen_encode_int() local [all …]
|
| /include/asm-generic/bitops/ |
| D | atomic.h | 15 arch_set_bit(unsigned int nr, volatile unsigned long *p) in arch_set_bit() argument 17 p += BIT_WORD(nr); in arch_set_bit() 18 raw_atomic_long_or(BIT_MASK(nr), (atomic_long_t *)p); in arch_set_bit() 22 arch_clear_bit(unsigned int nr, volatile unsigned long *p) in arch_clear_bit() argument 24 p += BIT_WORD(nr); in arch_clear_bit() 25 raw_atomic_long_andnot(BIT_MASK(nr), (atomic_long_t *)p); in arch_clear_bit() 29 arch_change_bit(unsigned int nr, volatile unsigned long *p) in arch_change_bit() argument 31 p += BIT_WORD(nr); in arch_change_bit() 32 raw_atomic_long_xor(BIT_MASK(nr), (atomic_long_t *)p); in arch_change_bit() 36 arch_test_and_set_bit(unsigned int nr, volatile unsigned long *p) in arch_test_and_set_bit() argument [all …]
|
| D | lock.h | 19 arch_test_and_set_bit_lock(unsigned int nr, volatile unsigned long *p) in arch_test_and_set_bit_lock() argument 24 p += BIT_WORD(nr); in arch_test_and_set_bit_lock() 25 if (READ_ONCE(*p) & mask) in arch_test_and_set_bit_lock() 28 old = raw_atomic_long_fetch_or_acquire(mask, (atomic_long_t *)p); in arch_test_and_set_bit_lock() 41 arch_clear_bit_unlock(unsigned int nr, volatile unsigned long *p) in arch_clear_bit_unlock() argument 43 p += BIT_WORD(nr); in arch_clear_bit_unlock() 44 raw_atomic_long_fetch_andnot_release(BIT_MASK(nr), (atomic_long_t *)p); in arch_clear_bit_unlock() 59 arch___clear_bit_unlock(unsigned int nr, volatile unsigned long *p) in arch___clear_bit_unlock() argument 63 p += BIT_WORD(nr); in arch___clear_bit_unlock() 64 old = READ_ONCE(*p); in arch___clear_bit_unlock() [all …]
|
| D | generic-non-atomic.h | 31 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___set_bit() local 33 *p |= mask; in generic___set_bit() 40 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___clear_bit() local 42 *p &= ~mask; in generic___clear_bit() 58 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___change_bit() local 60 *p ^= mask; in generic___change_bit() 76 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___test_and_set_bit() local 77 unsigned long old = *p; in generic___test_and_set_bit() 79 *p = old | mask; in generic___test_and_set_bit() 96 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic___test_and_clear_bit() local [all …]
|
| /include/uapi/linux/ |
| D | swab.h | 171 static __always_inline __u16 __swab16p(const __u16 *p) in __swab16p() argument 174 return __arch_swab16p(p); in __swab16p() 176 return __swab16(*p); in __swab16p() 184 static __always_inline __u32 __swab32p(const __u32 *p) in __swab32p() argument 187 return __arch_swab32p(p); in __swab32p() 189 return __swab32(*p); in __swab32p() 197 static __always_inline __u64 __swab64p(const __u64 *p) in __swab64p() argument 200 return __arch_swab64p(p); in __swab64p() 202 return __swab64(*p); in __swab64p() 212 static inline __u32 __swahw32p(const __u32 *p) in __swahw32p() argument [all …]
|
| /include/net/ |
| D | red.h | 229 static inline void red_set_parms(struct red_parms *p, in red_set_parms() argument 236 WRITE_ONCE(p->qth_min, qth_min << Wlog); in red_set_parms() 237 WRITE_ONCE(p->qth_max, qth_max << Wlog); in red_set_parms() 238 WRITE_ONCE(p->Wlog, Wlog); in red_set_parms() 239 WRITE_ONCE(p->Plog, Plog); in red_set_parms() 242 p->qth_delta = delta; in red_set_parms() 247 WRITE_ONCE(p->max_P, max_P); in red_set_parms() 250 p->max_P_reciprocal = reciprocal_value(max_p_delta); in red_set_parms() 257 p->target_min = qth_min + 2*delta; in red_set_parms() 258 p->target_max = qth_min + 3*delta; in red_set_parms() [all …]
|
| /include/linux/pinctrl/ |
| D | consumer.h | 40 void pinctrl_put(struct pinctrl *p); 41 struct pinctrl_state * __must_check pinctrl_lookup_state(struct pinctrl *p, 43 int pinctrl_select_state(struct pinctrl *p, struct pinctrl_state *s); 46 void devm_pinctrl_put(struct pinctrl *p); 111 static inline void pinctrl_put(struct pinctrl *p) in pinctrl_put() argument 115 static inline struct pinctrl_state * __must_check pinctrl_lookup_state(struct pinctrl *p, in pinctrl_lookup_state() argument 121 static inline int pinctrl_select_state(struct pinctrl *p, in pinctrl_select_state() argument 132 static inline void devm_pinctrl_put(struct pinctrl *p) in devm_pinctrl_put() argument 161 struct pinctrl *p; in pinctrl_get_select() local 165 p = pinctrl_get(dev); in pinctrl_get_select() [all …]
|
| /include/linux/unaligned/ |
| 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/sunrpc/ |
| D | xdr.h | 128 __be32 *xdr_encode_opaque_fixed(__be32 *p, const void *ptr, unsigned int len); 129 __be32 *xdr_encode_opaque(__be32 *p, const void *ptr, unsigned int len); 130 __be32 *xdr_encode_string(__be32 *p, const char *s); 131 __be32 *xdr_decode_string_inplace(__be32 *p, char **sp, unsigned int *lenp, 133 __be32 *xdr_encode_netobj(__be32 *p, const struct xdr_netobj *); 134 __be32 *xdr_decode_netobj(__be32 *p, struct xdr_netobj *); 145 static inline __be32 *xdr_encode_array(__be32 *p, const void *s, unsigned int len) in xdr_encode_array() argument 147 return xdr_encode_opaque(p, s, len); in xdr_encode_array() 154 xdr_encode_hyper(__be32 *p, __u64 val) in xdr_encode_hyper() argument 156 put_unaligned_be64(val, p); in xdr_encode_hyper() [all …]
|
| D | rpc_rdma.h | 137 static inline __be32 *xdr_encode_rdma_segment(__be32 *p, u32 handle, in xdr_encode_rdma_segment() argument 140 *p++ = cpu_to_be32(handle); in xdr_encode_rdma_segment() 141 *p++ = cpu_to_be32(length); in xdr_encode_rdma_segment() 142 return xdr_encode_hyper(p, offset); in xdr_encode_rdma_segment() 156 static inline __be32 *xdr_encode_read_segment(__be32 *p, u32 position, in xdr_encode_read_segment() argument 160 *p++ = cpu_to_be32(position); in xdr_encode_read_segment() 161 return xdr_encode_rdma_segment(p, handle, length, offset); in xdr_encode_read_segment() 174 static inline __be32 *xdr_decode_rdma_segment(__be32 *p, u32 *handle, in xdr_decode_rdma_segment() argument 177 *handle = be32_to_cpup(p++); in xdr_decode_rdma_segment() 178 *length = be32_to_cpup(p++); in xdr_decode_rdma_segment() [all …]
|
| /include/trace/hooks/ |
| D | sched.h | 14 TP_PROTO(struct task_struct *p, int prev_cpu, int sd_flag, int wake_flags, int *new_cpu), 15 TP_ARGS(p, prev_cpu, sd_flag, wake_flags, new_cpu), 1); 18 TP_PROTO(struct task_struct *p, int prev_cpu, int sd_flag, int wake_flags, int *new_cpu), 19 TP_ARGS(p, prev_cpu, sd_flag, wake_flags, new_cpu), 1); 22 TP_PROTO(struct task_struct *p, int prev_cpu, int sd_flag, int wake_flags, int *new_cpu), 23 TP_ARGS(p, prev_cpu, sd_flag, wake_flags, new_cpu), 1); 26 TP_PROTO(int cpu, struct task_struct *p, int *new_cpu), 27 TP_ARGS(cpu, p, new_cpu), 1); 35 TP_PROTO(struct rq *rq, struct task_struct *p, int flags), 36 TP_ARGS(rq, p, flags), 1); [all …]
|
| /include/asm-generic/ |
| D | barrier.h | 139 #define __smp_store_release(p, v) \ argument 141 compiletime_assert_atomic_type(*p); \ 143 WRITE_ONCE(*p, v); \ 148 #define __smp_load_acquire(p) \ argument 150 __unqual_scalar_typeof(*p) ___p1 = READ_ONCE(*p); \ 151 compiletime_assert_atomic_type(*p); \ 153 (typeof(*p))___p1; \ 172 #define smp_store_release(p, v) do { kcsan_release(); __smp_store_release(p, v); } while (0) argument 176 #define smp_load_acquire(p) __smp_load_acquire(p) argument 194 #define smp_store_release(p, v) \ argument [all …]
|
| /include/linux/sched/ |
| D | rt.h | 23 static inline bool rt_task(struct task_struct *p) in rt_task() argument 25 return rt_prio(p->prio); in rt_task() 33 static inline bool rt_or_dl_task(struct task_struct *p) in rt_or_dl_task() argument 35 return rt_or_dl_prio(p->prio); in rt_or_dl_task() 61 static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *p) in rt_mutex_get_top_task() argument 63 return p->pi_top_task; in rt_mutex_get_top_task() 65 extern void rt_mutex_setprio(struct task_struct *p, struct task_struct *pi_task); 66 extern void rt_mutex_adjust_pi(struct task_struct *p); 72 # define rt_mutex_adjust_pi(p) do { } while (0) argument
|
| D | autogroup.h | 11 extern void sched_autogroup_create_attach(struct task_struct *p); 12 extern void sched_autogroup_detach(struct task_struct *p); 15 extern void sched_autogroup_exit_task(struct task_struct *p); 17 extern void proc_sched_autogroup_show_task(struct task_struct *p, struct seq_file *m); 18 extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice); 21 static inline void sched_autogroup_create_attach(struct task_struct *p) { } in sched_autogroup_create_attach() argument 22 static inline void sched_autogroup_detach(struct task_struct *p) { } in sched_autogroup_detach() argument 25 static inline void sched_autogroup_exit_task(struct task_struct *p) { } in sched_autogroup_exit_task() argument
|
| /include/keys/ |
| D | trusted-type.h | 62 int (*seal)(struct trusted_key_payload *p, char *datablob); 65 int (*unseal)(struct trusted_key_payload *p, char *datablob); 84 static inline void dump_payload(struct trusted_key_payload *p) in dump_payload() argument 86 pr_info("key_len %d\n", p->key_len); in dump_payload() 88 16, 1, p->key, p->key_len, 0); in dump_payload() 89 pr_info("bloblen %d\n", p->blob_len); in dump_payload() 91 16, 1, p->blob, p->blob_len, 0); in dump_payload() 92 pr_info("migratable %d\n", p->migratable); in dump_payload() 95 static inline void dump_payload(struct trusted_key_payload *p) in dump_payload() argument
|
| /include/uapi/linux/byteorder/ |
| D | big_endian.h | 45 static __always_inline __le64 __cpu_to_le64p(const __u64 *p) in __cpu_to_le64p() argument 47 return (__force __le64)__swab64p(p); in __cpu_to_le64p() 49 static __always_inline __u64 __le64_to_cpup(const __le64 *p) in __le64_to_cpup() argument 51 return __swab64p((__u64 *)p); in __le64_to_cpup() 53 static __always_inline __le32 __cpu_to_le32p(const __u32 *p) in __cpu_to_le32p() argument 55 return (__force __le32)__swab32p(p); in __cpu_to_le32p() 57 static __always_inline __u32 __le32_to_cpup(const __le32 *p) in __le32_to_cpup() argument 59 return __swab32p((__u32 *)p); in __le32_to_cpup() 61 static __always_inline __le16 __cpu_to_le16p(const __u16 *p) in __cpu_to_le16p() argument 63 return (__force __le16)__swab16p(p); in __cpu_to_le16p() [all …]
|