dma_q             116 drivers/crypto/qat/qat_common/qat_asym_algs.c 	dma_addr_t dma_q;
dma_q             857 drivers/crypto/qat/qat_common/qat_asym_algs.c 		qat_req->in.rsa.dec_crt.q = ctx->dma_q;
dma_q            1091 drivers/crypto/qat/qat_common/qat_asym_algs.c 	ctx->q = dma_alloc_coherent(dev, half_key_sz, &ctx->dma_q, GFP_KERNEL);
dma_q            1145 drivers/crypto/qat/qat_common/qat_asym_algs.c 	dma_free_coherent(dev, half_key_sz, ctx->q, ctx->dma_q);
dma_q            1174 drivers/crypto/qat/qat_common/qat_asym_algs.c 		dma_free_coherent(dev, half_key_sz, ctx->q, ctx->dma_q);
dma_q             812 drivers/media/platform/ti-vpe/cal.c 	struct cal_dmaqueue *dma_q = &ctx->vidq;
dma_q             816 drivers/media/platform/ti-vpe/cal.c 	buf = list_entry(dma_q->active.next, struct cal_buffer, list);
dma_q             843 drivers/media/platform/ti-vpe/cal.c 	struct cal_dmaqueue *dma_q;
dma_q             877 drivers/media/platform/ti-vpe/cal.c 			dma_q = &ctx->vidq;
dma_q             880 drivers/media/platform/ti-vpe/cal.c 			if (!list_empty(&dma_q->active) &&
dma_q             888 drivers/media/platform/ti-vpe/cal.c 			dma_q = &ctx->vidq;
dma_q             891 drivers/media/platform/ti-vpe/cal.c 			if (!list_empty(&dma_q->active) &&
dma_q            1274 drivers/media/platform/ti-vpe/cal.c 	struct cal_dmaqueue *dma_q = &ctx->vidq;
dma_q            1281 drivers/media/platform/ti-vpe/cal.c 	if (list_empty(&dma_q->active)) {
dma_q            1287 drivers/media/platform/ti-vpe/cal.c 	buf = list_entry(dma_q->active.next, struct cal_buffer, list);
dma_q            1326 drivers/media/platform/ti-vpe/cal.c 	list_for_each_entry_safe(buf, tmp, &dma_q->active, list) {
dma_q            1336 drivers/media/platform/ti-vpe/cal.c 	struct cal_dmaqueue *dma_q = &ctx->vidq;
dma_q            1348 drivers/media/platform/ti-vpe/cal.c 	list_for_each_entry_safe(buf, tmp, &dma_q->active, list) {
dma_q             112 drivers/media/usb/au0828/au0828-video.c 	struct au0828_dmaqueue  *dma_q = urb->context;
dma_q             113 drivers/media/usb/au0828/au0828-video.c 	struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq);
dma_q             199 drivers/media/usb/au0828/au0828-video.c 	struct au0828_dmaqueue *dma_q = &dev->vidq;
dma_q             255 drivers/media/usb/au0828/au0828-video.c 				 au0828_irq_callback, dma_q, 1);
dma_q             287 drivers/media/usb/au0828/au0828-video.c 				 struct au0828_dmaqueue *dma_q,
dma_q             310 drivers/media/usb/au0828/au0828-video.c 			      struct au0828_dmaqueue  *dma_q,
dma_q             322 drivers/media/usb/au0828/au0828-video.c 	if (dma_q->pos + len > buf->length)
dma_q             323 drivers/media/usb/au0828/au0828-video.c 		len = buf->length - dma_q->pos;
dma_q             334 drivers/media/usb/au0828/au0828-video.c 	linesdone = dma_q->pos / bytesperline;
dma_q             335 drivers/media/usb/au0828/au0828-video.c 	currlinedone = dma_q->pos % bytesperline;
dma_q             384 drivers/media/usb/au0828/au0828-video.c 	dma_q->pos += len;
dma_q             390 drivers/media/usb/au0828/au0828-video.c static inline void get_next_buf(struct au0828_dmaqueue *dma_q,
dma_q             393 drivers/media/usb/au0828/au0828-video.c 	struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vidq);
dma_q             395 drivers/media/usb/au0828/au0828-video.c 	if (list_empty(&dma_q->active)) {
dma_q             403 drivers/media/usb/au0828/au0828-video.c 	*buf = list_entry(dma_q->active.next, struct au0828_buffer, list);
dma_q             406 drivers/media/usb/au0828/au0828-video.c 	dma_q->pos = 0;
dma_q             414 drivers/media/usb/au0828/au0828-video.c 			      struct au0828_dmaqueue  *dma_q,
dma_q             428 drivers/media/usb/au0828/au0828-video.c 	if (dma_q == NULL) {
dma_q             445 drivers/media/usb/au0828/au0828-video.c 	if (dma_q->pos + len > buf->length)
dma_q             446 drivers/media/usb/au0828/au0828-video.c 		len = buf->length - dma_q->pos;
dma_q             449 drivers/media/usb/au0828/au0828-video.c 	startwrite = outp + (dma_q->pos / 2);
dma_q             458 drivers/media/usb/au0828/au0828-video.c 	dma_q->pos += len;
dma_q             465 drivers/media/usb/au0828/au0828-video.c static inline void vbi_get_next_buf(struct au0828_dmaqueue *dma_q,
dma_q             468 drivers/media/usb/au0828/au0828-video.c 	struct au0828_dev *dev = container_of(dma_q, struct au0828_dev, vbiq);
dma_q             470 drivers/media/usb/au0828/au0828-video.c 	if (list_empty(&dma_q->active)) {
dma_q             478 drivers/media/usb/au0828/au0828-video.c 	*buf = list_entry(dma_q->active.next, struct au0828_buffer, list);
dma_q             481 drivers/media/usb/au0828/au0828-video.c 	dma_q->pos = 0;
dma_q             494 drivers/media/usb/au0828/au0828-video.c 	struct au0828_dmaqueue  *dma_q = urb->context;
dma_q             566 drivers/media/usb/au0828/au0828-video.c 					buffer_filled(dev, dma_q, buf);
dma_q             567 drivers/media/usb/au0828/au0828-video.c 				get_next_buf(dma_q, &buf);
dma_q             600 drivers/media/usb/au0828/au0828-video.c 			dma_q->pos = 0;
dma_q             621 drivers/media/usb/au0828/au0828-video.c 			au0828_copy_video(dev, dma_q, buf, p, outp, len);
dma_q             957 drivers/media/usb/au0828/au0828-video.c 	struct au0828_dmaqueue *dma_q = &dev->vidq;
dma_q             968 drivers/media/usb/au0828/au0828-video.c 		buffer_filled(dev, dma_q, buf);
dma_q             970 drivers/media/usb/au0828/au0828-video.c 	get_next_buf(dma_q, &buf);
dma_q             981 drivers/media/usb/au0828/au0828-video.c 	struct au0828_dmaqueue *dma_q = &dev->vbiq;
dma_q             992 drivers/media/usb/au0828/au0828-video.c 		buffer_filled(dev, dma_q, buf);
dma_q             994 drivers/media/usb/au0828/au0828-video.c 	vbi_get_next_buf(dma_q, &buf);
dma_q            1267 drivers/media/usb/cx231xx/cx231xx-417.c 		struct cx231xx_dmaqueue *dma_q)
dma_q            1274 drivers/media/usb/cx231xx/cx231xx-417.c 	if (dma_q->mpeg_buffer_done == 0) {
dma_q            1275 drivers/media/usb/cx231xx/cx231xx-417.c 		if (list_empty(&dma_q->active))
dma_q            1278 drivers/media/usb/cx231xx/cx231xx-417.c 		buf = list_entry(dma_q->active.next,
dma_q            1281 drivers/media/usb/cx231xx/cx231xx-417.c 		dma_q->mpeg_buffer_done = 1;
dma_q            1287 drivers/media/usb/cx231xx/cx231xx-417.c 	if ((dma_q->mpeg_buffer_completed+len) <
dma_q            1289 drivers/media/usb/cx231xx/cx231xx-417.c 		if (dma_q->add_ps_package_head ==
dma_q            1291 drivers/media/usb/cx231xx/cx231xx-417.c 			memcpy(vbuf+dma_q->mpeg_buffer_completed,
dma_q            1292 drivers/media/usb/cx231xx/cx231xx-417.c 					dma_q->ps_head, 3);
dma_q            1293 drivers/media/usb/cx231xx/cx231xx-417.c 			dma_q->mpeg_buffer_completed =
dma_q            1294 drivers/media/usb/cx231xx/cx231xx-417.c 				dma_q->mpeg_buffer_completed + 3;
dma_q            1295 drivers/media/usb/cx231xx/cx231xx-417.c 			dma_q->add_ps_package_head =
dma_q            1298 drivers/media/usb/cx231xx/cx231xx-417.c 		memcpy(vbuf+dma_q->mpeg_buffer_completed, data, len);
dma_q            1299 drivers/media/usb/cx231xx/cx231xx-417.c 		dma_q->mpeg_buffer_completed =
dma_q            1300 drivers/media/usb/cx231xx/cx231xx-417.c 			dma_q->mpeg_buffer_completed + len;
dma_q            1302 drivers/media/usb/cx231xx/cx231xx-417.c 		dma_q->mpeg_buffer_done = 0;
dma_q            1305 drivers/media/usb/cx231xx/cx231xx-417.c 			mpeglines*mpeglinesize - dma_q->mpeg_buffer_completed;
dma_q            1306 drivers/media/usb/cx231xx/cx231xx-417.c 		memcpy(vbuf+dma_q->mpeg_buffer_completed,
dma_q            1314 drivers/media/usb/cx231xx/cx231xx-417.c 		dma_q->mpeg_buffer_completed = 0;
dma_q            1318 drivers/media/usb/cx231xx/cx231xx-417.c 			dma_q->left_data_count = len - tail_data;
dma_q            1319 drivers/media/usb/cx231xx/cx231xx-417.c 			memcpy(dma_q->p_left_data,
dma_q            1326 drivers/media/usb/cx231xx/cx231xx-417.c 		struct cx231xx_dmaqueue *dma_q)
dma_q            1331 drivers/media/usb/cx231xx/cx231xx-417.c 	if (list_empty(&dma_q->active))
dma_q            1334 drivers/media/usb/cx231xx/cx231xx-417.c 	buf = list_entry(dma_q->active.next,
dma_q            1349 drivers/media/usb/cx231xx/cx231xx-417.c 	struct cx231xx_dmaqueue *dma_q = urb->context;
dma_q            1355 drivers/media/usb/cx231xx/cx231xx-417.c 		if (dma_q->left_data_count > 0) {
dma_q            1356 drivers/media/usb/cx231xx/cx231xx-417.c 			buffer_copy(dev, dma_q->p_left_data,
dma_q            1357 drivers/media/usb/cx231xx/cx231xx-417.c 				    dma_q->left_data_count, urb, dma_q);
dma_q            1358 drivers/media/usb/cx231xx/cx231xx-417.c 			dma_q->mpeg_buffer_completed = dma_q->left_data_count;
dma_q            1359 drivers/media/usb/cx231xx/cx231xx-417.c 			dma_q->left_data_count = 0;
dma_q            1367 drivers/media/usb/cx231xx/cx231xx-417.c 			buffer_copy(dev, p_buffer, buffer_size, urb, dma_q);
dma_q            1375 drivers/media/usb/cx231xx/cx231xx-417.c 	struct cx231xx_dmaqueue *dma_q = urb->context;
dma_q            1386 drivers/media/usb/cx231xx/cx231xx-417.c 	memcpy(buffer, dma_q->ps_head, 3);
dma_q            1388 drivers/media/usb/cx231xx/cx231xx-417.c 	memcpy(dma_q->ps_head, p_buffer+buffer_size-3, 3);
dma_q            1391 drivers/media/usb/cx231xx/cx231xx-417.c 	buffer_filled(p_buffer, buffer_size, urb, dma_q);
dma_q             786 drivers/media/usb/cx231xx/cx231xx-core.c 	struct cx231xx_dmaqueue *dma_q = urb->context;
dma_q             788 drivers/media/usb/cx231xx/cx231xx-core.c 	    container_of(dma_q, struct cx231xx_video_mode, vidq);
dma_q             832 drivers/media/usb/cx231xx/cx231xx-core.c 	struct cx231xx_dmaqueue *dma_q = urb->context;
dma_q             834 drivers/media/usb/cx231xx/cx231xx-core.c 	    container_of(dma_q, struct cx231xx_video_mode, vidq);
dma_q             871 drivers/media/usb/cx231xx/cx231xx-core.c 	struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq;
dma_q             909 drivers/media/usb/cx231xx/cx231xx-core.c 	kfree(dma_q->p_left_data);
dma_q             914 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->p_left_data = NULL;
dma_q             930 drivers/media/usb/cx231xx/cx231xx-core.c 	struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq;
dma_q             968 drivers/media/usb/cx231xx/cx231xx-core.c 	kfree(dma_q->p_left_data);
dma_q             973 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->p_left_data = NULL;
dma_q             991 drivers/media/usb/cx231xx/cx231xx-core.c 	struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq;
dma_q            1001 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->p_left_data = kzalloc(4096, GFP_KERNEL);
dma_q            1002 drivers/media/usb/cx231xx/cx231xx-core.c 	if (dma_q->p_left_data == NULL)
dma_q            1007 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->pos = 0;
dma_q            1008 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->is_partial_line = 0;
dma_q            1009 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->last_sav = 0;
dma_q            1010 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->current_field = -1;
dma_q            1011 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->field1_done = 0;
dma_q            1012 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->lines_per_field = dev->height / 2;
dma_q            1013 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->bytes_left_in_line = dev->width << 1;
dma_q            1014 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->lines_completed = 0;
dma_q            1015 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->mpeg_buffer_done = 0;
dma_q            1016 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->left_data_count = 0;
dma_q            1017 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->mpeg_buffer_completed = 0;
dma_q            1018 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->add_ps_package_head = CX231XX_NEED_ADD_PS_PACKAGE_HEAD;
dma_q            1019 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->ps_head[0] = 0x00;
dma_q            1020 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->ps_head[1] = 0x00;
dma_q            1021 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->ps_head[2] = 0x01;
dma_q            1022 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->ps_head[3] = 0xBA;
dma_q            1024 drivers/media/usb/cx231xx/cx231xx-core.c 		dma_q->partial_buf[i] = 0;
dma_q            1081 drivers/media/usb/cx231xx/cx231xx-core.c 				 sb_size, cx231xx_isoc_irq_callback, dma_q, 1);
dma_q            1095 drivers/media/usb/cx231xx/cx231xx-core.c 	init_waitqueue_head(&dma_q->wq);
dma_q            1126 drivers/media/usb/cx231xx/cx231xx-core.c 	struct cx231xx_dmaqueue *dma_q = &dev->video_mode.vidq;
dma_q            1143 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->pos = 0;
dma_q            1144 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->is_partial_line = 0;
dma_q            1145 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->last_sav = 0;
dma_q            1146 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->current_field = -1;
dma_q            1147 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->field1_done = 0;
dma_q            1148 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->lines_per_field = dev->height / 2;
dma_q            1149 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->bytes_left_in_line = dev->width << 1;
dma_q            1150 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->lines_completed = 0;
dma_q            1151 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->mpeg_buffer_done = 0;
dma_q            1152 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->left_data_count = 0;
dma_q            1153 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->mpeg_buffer_completed = 0;
dma_q            1154 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->ps_head[0] = 0x00;
dma_q            1155 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->ps_head[1] = 0x00;
dma_q            1156 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->ps_head[2] = 0x01;
dma_q            1157 drivers/media/usb/cx231xx/cx231xx-core.c 	dma_q->ps_head[3] = 0xBA;
dma_q            1159 drivers/media/usb/cx231xx/cx231xx-core.c 		dma_q->partial_buf[i] = 0;
dma_q            1216 drivers/media/usb/cx231xx/cx231xx-core.c 				  sb_size, cx231xx_bulk_irq_callback, dma_q);
dma_q            1229 drivers/media/usb/cx231xx/cx231xx-core.c 	init_waitqueue_head(&dma_q->wq);
dma_q              73 drivers/media/usb/cx231xx/cx231xx-vbi.c 	struct cx231xx_dmaqueue *dma_q = urb->context;
dma_q              98 drivers/media/usb/cx231xx/cx231xx-vbi.c 		if (dma_q->is_partial_line) {
dma_q             101 drivers/media/usb/cx231xx/cx231xx-vbi.c 			sav_eav = dma_q->last_sav;
dma_q             107 drivers/media/usb/cx231xx/cx231xx-vbi.c 							  dma_q->partial_buf,
dma_q             115 drivers/media/usb/cx231xx/cx231xx-vbi.c 			bytes_parsed += cx231xx_get_vbi_line(dev, dma_q,
dma_q             122 drivers/media/usb/cx231xx/cx231xx-vbi.c 		dma_q->is_partial_line = 0;
dma_q             137 drivers/media/usb/cx231xx/cx231xx-vbi.c 					dma_q, sav_eav,	/* SAV/EAV */
dma_q             145 drivers/media/usb/cx231xx/cx231xx-vbi.c 		memcpy(dma_q->partial_buf, p_buffer + buffer_size - 4, 4);
dma_q             292 drivers/media/usb/cx231xx/cx231xx-vbi.c 	struct cx231xx_dmaqueue *dma_q = urb->context;
dma_q             294 drivers/media/usb/cx231xx/cx231xx-vbi.c 	    container_of(dma_q, struct cx231xx_video_mode, vidq);
dma_q             378 drivers/media/usb/cx231xx/cx231xx-vbi.c 	struct cx231xx_dmaqueue *dma_q = &dev->vbi_mode.vidq;
dma_q             396 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->pos = 0;
dma_q             397 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->is_partial_line = 0;
dma_q             398 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->last_sav = 0;
dma_q             399 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->current_field = -1;
dma_q             400 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->bytes_left_in_line = dev->width << 1;
dma_q             401 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->lines_per_field = ((dev->norm & V4L2_STD_625_50) ?
dma_q             403 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->lines_completed = 0;
dma_q             405 drivers/media/usb/cx231xx/cx231xx-vbi.c 		dma_q->partial_buf[i] = 0;
dma_q             454 drivers/media/usb/cx231xx/cx231xx-vbi.c 				  sb_size, cx231xx_irq_vbi_callback, dma_q);
dma_q             457 drivers/media/usb/cx231xx/cx231xx-vbi.c 	init_waitqueue_head(&dma_q->wq);
dma_q             476 drivers/media/usb/cx231xx/cx231xx-vbi.c u32 cx231xx_get_vbi_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
dma_q             498 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->last_sav = sav_eav;
dma_q             501 drivers/media/usb/cx231xx/cx231xx-vbi.c 	    cx231xx_copy_vbi_line(dev, dma_q, p_buffer, buffer_size,
dma_q             511 drivers/media/usb/cx231xx/cx231xx-vbi.c 				     struct cx231xx_dmaqueue *dma_q,
dma_q             527 drivers/media/usb/cx231xx/cx231xx-vbi.c u32 cx231xx_copy_vbi_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
dma_q             534 drivers/media/usb/cx231xx/cx231xx-vbi.c 	if (dma_q->current_field == -1) {
dma_q             536 drivers/media/usb/cx231xx/cx231xx-vbi.c 		cx231xx_reset_vbi_buffer(dev, dma_q);
dma_q             539 drivers/media/usb/cx231xx/cx231xx-vbi.c 	if (dma_q->current_field != field_number)
dma_q             540 drivers/media/usb/cx231xx/cx231xx-vbi.c 		dma_q->lines_completed = 0;
dma_q             546 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->current_field = field_number;
dma_q             548 drivers/media/usb/cx231xx/cx231xx-vbi.c 	bytes_to_copy = dma_q->bytes_left_in_line;
dma_q             552 drivers/media/usb/cx231xx/cx231xx-vbi.c 	if (dma_q->lines_completed >= dma_q->lines_per_field) {
dma_q             553 drivers/media/usb/cx231xx/cx231xx-vbi.c 		dma_q->bytes_left_in_line -= bytes_to_copy;
dma_q             554 drivers/media/usb/cx231xx/cx231xx-vbi.c 		dma_q->is_partial_line =
dma_q             555 drivers/media/usb/cx231xx/cx231xx-vbi.c 		    (dma_q->bytes_left_in_line == 0) ? 0 : 1;
dma_q             559 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->is_partial_line = 1;
dma_q             564 drivers/media/usb/cx231xx/cx231xx-vbi.c 		dma_q->bytes_left_in_line -= bytes_to_copy;
dma_q             565 drivers/media/usb/cx231xx/cx231xx-vbi.c 		dma_q->is_partial_line =
dma_q             566 drivers/media/usb/cx231xx/cx231xx-vbi.c 		    (dma_q->bytes_left_in_line == 0) ? 0 : 1;
dma_q             571 drivers/media/usb/cx231xx/cx231xx-vbi.c 	cx231xx_do_vbi_copy(dev, dma_q, p_line, bytes_to_copy);
dma_q             573 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->pos += bytes_to_copy;
dma_q             574 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->bytes_left_in_line -= bytes_to_copy;
dma_q             576 drivers/media/usb/cx231xx/cx231xx-vbi.c 	if (dma_q->bytes_left_in_line == 0) {
dma_q             578 drivers/media/usb/cx231xx/cx231xx-vbi.c 		dma_q->bytes_left_in_line = _line_size;
dma_q             579 drivers/media/usb/cx231xx/cx231xx-vbi.c 		dma_q->lines_completed++;
dma_q             580 drivers/media/usb/cx231xx/cx231xx-vbi.c 		dma_q->is_partial_line = 0;
dma_q             582 drivers/media/usb/cx231xx/cx231xx-vbi.c 		if (cx231xx_is_vbi_buffer_done(dev, dma_q) && buf) {
dma_q             584 drivers/media/usb/cx231xx/cx231xx-vbi.c 			vbi_buffer_filled(dev, dma_q, buf);
dma_q             586 drivers/media/usb/cx231xx/cx231xx-vbi.c 			dma_q->pos = 0;
dma_q             587 drivers/media/usb/cx231xx/cx231xx-vbi.c 			dma_q->lines_completed = 0;
dma_q             588 drivers/media/usb/cx231xx/cx231xx-vbi.c 			cx231xx_reset_vbi_buffer(dev, dma_q);
dma_q             598 drivers/media/usb/cx231xx/cx231xx-vbi.c static inline void get_next_vbi_buf(struct cx231xx_dmaqueue *dma_q,
dma_q             602 drivers/media/usb/cx231xx/cx231xx-vbi.c 	    container_of(dma_q, struct cx231xx_video_mode, vidq);
dma_q             606 drivers/media/usb/cx231xx/cx231xx-vbi.c 	if (list_empty(&dma_q->active)) {
dma_q             614 drivers/media/usb/cx231xx/cx231xx-vbi.c 	*buf = list_entry(dma_q->active.next, struct cx231xx_buffer, vb.queue);
dma_q             626 drivers/media/usb/cx231xx/cx231xx-vbi.c 			      struct cx231xx_dmaqueue *dma_q)
dma_q             634 drivers/media/usb/cx231xx/cx231xx-vbi.c 		get_next_vbi_buf(dma_q, &buf);
dma_q             636 drivers/media/usb/cx231xx/cx231xx-vbi.c 		dma_q->pos = 0;
dma_q             637 drivers/media/usb/cx231xx/cx231xx-vbi.c 		dma_q->current_field = -1;
dma_q             640 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->bytes_left_in_line = dev->width << 1;
dma_q             641 drivers/media/usb/cx231xx/cx231xx-vbi.c 	dma_q->lines_completed = 0;
dma_q             644 drivers/media/usb/cx231xx/cx231xx-vbi.c int cx231xx_do_vbi_copy(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
dma_q             661 drivers/media/usb/cx231xx/cx231xx-vbi.c 	if (dma_q->bytes_left_in_line != _line_size) {
dma_q             663 drivers/media/usb/cx231xx/cx231xx-vbi.c 		    _line_size - dma_q->bytes_left_in_line;
dma_q             666 drivers/media/usb/cx231xx/cx231xx-vbi.c 	offset = (dma_q->lines_completed * _line_size) +
dma_q             669 drivers/media/usb/cx231xx/cx231xx-vbi.c 	if (dma_q->current_field == 2) {
dma_q             671 drivers/media/usb/cx231xx/cx231xx-vbi.c 		offset += (dev->width * 2 * dma_q->lines_per_field);
dma_q             677 drivers/media/usb/cx231xx/cx231xx-vbi.c 	lencopy = dma_q->bytes_left_in_line > bytes_to_copy ?
dma_q             678 drivers/media/usb/cx231xx/cx231xx-vbi.c 		  bytes_to_copy : dma_q->bytes_left_in_line;
dma_q             686 drivers/media/usb/cx231xx/cx231xx-vbi.c 			      struct cx231xx_dmaqueue *dma_q)
dma_q             692 drivers/media/usb/cx231xx/cx231xx-vbi.c 	if (dma_q->lines_completed == height && dma_q->current_field == 2)
dma_q              38 drivers/media/usb/cx231xx/cx231xx-vbi.h u32 cx231xx_get_vbi_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
dma_q              41 drivers/media/usb/cx231xx/cx231xx-vbi.h u32 cx231xx_copy_vbi_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
dma_q              45 drivers/media/usb/cx231xx/cx231xx-vbi.h 			      struct cx231xx_dmaqueue *dma_q);
dma_q              47 drivers/media/usb/cx231xx/cx231xx-vbi.h int cx231xx_do_vbi_copy(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
dma_q              51 drivers/media/usb/cx231xx/cx231xx-vbi.h 			      struct cx231xx_dmaqueue *dma_q);
dma_q             165 drivers/media/usb/cx231xx/cx231xx-video.c 				 struct cx231xx_dmaqueue *dma_q,
dma_q             224 drivers/media/usb/cx231xx/cx231xx-video.c static inline void get_next_buf(struct cx231xx_dmaqueue *dma_q,
dma_q             228 drivers/media/usb/cx231xx/cx231xx-video.c 	    container_of(dma_q, struct cx231xx_video_mode, vidq);
dma_q             233 drivers/media/usb/cx231xx/cx231xx-video.c 	if (list_empty(&dma_q->active)) {
dma_q             244 drivers/media/usb/cx231xx/cx231xx-video.c 	*buf = list_entry(dma_q->active.next, struct cx231xx_buffer, vb.queue);
dma_q             263 drivers/media/usb/cx231xx/cx231xx-video.c 	struct cx231xx_dmaqueue *dma_q = urb->context;
dma_q             305 drivers/media/usb/cx231xx/cx231xx-video.c 		if (dma_q->is_partial_line) {
dma_q             307 drivers/media/usb/cx231xx/cx231xx-video.c 			sav_eav = dma_q->last_sav;
dma_q             313 drivers/media/usb/cx231xx/cx231xx-video.c 							  dma_q->partial_buf,
dma_q             321 drivers/media/usb/cx231xx/cx231xx-video.c 			bytes_parsed += cx231xx_get_video_line(dev, dma_q,
dma_q             343 drivers/media/usb/cx231xx/cx231xx-video.c 					dma_q, sav_eav,	/* SAV/EAV */
dma_q             351 drivers/media/usb/cx231xx/cx231xx-video.c 		memcpy(dma_q->partial_buf, p_buffer + buffer_size - 4, 4);
dma_q             360 drivers/media/usb/cx231xx/cx231xx-video.c 	struct cx231xx_dmaqueue *dma_q = urb->context;
dma_q             384 drivers/media/usb/cx231xx/cx231xx-video.c 		if (dma_q->is_partial_line) {
dma_q             386 drivers/media/usb/cx231xx/cx231xx-video.c 			sav_eav = dma_q->last_sav;
dma_q             392 drivers/media/usb/cx231xx/cx231xx-video.c 							  dma_q->partial_buf,
dma_q             400 drivers/media/usb/cx231xx/cx231xx-video.c 			bytes_parsed += cx231xx_get_video_line(dev, dma_q,
dma_q             422 drivers/media/usb/cx231xx/cx231xx-video.c 					dma_q, sav_eav,	/* SAV/EAV */
dma_q             430 drivers/media/usb/cx231xx/cx231xx-video.c 		memcpy(dma_q->partial_buf, p_buffer + buffer_size - 4, 4);
dma_q             497 drivers/media/usb/cx231xx/cx231xx-video.c 			   struct cx231xx_dmaqueue *dma_q, u8 sav_eav,
dma_q             533 drivers/media/usb/cx231xx/cx231xx-video.c 	dma_q->last_sav = sav_eav;
dma_q             535 drivers/media/usb/cx231xx/cx231xx-video.c 	bytes_copied = cx231xx_copy_video_line(dev, dma_q, p_buffer,
dma_q             542 drivers/media/usb/cx231xx/cx231xx-video.c 			    struct cx231xx_dmaqueue *dma_q, u8 *p_line,
dma_q             549 drivers/media/usb/cx231xx/cx231xx-video.c 	if (dma_q->current_field != field_number)
dma_q             550 drivers/media/usb/cx231xx/cx231xx-video.c 		cx231xx_reset_video_buffer(dev, dma_q);
dma_q             559 drivers/media/usb/cx231xx/cx231xx-video.c 	dma_q->current_field = field_number;
dma_q             561 drivers/media/usb/cx231xx/cx231xx-video.c 	bytes_to_copy = dma_q->bytes_left_in_line;
dma_q             565 drivers/media/usb/cx231xx/cx231xx-video.c 	if (dma_q->lines_completed >= dma_q->lines_per_field) {
dma_q             566 drivers/media/usb/cx231xx/cx231xx-video.c 		dma_q->bytes_left_in_line -= bytes_to_copy;
dma_q             567 drivers/media/usb/cx231xx/cx231xx-video.c 		dma_q->is_partial_line = (dma_q->bytes_left_in_line == 0) ?
dma_q             572 drivers/media/usb/cx231xx/cx231xx-video.c 	dma_q->is_partial_line = 1;
dma_q             577 drivers/media/usb/cx231xx/cx231xx-video.c 		dma_q->bytes_left_in_line -= bytes_to_copy;
dma_q             578 drivers/media/usb/cx231xx/cx231xx-video.c 		dma_q->is_partial_line = (dma_q->bytes_left_in_line == 0)
dma_q             584 drivers/media/usb/cx231xx/cx231xx-video.c 	cx231xx_do_copy(dev, dma_q, p_line, bytes_to_copy);
dma_q             586 drivers/media/usb/cx231xx/cx231xx-video.c 	dma_q->pos += bytes_to_copy;
dma_q             587 drivers/media/usb/cx231xx/cx231xx-video.c 	dma_q->bytes_left_in_line -= bytes_to_copy;
dma_q             589 drivers/media/usb/cx231xx/cx231xx-video.c 	if (dma_q->bytes_left_in_line == 0) {
dma_q             590 drivers/media/usb/cx231xx/cx231xx-video.c 		dma_q->bytes_left_in_line = _line_size;
dma_q             591 drivers/media/usb/cx231xx/cx231xx-video.c 		dma_q->lines_completed++;
dma_q             592 drivers/media/usb/cx231xx/cx231xx-video.c 		dma_q->is_partial_line = 0;
dma_q             594 drivers/media/usb/cx231xx/cx231xx-video.c 		if (cx231xx_is_buffer_done(dev, dma_q) && buf) {
dma_q             595 drivers/media/usb/cx231xx/cx231xx-video.c 			buffer_filled(dev, dma_q, buf);
dma_q             597 drivers/media/usb/cx231xx/cx231xx-video.c 			dma_q->pos = 0;
dma_q             599 drivers/media/usb/cx231xx/cx231xx-video.c 			dma_q->lines_completed = 0;
dma_q             607 drivers/media/usb/cx231xx/cx231xx-video.c 				struct cx231xx_dmaqueue *dma_q)
dma_q             612 drivers/media/usb/cx231xx/cx231xx-video.c 	if (dma_q->current_field == 1) {
dma_q             613 drivers/media/usb/cx231xx/cx231xx-video.c 		if (dma_q->lines_completed >= dma_q->lines_per_field)
dma_q             614 drivers/media/usb/cx231xx/cx231xx-video.c 			dma_q->field1_done = 1;
dma_q             616 drivers/media/usb/cx231xx/cx231xx-video.c 			dma_q->field1_done = 0;
dma_q             626 drivers/media/usb/cx231xx/cx231xx-video.c 		get_next_buf(dma_q, &buf);
dma_q             628 drivers/media/usb/cx231xx/cx231xx-video.c 		dma_q->pos = 0;
dma_q             629 drivers/media/usb/cx231xx/cx231xx-video.c 		dma_q->field1_done = 0;
dma_q             630 drivers/media/usb/cx231xx/cx231xx-video.c 		dma_q->current_field = -1;
dma_q             634 drivers/media/usb/cx231xx/cx231xx-video.c 	dma_q->bytes_left_in_line = dev->width << 1;
dma_q             635 drivers/media/usb/cx231xx/cx231xx-video.c 	dma_q->lines_completed = 0;
dma_q             638 drivers/media/usb/cx231xx/cx231xx-video.c int cx231xx_do_copy(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
dma_q             658 drivers/media/usb/cx231xx/cx231xx-video.c 	current_line_bytes_copied = _line_size - dma_q->bytes_left_in_line;
dma_q             661 drivers/media/usb/cx231xx/cx231xx-video.c 	offset = (dma_q->current_field == 1) ? 0 : _line_size;
dma_q             667 drivers/media/usb/cx231xx/cx231xx-video.c 	startwrite += (dma_q->lines_completed * _line_size * 2);
dma_q             672 drivers/media/usb/cx231xx/cx231xx-video.c 	lencopy = dma_q->bytes_left_in_line > bytes_to_copy ?
dma_q             673 drivers/media/usb/cx231xx/cx231xx-video.c 		  bytes_to_copy : dma_q->bytes_left_in_line;
dma_q             695 drivers/media/usb/cx231xx/cx231xx-video.c u8 cx231xx_is_buffer_done(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q)
dma_q             700 drivers/media/usb/cx231xx/cx231xx-video.c 	buffer_complete = ((dma_q->current_field == 2) &&
dma_q             701 drivers/media/usb/cx231xx/cx231xx-video.c 			   (dma_q->lines_completed >= dma_q->lines_per_field) &&
dma_q             702 drivers/media/usb/cx231xx/cx231xx-video.c 			    dma_q->field1_done);
dma_q             818 drivers/media/usb/cx231xx/cx231xx.h int cx231xx_do_copy(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
dma_q             821 drivers/media/usb/cx231xx/cx231xx.h 				struct cx231xx_dmaqueue *dma_q);
dma_q             822 drivers/media/usb/cx231xx/cx231xx.h u8 cx231xx_is_buffer_done(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q);
dma_q             823 drivers/media/usb/cx231xx/cx231xx.h u32 cx231xx_copy_video_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
dma_q             825 drivers/media/usb/cx231xx/cx231xx.h u32 cx231xx_get_video_line(struct cx231xx *dev, struct cx231xx_dmaqueue *dma_q,
dma_q            1011 drivers/media/usb/em28xx/em28xx-core.c 	struct em28xx_dmaqueue *dma_q = &dev->vidq;
dma_q            1050 drivers/media/usb/em28xx/em28xx-core.c 	init_waitqueue_head(&dma_q->wq);
dma_q             598 drivers/media/usb/em28xx/em28xx-video.c 						 struct em28xx_dmaqueue *dma_q)
dma_q             602 drivers/media/usb/em28xx/em28xx-video.c 	if (list_empty(&dma_q->active)) {
dma_q             608 drivers/media/usb/em28xx/em28xx-video.c 	buf = list_entry(dma_q->active.next, struct em28xx_buffer, list);
dma_q             623 drivers/media/usb/em28xx/em28xx-video.c 			  struct em28xx_dmaqueue *dma_q)
dma_q             630 drivers/media/usb/em28xx/em28xx-video.c 		buf = get_next_buf(dev, dma_q);
dma_q             650 drivers/media/usb/em28xx/em28xx-video.c 	struct em28xx_dmaqueue  *dma_q = &dev->vidq;
dma_q             716 drivers/media/usb/em28xx/em28xx-video.c 		buf = finish_field_prepare_next(dev, buf, dma_q);
dma_q              80 drivers/media/usb/tm6000/tm6000-video.c static inline void get_next_buf(struct tm6000_dmaqueue *dma_q,
dma_q              83 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq);
dma_q              85 drivers/media/usb/tm6000/tm6000-video.c 	if (list_empty(&dma_q->active)) {
dma_q              91 drivers/media/usb/tm6000/tm6000-video.c 	*buf = list_entry(dma_q->active.next,
dma_q              99 drivers/media/usb/tm6000/tm6000-video.c 				 struct tm6000_dmaqueue *dma_q,
dma_q             118 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_dmaqueue  *dma_q = urb->context;
dma_q             119 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq);
dma_q             130 drivers/media/usb/tm6000/tm6000-video.c 		get_next_buf(dma_q, &vbuf);
dma_q             196 drivers/media/usb/tm6000/tm6000-video.c 						buffer_filled(dev, dma_q, vbuf);
dma_q             199 drivers/media/usb/tm6000/tm6000-video.c 						get_next_buf(dma_q, &vbuf);
dma_q             286 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_dmaqueue  *dma_q = urb->context;
dma_q             287 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq);
dma_q             293 drivers/media/usb/tm6000/tm6000-video.c 	get_next_buf(dma_q, &buf);
dma_q             309 drivers/media/usb/tm6000/tm6000-video.c 			buffer_filled(dev, dma_q, buf);
dma_q             311 drivers/media/usb/tm6000/tm6000-video.c 			get_next_buf(dma_q, &buf);
dma_q             371 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_dmaqueue  *dma_q = urb->context;
dma_q             372 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq);
dma_q             417 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_dmaqueue  *dma_q = urb->context;
dma_q             418 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq);
dma_q             551 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_dmaqueue *dma_q = &dev->vidq;
dma_q             628 drivers/media/usb/tm6000/tm6000-video.c 				  tm6000_irq_callback, dma_q);
dma_q             644 drivers/media/usb/tm6000/tm6000-video.c 	struct tm6000_dmaqueue *dma_q = &dev->vidq;
dma_q             647 drivers/media/usb/tm6000/tm6000-video.c 	dma_q->frame = 0;
dma_q             648 drivers/media/usb/tm6000/tm6000-video.c 	dma_q->ini_jiffies = jiffies;
dma_q             650 drivers/media/usb/tm6000/tm6000-video.c 	init_waitqueue_head(&dma_q->wq);
dma_q             516 drivers/media/usb/zr364xx/zr364xx.c 	struct zr364xx_dmaqueue *dma_q = &cam->vidq;
dma_q             521 drivers/media/usb/zr364xx/zr364xx.c 	DBG("wakeup: %p\n", &dma_q);
dma_q             524 drivers/media/usb/zr364xx/zr364xx.c 	if (list_empty(&dma_q->active)) {
dma_q             529 drivers/media/usb/zr364xx/zr364xx.c 	buf = list_entry(dma_q->active.next,