Home
last modified time | relevance | path

Searched refs:dma_q (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.4/drivers/media/usb/cx231xx/
Dcx231xx-vbi.c73 struct cx231xx_dmaqueue *dma_q = urb->context; in cx231xx_isoc_vbi_copy() local
98 if (dma_q->is_partial_line) { in cx231xx_isoc_vbi_copy()
101 sav_eav = dma_q->last_sav; in cx231xx_isoc_vbi_copy()
107 dma_q->partial_buf, in cx231xx_isoc_vbi_copy()
115 bytes_parsed += cx231xx_get_vbi_line(dev, dma_q, in cx231xx_isoc_vbi_copy()
122 dma_q->is_partial_line = 0; in cx231xx_isoc_vbi_copy()
137 dma_q, sav_eav, /* SAV/EAV */ in cx231xx_isoc_vbi_copy()
145 memcpy(dma_q->partial_buf, p_buffer + buffer_size - 4, 4); in cx231xx_isoc_vbi_copy()
292 struct cx231xx_dmaqueue *dma_q = urb->context; in cx231xx_irq_vbi_callback() local
294 container_of(dma_q, struct cx231xx_video_mode, vidq); in cx231xx_irq_vbi_callback()
[all …]
Dcx231xx-video.c165 struct cx231xx_dmaqueue *dma_q, in buffer_filled() argument
224 static inline void get_next_buf(struct cx231xx_dmaqueue *dma_q, in get_next_buf() argument
228 container_of(dma_q, struct cx231xx_video_mode, vidq); in get_next_buf()
233 if (list_empty(&dma_q->active)) { in get_next_buf()
244 *buf = list_entry(dma_q->active.next, struct cx231xx_buffer, vb.queue); in get_next_buf()
263 struct cx231xx_dmaqueue *dma_q = urb->context; in cx231xx_isoc_copy() local
305 if (dma_q->is_partial_line) { in cx231xx_isoc_copy()
307 sav_eav = dma_q->last_sav; in cx231xx_isoc_copy()
313 dma_q->partial_buf, in cx231xx_isoc_copy()
321 bytes_parsed += cx231xx_get_video_line(dev, dma_q, in cx231xx_isoc_copy()
[all …]
Dcx231xx-vbi.h38 u32 cx231xx_get_vbi_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
41 u32 cx231xx_copy_vbi_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
45 struct cx231xx_dmaqueue *dma_q);
47 int cx231xx_do_vbi_copy(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
51 struct cx231xx_dmaqueue *dma_q);
Dcx231xx-core.c786 struct cx231xx_dmaqueue *dma_q = urb->context; in cx231xx_isoc_irq_callback() local
788 container_of(dma_q, struct cx231xx_video_mode, vidq); in cx231xx_isoc_irq_callback()
832 struct cx231xx_dmaqueue *dma_q = urb->context; in cx231xx_bulk_irq_callback() local
834 container_of(dma_q, struct cx231xx_video_mode, vidq); in cx231xx_bulk_irq_callback()
871 struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq; in cx231xx_uninit_isoc() local
909 kfree(dma_q->p_left_data); in cx231xx_uninit_isoc()
914 dma_q->p_left_data = NULL; in cx231xx_uninit_isoc()
930 struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq; in cx231xx_uninit_bulk() local
968 kfree(dma_q->p_left_data); in cx231xx_uninit_bulk()
973 dma_q->p_left_data = NULL; in cx231xx_uninit_bulk()
[all …]
Dcx231xx-417.c1267 struct cx231xx_dmaqueue *dma_q) in buffer_copy() argument
1274 if (dma_q->mpeg_buffer_done == 0) { in buffer_copy()
1275 if (list_empty(&dma_q->active)) in buffer_copy()
1278 buf = list_entry(dma_q->active.next, in buffer_copy()
1281 dma_q->mpeg_buffer_done = 1; in buffer_copy()
1287 if ((dma_q->mpeg_buffer_completed+len) < in buffer_copy()
1289 if (dma_q->add_ps_package_head == in buffer_copy()
1291 memcpy(vbuf+dma_q->mpeg_buffer_completed, in buffer_copy()
1292 dma_q->ps_head, 3); in buffer_copy()
1293 dma_q->mpeg_buffer_completed = in buffer_copy()
[all …]
Dcx231xx.h818 int cx231xx_do_copy(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
821 struct cx231xx_dmaqueue *dma_q);
822 u8 cx231xx_is_buffer_done(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q);
823 u32 cx231xx_copy_video_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
825 u32 cx231xx_get_video_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
/Linux-v5.4/drivers/media/usb/au0828/
Dau0828-video.c112 struct au0828_dmaqueue *dma_q = urb->context; in au0828_irq_callback() local
113 struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq); in au0828_irq_callback()
199 struct au0828_dmaqueue *dma_q = &dev->vidq; in au0828_init_isoc() local
255 au0828_irq_callback, dma_q, 1); in au0828_init_isoc()
287 struct au0828_dmaqueue *dma_q, in buffer_filled() argument
310 struct au0828_dmaqueue *dma_q, in au0828_copy_video() argument
322 if (dma_q->pos + len > buf->length) in au0828_copy_video()
323 len = buf->length - dma_q->pos; in au0828_copy_video()
334 linesdone = dma_q->pos / bytesperline; in au0828_copy_video()
335 currlinedone = dma_q->pos % bytesperline; in au0828_copy_video()
[all …]
/Linux-v5.4/drivers/media/usb/tm6000/
Dtm6000-video.c80 static inline void get_next_buf(struct tm6000_dmaqueue *dma_q, in get_next_buf() argument
83 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in get_next_buf()
85 if (list_empty(&dma_q->active)) { in get_next_buf()
91 *buf = list_entry(dma_q->active.next, in get_next_buf()
99 struct tm6000_dmaqueue *dma_q, in buffer_filled() argument
118 struct tm6000_dmaqueue *dma_q = urb->context; in copy_streams() local
119 struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); in copy_streams()
130 get_next_buf(dma_q, &vbuf); in copy_streams()
196 buffer_filled(dev, dma_q, vbuf); in copy_streams()
199 get_next_buf(dma_q, &vbuf); in copy_streams()
[all …]
/Linux-v5.4/drivers/media/platform/ti-vpe/
Dcal.c814 struct cal_dmaqueue *dma_q = &ctx->vidq; in cal_schedule_next_buffer() local
818 buf = list_entry(dma_q->active.next, struct cal_buffer, list); in cal_schedule_next_buffer()
845 struct cal_dmaqueue *dma_q; in cal_irq() local
879 dma_q = &ctx->vidq; in cal_irq()
882 if (!list_empty(&dma_q->active) && in cal_irq()
890 dma_q = &ctx->vidq; in cal_irq()
893 if (!list_empty(&dma_q->active) && in cal_irq()
1276 struct cal_dmaqueue *dma_q = &ctx->vidq; in cal_start_streaming() local
1283 if (list_empty(&dma_q->active)) { in cal_start_streaming()
1289 buf = list_entry(dma_q->active.next, struct cal_buffer, list); in cal_start_streaming()
[all …]
/Linux-v5.4/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c116 dma_addr_t dma_q; member
857 qat_req->in.rsa.dec_crt.q = ctx->dma_q; in qat_rsa_dec()
1091 ctx->q = dma_alloc_coherent(dev, half_key_sz, &ctx->dma_q, GFP_KERNEL); in qat_rsa_setkey_crt()
1145 dma_free_coherent(dev, half_key_sz, ctx->q, ctx->dma_q); in qat_rsa_setkey_crt()
1174 dma_free_coherent(dev, half_key_sz, ctx->q, ctx->dma_q); in qat_rsa_clear_ctx()
/Linux-v5.4/drivers/media/usb/zr364xx/
Dzr364xx.c516 struct zr364xx_dmaqueue *dma_q = &cam->vidq; in zr364xx_got_frame() local
521 DBG("wakeup: %p\n", &dma_q); in zr364xx_got_frame()
524 if (list_empty(&dma_q->active)) { in zr364xx_got_frame()
529 buf = list_entry(dma_q->active.next, in zr364xx_got_frame()
/Linux-v5.4/drivers/media/usb/em28xx/
Dem28xx-video.c598 struct em28xx_dmaqueue *dma_q) in get_next_buf() argument
602 if (list_empty(&dma_q->active)) { in get_next_buf()
608 buf = list_entry(dma_q->active.next, struct em28xx_buffer, list); in get_next_buf()
623 struct em28xx_dmaqueue *dma_q) in finish_field_prepare_next() argument
630 buf = get_next_buf(dev, dma_q); in finish_field_prepare_next()
650 struct em28xx_dmaqueue *dma_q = &dev->vidq; in process_frame_data_em28xx() local
716 buf = finish_field_prepare_next(dev, buf, dma_q); in process_frame_data_em28xx()
Dem28xx-core.c1011 struct em28xx_dmaqueue *dma_q = &dev->vidq; in em28xx_init_usb_xfer() local
1050 init_waitqueue_head(&dma_q->wq); in em28xx_init_usb_xfer()