Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 181) sorted by relevance

12345678

/include/linux/
Dseq_buf.h33 static inline void seq_buf_clear(struct seq_buf *s) in seq_buf_clear() argument
35 s->len = 0; in seq_buf_clear()
36 if (s->size) in seq_buf_clear()
37 s->buffer[0] = '\0'; in seq_buf_clear()
41 seq_buf_init(struct seq_buf *s, char *buf, unsigned int size) in seq_buf_init() argument
43 s->buffer = buf; in seq_buf_init()
44 s->size = size; in seq_buf_init()
45 seq_buf_clear(s); in seq_buf_init()
53 seq_buf_has_overflowed(struct seq_buf *s) in seq_buf_has_overflowed() argument
55 return s->len > s->size; in seq_buf_has_overflowed()
[all …]
Dseqlock.h41 static inline void __seqcount_init(seqcount_t *s, const char *name, in __seqcount_init() argument
47 lockdep_init_map(&s->dep_map, name, key, 0); in __seqcount_init()
48 s->sequence = 0; in __seqcount_init()
60 # define seqcount_init(s) \ argument
63 __seqcount_init((s), #s, &__key); \
66 static inline void seqcount_lockdep_reader_access(const seqcount_t *s) in seqcount_lockdep_reader_access() argument
68 seqcount_t *l = (seqcount_t *)s; in seqcount_lockdep_reader_access()
79 # define seqcount_init(s) __seqcount_init(s, NULL, NULL) argument
123 #define seqcount_LOCKNAME_init(s, _lock, lockname) \ argument
125 seqcount_##lockname##_t *____s = (s); \
[all …]
Dtrace_seq.h31 trace_seq_init(struct trace_seq *s) in trace_seq_init() argument
33 seq_buf_init(&s->seq, s->buffer, TRACE_SEQ_BUFFER_SIZE); in trace_seq_init()
34 s->full = 0; in trace_seq_init()
35 s->readpos = 0; in trace_seq_init()
51 static inline int trace_seq_used(struct trace_seq *s) in trace_seq_used() argument
53 return seq_buf_used(&s->seq); in trace_seq_used()
66 trace_seq_buffer_ptr(struct trace_seq *s) in trace_seq_buffer_ptr() argument
68 return s->buffer + seq_buf_used(&s->seq); in trace_seq_buffer_ptr()
78 static inline bool trace_seq_has_overflowed(struct trace_seq *s) in trace_seq_has_overflowed() argument
80 return s->full || seq_buf_has_overflowed(&s->seq); in trace_seq_has_overflowed()
[all …]
Dkstrtox.h9 int __must_check _kstrtoul(const char *s, unsigned int base, unsigned long *res);
10 int __must_check _kstrtol(const char *s, unsigned int base, long *res);
12 int __must_check kstrtoull(const char *s, unsigned int base, unsigned long long *res);
13 int __must_check kstrtoll(const char *s, unsigned int base, long long *res);
30 static inline int __must_check kstrtoul(const char *s, unsigned int base, unsigned long *res) in kstrtoul() argument
38 return kstrtoull(s, base, (unsigned long long *)res); in kstrtoul()
40 return _kstrtoul(s, base, res); in kstrtoul()
58 static inline int __must_check kstrtol(const char *s, unsigned int base, long *res) in kstrtol() argument
66 return kstrtoll(s, base, (long long *)res); in kstrtol()
68 return _kstrtol(s, base, res); in kstrtol()
[all …]
Dvt_buffer.h29 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 …]
Dcompiler-gcc.h112 #define __diag_GCC(version, severity, s) \ argument
113 __diag_GCC_ ## version(__diag_GCC_ ## severity s)
120 #define __diag_str1(s) #s argument
121 #define __diag_str(s) __diag_str1(s) argument
122 #define __diag(s) _Pragma(__diag_str(GCC diagnostic s)) argument
125 #define __diag_GCC_8(s) __diag(s) argument
127 #define __diag_GCC_8(s) argument
Dregset.h25 static inline int membuf_zero(struct membuf *s, size_t size) in membuf_zero() argument
27 if (s->left) { in membuf_zero()
28 if (size > s->left) in membuf_zero()
29 size = s->left; in membuf_zero()
30 memset(s->p, 0, size); in membuf_zero()
31 s->p += size; in membuf_zero()
32 s->left -= size; in membuf_zero()
34 return s->left; in membuf_zero()
37 static inline int membuf_write(struct membuf *s, const void *v, size_t size) in membuf_write() argument
39 if (s->left) { in membuf_write()
[all …]
Dcompiler-clang.h124 #define __diag_clang(version, severity, s) \ argument
125 __diag_clang_ ## version(__diag_clang_ ## severity s)
132 #define __diag_str1(s) #s argument
133 #define __diag_str(s) __diag_str1(s) argument
134 #define __diag(s) _Pragma(__diag_str(clang diagnostic s)) argument
136 #define __diag_clang_13(s) __diag(s) argument
Dwin_minmax.h19 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()
Dandroid_vendor.h31 #define ANDROID_VENDOR_DATA_ARRAY(n, s) u64 android_vendor_data##n[s] argument
34 #define ANDROID_OEM_DATA_ARRAY(n, s) u64 android_oem_data##n[s] argument
42 #define ANDROID_VENDOR_DATA_ARRAY(n, s) argument
44 #define ANDROID_OEM_DATA_ARRAY(n, s) argument
Dhdlcdrv.h221 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 …]
Dxz.h208 enum xz_ret xz_dec_run(struct xz_dec *s, struct xz_buf *b);
221 void xz_dec_reset(struct xz_dec *s);
228 void xz_dec_end(struct xz_dec *s);
283 void xz_dec_microlzma_reset(struct xz_dec_microlzma *s, uint32_t comp_size,
322 enum xz_ret xz_dec_microlzma_run(struct xz_dec_microlzma *s, struct xz_buf *b);
329 void xz_dec_microlzma_end(struct xz_dec_microlzma *s);
Dgenl_magic_func.h102 #define DPRINT_FIELD(dir, nla_type, name, s, nla) \ argument
104 if (s) \
105 dprint_field(dir, nla_type, #name, &s->name); \
112 #define DPRINT_ARRAY(dir, nla_type, name, s, nla) \ argument
114 if (s) \
116 s->name, s->name ## _len); \
123 #define DPRINT_FIELD(dir, nla_type, name, s, nla) do {} while (0) argument
124 #define DPRINT_ARRAY(dir, nla_type, name, s, nla) do {} while (0) argument
140 static int __ ## s_name ## _from_attrs(struct s_name *s, \
159 static int s_name ## _from_attrs(struct s_name *s, \
[all …]
Dlockdep.h336 # define lock_acquire(l, s, t, r, c, n, i) do { } while (0) argument
339 # define lock_set_class(l, n, key, s, i) do { (void)(key); } while (0) argument
341 # define lock_set_subclass(l, s, i) do { } while (0) argument
509 #define lock_acquire_exclusive(l, s, t, n, i) lock_acquire(l, s, t, 0, 1, n, i) argument
510 #define lock_acquire_shared(l, s, t, n, i) lock_acquire(l, s, t, 1, 1, n, i) argument
511 #define lock_acquire_shared_recursive(l, s, t, n, i) lock_acquire(l, s, t, 2, 1, n, i) argument
513 #define spin_acquire(l, s, t, i) lock_acquire_exclusive(l, s, t, NULL, i) argument
514 #define spin_acquire_nest(l, s, t, n, i) lock_acquire_exclusive(l, s, t, n, i) argument
517 #define rwlock_acquire(l, s, t, i) lock_acquire_exclusive(l, s, t, NULL, i) argument
518 #define rwlock_acquire_read(l, s, t, i) \ argument
[all …]
Dkfence.h94 void kfence_shutdown_cache(struct kmem_cache *s);
100 void *__kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags);
118 static __always_inline void *kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags) in kfence_alloc() argument
129 return __kfence_alloc(s, size, flags); in kfence_alloc()
231 static inline void kfence_shutdown_cache(struct kmem_cache *s) { } in kfence_shutdown_cache() argument
232 static inline void *kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags) { return NULL; } in kfence_alloc() argument
Dtorture.h33 #define TOROUT_STRING(s) \ argument
34 pr_alert("%s" TORTURE_FLAG " %s\n", torture_type, s)
35 #define VERBOSE_TOROUT_STRING(s) \ argument
39 pr_alert("%s" TORTURE_FLAG " %s\n", torture_type, s); \
42 #define TOROUT_ERRSTRING(s) \ argument
43 pr_alert("%s" TORTURE_FLAG "!!! %s\n", torture_type, s)
102 int torture_stutter_init(int s, int sgap);
112 int _torture_create_kthread(int (*fn)(void *arg), void *arg, char *s, char *m,
Dkmsan.h100 void kmsan_slab_alloc(struct kmem_cache *s, void *object, gfp_t flags);
109 void kmsan_slab_free(struct kmem_cache *s, void *object);
266 static inline void *memset_no_sanitize_memory(void *s, int c, size_t n) in memset_no_sanitize_memory() argument
268 return __memset(s, c, n); in memset_no_sanitize_memory()
331 static inline void kmsan_slab_alloc(struct kmem_cache *s, void *object, in kmsan_slab_alloc() argument
336 static inline void kmsan_slab_free(struct kmem_cache *s, void *object) in kmsan_slab_free() argument
401 static inline void *memset_no_sanitize_memory(void *s, int c, size_t n) in memset_no_sanitize_memory() argument
403 return memset(s, c, n); in memset_no_sanitize_memory()
/include/linux/comedi/
Dcomedidev.h179 int (*insn_read)(struct comedi_device *dev, struct comedi_subdevice *s,
181 int (*insn_write)(struct comedi_device *dev, struct comedi_subdevice *s,
183 int (*insn_bits)(struct comedi_device *dev, struct comedi_subdevice *s,
186 struct comedi_subdevice *s,
190 int (*do_cmd)(struct comedi_device *dev, struct comedi_subdevice *s);
192 struct comedi_subdevice *s,
194 int (*poll)(struct comedi_device *dev, struct comedi_subdevice *s);
195 int (*cancel)(struct comedi_device *dev, struct comedi_subdevice *s);
199 struct comedi_subdevice *s);
201 void (*munge)(struct comedi_device *dev, struct comedi_subdevice *s,
[all …]
Dcomedi_8255.h33 int subdev_8255_io_init(struct comedi_device *dev, struct comedi_subdevice *s,
37 struct comedi_subdevice *s, in subdev_8255_io_init() argument
44 int subdev_8255_mm_init(struct comedi_device *dev, struct comedi_subdevice *s,
47 int subdev_8255_cb_init(struct comedi_device *dev, struct comedi_subdevice *s,
52 unsigned long subdev_8255_regbase(struct comedi_subdevice *s);
/include/linux/mtd/
Dcfi_endian.h22 #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
/include/linux/surface_aggregator/
Dcontroller.h358 struct ssam_request_spec s = (struct ssam_request_spec)spec; \
361 rqst.target_category = s.target_category; \
362 rqst.target_id = s.target_id; \
363 rqst.command_id = s.command_id; \
364 rqst.instance_id = s.instance_id; \
365 rqst.flags = s.flags; \
398 struct ssam_request_spec s = (struct ssam_request_spec)spec; \
401 rqst.target_category = s.target_category; \
402 rqst.target_id = s.target_id; \
403 rqst.command_id = s.command_id; \
[all …]
/include/linux/pinctrl/
Dconsumer.h43 int pinctrl_select_state(struct pinctrl *p, struct pinctrl_state *s);
122 struct pinctrl_state *s) in pinctrl_select_state() argument
162 struct pinctrl_state *s; in pinctrl_get_select() local
169 s = pinctrl_lookup_state(p, name); in pinctrl_get_select()
170 if (IS_ERR(s)) { in pinctrl_get_select()
172 return ERR_CAST(s); in pinctrl_get_select()
175 ret = pinctrl_select_state(p, s); in pinctrl_get_select()
193 struct pinctrl_state *s; in devm_pinctrl_get_select() local
200 s = pinctrl_lookup_state(p, name); in devm_pinctrl_get_select()
201 if (IS_ERR(s)) { in devm_pinctrl_get_select()
[all …]
/include/uapi/linux/
Dvboxguest.h102 #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/
Dceph_hash.h8 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/
Dcfsrvl.h47 struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); in cfsrvl_get() local
48 if (layr == NULL || layr->up == NULL || s->hold == NULL) in cfsrvl_get()
51 s->hold(layr->up); in cfsrvl_get()
56 struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); in cfsrvl_put() local
57 if (layr == NULL || layr->up == NULL || s->hold == NULL) in cfsrvl_put()
60 s->put(layr->up); in cfsrvl_put()

12345678