/drivers/video/mbx/ |
D | mbxdebugfs.c | 33 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/net/hamradio/ |
D | hdlcdrv.c | 119 #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/pci/ivtv/ |
D | ivtv-irq.c | 32 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 == 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 …]
|
D | ivtv-queue.c | 25 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 …]
|
D | ivtv-fileops.c | 47 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 …]
|
D | ivtv-queue.h | 30 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/ |
D | max3100.c | 144 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 …]
|
D | max310x.c | 343 static void max310x_set_baud(struct max310x_port *s, int baud) in max310x_set_baud() argument 345 unsigned int mode = 0, div = s->uartclk / baud; in max310x_set_baud() 350 div = (s->uartclk * 2) / baud; in max310x_set_baud() 356 div = (s->uartclk * 4) / baud; in max310x_set_baud() 359 regmap_write(s->regmap, MAX310X_BRGDIVMSB_REG, in max310x_set_baud() 361 regmap_write(s->regmap, MAX310X_BRGDIVLSB_REG, (div / 16) & 0xff); in max310x_set_baud() 362 regmap_write(s->regmap, MAX310X_BRGCFG_REG, (div % 16) | mode); in max310x_set_baud() 365 static void max310x_wait_pll(struct max310x_port *s) in max310x_wait_pll() argument 370 if (!(s->pdata->driver_flags & MAX310X_EXT_CLK)) { in max310x_wait_pll() 374 regmap_read(s->regmap, MAX310X_STS_IRQSTS_REG, &sts); in max310x_wait_pll() [all …]
|
D | mxs-auart.c | 178 static inline int is_imx28_auart(struct mxs_auart_port *s) in is_imx28_auart() argument 180 return s->devtype == IMX28_AUART; in is_imx28_auart() 183 static inline bool auart_dma_enabled(struct mxs_auart_port *s) in auart_dma_enabled() argument 185 return s->flags & MXS_AUART_DMA_ENABLED; in auart_dma_enabled() 192 static void mxs_auart_tx_chars(struct mxs_auart_port *s); 196 struct mxs_auart_port *s = param; in dma_tx_callback() local 197 struct circ_buf *xmit = &s->port.state->xmit; in dma_tx_callback() 199 dma_unmap_sg(s->dev, &s->tx_sgl, 1, DMA_TO_DEVICE); in dma_tx_callback() 202 clear_bit(MXS_AUART_DMA_TX_SYNC, &s->flags); in dma_tx_callback() 207 uart_write_wakeup(&s->port); in dma_tx_callback() [all …]
|
D | sccnxp.c | 151 struct sccnxp_port *s = dev_get_drvdata(port->dev); in sccnxp_read() local 153 return sccnxp_raw_read(port->membase, reg & s->addr_mask, in sccnxp_read() 159 struct sccnxp_port *s = dev_get_drvdata(port->dev); in sccnxp_write() local 161 sccnxp_raw_write(port->membase, reg & s->addr_mask, port->regshift, v); in sccnxp_write() 225 struct sccnxp_port *s = dev_get_drvdata(port->dev); in sccnxp_set_baud() local 231 if (baud_std[i].mr0 && !(s->flags & SCCNXP_HAVE_MR0)) in sccnxp_set_baud() 233 div_std = DIV_ROUND_CLOSEST(s->freq_std, baud_std[i].baud); in sccnxp_set_baud() 243 if (s->flags & SCCNXP_HAVE_MR0) { in sccnxp_set_baud() 263 struct sccnxp_port *s = dev_get_drvdata(port->dev); in sccnxp_enable_irq() local 265 s->imr |= mask << (port->line * 4); in sccnxp_enable_irq() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-streams.c | 101 struct cx18_stream *s, struct cx18_videobuf_buffer *buf) in cx18_dma_free() argument 109 struct cx18_stream *s, in cx18_prepare_buffer() argument 115 struct cx18 *cx = s->cx; in cx18_prepare_buffer() 130 buf->vb.field != field || s->pixelformat != pixelformat || in cx18_prepare_buffer() 137 s->pixelformat = pixelformat; in cx18_prepare_buffer() 141 if (s->pixelformat == V4L2_PIX_FMT_HM12) in cx18_prepare_buffer() 142 s->vb_bytes_per_frame = height * 720 * 3 / 2; in cx18_prepare_buffer() 144 s->vb_bytes_per_frame = height * 720 * 2; in cx18_prepare_buffer() 145 cx18_dma_free(q, s, buf); in cx18_prepare_buffer() 159 s->pixelformat = pixelformat; in cx18_prepare_buffer() [all …]
|
D | cx18-queue.c | 57 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/staging/comedi/drivers/ |
D | pcm3730.c | 32 struct comedi_subdevice *s, in pcm3730_do_insn_bits() argument 36 s->state &= ~data[0]; in pcm3730_do_insn_bits() 37 s->state |= (data[0] & data[1]); in pcm3730_do_insn_bits() 38 outb(s->state, dev->iobase + (unsigned long)(s->private)); in pcm3730_do_insn_bits() 40 data[1] = s->state; in pcm3730_do_insn_bits() 46 struct comedi_subdevice *s, in pcm3730_di_insn_bits() argument 49 data[1] = inb(dev->iobase + (unsigned long)(s->private)); in pcm3730_di_insn_bits() 56 struct comedi_subdevice *s; in pcm3730_attach() local 67 s = &dev->subdevices[0]; in pcm3730_attach() 68 s->type = COMEDI_SUBD_DO; in pcm3730_attach() [all …]
|
D | pcl730.c | 35 static int pcl730_do_insn(struct comedi_device *dev, struct comedi_subdevice *s, in pcl730_do_insn() argument 39 s->state &= ~data[0]; in pcl730_do_insn() 40 s->state |= (data[0] & data[1]); in pcl730_do_insn() 43 outb(s->state & 0xff, in pcl730_do_insn() 44 dev->iobase + ((unsigned long)s->private)); in pcl730_do_insn() 46 outb((s->state >> 8), in pcl730_do_insn() 47 dev->iobase + ((unsigned long)s->private) + 1); in pcl730_do_insn() 49 data[1] = s->state; in pcl730_do_insn() 54 static int pcl730_di_insn(struct comedi_device *dev, struct comedi_subdevice *s, in pcl730_di_insn() argument 57 data[1] = inb(dev->iobase + ((unsigned long)s->private)) | in pcl730_di_insn() [all …]
|
/drivers/media/i2c/ |
D | saa6588.c | 154 static int block_to_user_buf(struct saa6588 *s, unsigned char __user *user_buf) in block_to_user_buf() argument 158 if (s->rd_index == s->wr_index) { in block_to_user_buf() 166 for (i = s->rd_index; i < s->rd_index + 3; i++) in block_to_user_buf() 167 dprintk("0x%02x ", s->buffer[i]); in block_to_user_buf() 170 if (copy_to_user(user_buf, &s->buffer[s->rd_index], 3)) in block_to_user_buf() 173 s->rd_index += 3; in block_to_user_buf() 174 if (s->rd_index >= s->buf_size) in block_to_user_buf() 175 s->rd_index = 0; in block_to_user_buf() 176 s->block_count--; in block_to_user_buf() 179 dprintk("%d blocks total.\n", s->block_count); in block_to_user_buf() [all …]
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_fw.h | 45 #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/staging/comedi/drivers/addi-data/ |
D | addi_common.c | 54 struct comedi_subdevice *s, in i_ADDIDATA_InsnReadEeprom() argument 93 struct comedi_subdevice *s; in addi_auto_attach() local 174 s = &dev->subdevices[0]; in addi_auto_attach() 177 dev->read_subdev = s; in addi_auto_attach() 178 s->type = COMEDI_SUBD_AI; in addi_auto_attach() 179 s->subdev_flags = in addi_auto_attach() 183 s->n_chan = in addi_auto_attach() 187 s->n_chan = this_board->i_NbrAiChannelDiff; in addi_auto_attach() 190 s->maxdata = devpriv->s_EeParameters.i_AiMaxdata; in addi_auto_attach() 191 s->len_chanlist = this_board->i_AiChannelList; in addi_auto_attach() [all …]
|
/drivers/pcmcia/ |
D | pcmcia_resource.c | 41 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/md/persistent-data/ |
D | dm-btree-spine.c | 127 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 int r2 = unlock_block(s->info, s->nodes[i]); in exit_ro_spine() 148 int ro_step(struct ro_spine *s, dm_block_t new_child) in ro_step() argument 152 if (s->count == 2) { in ro_step() [all …]
|
/drivers/misc/sgi-gru/ |
D | gruprocfs.c | 33 #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/ |
D | dm-snap.c | 130 struct dm_dev *dm_snap_origin(struct dm_snapshot *s) in dm_snap_origin() argument 132 return s->origin; in dm_snap_origin() 136 struct dm_dev *dm_snap_cow(struct dm_snapshot *s) in dm_snap_cow() argument 138 return s->cow; in dm_snap_cow() 208 static void track_chunk(struct dm_snapshot *s, struct bio *bio, chunk_t chunk) in track_chunk() argument 214 spin_lock_irq(&s->tracked_chunk_lock); in track_chunk() 216 &s->tracked_chunk_hash[DM_TRACKED_CHUNK_HASH(chunk)]); in track_chunk() 217 spin_unlock_irq(&s->tracked_chunk_lock); in track_chunk() 220 static void stop_tracking_chunk(struct dm_snapshot *s, struct bio *bio) in stop_tracking_chunk() argument 225 spin_lock_irqsave(&s->tracked_chunk_lock, flags); in stop_tracking_chunk() [all …]
|
/drivers/staging/comedi/ |
D | comedi_fops.c | 163 struct comedi_subdevice *s; in comedi_subdevice_from_minor() local 168 s = comedi_subdevice_minor_table[i]; in comedi_subdevice_from_minor() 170 return s; in comedi_subdevice_from_minor() 186 struct comedi_subdevice *s; in comedi_dev_from_subdevice_minor() local 188 s = comedi_subdevice_from_minor(minor); in comedi_dev_from_subdevice_minor() 189 return s ? s->device : NULL; in comedi_dev_from_subdevice_minor() 204 struct comedi_subdevice *s; in comedi_read_subdevice() local 207 s = comedi_subdevice_from_minor(minor); in comedi_read_subdevice() 208 if (!s || s->device != dev) in comedi_read_subdevice() 210 if (s->subdev_flags & SDF_CMD_READ) in comedi_read_subdevice() [all …]
|
/drivers/staging/octeon/ |
D | ethernet-spi.c | 54 if (rsl_int_blocks.s.spx1) { /* 19 - SPX1_INT_REG & STX1_INT_REG */ in cvm_oct_spi_rml_interrupt() 64 if (spx_int_reg.s.spf) in cvm_oct_spi_rml_interrupt() 66 if (spx_int_reg.s.calerr) in cvm_oct_spi_rml_interrupt() 69 if (spx_int_reg.s.syncerr) in cvm_oct_spi_rml_interrupt() 73 if (spx_int_reg.s.diperr) in cvm_oct_spi_rml_interrupt() 75 if (spx_int_reg.s.tpaovr) in cvm_oct_spi_rml_interrupt() 78 if (spx_int_reg.s.rsverr) in cvm_oct_spi_rml_interrupt() 81 if (spx_int_reg.s.drwnng) in cvm_oct_spi_rml_interrupt() 84 if (spx_int_reg.s.clserr) in cvm_oct_spi_rml_interrupt() 87 if (spx_int_reg.s.spiovr) in cvm_oct_spi_rml_interrupt() [all …]
|
/drivers/media/usb/sn9c102/ |
D | sn9c102_mt9v111.c | 28 struct sn9c102_sensor *s = sn9c102_get_sensor(cam); in mt9v111_init() local 80 err += sn9c102_i2c_try_raw_write(cam, s, 4, s->i2c_slave_id, 0x01, in mt9v111_init() 82 err += sn9c102_i2c_try_raw_write(cam, s, 4, s->i2c_slave_id, 0x0d, in mt9v111_init() 84 err += sn9c102_i2c_try_raw_write(cam, s, 4, s->i2c_slave_id, 0x0d, in mt9v111_init() 86 err += sn9c102_i2c_try_raw_write(cam, s, 4, s->i2c_slave_id, 0x08, in mt9v111_init() 88 err += sn9c102_i2c_try_raw_write(cam, s, 4, s->i2c_slave_id, 0x01, in mt9v111_init() 90 err += sn9c102_i2c_try_raw_write(cam, s, 4, s->i2c_slave_id, 0x08, in mt9v111_init() 92 err += sn9c102_i2c_try_raw_write(cam, s, 4, s->i2c_slave_id, 0x02, in mt9v111_init() 94 err += sn9c102_i2c_try_raw_write(cam, s, 4, s->i2c_slave_id, 0x03, in mt9v111_init() 96 err += sn9c102_i2c_try_raw_write(cam, s, 4, s->i2c_slave_id, 0x04, in mt9v111_init() [all …]
|
/drivers/isdn/i4l/ |
D | isdn_audio.c | 302 isdn_audio_get_bits(adpcm_state *s, unsigned char **in, int *len) in isdn_audio_get_bits() argument 304 while (s->nleft < s->nbits) { in isdn_audio_get_bits() 307 s->word = (s->word << 8) | d; in isdn_audio_get_bits() 308 s->nleft += 8; in isdn_audio_get_bits() 310 s->nleft -= s->nbits; in isdn_audio_get_bits() 311 return (s->word >> s->nleft) & bitmask[s->nbits]; in isdn_audio_get_bits() 315 isdn_audio_put_bits(int data, int nbits, adpcm_state *s, in isdn_audio_put_bits() argument 318 s->word = (s->word << nbits) | (data & bitmask[nbits]); in isdn_audio_put_bits() 319 s->nleft += nbits; in isdn_audio_put_bits() 320 while (s->nleft >= 8) { in isdn_audio_put_bits() [all …]
|