Home
last modified time | relevance | path

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

12345678

/include/linux/
A Dseq_buf.h55 return s->len > s->size; in seq_buf_has_overflowed()
61 s->len = s->size + 1; in seq_buf_set_overflow()
73 return s->size - s->len; in seq_buf_buffer_left()
79 return min(s->len, s->size); in seq_buf_used()
104 s->buffer[s->len] = 0; in seq_buf_str()
106 s->buffer[s->size - 1] = 0; in seq_buf_str()
121 WARN_ON(s->len > s->size + 1); in seq_buf_get_buf()
123 if (s->len < s->size) { in seq_buf_get_buf()
124 *bufp = s->buffer + s->len; in seq_buf_get_buf()
125 return s->size - s->len; in seq_buf_get_buf()
[all …]
A Dseqlock.h48 s->sequence = 0; in __seqcount_init()
63 __seqcount_init((s), #s, &__key); \
79 # define seqcount_init(s) __seqcount_init(s, NULL, NULL) argument
201 return s; in __seqprop_ptr()
206 return s; in __seqprop_const_ptr()
252 #define __seqprop(s, prop) _Generic(*(s), \ argument
259 #define seqprop_ptr(s) __seqprop(s, ptr)(s) argument
260 #define seqprop_const_ptr(s) __seqprop(s, const_ptr)(s) argument
261 #define seqprop_sequence(s) __seqprop(s, sequence)(s) argument
262 #define seqprop_preemptible(s) __seqprop(s, preemptible)(s) argument
[all …]
A 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 …]
A Dkstrtox.h40 return _kstrtoul(s, base, res); in kstrtoul()
66 return kstrtoll(s, base, (long long *)res); in kstrtol()
68 return _kstrtol(s, base, res); in kstrtol()
76 return kstrtoull(s, base, res); in kstrtou64()
81 return kstrtoll(s, base, res); in kstrtos64()
86 return kstrtouint(s, base, res); in kstrtou32()
91 return kstrtoint(s, base, res); in kstrtos32()
114 return kstrtoull_from_user(s, count, base, res); in kstrtou64_from_user()
119 return kstrtoll_from_user(s, count, base, res); in kstrtos64_from_user()
124 return kstrtouint_from_user(s, count, base, res); in kstrtou32_from_user()
[all …]
A 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
130 #define __diag_GCC_all(s) __diag(s) argument
A Dcompiler-clang.h108 #define __diag_clang(version, severity, s) \ argument
109 __diag_clang_ ## version(__diag_clang_ ## severity s)
116 #define __diag_str1(s) #s argument
117 #define __diag_str(s) __diag_str1(s) argument
118 #define __diag(s) _Pragma(__diag_str(clang diagnostic s)) argument
120 #define __diag_clang_13(s) __diag(s) argument
A Dregset.h27 if (s->left) { in membuf_zero()
28 if (size > s->left) in membuf_zero()
29 size = s->left; in membuf_zero()
31 s->p += size; in membuf_zero()
32 s->left -= size; in membuf_zero()
34 return s->left; in membuf_zero()
39 if (s->left) { in membuf_write()
41 size = s->left; in membuf_write()
43 s->p += size; in membuf_write()
44 s->left -= size; in membuf_write()
[all …]
A Dvt_buffer.h29 static inline void scr_memsetw(u16 *s, u16 c, unsigned int count) in scr_memsetw() argument
31 memset16(s, c, count / 2); in scr_memsetw()
36 static inline void scr_memcpyw(u16 *d, const u16 *s, unsigned int count) in scr_memcpyw() argument
38 memcpy(d, s, count); in scr_memcpyw()
43 static inline void scr_memmovew(u16 *d, const u16 *s, unsigned int count) in scr_memmovew() argument
45 memmove(d, s, count); in scr_memmovew()
A 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()
A Dhdlcdrv.h223 hdlcdrv_hbuf_put(&s->hdlcrx.hbuf, bits); in hdlcdrv_putbits()
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()
247 hdlcdrv_add_bitbuffer(&s->bitbuf_channel, bit); in hdlcdrv_channelbit()
253 s->hdlcrx.dcd = !!dcd; in hdlcdrv_setdcd()
256 static inline int hdlcdrv_ptt(struct hdlcdrv_state *s) in hdlcdrv_ptt() argument
[all …]
A Dgenl_magic_func.h104 if (s) \
114 if (s) \
116 s->name, s->name ## _len); \
190 if (s) \
191 s->name = __get(nla); \
199 if (s) \
200 s->name ## _len = \
201 __get(s->name, nla, maxlen); \
341 struct s_name *s) \
346 struct s_name *s) \
[all …]
A 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);
A Dlockdep.h509 #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
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
528 #define seqcount_acquire(l, s, t, i) lock_acquire_exclusive(l, s, t, NULL, i) argument
532 #define mutex_acquire(l, s, t, i) lock_acquire_exclusive(l, s, t, NULL, i) argument
533 #define mutex_acquire_nest(l, s, t, n, i) lock_acquire_exclusive(l, s, t, n, i) argument
536 #define rwsem_acquire(l, s, t, i) lock_acquire_exclusive(l, s, t, NULL, i) argument
537 #define rwsem_acquire_nest(l, s, t, n, i) lock_acquire_exclusive(l, s, t, n, i) argument
[all …]
A 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
A 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);
113 int _torture_create_kthread(int (*fn)(void *arg), void *arg, char *s, char *m,
/include/linux/comedi/
A Dcomedidev.h186 struct comedi_subdevice *s,
192 struct comedi_subdevice *s,
199 struct comedi_subdevice *s);
778 return val ^ s->maxdata ^ (s->maxdata >> 1); in comedi_offset_munge()
821 return nbytes >> comedi_sample_shift(s); in comedi_bytes_to_samples()
835 return nsamples << comedi_sample_shift(s); in comedi_samples_to_bytes()
962 return s->async->buf_write_count - s->async->buf_read_count; in comedi_buf_n_bytes_ready()
984 struct comedi_subdevice *s,
989 struct comedi_subdevice *s);
992 struct comedi_subdevice *s,
[all …]
A 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/
A 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/
A Dcontroller.h362 rqst.target_id = s.target_id; \
363 rqst.command_id = s.command_id; \
365 rqst.flags = s.flags; \
402 rqst.target_id = s.target_id; \
403 rqst.command_id = s.command_id; \
405 rqst.flags = s.flags; \
445 rqst.target_id = s.target_id; \
446 rqst.command_id = s.command_id; \
506 rqst.target_id = s.target_id; \
566 rqst.flags = s.flags; \
[all …]
/include/linux/pinctrl/
A Dconsumer.h122 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()
203 return ERR_CAST(s); in devm_pinctrl_get_select()
[all …]
/include/uapi/linux/
A 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/trace/events/
A Dosnoise.h40 TP_PROTO(struct osnoise_sample *s),
42 TP_ARGS(s),
56 __entry->runtime = s->runtime;
57 __entry->noise = s->noise;
59 __entry->hw_count = s->hw_count;
60 __entry->irq_count = s->irq_count;
61 __entry->nmi_count = s->nmi_count;
82 TP_PROTO(struct timerlat_sample *s),
84 TP_ARGS(s),
94 __entry->seqnum = s->seqnum;
[all …]
/include/linux/ceph/
A 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/
A Dcfsrvl.h46 struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); in cfsrvl_get() local
47 if (layr == NULL || layr->up == NULL || s->hold == NULL) in cfsrvl_get()
50 s->hold(layr->up); in cfsrvl_get()
55 struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); in cfsrvl_put() local
56 if (layr == NULL || layr->up == NULL || s->hold == NULL) in cfsrvl_put()
59 s->put(layr->up); in cfsrvl_put()
/include/net/
A Daf_unix.h60 #define unix_state_lock(s) spin_lock(&unix_sk(s)->lock) argument
61 #define unix_state_unlock(s) spin_unlock(&unix_sk(s)->lock) argument

Completed in 34 milliseconds

12345678