Home
last modified time | relevance | path

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

12345678910>>...67

/drivers/video/fbdev/mbx/
Dmbxdebugfs.c33 char * s = big_buffer; in sysconf_read_file() local
35 s += sprintf(s, "SYSCFG = %08x\n", readl(SYSCFG)); in sysconf_read_file()
36 s += sprintf(s, "PFBASE = %08x\n", readl(PFBASE)); in sysconf_read_file()
37 s += sprintf(s, "PFCEIL = %08x\n", readl(PFCEIL)); in sysconf_read_file()
38 s += sprintf(s, "POLLFLAG = %08x\n", readl(POLLFLAG)); in sysconf_read_file()
39 s += sprintf(s, "SYSRST = %08x\n", readl(SYSRST)); in sysconf_read_file()
42 big_buffer, s-big_buffer); in sysconf_read_file()
49 char * s = big_buffer; in gsctl_read_file() local
51 s += sprintf(s, "GSCTRL = %08x\n", readl(GSCTRL)); in gsctl_read_file()
52 s += sprintf(s, "VSCTRL = %08x\n", readl(VSCTRL)); in gsctl_read_file()
[all …]
/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 …]
/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 …]
/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 …]
/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 …]
Divtv-fileops.c47 struct ivtv_stream *s = &itv->streams[type]; in ivtv_claim_stream() local
51 if (test_and_set_bit(IVTV_F_S_CLAIMED, &s->s_flags)) { in ivtv_claim_stream()
53 if (s->fh == &id->fh) { in ivtv_claim_stream()
57 if (s->fh == NULL && (type == IVTV_DEC_STREAM_TYPE_VBI || in ivtv_claim_stream()
62 s->fh = &id->fh; in ivtv_claim_stream()
70 s->fh = &id->fh; in ivtv_claim_stream()
103 void ivtv_release_stream(struct ivtv_stream *s) in ivtv_release_stream() argument
105 struct ivtv *itv = s->itv; in ivtv_release_stream()
108 s->fh = NULL; in ivtv_release_stream()
109 if ((s->type == IVTV_DEC_STREAM_TYPE_VBI || s->type == IVTV_ENC_STREAM_TYPE_VBI) && in ivtv_release_stream()
[all …]
Divtv-queue.h30 static inline int ivtv_might_use_pio(struct ivtv_stream *s) in ivtv_might_use_pio() argument
32 return s->dma == PCI_DMA_NONE || (SLICED_VBI_PIO && s->type == IVTV_ENC_STREAM_TYPE_VBI); in ivtv_might_use_pio()
35 static inline int ivtv_use_pio(struct ivtv_stream *s) in ivtv_use_pio() argument
37 struct ivtv *itv = s->itv; in ivtv_use_pio()
39 return s->dma == PCI_DMA_NONE || in ivtv_use_pio()
40 (SLICED_VBI_PIO && s->type == IVTV_ENC_STREAM_TYPE_VBI && itv->vbi.sliced_in->service_set); in ivtv_use_pio()
43 static inline int ivtv_might_use_dma(struct ivtv_stream *s) in ivtv_might_use_dma() argument
45 return s->dma != PCI_DMA_NONE; in ivtv_might_use_dma()
48 static inline int ivtv_use_dma(struct ivtv_stream *s) in ivtv_use_dma() argument
50 return !ivtv_use_pio(s); in ivtv_use_dma()
[all …]
/drivers/tty/serial/
Dmxs-auart.c475 static inline int is_imx28_auart(struct mxs_auart_port *s) in is_imx28_auart() argument
477 return s->devtype == IMX28_AUART; in is_imx28_auart()
480 static inline int is_asm9260_auart(struct mxs_auart_port *s) in is_asm9260_auart() argument
482 return s->devtype == ASM9260_AUART; in is_asm9260_auart()
485 static inline bool auart_dma_enabled(struct mxs_auart_port *s) in auart_dma_enabled() argument
487 return s->flags & MXS_AUART_DMA_ENABLED; in auart_dma_enabled()
532 static void mxs_auart_tx_chars(struct mxs_auart_port *s);
536 struct mxs_auart_port *s = param; in dma_tx_callback() local
537 struct circ_buf *xmit = &s->port.state->xmit; in dma_tx_callback()
539 dma_unmap_sg(s->dev, &s->tx_sgl, 1, DMA_TO_DEVICE); in dma_tx_callback()
[all …]
Dmax3100.c144 static int max3100_do_parity(struct max3100_port *s, u16 c) in max3100_do_parity() argument
148 if (s->parity & MAX3100_PARITY_ODD) in max3100_do_parity()
153 if (s->parity & MAX3100_7BIT) in max3100_do_parity()
162 static int max3100_check_parity(struct max3100_port *s, u16 c) in max3100_check_parity() argument
164 return max3100_do_parity(s, c) == ((c >> 8) & 1); in max3100_check_parity()
167 static void max3100_calc_parity(struct max3100_port *s, u16 *c) in max3100_calc_parity() argument
169 if (s->parity & MAX3100_7BIT) in max3100_calc_parity()
174 if (s->parity & MAX3100_PARITY_ON) in max3100_calc_parity()
175 *c |= max3100_do_parity(s, *c) << 8; in max3100_calc_parity()
180 static void max3100_dowork(struct max3100_port *s) in max3100_dowork() argument
[all …]
/drivers/media/pci/cx18/
Dcx18-streams.c110 struct cx18_stream *s, struct cx18_videobuf_buffer *buf) in cx18_dma_free() argument
118 struct cx18_stream *s, in cx18_prepare_buffer() argument
124 struct cx18 *cx = s->cx; in cx18_prepare_buffer()
139 buf->vb.field != field || s->pixelformat != pixelformat || in cx18_prepare_buffer()
146 s->pixelformat = pixelformat; in cx18_prepare_buffer()
150 if (s->pixelformat == V4L2_PIX_FMT_HM12) in cx18_prepare_buffer()
151 s->vb_bytes_per_frame = height * 720 * 3 / 2; in cx18_prepare_buffer()
153 s->vb_bytes_per_frame = height * 720 * 2; in cx18_prepare_buffer()
154 cx18_dma_free(q, s, buf); in cx18_prepare_buffer()
168 s->pixelformat = pixelformat; in cx18_prepare_buffer()
[all …]
Dcx18-queue.c57 struct cx18_queue *_cx18_enqueue(struct cx18_stream *s, struct cx18_mdl *mdl, in _cx18_enqueue() argument
61 if (q != &s->q_full) { in _cx18_enqueue()
70 if (q == &s->q_busy && in _cx18_enqueue()
72 q = &s->q_free; in _cx18_enqueue()
87 struct cx18_mdl *cx18_dequeue(struct cx18_stream *s, struct cx18_queue *q) in cx18_dequeue() argument
103 static void _cx18_mdl_update_bufs_for_cpu(struct cx18_stream *s, in _cx18_mdl_update_bufs_for_cpu() argument
107 u32 buf_size = s->buf_size; in _cx18_mdl_update_bufs_for_cpu()
119 cx18_buf_sync_for_cpu(s, buf); in _cx18_mdl_update_bufs_for_cpu()
123 static inline void cx18_mdl_update_bufs_for_cpu(struct cx18_stream *s, in cx18_mdl_update_bufs_for_cpu() argument
133 cx18_buf_sync_for_cpu(s, buf); in cx18_mdl_update_bufs_for_cpu()
[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/i2c/
Dsaa6588.c153 static bool block_from_buf(struct saa6588 *s, unsigned char *buf) in block_from_buf() argument
157 if (s->rd_index == s->wr_index) { in block_from_buf()
165 for (i = s->rd_index; i < s->rd_index + 3; i++) in block_from_buf()
166 dprintk("0x%02x ", s->buffer[i]); in block_from_buf()
169 memcpy(buf, &s->buffer[s->rd_index], 3); in block_from_buf()
171 s->rd_index += 3; in block_from_buf()
172 if (s->rd_index >= s->buf_size) in block_from_buf()
173 s->rd_index = 0; in block_from_buf()
174 s->block_count--; in block_from_buf()
177 dprintk("%d blocks total.\n", s->block_count); in block_from_buf()
[all …]
/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 …]
/drivers/pcmcia/
Dpcmcia_resource.c41 int pcmcia_validate_mem(struct pcmcia_socket *s) in pcmcia_validate_mem() argument
43 if (s->resource_ops->validate_mem) in pcmcia_validate_mem()
44 return s->resource_ops->validate_mem(s); in pcmcia_validate_mem()
50 int low, struct pcmcia_socket *s) in pcmcia_find_mem_region() argument
52 if (s->resource_ops->find_mem) in pcmcia_find_mem_region()
53 return s->resource_ops->find_mem(base, num, align, low, s); in pcmcia_find_mem_region()
64 static void release_io_space(struct pcmcia_socket *s, struct resource *res) in release_io_space() argument
69 dev_dbg(&s->dev, "release_io_space for %pR\n", res); in release_io_space()
72 if (!s->io[i].res) in release_io_space()
74 if ((s->io[i].res->start <= res->start) && in release_io_space()
[all …]
/drivers/media/pci/cobalt/
Dcobalt-v4l2.c50 struct cobalt_stream *s = q->drv_priv; in cobalt_queue_setup() local
51 unsigned size = s->stride * s->height; in cobalt_queue_setup()
66 struct cobalt_stream *s = vb->vb2_queue->drv_priv; in cobalt_buf_init() local
67 struct cobalt *cobalt = s->cobalt; in cobalt_buf_init()
73 struct sg_dma_desc_info *desc = &s->dma_desc_info[vb->index]; in cobalt_buf_init()
78 size = s->stride * s->height; in cobalt_buf_init()
88 s->is_audio ? audio_bytes : bytes); in cobalt_buf_init()
93 !s->is_output, sg_desc->nents, size, in cobalt_buf_init()
94 s->width * s->bpp, s->stride, desc); in cobalt_buf_init()
102 struct cobalt_stream *s = vb->vb2_queue->drv_priv; in cobalt_buf_cleanup() local
[all …]
/drivers/misc/sgi-gru/
Dgruprocfs.c33 #define printstat(s, f) printstat_val(s, &gru_stats.f, #f) argument
35 static void printstat_val(struct seq_file *s, atomic_long_t *v, char *id) in printstat_val() argument
39 seq_printf(s, "%16lu %s\n", val, id); in printstat_val()
42 static int statistics_show(struct seq_file *s, void *p) in statistics_show() argument
44 printstat(s, vdata_alloc); in statistics_show()
45 printstat(s, vdata_free); in statistics_show()
46 printstat(s, gts_alloc); in statistics_show()
47 printstat(s, gts_free); in statistics_show()
48 printstat(s, gms_alloc); in statistics_show()
49 printstat(s, gms_free); in statistics_show()
[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 int 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()
146 int ro_step(struct ro_spine *s, dm_block_t new_child) in ro_step() argument
150 if (s->count == 2) { in ro_step()
[all …]
/drivers/media/dvb-frontends/
Dsp2.c26 static int sp2_read_i2c(struct sp2 *s, u8 reg, u8 *buf, int len) in sp2_read_i2c() argument
29 struct i2c_client *client = s->client; in sp2_read_i2c()
56 dev_dbg(&s->client->dev, "addr=0x%04x, reg = 0x%02x, data = %02x\n", in sp2_read_i2c()
62 static int sp2_write_i2c(struct sp2 *s, u8 reg, u8 *buf, int len) in sp2_write_i2c() argument
66 struct i2c_client *client = s->client; in sp2_write_i2c()
95 dev_dbg(&s->client->dev, "addr=0x%04x, reg = 0x%02x, data = %*ph\n", in sp2_write_i2c()
104 struct sp2 *s = en50221->data; in sp2_ci_op_cam() local
107 int (*ci_op_cam)(void*, u8, int, u8, int*) = s->ci_control; in sp2_ci_op_cam()
116 if (s->module_access_type != acs) { in sp2_ci_op_cam()
117 ret = sp2_read_i2c(s, 0x00, &store, 1); in sp2_ci_op_cam()
[all …]
/drivers/md/bcache/
Drequest.c71 while (atomic_read(&s->cl.remaining) & CLOSURE_WAITING) in bch_data_insert_keys()
72 closure_sync(&s->cl); in bch_data_insert_keys()
483 struct search *s = container_of(cl, struct search, cl); in bch_cache_read_endio() local
493 s->iop.error = bio->bi_error; in bch_cache_read_endio()
495 ptr_stale(s->iop.c, &b->key, 0)) { in bch_cache_read_endio()
496 atomic_long_inc(&s->iop.c->cache_read_races); in bch_cache_read_endio()
497 s->iop.error = -EINTR; in bch_cache_read_endio()
500 bch_bbio_endio(s->iop.c, bio, bio->bi_error, "reading from cache"); in bch_cache_read_endio()
509 struct search *s = container_of(op, struct search, op); in cache_lookup_fn() local
510 struct bio *n, *bio = &s->bio.bio; in cache_lookup_fn()
[all …]
/drivers/staging/comedi/drivers/
Dpcl730.c212 struct comedi_subdevice *s, in pcl730_do_insn_bits() argument
216 unsigned long reg = (unsigned long)s->private; in pcl730_do_insn_bits()
219 mask = comedi_dio_update_state(s, data); in pcl730_do_insn_bits()
222 outb(s->state & 0xff, dev->iobase + reg); in pcl730_do_insn_bits()
223 if ((mask & 0xff00) && (s->n_chan > 8)) in pcl730_do_insn_bits()
224 outb((s->state >> 8) & 0xff, dev->iobase + reg + 1); in pcl730_do_insn_bits()
225 if ((mask & 0xff0000) && (s->n_chan > 16)) in pcl730_do_insn_bits()
226 outb((s->state >> 16) & 0xff, dev->iobase + reg + 2); in pcl730_do_insn_bits()
227 if ((mask & 0xff000000) && (s->n_chan > 24)) in pcl730_do_insn_bits()
228 outb((s->state >> 24) & 0xff, dev->iobase + reg + 3); in pcl730_do_insn_bits()
[all …]
Dcomedi_parport.c82 struct comedi_subdevice *s, in parport_data_reg_insn_bits() argument
86 if (comedi_dio_update_state(s, data)) in parport_data_reg_insn_bits()
87 outb(s->state, dev->iobase + PARPORT_DATA_REG); in parport_data_reg_insn_bits()
95 struct comedi_subdevice *s, in parport_data_reg_insn_config() argument
102 ret = comedi_dio_insn_config(dev, s, insn, data, 0xff); in parport_data_reg_insn_config()
107 if (s->io_bits) in parport_data_reg_insn_config()
117 struct comedi_subdevice *s, in parport_status_reg_insn_bits() argument
127 struct comedi_subdevice *s, in parport_ctrl_reg_insn_bits() argument
133 if (comedi_dio_update_state(s, data)) { in parport_ctrl_reg_insn_bits()
136 ctrl |= s->state; in parport_ctrl_reg_insn_bits()
[all …]
/drivers/md/
Ddm-snap.c151 struct dm_dev *dm_snap_origin(struct dm_snapshot *s) in dm_snap_origin() argument
153 return s->origin; in dm_snap_origin()
157 struct dm_dev *dm_snap_cow(struct dm_snapshot *s) in dm_snap_cow() argument
159 return s->cow; in dm_snap_cow()
236 static void track_chunk(struct dm_snapshot *s, struct bio *bio, chunk_t chunk) in track_chunk() argument
242 spin_lock_irq(&s->tracked_chunk_lock); in track_chunk()
244 &s->tracked_chunk_hash[DM_TRACKED_CHUNK_HASH(chunk)]); in track_chunk()
245 spin_unlock_irq(&s->tracked_chunk_lock); in track_chunk()
248 static void stop_tracking_chunk(struct dm_snapshot *s, struct bio *bio) in stop_tracking_chunk() argument
253 spin_lock_irqsave(&s->tracked_chunk_lock, flags); in stop_tracking_chunk()
[all …]
/drivers/staging/comedi/
Dcomedi_fops.c215 struct comedi_subdevice *s; in comedi_subdevice_from_minor() local
219 s = comedi_subdevice_minor_table[i]; in comedi_subdevice_from_minor()
220 if (s && s->device != dev) in comedi_subdevice_from_minor()
221 s = NULL; in comedi_subdevice_from_minor()
223 return s; in comedi_subdevice_from_minor()
240 struct comedi_subdevice *s; in comedi_dev_get_from_subdevice_minor() local
244 s = comedi_subdevice_minor_table[i]; in comedi_dev_get_from_subdevice_minor()
245 dev = comedi_dev_get(s ? s->device : NULL); in comedi_dev_get_from_subdevice_minor()
274 struct comedi_subdevice *s; in comedi_read_subdevice() local
277 s = comedi_subdevice_from_minor(dev, minor); in comedi_read_subdevice()
[all …]

12345678910>>...67