/linux/arch/arm64/crypto/ |
H A D | sm4-ce-asm.h | 12 sm4e b0.4s, v24.4s; \ 13 sm4e b0.4s, v25.4s; \ 14 sm4e b0.4s, v26.4s; \ 15 sm4e b0.4s, v27.4s; \ 16 sm4e b0.4s, v28.4s; \ 17 sm4e b0.4s, v29.4s; \ 18 sm4e b0.4s, v30.4s; \ 19 sm4e b0.4s, v31.4s; \ 20 rev64 b0.4s, b0.4s; \ 29 sm4e b0.4s, v24.4s; \ [all …]
|
H A D | chacha-neon-core.S | 42 ld1 {v12.4s}, [x10] 46 add v0.4s, v0.4s, v1.4s 51 add v2.4s, v2.4s, v3.4s 53 shl v1.4s, v4.4s, #12 54 sri v1.4s, v4.4s, #20 57 add v0.4s, v0.4s, v1.4s 62 add v2.4s, v2.4s, v3.4s 64 shl v1.4s, v4.4s, #7 65 sri v1.4s, v4.4s, #25 75 add v0.4s, v0.4s, v1.4s [all …]
|
/linux/lib/zlib_deflate/ |
H A D | deflate.c | 69 typedef block_state (*compress_func) (deflate_state *s, int flush); 72 static void fill_window (deflate_state *s); 73 static block_state deflate_stored (deflate_state *s, int flush); 74 static block_state deflate_fast (deflate_state *s, int flush); 75 static block_state deflate_slow (deflate_state *s, int flush); 76 static void lm_init (deflate_state *s); 77 static void putShortMSB (deflate_state *s, uInt b); 79 static uInt longest_match (deflate_state *s, IPos cur_match); 82 static void check_match (deflate_state *s, IPos start, IPos match, 163 #define UPDATE_HASH(s,h,c) (h = (((h)<<s->hash_shift) ^ (c)) & s->hash_mask) argument [all …]
|
H A D | deftree.c | 132 static void init_block (deflate_state *s); 133 static void pqdownheap (deflate_state *s, ct_data *tree, int k); 134 static void gen_bitlen (deflate_state *s, tree_desc *desc); 136 static void build_tree (deflate_state *s, tree_desc *desc); 137 static void scan_tree (deflate_state *s, ct_data *tree, int max_code); 138 static void send_tree (deflate_state *s, ct_data *tree, int max_code); 139 static int build_bl_tree (deflate_state *s); 140 static void send_all_trees (deflate_state *s, int lcodes, int dcodes, 142 static void compress_block (deflate_state *s, ct_data *ltree, 144 static void set_data_type (deflate_state *s); [all …]
|
/linux/arch/m68k/ifpsp060/ |
H A D | MISC | 34 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/lib/xz/ |
H A D | xz_dec_stream.c | 156 static bool fill_temp(struct xz_dec *s, struct xz_buf *b) in fill_temp() argument 159 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp() 161 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() 163 s->temp.pos += copy_size; in fill_temp() 165 if (s->temp.pos == s->temp.size) { in fill_temp() 166 s->temp.pos = 0; in fill_temp() 174 static enum xz_ret dec_vli(struct xz_dec *s, const uint8_t *in, in dec_vli() argument 179 if (s->pos == 0) in dec_vli() 180 s->vli = 0; in dec_vli() 186 s->vli |= (vli_type)(byte & 0x7F) << s->pos; in dec_vli() [all …]
|
H A D | xz_dec_lzma2.c | 603 static uint16_t *lzma_literal_probs(struct xz_dec_lzma2 *s) in lzma_literal_probs() argument 605 uint32_t prev_byte = dict_get(&s->dict, 0); in lzma_literal_probs() 606 uint32_t low = prev_byte >> (8 - s->lzma.lc); in lzma_literal_probs() 607 uint32_t high = (s->dict.pos & s->lzma.literal_pos_mask) << s->lzma.lc; in lzma_literal_probs() 608 return s->lzma.literal[low + high]; in lzma_literal_probs() 612 static void lzma_literal(struct xz_dec_lzma2 *s) in lzma_literal() argument 621 probs = lzma_literal_probs(s); in lzma_literal() 623 if (lzma_state_is_literal(s->lzma.state)) { in lzma_literal() 624 symbol = rc_bittree(&s->rc, probs, 0x100); in lzma_literal() 627 match_byte = dict_get(&s->dict, s->lzma.rep0) << 1; in lzma_literal() [all …]
|
/linux/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-interrupt-decodes.c | 61 gmx_rx_int_en.s.hg2cc = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable() 62 gmx_rx_int_en.s.hg2fld = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable() 63 gmx_rx_int_en.s.undat = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable() 64 gmx_rx_int_en.s.uneop = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable() 65 gmx_rx_int_en.s.unsop = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable() 66 gmx_rx_int_en.s.bad_term = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable() 67 gmx_rx_int_en.s.bad_seq = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable() 68 gmx_rx_int_en.s.rem_fault = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable() 69 gmx_rx_int_en.s.loc_fault = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable() 70 gmx_rx_int_en.s.pause_drp = 1; in __cvmx_interrupt_gmxx_rxx_int_en_enable() [all …]
|
/linux/arch/x86/kvm/ |
H A D | i8259.c | 44 static void pic_lock(struct kvm_pic *s) in pic_lock() argument 45 __acquires(&s->lock) in pic_lock() 47 spin_lock(&s->lock); in pic_lock() 50 static void pic_unlock(struct kvm_pic *s) in pic_unlock() argument 51 __releases(&s->lock) in pic_unlock() 53 bool wakeup = s->wakeup_needed; in pic_unlock() 57 s->wakeup_needed = false; in pic_unlock() 59 spin_unlock(&s->lock); in pic_unlock() 62 kvm_for_each_vcpu(i, vcpu, s->kvm) { in pic_unlock() 72 static void pic_clear_isr(struct kvm_kpic_state *s, int irq) in pic_clear_isr() argument [all …]
|
/linux/drivers/media/pci/tw5864/ |
H A D | tw5864-h264.c | 31 static void bs_init(struct bs *s, void *buf, int size) in bs_init() argument 33 s->buf = buf; in bs_init() 34 s->ptr = buf; in bs_init() 35 s->buf_end = s->ptr + size; in bs_init() 36 s->bits_left = 8; in bs_init() 39 static int bs_len(struct bs *s) in bs_len() argument 41 return s->ptr - s->buf; in bs_len() 44 static void bs_write(struct bs *s, int count, u32 bits) in bs_write() argument 46 if (s->ptr >= s->buf_end - 4) in bs_write() 51 if (count < s->bits_left) { in bs_write() [all …]
|
/linux/drivers/net/hamradio/ |
H A D | hdlcdrv.c | 107 #define tenms_to_2flags(s,tenms) ((tenms * s->par.bitrate) / 100 / 16) argument 114 static int hdlc_rx_add_bytes(struct hdlcdrv_state *s, unsigned int bits, in hdlc_rx_add_bytes() argument 119 while (s->hdlcrx.rx_state && num >= 8) { in hdlc_rx_add_bytes() 120 if (s->hdlcrx.len >= sizeof(s->hdlcrx.buffer)) { in hdlc_rx_add_bytes() 121 s->hdlcrx.rx_state = 0; in hdlc_rx_add_bytes() 124 *s->hdlcrx.bp++ = bits >> (32-num); in hdlc_rx_add_bytes() 125 s->hdlcrx.len++; in hdlc_rx_add_bytes() 132 static void hdlc_rx_flag(struct net_device *dev, struct hdlcdrv_state *s) in hdlc_rx_flag() argument 138 if (s->hdlcrx.len < 4) in hdlc_rx_flag() 140 if (!check_crc_ccitt(s->hdlcrx.buffer, s->hdlcrx.len)) in hdlc_rx_flag() [all …]
|
/linux/kernel/trace/ |
H A D | trace_seq.c | 28 #define TRACE_SEQ_BUF_LEFT(s) seq_buf_buffer_left(&(s)->seq) argument 33 static inline void __trace_seq_init(struct trace_seq *s) in __trace_seq_init() argument 35 if (unlikely(!s->seq.size)) in __trace_seq_init() 36 trace_seq_init(s); in __trace_seq_init() 48 int trace_print_seq(struct seq_file *m, struct trace_seq *s) in trace_print_seq() argument 52 __trace_seq_init(s); in trace_print_seq() 54 ret = seq_buf_print_seq(m, &s->seq); in trace_print_seq() 62 trace_seq_init(s); in trace_print_seq() 78 void trace_seq_printf(struct trace_seq *s, const char *fmt, ...) in trace_seq_printf() argument 80 unsigned int save_len = s->seq.len; in trace_seq_printf() [all …]
|
/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-irq.c | 20 static void ivtv_dma_dec_start(struct ivtv_stream *s); 31 struct ivtv_stream *s = &itv->streams[IVTV_ENC_STREAM_TYPE_PCM]; in ivtv_pcm_work_handler() local 43 buf = ivtv_dequeue(s, &s->q_io); in ivtv_pcm_work_handler() 45 buf = ivtv_dequeue(s, &s->q_full); in ivtv_pcm_work_handler() 54 ivtv_enqueue(s, buf, &s->q_free); in ivtv_pcm_work_handler() 60 struct ivtv_stream *s = &itv->streams[itv->cur_pio_stream]; in ivtv_pio_work_handler() local 66 s->vdev.v4l2_dev == NULL || !ivtv_use_pio(s)) { in ivtv_pio_work_handler() 72 IVTV_DEBUG_HI_DMA("Process PIO %s\n", s->name); in ivtv_pio_work_handler() 73 list_for_each_entry(buf, &s->q_dma.list, list) { in ivtv_pio_work_handler() 74 u32 size = s->sg_processing[i].size & 0x3ffff; in ivtv_pio_work_handler() [all …]
|
H A D | ivtv-queue.c | 13 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 15 if (s->buf_size - buf->bytesused < copybytes) in ivtv_buf_copy_from_user() 16 copybytes = s->buf_size - buf->bytesused; in ivtv_buf_copy_from_user() 40 void ivtv_enqueue(struct ivtv_stream *s, struct ivtv_buffer *buf, struct ivtv_queue *q) in ivtv_enqueue() argument 45 if (q == &s->q_free) { in ivtv_enqueue() 51 spin_lock_irqsave(&s->qlock, flags); in ivtv_enqueue() 54 q->length += s->buf_size; in ivtv_enqueue() 56 spin_unlock_irqrestore(&s->qlock, flags); in ivtv_enqueue() 59 struct ivtv_buffer *ivtv_dequeue(struct ivtv_stream *s, struct ivtv_queue *q) in ivtv_dequeue() argument 64 spin_lock_irqsave(&s->qlock, flags); in ivtv_dequeue() [all …]
|
/linux/drivers/media/platform/st/sti/bdisp/ |
H A D | bdisp-debug.c | 35 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/drivers/tty/serial/ |
H A D | mxs-auart.c | 458 static inline int is_imx28_auart(struct mxs_auart_port *s) in is_imx28_auart() argument 460 return s->devtype == IMX28_AUART; in is_imx28_auart() 463 static inline int is_asm9260_auart(struct mxs_auart_port *s) in is_asm9260_auart() argument 465 return s->devtype == ASM9260_AUART; in is_asm9260_auart() 468 static inline bool auart_dma_enabled(struct mxs_auart_port *s) in auart_dma_enabled() argument 470 return s->flags & MXS_AUART_DMA_ENABLED; in auart_dma_enabled() 515 static void mxs_auart_tx_chars(struct mxs_auart_port *s); 519 struct mxs_auart_port *s = param; in dma_tx_callback() local 520 struct tty_port *tport = &s->port.state->port; in dma_tx_callback() 522 dma_unmap_sg(s->dev, &s->tx_sgl, 1, DMA_TO_DEVICE); in dma_tx_callback() [all …]
|
H A D | max3100.c | 122 static int max3100_do_parity(struct max3100_port *s, u16 c) in max3100_do_parity() argument 126 if (s->parity & MAX3100_PARITY_ODD) in max3100_do_parity() 131 if (s->parity & MAX3100_7BIT) in max3100_do_parity() 140 static int max3100_check_parity(struct max3100_port *s, u16 c) in max3100_check_parity() argument 142 return max3100_do_parity(s, c) == ((c >> 8) & 1); in max3100_check_parity() 145 static void max3100_calc_parity(struct max3100_port *s, u16 *c) in max3100_calc_parity() argument 147 if (s->parity & MAX3100_7BIT) in max3100_calc_parity() 152 if (s->parity & MAX3100_PARITY_ON) in max3100_calc_parity() 153 *c |= max3100_do_parity(s, *c) << 8; in max3100_calc_parity() 156 static int max3100_sr(struct max3100_port *s, u16 tx, u16 *rx) in max3100_sr() argument [all …]
|
/linux/sound/firewire/ |
H A D | amdtp-stream.c | 92 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, in amdtp_stream_init() argument 101 s->protocol = kzalloc(protocol_size, GFP_KERNEL); in amdtp_stream_init() 102 if (!s->protocol) in amdtp_stream_init() 105 s->unit = unit; in amdtp_stream_init() 106 s->direction = dir; in amdtp_stream_init() 107 s->flags = flags; in amdtp_stream_init() 108 s->context = ERR_PTR(-1); in amdtp_stream_init() 109 mutex_init(&s->mutex); in amdtp_stream_init() 110 INIT_WORK(&s->period_work, pcm_period_work); in amdtp_stream_init() 111 s->packet_index = 0; in amdtp_stream_init() [all …]
|
/linux/include/linux/ |
H A D | seq_buf.h | 33 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 …]
|
/linux/lib/ |
H A D | seq_buf.c | 38 static bool seq_buf_can_fit(struct seq_buf *s, size_t len) in seq_buf_can_fit() argument 40 return s->len + len <= s->size; in seq_buf_can_fit() 50 int seq_buf_print_seq(struct seq_file *m, struct seq_buf *s) in seq_buf_print_seq() argument 52 unsigned int len = seq_buf_used(s); in seq_buf_print_seq() 54 return seq_write(m, s->buffer, len); in seq_buf_print_seq() 67 int seq_buf_vprintf(struct seq_buf *s, const char *fmt, va_list args) in seq_buf_vprintf() argument 71 WARN_ON(s->size == 0); in seq_buf_vprintf() 73 if (s->len < s->size) { in seq_buf_vprintf() 74 len = vsnprintf(s->buffer + s->len, s->size - s->len, fmt, args); in seq_buf_vprintf() 75 if (s->len + len < s->size) { in seq_buf_vprintf() [all …]
|
/linux/mm/ |
H A D | slub.c | 232 static inline bool kmem_cache_debug(struct kmem_cache *s) in kmem_cache_debug() argument 234 return kmem_cache_debug_flags(s, SLAB_DEBUG_FLAGS); in kmem_cache_debug() 237 void *fixup_red_left(struct kmem_cache *s, void *p) in fixup_red_left() argument 239 if (kmem_cache_debug_flags(s, SLAB_RED_ZONE)) in fixup_red_left() 240 p += s->red_left_pad; in fixup_red_left() 245 static inline bool kmem_cache_has_cpu_partial(struct kmem_cache *s) in kmem_cache_has_cpu_partial() argument 248 return !kmem_cache_debug(s); in kmem_cache_has_cpu_partial() 336 static inline int sysfs_slab_add(struct kmem_cache *s) { return 0; } in sysfs_slab_add() argument 337 static inline int sysfs_slab_alias(struct kmem_cache *s, const char *p) in sysfs_slab_alias() argument 344 static inline void debugfs_slab_add(struct kmem_cache *s) { } in debugfs_slab_add() argument [all …]
|
/linux/drivers/media/i2c/ |
H A D | saa6588.c | 141 static bool block_from_buf(struct saa6588 *s, unsigned char *buf) in block_from_buf() argument 145 if (s->rd_index == s->wr_index) { in block_from_buf() 153 for (i = s->rd_index; i < s->rd_index + 3; i++) in block_from_buf() 154 dprintk("0x%02x ", s->buffer[i]); in block_from_buf() 157 memcpy(buf, &s->buffer[s->rd_index], 3); in block_from_buf() 159 s->rd_index += 3; in block_from_buf() 160 if (s->rd_index >= s->buf_size) in block_from_buf() 161 s->rd_index = 0; in block_from_buf() 162 s->block_count--; in block_from_buf() 165 dprintk("%d blocks total.\n", s->block_count); in block_from_buf() [all …]
|
/linux/drivers/scsi/sym53c8xx_2/ |
H A D | sym_fw.h | 32 #define SYM_GEN_FW_A(s) \ argument 33 SYM_GEN_A(s, start) SYM_GEN_A(s, getjob_begin) \ 34 SYM_GEN_A(s, getjob_end) \ 35 SYM_GEN_A(s, select) SYM_GEN_A(s, wf_sel_done) \ 36 SYM_GEN_A(s, send_ident) \ 37 SYM_GEN_A(s, dispatch) SYM_GEN_A(s, init) \ 38 SYM_GEN_A(s, clrack) SYM_GEN_A(s, complete_error) \ 39 SYM_GEN_A(s, done) SYM_GEN_A(s, done_end) \ 40 SYM_GEN_A(s, idle) SYM_GEN_A(s, ungetjob) \ 41 SYM_GEN_A(s, reselect) \ [all …]
|
/linux/arch/arm64/kernel/vdso/ |
H A D | vgetrandom-chacha.S | 52 ld1 { copy1.4s, copy2.4s }, [x1] 54 ld1 { copy3.2s }, [x2] 56 movi one_v.2s, #1 57 uzp1 one_v.4s, one_v.4s, one_v.4s 76 add state0.4s, state0.4s, state1.4s 81 add state2.4s, state2.4s, state3.4s 83 shl state1.4s, tmp.4s, #12 84 sri state1.4s, tmp.4s, #20 87 add state0.4s, state0.4s, state1.4s 89 shl state3.4s, tmp.4s, #8 [all …]
|
/linux/drivers/media/pci/cx18/ |
H A D | cx18-queue.c | 43 struct cx18_queue *_cx18_enqueue(struct cx18_stream *s, struct cx18_mdl *mdl, in _cx18_enqueue() argument 47 if (q != &s->q_full) { in _cx18_enqueue() 56 if (q == &s->q_busy && in _cx18_enqueue() 58 q = &s->q_free; in _cx18_enqueue() 73 struct cx18_mdl *cx18_dequeue(struct cx18_stream *s, struct cx18_queue *q) in cx18_dequeue() argument 89 static void _cx18_mdl_update_bufs_for_cpu(struct cx18_stream *s, in _cx18_mdl_update_bufs_for_cpu() argument 93 u32 buf_size = s->buf_size; in _cx18_mdl_update_bufs_for_cpu() 105 cx18_buf_sync_for_cpu(s, buf); in _cx18_mdl_update_bufs_for_cpu() 109 static inline void cx18_mdl_update_bufs_for_cpu(struct cx18_stream *s, in cx18_mdl_update_bufs_for_cpu() argument 119 cx18_buf_sync_for_cpu(s, buf); in cx18_mdl_update_bufs_for_cpu() [all …]
|