| /drivers/net/hamradio/ |
| A D | hdlcdrv.c | 194 s->hdlcrx.bp = s->hdlcrx.buffer; in hdlcdrv_receiver() 204 s->hdlcrx.numbits -= hdlc_rx_add_bytes(s, s->hdlcrx.bitbuf, in hdlcdrv_receiver() 356 s->hdlctx.numflags = tenms_to_2flags(s, s->ch_params.tx_delay); in start_tx() 357 s->hdlctx.bitbuf = s->hdlctx.bitstream = s->hdlctx.numbits = 0; in start_tx() 367 if (!s || s->magic != HDLCDRV_MAGIC || s->hdlctx.ptt || !s->skb) in hdlcdrv_arbitrate() 438 if (!s->ops || !s->ops->open) in hdlcdrv_open() 453 s->hdlctx.bitstream = s->hdlctx.bitbuf = s->hdlctx.numbits = 0; in hdlcdrv_open() 477 if (s->ops && s->ops->close) in hdlcdrv_close() 504 if (s->ops && s->ops->ioctl) in hdlcdrv_siocdevprivate() 653 s->hdlctx.bitstream = s->hdlctx.bitbuf = s->hdlctx.numbits = 0; in hdlcdrv_setup() [all …]
|
| /drivers/media/pci/tw5864/ |
| A D | tw5864-h264.c | 35 s->buf_end = s->ptr + size; in bs_init() 41 return s->ptr - s->buf; in bs_len() 46 if (s->ptr >= s->buf_end - 4) in bs_write() 52 *s->ptr = (*s->ptr << count) | bits; in bs_write() 56 *s->ptr = (*s->ptr << s->bits_left) | in bs_write() 59 s->ptr++; in bs_write() 66 if (s->ptr < s->buf_end) { in bs_write1() 96 bs_write(s, s->bits_left, 0x00); in bs_rbsp_trailing() 105 s = &bs; in tw5864_h264_gen_sps_rbsp() 134 s = &bs; in tw5864_h264_gen_pps_rbsp() [all …]
|
| /drivers/media/usb/airspy/ |
| A D | airspy.c | 251 s->sample_measured = s->sample; in airspy_convert_stream() 355 s->buf_list[s->buf_num], in airspy_free_stream_bufs() 356 s->dma_addr[s->buf_num]); in airspy_free_stream_bufs() 372 for (s->buf_num = 0; s->buf_num < MAX_BULK_BUFS; s->buf_num++) { in airspy_alloc_stream_bufs() 373 s->buf_list[s->buf_num] = usb_alloc_coherent(s->udev, in airspy_alloc_stream_bufs() 375 &s->dma_addr[s->buf_num]); in airspy_alloc_stream_bufs() 376 if (!s->buf_list[s->buf_num]) { in airspy_alloc_stream_bufs() 383 s->buf_list[s->buf_num], in airspy_alloc_stream_bufs() 1013 s->vb_queue.drv_priv = s; in airspy_probe() 1027 s->vdev.queue = &s->vb_queue; in airspy_probe() [all …]
|
| /drivers/media/pci/ivtv/ |
| A D | ivtv-irq.c | 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() 204 rc = ivtv_queue_move(s, &s->q_free, &s->q_full, &s->q_predma, bytes_needed); in stream_enc_dma_append() 256 s->name, s->dma_offset); in dma_post() 309 ivtv_queue_move(s, &s->q_dma, NULL, &s->q_free, 0); in dma_post() 314 ivtv_queue_move(s, &s->q_dma, NULL, &s->q_full, s->q_dma.bytesused); in dma_post() 456 ivtv_queue_move(s, &s->q_predma, NULL, &s->q_dma, s->q_predma.bytesused); in ivtv_dma_enc_start() 492 s->dma_pts = s->pending_pts; in ivtv_dma_enc_start() 513 ivtv_queue_move(s, &s->q_predma, NULL, &s->q_dma, s->q_predma.bytesused); in ivtv_dma_dec_start() [all …]
|
| A D | ivtv-queue.c | 175 ivtv_queue_move(s, &s->q_io, NULL, &s->q_free, 0); in ivtv_flush_queues() 176 ivtv_queue_move(s, &s->q_full, NULL, &s->q_free, 0); in ivtv_flush_queues() 177 ivtv_queue_move(s, &s->q_dma, NULL, &s->q_free, 0); in ivtv_flush_queues() 178 ivtv_queue_move(s, &s->q_predma, NULL, &s->q_free, 0); in ivtv_flush_queues() 192 s->name, s->buffers, s->buf_size, s->buffers * s->buf_size / 1024); in ivtv_stream_alloc() 221 s->sg_handle = dma_map_single(&itv->pdev->dev, s->sg_dma, in ivtv_stream_alloc() 242 buf->buf, s->buf_size + 256, s->dma); in ivtv_stream_alloc() 245 ivtv_enqueue(s, buf, &s->q_free); in ivtv_stream_alloc() 262 while ((buf = ivtv_dequeue(s, &s->q_free))) { in ivtv_stream_free() 265 s->buf_size + 256, s->dma); in ivtv_stream_free() [all …]
|
| A D | ivtv-fileops.c | 97 s->fh = NULL; in ivtv_release_stream() 244 buf = ivtv_dequeue(s, &s->q_io); in ivtv_get_buffer() 249 buf = ivtv_dequeue(s, &s->q_full); in ivtv_get_buffer() 259 ivtv_process_vbi_data(itv, buf, s->dma_pts, s->type); in ivtv_get_buffer() 395 ivtv_enqueue(s, buf, (buf->readpos == buf->bytesused) ? &s->q_free : &s->q_io); in ivtv_read() 669 ivtv_queue_move(s, &q, NULL, &s->q_free, 0); in ivtv_write() 680 ivtv_enqueue(s, buf, &s->q_full); in ivtv_write() 688 ivtv_enqueue(s, buf, &s->q_io); in ivtv_write() 694 ivtv_enqueue(s, buf, &s->q_full); in ivtv_write() 708 ivtv_queue_move(s, &s->q_full, NULL, &s->q_predma, itv->dma_data_req_size); in ivtv_write() [all …]
|
| /drivers/tty/serial/ |
| A D | mxs-auart.c | 522 dma_unmap_sg(s->dev, &s->tx_sgl, 1, DMA_TO_DEVICE); in dma_tx_callback() 816 dma_unmap_sg(s->dev, &s->rx_sgl, 1, DMA_FROM_DEVICE); in dma_rx_callback() 1197 mctrl_gpio_get(s->gpios, &s->mctrl_prev); in mxs_auart_startup() 1406 if (!s) in auart_console_setup() 1466 s->clk = devm_clk_get(s->dev, "mod"); in mxs_get_clks() 1472 s->clk_ahb = devm_clk_get(s->dev, "ahb"); in mxs_get_clks() 1537 free_irq(s->gpio_irq[i], s); in mxs_auart_free_gpio_irq() 1552 IRQ_TYPE_EDGE_BOTH, dev_name(s->dev), s); in mxs_auart_request_gpio_irq() 1578 if (!s) in mxs_auart_probe() 1621 s->port.uartclk = clk_get_rate(s->clk); in mxs_auart_probe() [all …]
|
| A D | max3100.c | 216 s->cts = cts; in max3100_handlerx_unlocked() 306 if (!s->force_end_work && !freezing(current) && !s->suspending) in max3100_dowork() 307 queue_work(s->workqueue, &s->work); in max3100_dowork() 312 struct max3100_port *s = timer_container_of(s, t, timer); in max3100_timeout() local 315 mod_timer(&s->timer, jiffies + uart_poll_timeout(&s->port)); in max3100_timeout() 398 s->rts = rts; in max3100_set_mctrl() 401 if (s->loopback_commit || s->rts_commit) in max3100_set_mctrl() 467 s->baud = baud; in max3100_set_termios() 514 s->conf = (s->conf & ~param_mask) | (param_new & param_mask); in max3100_set_termios() 565 s->parity = 0; in max3100_startup() [all …]
|
| /drivers/media/platform/st/sti/bdisp/ |
| A D | bdisp-debug.c | 77 seq_puts(s, "IVMX - "); in bdisp_dbg_dump_ins() 79 seq_puts(s, "CLUT - "); in bdisp_dbg_dump_ins() 105 seq_puts(s, "IRQ - "); in bdisp_dbg_dump_ins() 107 seq_putc(s, '\n'); in bdisp_dbg_dump_ins() 144 seq_puts(s, "MB - "); in bdisp_dbg_dump_tty() 156 seq_putc(s, '\n'); in bdisp_dbg_dump_tty() 233 seq_putc(s, '\n'); in bdisp_dbg_dump_sty() 250 seq_putc(s, '\n'); in bdisp_dbg_dump_fctl() 269 seq_putc(s, '\n'); in bdisp_dbg_dump_rsf() 284 seq_putc(s, '\n'); in bdisp_dbg_dump_rzi() [all …]
|
| /drivers/media/pci/cx18/ |
| A D | cx18-streams.c | 239 memset(s, 0, sizeof(*s)); in cx18_stream_init() 254 s->mdl_size = s->buf_size * s->bufs_per_mdl; in cx18_stream_init() 283 s->vidq.drv_priv = s; in cx18_stream_init() 296 s->video_dev.queue = &s->vidq; in cx18_stream_init() 434 video_set_drvdata(&s->video_dev, s); in cx18_reg_dev() 679 mdl = cx18_dequeue(s, &s->q_full); in cx18_stream_rotate_idx_mdls() 681 cx18_enqueue(s, mdl, &s->q_free); in cx18_stream_rotate_idx_mdls() 751 s->bufs_per_mdl = s->mdl_size / s->buf_size; in cx18_stream_configure_mdls() 752 if (s->mdl_size % s->buf_size) in cx18_stream_configure_mdls() 766 s->mdl_size = s->cx->is_60hz in cx18_stream_configure_mdls() [all …]
|
| A D | cx18-queue.c | 189 cx18_enqueue(s, mdl, &s->q_free); in cx18_queue_get_mdl() 223 cx18_queue_flush(s, &s->q_busy, &s->q_free); in cx18_flush_queues() 224 cx18_queue_flush(s, &s->q_full, &s->q_free); in cx18_flush_queues() 238 cx18_queue_flush(s, &s->q_busy, q_idle); in cx18_unload_queues() 277 for (mdl = cx18_dequeue(s, &s->q_idle), i = s->bufs_per_mdl; in cx18_load_queues() 311 cx18_enqueue(s, mdl, &s->q_free); in cx18_load_queues() 314 cx18_push(s, mdl, &s->q_idle); in cx18_load_queues() 341 s->name, s->buffers, s->buf_size, in cx18_stream_alloc() 342 s->buffers * s->buf_size / 1024, in cx18_stream_alloc() 385 cx18_enqueue(s, mdl, &s->q_idle); in cx18_stream_alloc() [all …]
|
| /drivers/media/i2c/ |
| A D | saa6588.c | 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() 157 memcpy(buf, &s->buffer[s->rd_index], 3); in block_from_buf() 160 if (s->rd_index >= s->buf_size) in block_from_buf() 216 s->data_available_for_read = (s->block_count > 0); in read_from_buf() 230 s->buffer[s->wr_index] = blockbuf[i]; in block_to_buf() 234 if (s->wr_index >= s->buf_size) in block_to_buf() 237 if (s->wr_index == s->rd_index) { in block_to_buf() 239 if (s->rd_index >= s->buf_size) in block_to_buf() 420 if (s->sync) in saa6588_g_tuner() [all …]
|
| /drivers/misc/sgi-gru/ |
| A D | gruprocfs.c | 20 #define printstat(s, f) printstat_val(s, &gru_stats.f, #f) argument 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() 48 printstat(s, nopfn); in statistics_show() 49 printstat(s, asid_new); in statistics_show() 53 printstat(s, intr); in statistics_show() 54 printstat(s, intr_cbr); in statistics_show() 55 printstat(s, intr_tfh); in statistics_show() [all …]
|
| /drivers/scsi/sym53c8xx_2/ |
| A D | sym_fw.h | 33 SYM_GEN_A(s, start) SYM_GEN_A(s, getjob_begin) \ 35 SYM_GEN_A(s, select) SYM_GEN_A(s, wf_sel_done) \ 37 SYM_GEN_A(s, dispatch) SYM_GEN_A(s, init) \ 39 SYM_GEN_A(s, done) SYM_GEN_A(s, done_end) \ 40 SYM_GEN_A(s, idle) SYM_GEN_A(s, ungetjob) \ 44 SYM_GEN_A(s, data_in) SYM_GEN_A(s, data_in2) \ 46 SYM_GEN_A(s, pm0_data) SYM_GEN_A(s, pm1_data) 68 SYM_GEN_Z(s, snooptest) SYM_GEN_Z(s, snoopend) 74 #define SYM_GEN_A(s, label) s label; argument 75 #define SYM_GEN_B(s, label) s label; argument [all …]
|
| /drivers/pcmcia/ |
| A D | pcmcia_resource.c | 40 return s->resource_ops->validate_mem(s); in pcmcia_validate_mem() 236 ret = s->ops->set_mem_map(s, &s->win[w]); in pcmcia_map_mem_page() 282 s->ops->set_io_map(s, &io_off); in pcmcia_fixup_iowidth() 284 s->ops->set_io_map(s, &io_on); in pcmcia_fixup_iowidth() 320 if (s->ops->set_socket(s, &s->socket)) { in pcmcia_fixup_vpp() 361 s->ops->set_socket(s, &s->socket); in pcmcia_release_configuration() 374 s->ops->set_io_map(s, &io); in pcmcia_release_configuration() 448 s->ops->set_mem_map(s, win); in pcmcia_release_window() 502 if (s->ops->set_socket(s, &s->socket)) { in pcmcia_enable_device() 530 s->ops->set_socket(s, &s->socket); in pcmcia_enable_device() [all …]
|
| /drivers/media/test-drivers/visl/ |
| A D | visl-trace-hevc.h | 13 TP_ARGS(s), 15 TP_fast_assign(__entry->s = *s), 149 TP_ARGS(s), 151 TP_fast_assign(__entry->s = *s), 179 __entry->s.bit_size, 184 __entry->s.slice_type, 274 TP_ARGS(s), 276 TP_fast_assign(__entry->s = *s), 366 TP_ARGS(s) 376 TP_ARGS(s) [all …]
|
| /drivers/gpu/drm/i915/gvt/ |
| A D | cmd_parser.c | 741 s->ring_start, s->ring_start + s->ring_size, in parser_exec_state_dump() 757 s->ip_va, cmd_val(s, 0), cmd_val(s, 1), in parser_exec_state_dump() 787 if (s->ip_gma >= s->ring_head && s->ip_gma < ring_top) in update_ip_va() 796 s->ip_va = s->rb_va + len; in update_ip_va() 798 s->ip_va = s->ret_bb_va; in update_ip_va() 818 if (s->ip_gma >= s->ring_start + s->ring_size) in ip_gma_advance() 819 s->ip_gma -= s->ring_size; in ip_gma_advance() 1261 if (s->ret_ip_gma_ring >= s->ring_start + s->ring_size) in cmd_handler_mi_batch_buffer_end() 2024 s->ret_bb_va = s->ip_va + cmd_length(s) * sizeof(u32); in cmd_handler_mi_batch_buffer_start() 2755 cmd_length(s), s->buf_type, s->buf_addr_type, in cmd_parser_exec() [all …]
|
| /drivers/md/ |
| A D | dm-snap.c | 180 return s->cow; in dm_snap_cow() 1146 if (s->store->type->commit_merge(s->store, in merge_callback() 1260 s = kzalloc(sizeof(*s), GFP_KERNEL); in snapshot_ctr() 1261 if (!s) { in snapshot_ctr() 1293 if (s->cow->bdev && s->cow->bdev == s->origin->bdev) { in snapshot_ctr() 1309 s->ti = ti; in snapshot_ctr() 1421 kfree(s); in snapshot_ctr() 1519 kfree(s); in snapshot_dtr() 1629 s->store->type->drop_snapshot(s->store); in __invalidate_snapshot() 1980 if (!s->valid || (unlikely(s->snapshot_overflowed) && in snapshot_map() [all …]
|
| /drivers/media/pci/cobalt/ |
| A D | cobalt-v4l2.c | 39 unsigned size = s->stride * s->height; in cobalt_queue_setup() 66 size = s->stride * s->height; in cobalt_buf_init() 82 s->width * s->bpp, s->stride, desc); in cobalt_buf_init() 101 vb2_set_plane_payload(vb, 0, s->stride * s->height); in cobalt_buf_prepare() 375 if (!wait_event_timeout(s->q.done_wq, is_dma_done(s), in cobalt_dma_stop_streaming() 407 if (s->is_audio || s->is_output) in cobalt_stop_streaming() 578 s->dma_channel, s->video_channel); in cobalt_log_status() 639 s->stride = timings->bt.width * s->bpp; in cobalt_s_dv_timings() 1214 s->height = s->is_audio ? 4 : 1080; in cobalt_node_register() 1227 s->stride = s->width * s->bpp; in cobalt_node_register() [all …]
|
| /drivers/md/persistent-data/ |
| A D | dm-btree-spine.c | 137 unlock_block(s->info, s->nodes[i]); in exit_ro_spine() 145 unlock_block(s->info, s->nodes[0]); in ro_step() 146 s->nodes[0] = s->nodes[1]; in ro_step() 150 r = bn_read_lock(s->info, new_child, s->nodes + s->count); in ro_step() 161 unlock_block(s->info, s->nodes[s->count]); in ro_pop() 169 block = s->nodes[s->count - 1]; in ro_node() 187 unlock_block(s->info, s->nodes[i]); in exit_shadow_spine() 196 unlock_block(s->info, s->nodes[0]); in shadow_step() 197 s->nodes[0] = s->nodes[1]; in shadow_step() 201 r = bn_shadow(s->info, b, vt, s->nodes + s->count); in shadow_step() [all …]
|
| /drivers/soc/fsl/dpio/ |
| A D | qbman-portal.c | 663 s->eqcr.ci = qbman_read_register(s, QBMAN_CINH_SWP_EQCR_CI); in qbman_swp_enqueue_multiple_direct() 666 s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, in qbman_swp_enqueue_multiple_direct() 746 s->eqcr.ci = qbman_read_register(s, QBMAN_CINH_SWP_EQCR_CI); in qbman_swp_enqueue_multiple_mem_back() 748 s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, in qbman_swp_enqueue_multiple_mem_back() 789 (QB_RT_BIT)|(s->eqcr.pi)|s->eqcr.pi_vb); in qbman_swp_enqueue_multiple_mem_back() 822 s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, in qbman_swp_enqueue_multiple_desc_direct() 892 s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, in qbman_swp_enqueue_multiple_desc_mem_back() 928 (QB_RT_BIT)|(s->eqcr.pi)|s->eqcr.pi_vb); in qbman_swp_enqueue_multiple_desc_mem_back() 971 qbman_write_register(s, QBMAN_CINH_SWP_SDQCR, s->sdq); in qbman_swp_push_set() 1208 if (s->dqrr.next_idx == (s->dqrr.dqrr_size - 1)) { in qbman_swp_dqrr_next_direct() [all …]
|
| /drivers/gpu/drm/i915/ |
| A D | vlv_suspend.c | 111 struct vlv_s0ix_state *s = i915->vlv_s0ix_state; in vlv_save_gunit_s0ix_state() local 115 if (!s) in vlv_save_gunit_s0ix_state() 125 for (i = 0; i < ARRAY_SIZE(s->lra_limits); i++) in vlv_save_gunit_s0ix_state() 155 s->ecobus = intel_uncore_read(uncore, ECOBUS); in vlv_save_gunit_s0ix_state() 164 s->gt_imr = intel_uncore_read(uncore, GTIMR); in vlv_save_gunit_s0ix_state() 165 s->gt_ier = intel_uncore_read(uncore, GTIER); in vlv_save_gunit_s0ix_state() 182 s->pcbr = intel_uncore_read(uncore, VLV_PCBR); in vlv_save_gunit_s0ix_state() 200 if (!s) in vlv_restore_gunit_s0ix_state() 240 intel_uncore_write(uncore, ECOBUS, s->ecobus); in vlv_restore_gunit_s0ix_state() 249 intel_uncore_write(uncore, GTIMR, s->gt_imr); in vlv_restore_gunit_s0ix_state() [all …]
|
| /drivers/md/bcache/ |
| A D | request.c | 601 ret = bch_btree_map_keys(&s->op, s->iop.c, in CLOSURE_CALLBACK() 620 if (s->d && s->d->c && in CLOSURE_CALLBACK() 690 s->orig_bio->bi_status = s->iop.status; in bio_complete() 726 mempool_free(s, &s->iop.c->search); in CLOSURE_CALLBACK() 854 bio_copy_data(s->cache_miss, s->iop.bio); in CLOSURE_CALLBACK() 880 bch_mark_cache_accounting(s->iop.c, s->d, in CLOSURE_CALLBACK() 881 !s->cache_missed, s->iop.bypass); in CLOSURE_CALLBACK() 882 trace_bcache_read(s->orig_bio, !s->cache_missed, s->iop.bypass); in CLOSURE_CALLBACK() 902 if (s->cache_miss || s->iop.bypass) { in cached_dev_cache_miss() 913 s->iop.replace_key = KEY(s->iop.inode, in cached_dev_cache_miss() [all …]
|
| /drivers/media/dvb-frontends/ |
| A D | sp2.c | 257 s->status = 0; in sp2_ci_poll_slot_status() 315 s->ca.data = s; in sp2_init() 334 ret = dvb_ca_en50221_init(s->dvb_adap, &s->ca, 0, 1); in sp2_init() 347 struct sp2 *s; in sp2_exit() local 355 if (!s) in sp2_exit() 358 if (!s->ca.data) in sp2_exit() 369 struct sp2 *s; in sp2_probe() local 374 s = kzalloc(sizeof(*s), GFP_KERNEL); in sp2_probe() 375 if (!s) { in sp2_probe() 395 kfree(s); in sp2_probe() [all …]
|
| /drivers/dma/qcom/ |
| A D | hidma_dbg.c | 35 seq_printf(s, "idx = 0x%x\n", tre->idx); in hidma_ll_chstats() 39 seq_printf(s, "data=%p\n", tre->data); in hidma_ll_chstats() 49 seq_printf(s, "src=%pap\n", &src_start); in hidma_ll_chstats() 58 seq_puts(s, "------Device -----\n"); in hidma_ll_devstats() 64 seq_printf(s, "trca=%p\n", lldev->trca); in hidma_ll_devstats() 69 seq_printf(s, "pending_tre_count=%d\n", in hidma_ll_devstats() 86 struct hidma_chan *mchan = s->private; in hidma_chan_show() 93 seq_puts(s, "prepared\n"); in hidma_chan_show() 97 seq_puts(s, "active\n"); in hidma_chan_show() 101 seq_puts(s, "completed\n"); in hidma_chan_show() [all …]
|