Home
last modified time | relevance | path

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

12345678910>>...77

/drivers/media/pci/tw5864/
Dtw5864-h264.c31 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 …]
/drivers/net/hamradio/
Dhdlcdrv.c106 #define tenms_to_2flags(s,tenms) ((tenms * s->par.bitrate) / 100 / 16) argument
113 static int hdlc_rx_add_bytes(struct hdlcdrv_state *s, unsigned int bits, in hdlc_rx_add_bytes() argument
118 while (s->hdlcrx.rx_state && num >= 8) { in hdlc_rx_add_bytes()
119 if (s->hdlcrx.len >= sizeof(s->hdlcrx.buffer)) { in hdlc_rx_add_bytes()
120 s->hdlcrx.rx_state = 0; in hdlc_rx_add_bytes()
123 *s->hdlcrx.bp++ = bits >> (32-num); in hdlc_rx_add_bytes()
124 s->hdlcrx.len++; in hdlc_rx_add_bytes()
131 static void hdlc_rx_flag(struct net_device *dev, struct hdlcdrv_state *s) in hdlc_rx_flag() argument
137 if (s->hdlcrx.len < 4) in hdlc_rx_flag()
139 if (!check_crc_ccitt(s->hdlcrx.buffer, s->hdlcrx.len)) in hdlc_rx_flag()
[all …]
/drivers/media/usb/airspy/
Dairspy.c160 static int airspy_ctrl_msg(struct airspy *s, u8 request, u16 value, u16 index, in airspy_ctrl_msg() argument
170 pipe = usb_sndctrlpipe(s->udev, 0); in airspy_ctrl_msg()
181 pipe = usb_rcvctrlpipe(s->udev, 0); in airspy_ctrl_msg()
185 dev_err(s->dev, "Unknown command %02x\n", request); in airspy_ctrl_msg()
192 memcpy(s->buf, data, size); in airspy_ctrl_msg()
194 ret = usb_control_msg(s->udev, pipe, request, requesttype, value, in airspy_ctrl_msg()
195 index, s->buf, size, 1000); in airspy_ctrl_msg()
196 airspy_dbg_usb_control_msg(s->dev, request, requesttype, value, in airspy_ctrl_msg()
197 index, s->buf, size); in airspy_ctrl_msg()
199 dev_err(s->dev, "usb_control_msg() failed %d request %02x\n", in airspy_ctrl_msg()
[all …]
/drivers/tty/serial/
Dmxs-auart.c468 static inline int is_imx28_auart(struct mxs_auart_port *s) in is_imx28_auart() argument
470 return s->devtype == IMX28_AUART; in is_imx28_auart()
473 static inline int is_asm9260_auart(struct mxs_auart_port *s) in is_asm9260_auart() argument
475 return s->devtype == ASM9260_AUART; in is_asm9260_auart()
478 static inline bool auart_dma_enabled(struct mxs_auart_port *s) in auart_dma_enabled() argument
480 return s->flags & MXS_AUART_DMA_ENABLED; in auart_dma_enabled()
525 static void mxs_auart_tx_chars(struct mxs_auart_port *s);
529 struct mxs_auart_port *s = param; in dma_tx_callback() local
530 struct circ_buf *xmit = &s->port.state->xmit; in dma_tx_callback()
532 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 …]
/drivers/media/pci/ivtv/
Divtv-irq.c20 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 …]
Divtv-queue.c13 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 …]
Divtv-fileops.c35 struct ivtv_stream *s = &itv->streams[type]; in ivtv_claim_stream() local
39 if (test_and_set_bit(IVTV_F_S_CLAIMED, &s->s_flags)) { in ivtv_claim_stream()
41 if (s->fh == &id->fh) { in ivtv_claim_stream()
45 if (s->fh == NULL && (type == IVTV_DEC_STREAM_TYPE_VBI || in ivtv_claim_stream()
50 s->fh = &id->fh; in ivtv_claim_stream()
58 s->fh = &id->fh; in ivtv_claim_stream()
91 void ivtv_release_stream(struct ivtv_stream *s) in ivtv_release_stream() argument
93 struct ivtv *itv = s->itv; in ivtv_release_stream()
96 s->fh = NULL; in ivtv_release_stream()
97 if ((s->type == IVTV_DEC_STREAM_TYPE_VBI || s->type == IVTV_ENC_STREAM_TYPE_VBI) && in ivtv_release_stream()
[all …]
/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 …]
/drivers/media/pci/cx18/
Dcx18-streams.c96 struct cx18_stream *s, struct cx18_videobuf_buffer *buf) in cx18_dma_free() argument
104 struct cx18_stream *s, in cx18_prepare_buffer() argument
110 struct cx18 *cx = s->cx; in cx18_prepare_buffer()
125 buf->vb.field != field || s->pixelformat != pixelformat || in cx18_prepare_buffer()
132 s->pixelformat = pixelformat; in cx18_prepare_buffer()
136 if (s->pixelformat == V4L2_PIX_FMT_HM12) in cx18_prepare_buffer()
137 s->vb_bytes_per_frame = height * 720 * 3 / 2; in cx18_prepare_buffer()
139 s->vb_bytes_per_frame = height * 720 * 2; in cx18_prepare_buffer()
140 cx18_dma_free(q, s, buf); in cx18_prepare_buffer()
154 s->pixelformat = pixelformat; in cx18_prepare_buffer()
[all …]
Dcx18-queue.c43 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 …]
/drivers/media/i2c/
Dsaa6588.c141 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 …]
/drivers/scsi/sym53c8xx_2/
Dsym_fw.h32 #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 …]
/drivers/misc/sgi-gru/
Dgruprocfs.c20 #define printstat(s, f) printstat_val(s, &gru_stats.f, #f) argument
22 static void printstat_val(struct seq_file *s, atomic_long_t *v, char *id) in printstat_val() argument
26 seq_printf(s, "%16lu %s\n", val, id); in printstat_val()
29 static int statistics_show(struct seq_file *s, void *p) in statistics_show() argument
31 printstat(s, vdata_alloc); in statistics_show()
32 printstat(s, vdata_free); in statistics_show()
33 printstat(s, gts_alloc); in statistics_show()
34 printstat(s, gts_free); in statistics_show()
35 printstat(s, gms_alloc); in statistics_show()
36 printstat(s, gms_free); in statistics_show()
[all …]
/drivers/pcmcia/
Dpcmcia_resource.c37 int pcmcia_validate_mem(struct pcmcia_socket *s) in pcmcia_validate_mem() argument
39 if (s->resource_ops->validate_mem) in pcmcia_validate_mem()
40 return s->resource_ops->validate_mem(s); in pcmcia_validate_mem()
46 int low, struct pcmcia_socket *s) in pcmcia_find_mem_region() argument
48 if (s->resource_ops->find_mem) in pcmcia_find_mem_region()
49 return s->resource_ops->find_mem(base, num, align, low, s); in pcmcia_find_mem_region()
60 static void release_io_space(struct pcmcia_socket *s, struct resource *res) in release_io_space() argument
65 dev_dbg(&s->dev, "release_io_space for %pR\n", res); in release_io_space()
68 if (!s->io[i].res) in release_io_space()
70 if ((s->io[i].res->start <= res->start) && in release_io_space()
[all …]
/drivers/gpu/drm/i915/gvt/
Dcmd_parser.c369 typedef int (*parser_cmd_handler)(struct parser_exec_state *s);
381 FIELD_GET(GENMASK(end, start), cmd_val(s, dword))
504 #define gmadr_dw_number(s) \ argument
505 (s->vgpu->gvt->device_info.gmadr_bytes_in_cmd >> 2)
701 static inline u32 *cmd_ptr(struct parser_exec_state *s, int index) in cmd_ptr() argument
703 return s->ip_va + (index << 2); in cmd_ptr()
706 static inline u32 cmd_val(struct parser_exec_state *s, int index) in cmd_val() argument
708 return *cmd_ptr(s, index); in cmd_val()
711 static void parser_exec_state_dump(struct parser_exec_state *s) in parser_exec_state_dump() argument
718 s->vgpu->id, s->engine->name, in parser_exec_state_dump()
[all …]
/drivers/md/
Ddm-snap.c176 struct dm_dev *dm_snap_origin(struct dm_snapshot *s) in dm_snap_origin() argument
178 return s->origin; in dm_snap_origin()
182 struct dm_dev *dm_snap_cow(struct dm_snapshot *s) in dm_snap_cow() argument
184 return s->cow; in dm_snap_cow()
261 static void track_chunk(struct dm_snapshot *s, struct bio *bio, chunk_t chunk) in track_chunk() argument
267 spin_lock_irq(&s->tracked_chunk_lock); in track_chunk()
269 &s->tracked_chunk_hash[DM_TRACKED_CHUNK_HASH(chunk)]); in track_chunk()
270 spin_unlock_irq(&s->tracked_chunk_lock); in track_chunk()
273 static void stop_tracking_chunk(struct dm_snapshot *s, struct bio *bio) in stop_tracking_chunk() argument
278 spin_lock_irqsave(&s->tracked_chunk_lock, flags); in stop_tracking_chunk()
[all …]
/drivers/media/pci/cobalt/
Dcobalt-v4l2.c38 struct cobalt_stream *s = q->drv_priv; in cobalt_queue_setup() local
39 unsigned size = s->stride * s->height; in cobalt_queue_setup()
54 struct cobalt_stream *s = vb->vb2_queue->drv_priv; in cobalt_buf_init() local
55 struct cobalt *cobalt = s->cobalt; in cobalt_buf_init()
61 struct sg_dma_desc_info *desc = &s->dma_desc_info[vb->index]; in cobalt_buf_init()
66 size = s->stride * s->height; in cobalt_buf_init()
76 s->is_audio ? audio_bytes : bytes); in cobalt_buf_init()
81 !s->is_output, sg_desc->nents, size, in cobalt_buf_init()
82 s->width * s->bpp, s->stride, desc); in cobalt_buf_init()
90 struct cobalt_stream *s = vb->vb2_queue->drv_priv; in cobalt_buf_cleanup() local
[all …]
/drivers/gpu/drm/i915/
Dvlv_suspend.c107 struct vlv_s0ix_state *s = i915->vlv_s0ix_state; in vlv_save_gunit_s0ix_state() local
111 if (!s) in vlv_save_gunit_s0ix_state()
115 s->wr_watermark = intel_uncore_read(uncore, GEN7_WR_WATERMARK); in vlv_save_gunit_s0ix_state()
116 s->gfx_prio_ctrl = intel_uncore_read(uncore, GEN7_GFX_PRIO_CTRL); in vlv_save_gunit_s0ix_state()
117 s->arb_mode = intel_uncore_read(uncore, ARB_MODE); in vlv_save_gunit_s0ix_state()
118 s->gfx_pend_tlb0 = intel_uncore_read(uncore, GEN7_GFX_PEND_TLB0); in vlv_save_gunit_s0ix_state()
119 s->gfx_pend_tlb1 = intel_uncore_read(uncore, GEN7_GFX_PEND_TLB1); in vlv_save_gunit_s0ix_state()
121 for (i = 0; i < ARRAY_SIZE(s->lra_limits); i++) in vlv_save_gunit_s0ix_state()
122 s->lra_limits[i] = intel_uncore_read(uncore, GEN7_LRA_LIMITS(i)); in vlv_save_gunit_s0ix_state()
124 s->media_max_req_count = intel_uncore_read(uncore, GEN7_MEDIA_MAX_REQ_COUNT); in vlv_save_gunit_s0ix_state()
[all …]
/drivers/media/dvb-frontends/
Dsp2.c17 static int sp2_read_i2c(struct sp2 *s, u8 reg, u8 *buf, int len) in sp2_read_i2c() argument
20 struct i2c_client *client = s->client; in sp2_read_i2c()
47 dev_dbg(&s->client->dev, "addr=0x%04x, reg = 0x%02x, data = %02x\n", in sp2_read_i2c()
53 static int sp2_write_i2c(struct sp2 *s, u8 reg, u8 *buf, int len) in sp2_write_i2c() argument
57 struct i2c_client *client = s->client; in sp2_write_i2c()
86 dev_dbg(&s->client->dev, "addr=0x%04x, reg = 0x%02x, data = %*ph\n", in sp2_write_i2c()
95 struct sp2 *s = en50221->data; in sp2_ci_op_cam() local
98 int (*ci_op_cam)(void*, u8, int, u8, int*) = s->ci_control; in sp2_ci_op_cam()
107 if (s->module_access_type != acs) { in sp2_ci_op_cam()
108 ret = sp2_read_i2c(s, 0x00, &store, 1); in sp2_ci_op_cam()
[all …]
/drivers/dma/qcom/
Dhidma_dbg.c15 static void hidma_ll_chstats(struct seq_file *s, void *llhndl, u32 tre_ch) in hidma_ll_chstats() argument
29 seq_printf(s, "------Channel %d -----\n", tre_ch); in hidma_ll_chstats()
30 seq_printf(s, "allocated=%d\n", atomic_read(&tre->allocated)); in hidma_ll_chstats()
31 seq_printf(s, "queued = 0x%x\n", tre->queued); in hidma_ll_chstats()
32 seq_printf(s, "err_info = 0x%x\n", tre->err_info); in hidma_ll_chstats()
33 seq_printf(s, "err_code = 0x%x\n", tre->err_code); in hidma_ll_chstats()
34 seq_printf(s, "status = 0x%x\n", tre->status); in hidma_ll_chstats()
35 seq_printf(s, "idx = 0x%x\n", tre->idx); in hidma_ll_chstats()
36 seq_printf(s, "dma_sig = 0x%x\n", tre->dma_sig); in hidma_ll_chstats()
37 seq_printf(s, "dev_name=%s\n", tre->dev_name); in hidma_ll_chstats()
[all …]
/drivers/md/bcache/
Drequest.c489 struct search *s = container_of(cl, struct search, cl); in bch_cache_read_endio() local
499 s->iop.status = bio->bi_status; in bch_cache_read_endio()
501 ptr_stale(s->iop.c, &b->key, 0)) { in bch_cache_read_endio()
502 atomic_long_inc(&s->iop.c->cache_read_races); in bch_cache_read_endio()
503 s->iop.status = BLK_STS_IOERR; in bch_cache_read_endio()
506 bch_bbio_endio(s->iop.c, bio, bio->bi_status, "reading from cache"); in bch_cache_read_endio()
515 struct search *s = container_of(op, struct search, op); in cache_lookup_fn() local
516 struct bio *n, *bio = &s->bio.bio; in cache_lookup_fn()
520 if (bkey_cmp(k, &KEY(s->iop.inode, bio->bi_iter.bi_sector, 0)) <= 0) in cache_lookup_fn()
523 if (KEY_INODE(k) != s->iop.inode || in cache_lookup_fn()
[all …]
/drivers/md/persistent-data/
Ddm-btree-spine.c127 void init_ro_spine(struct ro_spine *s, struct dm_btree_info *info) in init_ro_spine() argument
129 s->info = info; in init_ro_spine()
130 s->count = 0; in init_ro_spine()
131 s->nodes[0] = NULL; in init_ro_spine()
132 s->nodes[1] = NULL; in init_ro_spine()
135 void exit_ro_spine(struct ro_spine *s) in exit_ro_spine() argument
139 for (i = 0; i < s->count; i++) { in exit_ro_spine()
140 unlock_block(s->info, s->nodes[i]); in exit_ro_spine()
144 int ro_step(struct ro_spine *s, dm_block_t new_child) in ro_step() argument
148 if (s->count == 2) { in ro_step()
[all …]
/drivers/soc/fsl/dpio/
Dqbman-portal.c97 static int qbman_swp_enqueue_direct(struct qbman_swp *s,
100 static int qbman_swp_enqueue_mem_back(struct qbman_swp *s,
103 static int qbman_swp_enqueue_multiple_direct(struct qbman_swp *s,
108 static int qbman_swp_enqueue_multiple_mem_back(struct qbman_swp *s,
114 qbman_swp_enqueue_multiple_desc_direct(struct qbman_swp *s,
119 int qbman_swp_enqueue_multiple_desc_mem_back(struct qbman_swp *s,
123 static int qbman_swp_pull_direct(struct qbman_swp *s,
125 static int qbman_swp_pull_mem_back(struct qbman_swp *s,
128 const struct dpaa2_dq *qbman_swp_dqrr_next_direct(struct qbman_swp *s);
129 const struct dpaa2_dq *qbman_swp_dqrr_next_mem_back(struct qbman_swp *s);
[all …]
/drivers/staging/comedi/drivers/
Dpcl730.c213 struct comedi_subdevice *s, in pcl730_do_insn_bits() argument
217 unsigned long reg = (unsigned long)s->private; in pcl730_do_insn_bits()
220 mask = comedi_dio_update_state(s, data); in pcl730_do_insn_bits()
223 outb(s->state & 0xff, dev->iobase + reg); in pcl730_do_insn_bits()
224 if ((mask & 0xff00) && (s->n_chan > 8)) in pcl730_do_insn_bits()
225 outb((s->state >> 8) & 0xff, dev->iobase + reg + 1); in pcl730_do_insn_bits()
226 if ((mask & 0xff0000) && (s->n_chan > 16)) in pcl730_do_insn_bits()
227 outb((s->state >> 16) & 0xff, dev->iobase + reg + 2); in pcl730_do_insn_bits()
228 if ((mask & 0xff000000) && (s->n_chan > 24)) in pcl730_do_insn_bits()
229 outb((s->state >> 24) & 0xff, dev->iobase + reg + 3); in pcl730_do_insn_bits()
[all …]

12345678910>>...77