/include/linux/ |
D | seq_buf.h | 26 static inline void seq_buf_clear(struct seq_buf *s) in seq_buf_clear() argument 28 s->len = 0; in seq_buf_clear() 29 s->readpos = 0; in seq_buf_clear() 33 seq_buf_init(struct seq_buf *s, unsigned char *buf, unsigned int size) in seq_buf_init() argument 35 s->buffer = buf; in seq_buf_init() 36 s->size = size; in seq_buf_init() 37 seq_buf_clear(s); in seq_buf_init() 45 seq_buf_has_overflowed(struct seq_buf *s) in seq_buf_has_overflowed() argument 47 return s->len > s->size; in seq_buf_has_overflowed() 51 seq_buf_set_overflow(struct seq_buf *s) in seq_buf_set_overflow() argument [all …]
|
D | trace_seq.h | 21 trace_seq_init(struct trace_seq *s) in trace_seq_init() argument 23 seq_buf_init(&s->seq, s->buffer, PAGE_SIZE); in trace_seq_init() 24 s->full = 0; in trace_seq_init() 40 static inline int trace_seq_used(struct trace_seq *s) in trace_seq_used() argument 42 return seq_buf_used(&s->seq); in trace_seq_used() 55 trace_seq_buffer_ptr(struct trace_seq *s) in trace_seq_buffer_ptr() argument 57 return s->buffer + seq_buf_used(&s->seq); in trace_seq_buffer_ptr() 67 static inline bool trace_seq_has_overflowed(struct trace_seq *s) in trace_seq_has_overflowed() argument 69 return s->full || seq_buf_has_overflowed(&s->seq); in trace_seq_has_overflowed() 77 void trace_seq_printf(struct trace_seq *s, const char *fmt, ...); [all …]
|
D | seqlock.h | 55 static inline void __seqcount_init(seqcount_t *s, const char *name, in __seqcount_init() argument 61 lockdep_init_map(&s->dep_map, name, key, 0); in __seqcount_init() 62 s->sequence = 0; in __seqcount_init() 69 # define seqcount_init(s) \ argument 72 __seqcount_init((s), #s, &__key); \ 75 static inline void seqcount_lockdep_reader_access(const seqcount_t *s) in seqcount_lockdep_reader_access() argument 77 seqcount_t *l = (seqcount_t *)s; in seqcount_lockdep_reader_access() 88 # define seqcount_init(s) __seqcount_init(s, NULL, NULL) argument 108 static inline unsigned __read_seqcount_begin(const seqcount_t *s) in __read_seqcount_begin() argument 113 ret = READ_ONCE(s->sequence); in __read_seqcount_begin() [all …]
|
D | vt_buffer.h | 29 static inline void scr_memsetw(u16 *s, u16 c, unsigned int count) in scr_memsetw() argument 34 scr_writew(c, s++); in scr_memsetw() 36 memset16(s, c, count / 2); in scr_memsetw() 42 static inline void scr_memcpyw(u16 *d, const u16 *s, unsigned int count) in scr_memcpyw() argument 47 scr_writew(scr_readw(s++), d++); in scr_memcpyw() 49 memcpy(d, s, count); in scr_memcpyw() 55 static inline void scr_memmovew(u16 *d, const u16 *s, unsigned int count) in scr_memmovew() argument 58 if (d < s) in scr_memmovew() 59 scr_memcpyw(d, s, count); in scr_memmovew() 63 s += count; in scr_memmovew() [all …]
|
D | compiler-gcc.h | 143 #define __diag_GCC(version, severity, s) \ argument 144 __diag_GCC_ ## version(__diag_GCC_ ## severity s) 151 #define __diag_str1(s) #s argument 152 #define __diag_str(s) __diag_str1(s) argument 153 #define __diag(s) _Pragma(__diag_str(GCC diagnostic s)) argument 156 #define __diag_GCC_8(s) __diag(s) argument 158 #define __diag_GCC_8(s) argument
|
D | win_minmax.h | 19 struct minmax_sample s[3]; member 24 return m->s[0].v; in minmax_get() 31 m->s[2] = m->s[1] = m->s[0] = val; in minmax_reset() 32 return m->s[0].v; in minmax_reset()
|
D | android_vendor.h | 30 #define ANDROID_VENDOR_DATA_ARRAY(n, s) u64 android_vendor_data##n[s] argument 33 #define ANDROID_OEM_DATA_ARRAY(n, s) u64 android_oem_data##n[s] argument
|
D | hdlcdrv.h | 221 static inline void hdlcdrv_putbits(struct hdlcdrv_state *s, unsigned int bits) in hdlcdrv_putbits() argument 223 hdlcdrv_hbuf_put(&s->hdlcrx.hbuf, bits); in hdlcdrv_putbits() 226 static inline unsigned int hdlcdrv_getbits(struct hdlcdrv_state *s) in hdlcdrv_getbits() argument 230 if (hdlcdrv_hbuf_empty(&s->hdlctx.hbuf)) { in hdlcdrv_getbits() 231 if (s->hdlctx.calibrate > 0) in hdlcdrv_getbits() 232 s->hdlctx.calibrate--; in hdlcdrv_getbits() 234 s->hdlctx.ptt = 0; in hdlcdrv_getbits() 237 ret = hdlcdrv_hbuf_get(&s->hdlctx.hbuf); in hdlcdrv_getbits() 239 hdlcdrv_hbuf_put(&s->hdlcrx.hbuf, ret); in hdlcdrv_getbits() 244 static inline void hdlcdrv_channelbit(struct hdlcdrv_state *s, unsigned int bit) in hdlcdrv_channelbit() argument [all …]
|
D | torture.h | 32 #define TOROUT_STRING(s) \ argument 33 pr_alert("%s" TORTURE_FLAG " %s\n", torture_type, s) 34 #define VERBOSE_TOROUT_STRING(s) \ argument 35 do { if (verbose) pr_alert("%s" TORTURE_FLAG " %s\n", torture_type, s); } while (0) 36 #define VERBOSE_TOROUT_ERRSTRING(s) \ argument 37 do { if (verbose) pr_alert("%s" TORTURE_FLAG "!!! %s\n", torture_type, s); } while (0) 69 int torture_stutter_init(int s, int sgap); 79 int _torture_create_kthread(int (*fn)(void *arg), void *arg, char *s, char *m,
|
D | slub_def.h | 146 #define slub_cpu_partial(s) ((s)->cpu_partial) argument 147 #define slub_set_cpu_partial(s, n) \ argument 149 slub_cpu_partial(s) = (n); \ 152 #define slub_cpu_partial(s) (0) argument 153 #define slub_set_cpu_partial(s, n) argument 161 static inline void sysfs_slab_unlink(struct kmem_cache *s) in sysfs_slab_unlink() argument 164 static inline void sysfs_slab_release(struct kmem_cache *s) in sysfs_slab_release() argument 169 void object_err(struct kmem_cache *s, struct page *page, 172 void *fixup_red_left(struct kmem_cache *s, void *p);
|
D | genl_magic_func.h | 101 #define DPRINT_FIELD(dir, nla_type, name, s, nla) \ argument 103 if (s) \ 104 dprint_field(dir, nla_type, #name, &s->name); \ 111 #define DPRINT_ARRAY(dir, nla_type, name, s, nla) \ argument 113 if (s) \ 115 s->name, s->name ## _len); \ 122 #define DPRINT_FIELD(dir, nla_type, name, s, nla) do {} while (0) argument 123 #define DPRINT_ARRAY(dir, nla_type, name, s, nla) do {} while (0) argument 139 static int __ ## s_name ## _from_attrs(struct s_name *s, \ 158 static int s_name ## _from_attrs(struct s_name *s, \ [all …]
|
D | lockdep.h | 434 # define lock_acquire(l, s, t, r, c, n, i) do { } while (0) argument 437 # define lock_set_class(l, n, k, s, i) do { } while (0) argument 438 # define lock_set_subclass(l, s, i) do { } while (0) argument 506 #define lockdep_init_map_crosslock(m, n, k, s) do {} while (0) argument 593 #define lock_acquire_exclusive(l, s, t, n, i) lock_acquire(l, s, t, 0, 1, n, i) argument 594 #define lock_acquire_shared(l, s, t, n, i) lock_acquire(l, s, t, 1, 1, n, i) argument 595 #define lock_acquire_shared_recursive(l, s, t, n, i) lock_acquire(l, s, t, 2, 1, n, i) argument 597 #define spin_acquire(l, s, t, i) lock_acquire_exclusive(l, s, t, NULL, i) argument 598 #define spin_acquire_nest(l, s, t, n, i) lock_acquire_exclusive(l, s, t, n, i) argument 601 #define rwlock_acquire(l, s, t, i) lock_acquire_exclusive(l, s, t, NULL, i) argument [all …]
|
D | dim.h | 249 dim_update_sample(u16 event_ctr, u64 packets, u64 bytes, struct dim_sample *s) in dim_update_sample() argument 251 s->time = ktime_get(); in dim_update_sample() 252 s->pkt_ctr = packets; in dim_update_sample() 253 s->byte_ctr = bytes; in dim_update_sample() 254 s->event_ctr = event_ctr; in dim_update_sample() 268 struct dim_sample *s) in dim_update_sample_with_comps() argument 270 dim_update_sample(event_ctr, packets, bytes, s); in dim_update_sample_with_comps() 271 s->comp_ctr = comps; in dim_update_sample_with_comps()
|
D | kernel.h | 340 int __must_check _kstrtoul(const char *s, unsigned int base, unsigned long *res); 341 int __must_check _kstrtol(const char *s, unsigned int base, long *res); 343 int __must_check kstrtoull(const char *s, unsigned int base, unsigned long long *res); 344 int __must_check kstrtoll(const char *s, unsigned int base, long long *res); 362 static inline int __must_check kstrtoul(const char *s, unsigned int base, unsigned long *res) in kstrtoul() argument 370 return kstrtoull(s, base, (unsigned long long *)res); in kstrtoul() 372 return _kstrtoul(s, base, res); in kstrtoul() 391 static inline int __must_check kstrtol(const char *s, unsigned int base, long *res) in kstrtol() argument 399 return kstrtoll(s, base, (long long *)res); in kstrtol() 401 return _kstrtol(s, base, res); in kstrtol() [all …]
|
D | scs.h | 38 static inline void task_set_scs(struct task_struct *tsk, void *s) in task_set_scs() argument 40 task_scs(tsk) = s; in task_set_scs() 53 static inline void task_set_scs(struct task_struct *tsk, void *s) {} in task_set_scs() argument
|
D | xz.h | 214 XZ_EXTERN enum xz_ret xz_dec_run(struct xz_dec *s, struct xz_buf *b); 227 XZ_EXTERN void xz_dec_reset(struct xz_dec *s); 234 XZ_EXTERN void xz_dec_end(struct xz_dec *s);
|
D | timex.h | 151 #define shift_right(x, s) ({ \ argument 153 __typeof__(s) __s = (s); \
|
/include/linux/mtd/ |
D | cfi_endian.h | 22 #define cfi_default(s) ((s)?:CFI_DEFAULT_ENDIAN) argument 23 #define cfi_be(s) (cfi_default(s) == CFI_BIG_ENDIAN) argument 24 #define cfi_le(s) (cfi_default(s) == CFI_LITTLE_ENDIAN) argument 25 #define cfi_host(s) (cfi_default(s) == CFI_HOST_ENDIAN) argument 36 #define _cpu_to_cfi(w, s, x) (cfi_host(s)?(x):_swap_to_cfi(w, s, x)) argument 37 #define _cfi_to_cpu(w, s, x) (cfi_host(s)?(x):_swap_to_cpu(w, s, x)) argument 38 #define _swap_to_cfi(w, s, x) (cfi_be(s)?cpu_to_be##w(x):cpu_to_le##w(x)) argument 39 #define _swap_to_cpu(w, s, x) (cfi_be(s)?be##w##_to_cpu(x):le##w##_to_cpu(x)) argument
|
D | inftl.h | 50 int INFTL_mount(struct INFTLrecord *s); 51 int INFTL_formatblock(struct INFTLrecord *s, int block); 53 void INFTL_dumptables(struct INFTLrecord *s); 54 void INFTL_dumpVUchains(struct INFTLrecord *s);
|
/include/linux/pinctrl/ |
D | consumer.h | 39 extern int pinctrl_select_state(struct pinctrl *p, struct pinctrl_state *s); 111 struct pinctrl_state *s) in pinctrl_select_state() argument 146 struct pinctrl_state *s; in pinctrl_get_select() local 153 s = pinctrl_lookup_state(p, name); in pinctrl_get_select() 154 if (IS_ERR(s)) { in pinctrl_get_select() 156 return ERR_CAST(s); in pinctrl_get_select() 159 ret = pinctrl_select_state(p, s); in pinctrl_get_select() 178 struct pinctrl_state *s; in devm_pinctrl_get_select() local 185 s = pinctrl_lookup_state(p, name); in devm_pinctrl_get_select() 186 if (IS_ERR(s)) { in devm_pinctrl_get_select() [all …]
|
D | pinconf.h | 57 struct seq_file *s, 60 struct seq_file *s, 63 struct seq_file *s,
|
/include/uapi/linux/ |
D | vboxguest.h | 102 #define VBG_IOCTL_VMMDEV_REQUEST(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 2, s) argument 176 #define VBG_IOCTL_HGCM_CALL_32(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 6, s) argument 177 #define VBG_IOCTL_HGCM_CALL_64(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 7, s) argument 179 #define VBG_IOCTL_HGCM_CALL(s) VBG_IOCTL_HGCM_CALL_64(s) argument 181 #define VBG_IOCTL_HGCM_CALL(s) VBG_IOCTL_HGCM_CALL_32(s) argument 201 #define VBG_IOCTL_LOG(s) _IO('V', 9) argument
|
/include/linux/ceph/ |
D | ceph_hash.h | 8 extern unsigned ceph_str_hash_linux(const char *s, unsigned len); 9 extern unsigned ceph_str_hash_rjenkins(const char *s, unsigned len); 11 extern unsigned ceph_str_hash(int type, const char *s, unsigned len);
|
/include/net/caif/ |
D | cfsrvl.h | 50 struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); in cfsrvl_get() local 51 if (layr == NULL || layr->up == NULL || s->hold == NULL) in cfsrvl_get() 54 s->hold(layr->up); in cfsrvl_get() 59 struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); in cfsrvl_put() local 60 if (layr == NULL || layr->up == NULL || s->hold == NULL) in cfsrvl_put() 63 s->put(layr->up); in cfsrvl_put()
|
/include/trace/events/ |
D | hwmon.h | 48 TP_PROTO(int index, const char *attr_name, const char *s), 50 TP_ARGS(index, attr_name, s), 55 __string(label, s) 61 __assign_str(label, s);
|