Home
last modified time | relevance | path

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

12345678910>>...159

/Linux-v4.19/lib/zlib_deflate/
Ddeflate.c66 typedef block_state (*compress_func) (deflate_state *s, int flush);
69 static void fill_window (deflate_state *s);
70 static block_state deflate_stored (deflate_state *s, int flush);
71 static block_state deflate_fast (deflate_state *s, int flush);
72 static block_state deflate_slow (deflate_state *s, int flush);
73 static void lm_init (deflate_state *s);
74 static void putShortMSB (deflate_state *s, uInt b);
77 static uInt longest_match (deflate_state *s, IPos cur_match);
80 static void check_match (deflate_state *s, IPos start, IPos match,
142 #define UPDATE_HASH(s,h,c) (h = (((h)<<s->hash_shift) ^ (c)) & s->hash_mask) argument
[all …]
Ddeftree.c137 static void init_block (deflate_state *s);
138 static void pqdownheap (deflate_state *s, ct_data *tree, int k);
139 static void gen_bitlen (deflate_state *s, tree_desc *desc);
141 static void build_tree (deflate_state *s, tree_desc *desc);
142 static void scan_tree (deflate_state *s, ct_data *tree, int max_code);
143 static void send_tree (deflate_state *s, ct_data *tree, int max_code);
144 static int build_bl_tree (deflate_state *s);
145 static void send_all_trees (deflate_state *s, int lcodes, int dcodes,
147 static void compress_block (deflate_state *s, ct_data *ltree,
149 static void set_data_type (deflate_state *s);
[all …]
/Linux-v4.19/arch/m68k/ifpsp060/
DMISC34 freal.s : 2.4
36 x_fovfl.s : 2.16
37 x_funfl.s : 2.19
38 x_funsupp.s : 2.27
39 x_effadd.s : 2.21
40 x_foperr.s : 2.9
41 x_fsnan.s : 2.12
42 x_finex.s : 2.14
43 x_fdz.s : 2.5
44 x_fline.s : 2.5
[all …]
/Linux-v4.19/drivers/video/fbdev/mbx/
Dmbxdebugfs.c28 char * s = big_buffer; in sysconf_read_file() local
30 s += sprintf(s, "SYSCFG = %08x\n", readl(SYSCFG)); in sysconf_read_file()
31 s += sprintf(s, "PFBASE = %08x\n", readl(PFBASE)); in sysconf_read_file()
32 s += sprintf(s, "PFCEIL = %08x\n", readl(PFCEIL)); in sysconf_read_file()
33 s += sprintf(s, "POLLFLAG = %08x\n", readl(POLLFLAG)); in sysconf_read_file()
34 s += sprintf(s, "SYSRST = %08x\n", readl(SYSRST)); in sysconf_read_file()
37 big_buffer, s-big_buffer); in sysconf_read_file()
44 char * s = big_buffer; in gsctl_read_file() local
46 s += sprintf(s, "GSCTRL = %08x\n", readl(GSCTRL)); in gsctl_read_file()
47 s += sprintf(s, "VSCTRL = %08x\n", readl(VSCTRL)); in gsctl_read_file()
[all …]
/Linux-v4.19/lib/xz/
Dxz_dec_stream.c157 static bool fill_temp(struct xz_dec *s, struct xz_buf *b) in fill_temp() argument
160 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp()
162 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp()
164 s->temp.pos += copy_size; in fill_temp()
166 if (s->temp.pos == s->temp.size) { in fill_temp()
167 s->temp.pos = 0; in fill_temp()
175 static enum xz_ret dec_vli(struct xz_dec *s, const uint8_t *in, in dec_vli() argument
180 if (s->pos == 0) in dec_vli()
181 s->vli = 0; in dec_vli()
187 s->vli |= (vli_type)(byte & 0x7F) << s->pos; in dec_vli()
[all …]
Dxz_dec_lzma2.c572 static uint16_t *lzma_literal_probs(struct xz_dec_lzma2 *s) in lzma_literal_probs() argument
574 uint32_t prev_byte = dict_get(&s->dict, 0); in lzma_literal_probs()
575 uint32_t low = prev_byte >> (8 - s->lzma.lc); in lzma_literal_probs()
576 uint32_t high = (s->dict.pos & s->lzma.literal_pos_mask) << s->lzma.lc; in lzma_literal_probs()
577 return s->lzma.literal[low + high]; in lzma_literal_probs()
581 static void lzma_literal(struct xz_dec_lzma2 *s) in lzma_literal() argument
590 probs = lzma_literal_probs(s); in lzma_literal()
592 if (lzma_state_is_literal(s->lzma.state)) { in lzma_literal()
593 symbol = rc_bittree(&s->rc, probs, 0x100); in lzma_literal()
596 match_byte = dict_get(&s->dict, s->lzma.rep0) << 1; in lzma_literal()
[all …]
/Linux-v4.19/arch/arm64/crypto/
Dchacha20-neon-core.S40 ld1 {v0.4s-v3.4s}, [x0]
41 ld1 {v8.4s-v11.4s}, [x0]
42 ld1 {v12.4s}, [x3]
48 add v0.4s, v0.4s, v1.4s
53 add v2.4s, v2.4s, v3.4s
55 shl v1.4s, v4.4s, #12
56 sri v1.4s, v4.4s, #20
59 add v0.4s, v0.4s, v1.4s
64 add v2.4s, v2.4s, v3.4s
66 shl v1.4s, v4.4s, #7
[all …]
/Linux-v4.19/arch/mips/cavium-octeon/executive/
Dcvmx-interrupt-decodes.c59 gmx_rx_int_en.s.hg2cc = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable()
60 gmx_rx_int_en.s.hg2fld = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable()
61 gmx_rx_int_en.s.undat = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable()
62 gmx_rx_int_en.s.uneop = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable()
63 gmx_rx_int_en.s.unsop = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable()
64 gmx_rx_int_en.s.bad_term = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable()
65 gmx_rx_int_en.s.bad_seq = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable()
66 gmx_rx_int_en.s.rem_fault = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable()
67 gmx_rx_int_en.s.loc_fault = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable()
68 gmx_rx_int_en.s.pause_drp = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable()
[all …]
/Linux-v4.19/drivers/media/pci/tw5864/
Dtw5864-h264.c40 static void bs_init(struct bs *s, void *buf, int size) in bs_init() argument
42 s->buf = buf; in bs_init()
43 s->ptr = buf; in bs_init()
44 s->buf_end = s->ptr + size; in bs_init()
45 s->bits_left = 8; in bs_init()
48 static int bs_len(struct bs *s) in bs_len() argument
50 return s->ptr - s->buf; in bs_len()
53 static void bs_write(struct bs *s, int count, u32 bits) in bs_write() argument
55 if (s->ptr >= s->buf_end - 4) in bs_write()
60 if (count < s->bits_left) { in bs_write()
[all …]
/Linux-v4.19/sound/firewire/
Damdtp-stream.c74 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, in amdtp_stream_init() argument
83 s->protocol = kzalloc(protocol_size, GFP_KERNEL); in amdtp_stream_init()
84 if (!s->protocol) in amdtp_stream_init()
87 s->unit = unit; in amdtp_stream_init()
88 s->direction = dir; in amdtp_stream_init()
89 s->flags = flags; in amdtp_stream_init()
90 s->context = ERR_PTR(-1); in amdtp_stream_init()
91 mutex_init(&s->mutex); in amdtp_stream_init()
92 tasklet_init(&s->period_tasklet, pcm_period_tasklet, (unsigned long)s); in amdtp_stream_init()
93 s->packet_index = 0; in amdtp_stream_init()
[all …]
/Linux-v4.19/arch/x86/kvm/
Di8259.c42 static void pic_lock(struct kvm_pic *s) in pic_lock() argument
43 __acquires(&s->lock) in pic_lock()
45 spin_lock(&s->lock); in pic_lock()
48 static void pic_unlock(struct kvm_pic *s) in pic_unlock() argument
49 __releases(&s->lock) in pic_unlock()
51 bool wakeup = s->wakeup_needed; in pic_unlock()
55 s->wakeup_needed = false; in pic_unlock()
57 spin_unlock(&s->lock); in pic_unlock()
60 kvm_for_each_vcpu(i, vcpu, s->kvm) { in pic_unlock()
70 static void pic_clear_isr(struct kvm_kpic_state *s, int irq) in pic_clear_isr() argument
[all …]
/Linux-v4.19/tools/lib/traceevent/
Dtrace-seq.c20 #define TRACE_SEQ_CHECK(s) \ argument
22 if (WARN_ONCE((s)->buffer == TRACE_SEQ_POISON, \
24 (s)->state = TRACE_SEQ__BUFFER_POISONED; \
27 #define TRACE_SEQ_CHECK_RET_N(s, n) \ argument
29 TRACE_SEQ_CHECK(s); \
30 if ((s)->state != TRACE_SEQ__GOOD) \
34 #define TRACE_SEQ_CHECK_RET(s) TRACE_SEQ_CHECK_RET_N(s, ) argument
35 #define TRACE_SEQ_CHECK_RET0(s) TRACE_SEQ_CHECK_RET_N(s, 0) argument
41 void trace_seq_init(struct trace_seq *s) in trace_seq_init() argument
43 s->len = 0; in trace_seq_init()
[all …]
/Linux-v4.19/kernel/trace/
Dtrace_seq.c31 #define TRACE_SEQ_BUF_LEFT(s) seq_buf_buffer_left(&(s)->seq) argument
34 #define TRACE_SEQ_BUF_USED(s) seq_buf_used(&(s)->seq) argument
39 static inline void __trace_seq_init(struct trace_seq *s) in __trace_seq_init() argument
41 if (unlikely(!s->seq.size)) in __trace_seq_init()
42 trace_seq_init(s); in __trace_seq_init()
54 int trace_print_seq(struct seq_file *m, struct trace_seq *s) in trace_print_seq() argument
58 __trace_seq_init(s); in trace_print_seq()
60 ret = seq_buf_print_seq(m, &s->seq); in trace_print_seq()
68 trace_seq_init(s); in trace_print_seq()
84 void trace_seq_printf(struct trace_seq *s, const char *fmt, ...) in trace_seq_printf() argument
[all …]
/Linux-v4.19/drivers/net/hamradio/
Dhdlcdrv.c119 #define tenms_to_2flags(s,tenms) ((tenms * s->par.bitrate) / 100 / 16) argument
126 static int hdlc_rx_add_bytes(struct hdlcdrv_state *s, unsigned int bits, in hdlc_rx_add_bytes() argument
131 while (s->hdlcrx.rx_state && num >= 8) { in hdlc_rx_add_bytes()
132 if (s->hdlcrx.len >= sizeof(s->hdlcrx.buffer)) { in hdlc_rx_add_bytes()
133 s->hdlcrx.rx_state = 0; in hdlc_rx_add_bytes()
136 *s->hdlcrx.bp++ = bits >> (32-num); in hdlc_rx_add_bytes()
137 s->hdlcrx.len++; in hdlc_rx_add_bytes()
144 static void hdlc_rx_flag(struct net_device *dev, struct hdlcdrv_state *s) in hdlc_rx_flag() argument
150 if (s->hdlcrx.len < 4) in hdlc_rx_flag()
152 if (!check_crc_ccitt(s->hdlcrx.buffer, s->hdlcrx.len)) in hdlc_rx_flag()
[all …]
/Linux-v4.19/drivers/media/usb/airspy/
Dairspy.c171 static int airspy_ctrl_msg(struct airspy *s, u8 request, u16 value, u16 index, in airspy_ctrl_msg() argument
181 pipe = usb_sndctrlpipe(s->udev, 0); in airspy_ctrl_msg()
192 pipe = usb_rcvctrlpipe(s->udev, 0); in airspy_ctrl_msg()
196 dev_err(s->dev, "Unknown command %02x\n", request); in airspy_ctrl_msg()
203 memcpy(s->buf, data, size); in airspy_ctrl_msg()
205 ret = usb_control_msg(s->udev, pipe, request, requesttype, value, in airspy_ctrl_msg()
206 index, s->buf, size, 1000); in airspy_ctrl_msg()
207 airspy_dbg_usb_control_msg(s->dev, request, requesttype, value, in airspy_ctrl_msg()
208 index, s->buf, size); in airspy_ctrl_msg()
210 dev_err(s->dev, "usb_control_msg() failed %d request %02x\n", in airspy_ctrl_msg()
[all …]
/Linux-v4.19/drivers/tty/serial/
Dmxs-auart.c472 static inline int is_imx28_auart(struct mxs_auart_port *s) in is_imx28_auart() argument
474 return s->devtype == IMX28_AUART; in is_imx28_auart()
477 static inline int is_asm9260_auart(struct mxs_auart_port *s) in is_asm9260_auart() argument
479 return s->devtype == ASM9260_AUART; in is_asm9260_auart()
482 static inline bool auart_dma_enabled(struct mxs_auart_port *s) in auart_dma_enabled() argument
484 return s->flags & MXS_AUART_DMA_ENABLED; in auart_dma_enabled()
529 static void mxs_auart_tx_chars(struct mxs_auart_port *s);
533 struct mxs_auart_port *s = param; in dma_tx_callback() local
534 struct circ_buf *xmit = &s->port.state->xmit; in dma_tx_callback()
536 dma_unmap_sg(s->dev, &s->tx_sgl, 1, DMA_TO_DEVICE); in dma_tx_callback()
[all …]
Dmax3100.c139 static int max3100_do_parity(struct max3100_port *s, u16 c) in max3100_do_parity() argument
143 if (s->parity & MAX3100_PARITY_ODD) in max3100_do_parity()
148 if (s->parity & MAX3100_7BIT) in max3100_do_parity()
157 static int max3100_check_parity(struct max3100_port *s, u16 c) in max3100_check_parity() argument
159 return max3100_do_parity(s, c) == ((c >> 8) & 1); in max3100_check_parity()
162 static void max3100_calc_parity(struct max3100_port *s, u16 *c) in max3100_calc_parity() argument
164 if (s->parity & MAX3100_7BIT) in max3100_calc_parity()
169 if (s->parity & MAX3100_PARITY_ON) in max3100_calc_parity()
170 *c |= max3100_do_parity(s, *c) << 8; in max3100_calc_parity()
175 static void max3100_dowork(struct max3100_port *s) in max3100_dowork() argument
[all …]
/Linux-v4.19/drivers/media/pci/ivtv/
Divtv-irq.c32 static void ivtv_dma_dec_start(struct ivtv_stream *s);
43 struct ivtv_stream *s = &itv->streams[IVTV_ENC_STREAM_TYPE_PCM]; in ivtv_pcm_work_handler() local
55 buf = ivtv_dequeue(s, &s->q_io); in ivtv_pcm_work_handler()
57 buf = ivtv_dequeue(s, &s->q_full); in ivtv_pcm_work_handler()
66 ivtv_enqueue(s, buf, &s->q_free); in ivtv_pcm_work_handler()
72 struct ivtv_stream *s = &itv->streams[itv->cur_pio_stream]; in ivtv_pio_work_handler() local
78 s->vdev.v4l2_dev == NULL || !ivtv_use_pio(s)) { in ivtv_pio_work_handler()
84 IVTV_DEBUG_HI_DMA("Process PIO %s\n", s->name); in ivtv_pio_work_handler()
85 list_for_each_entry(buf, &s->q_dma.list, list) { in ivtv_pio_work_handler()
86 u32 size = s->sg_processing[i].size & 0x3ffff; in ivtv_pio_work_handler()
[all …]
Divtv-queue.c25 int ivtv_buf_copy_from_user(struct ivtv_stream *s, struct ivtv_buffer *buf, const char __user *src,… in ivtv_buf_copy_from_user() argument
27 if (s->buf_size - buf->bytesused < copybytes) in ivtv_buf_copy_from_user()
28 copybytes = s->buf_size - buf->bytesused; in ivtv_buf_copy_from_user()
52 void ivtv_enqueue(struct ivtv_stream *s, struct ivtv_buffer *buf, struct ivtv_queue *q) in ivtv_enqueue() argument
57 if (q == &s->q_free) { in ivtv_enqueue()
63 spin_lock_irqsave(&s->qlock, flags); in ivtv_enqueue()
66 q->length += s->buf_size; in ivtv_enqueue()
68 spin_unlock_irqrestore(&s->qlock, flags); in ivtv_enqueue()
71 struct ivtv_buffer *ivtv_dequeue(struct ivtv_stream *s, struct ivtv_queue *q) in ivtv_dequeue() argument
76 spin_lock_irqsave(&s->qlock, flags); in ivtv_dequeue()
[all …]
/Linux-v4.19/tools/vm/
Dslabinfo.c196 static void set_obj(struct slabinfo *s, const char *name, int n) in set_obj() argument
201 snprintf(x, 100, "%s/%s", s->name, name); in set_obj()
210 static unsigned long read_slab_obj(struct slabinfo *s, const char *name) in read_slab_obj() argument
216 snprintf(x, 100, "%s/%s", s->name, name); in read_slab_obj()
292 static void slab_validate(struct slabinfo *s) in slab_validate() argument
294 if (strcmp(s->name, "*") == 0) in slab_validate()
297 set_obj(s, "validate", 1); in slab_validate()
300 static void slab_shrink(struct slabinfo *s) in slab_shrink() argument
302 if (strcmp(s->name, "*") == 0) in slab_shrink()
305 set_obj(s, "shrink", 1); in slab_shrink()
[all …]
/Linux-v4.19/drivers/media/platform/sti/bdisp/
Dbdisp-debug.c35 static void bdisp_dbg_dump_ins(struct seq_file *s, u32 val) in bdisp_dbg_dump_ins() argument
37 seq_printf(s, "INS\t0x%08X\t", val); in bdisp_dbg_dump_ins()
43 seq_puts(s, "SRC1=mem - "); in bdisp_dbg_dump_ins()
46 seq_puts(s, "SRC1=ColorFill - "); in bdisp_dbg_dump_ins()
49 seq_puts(s, "SRC1=copy - "); in bdisp_dbg_dump_ins()
52 seq_puts(s, "SRC1=fil - "); in bdisp_dbg_dump_ins()
55 seq_puts(s, "SRC1=??? - "); in bdisp_dbg_dump_ins()
63 seq_puts(s, "SRC2=mem - "); in bdisp_dbg_dump_ins()
66 seq_puts(s, "SRC2=ColorFill - "); in bdisp_dbg_dump_ins()
69 seq_puts(s, "SRC2=??? - "); in bdisp_dbg_dump_ins()
[all …]
/Linux-v4.19/drivers/media/pci/cx18/
Dcx18-streams.c105 struct cx18_stream *s, struct cx18_videobuf_buffer *buf) in cx18_dma_free() argument
113 struct cx18_stream *s, in cx18_prepare_buffer() argument
119 struct cx18 *cx = s->cx; in cx18_prepare_buffer()
134 buf->vb.field != field || s->pixelformat != pixelformat || in cx18_prepare_buffer()
141 s->pixelformat = pixelformat; in cx18_prepare_buffer()
145 if (s->pixelformat == V4L2_PIX_FMT_HM12) in cx18_prepare_buffer()
146 s->vb_bytes_per_frame = height * 720 * 3 / 2; in cx18_prepare_buffer()
148 s->vb_bytes_per_frame = height * 720 * 2; in cx18_prepare_buffer()
149 cx18_dma_free(q, s, buf); in cx18_prepare_buffer()
163 s->pixelformat = pixelformat; in cx18_prepare_buffer()
[all …]
/Linux-v4.19/lib/
Dseq_buf.c28 static bool seq_buf_can_fit(struct seq_buf *s, size_t len) in seq_buf_can_fit() argument
30 return s->len + len <= s->size; in seq_buf_can_fit()
40 int seq_buf_print_seq(struct seq_file *m, struct seq_buf *s) in seq_buf_print_seq() argument
42 unsigned int len = seq_buf_used(s); in seq_buf_print_seq()
44 return seq_write(m, s->buffer, len); in seq_buf_print_seq()
57 int seq_buf_vprintf(struct seq_buf *s, const char *fmt, va_list args) in seq_buf_vprintf() argument
61 WARN_ON(s->size == 0); in seq_buf_vprintf()
63 if (s->len < s->size) { in seq_buf_vprintf()
64 len = vsnprintf(s->buffer + s->len, s->size - s->len, fmt, args); in seq_buf_vprintf()
65 if (s->len + len < s->size) { in seq_buf_vprintf()
[all …]
/Linux-v4.19/include/linux/
Dseq_buf.h26 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 …]
/Linux-v4.19/drivers/scsi/sym53c8xx_2/
Dsym_fw.h45 #define SYM_GEN_FW_A(s) \ argument
46 SYM_GEN_A(s, start) SYM_GEN_A(s, getjob_begin) \
47 SYM_GEN_A(s, getjob_end) \
48 SYM_GEN_A(s, select) SYM_GEN_A(s, wf_sel_done) \
49 SYM_GEN_A(s, send_ident) \
50 SYM_GEN_A(s, dispatch) SYM_GEN_A(s, init) \
51 SYM_GEN_A(s, clrack) SYM_GEN_A(s, complete_error) \
52 SYM_GEN_A(s, done) SYM_GEN_A(s, done_end) \
53 SYM_GEN_A(s, idle) SYM_GEN_A(s, ungetjob) \
54 SYM_GEN_A(s, reselect) \
[all …]

12345678910>>...159