• Home
  • Raw
  • Download

Lines Matching refs:dmap_out

284 	struct dma_buffparms *dmap_out = NULL;  in DMAbuf_open()  local
289 adev->dmap_in = adev->dmap_out; in DMAbuf_open()
294 dmap_out = adev->dmap_out; in DMAbuf_open()
296 if (dmap_in == dmap_out) in DMAbuf_open()
300 if ((retval = open_dmap(adev, mode, dmap_out)) < 0) { in DMAbuf_open()
311 close_dmap(adev, dmap_out); in DMAbuf_open()
321 if (adev->dmap_out->dma_mode == DMODE_OUTPUT) in DMAbuf_open()
322 memset(adev->dmap_out->raw_buf, adev->dmap_out->neutral_byte, in DMAbuf_open()
323 adev->dmap_out->bytes_in_use); in DMAbuf_open()
340 struct dma_buffparms *dmap = adev->dmap_out; in dma_reset_output()
349 adev->dmap_out->flags |= DMA_SYNCING; in dma_reset_output()
351 adev->dmap_out->underrun_count = 0; in dma_reset_output()
352 if (!signal_pending(current) && adev->dmap_out->qlen && in dma_reset_output()
353 adev->dmap_out->underrun_count == 0){ in dma_reset_output()
358 adev->dmap_out->flags &= ~(DMA_SYNCING | DMA_ACTIVE); in dma_reset_output()
367 adev->dmap_out->flags &= ~DMA_STARTED; in dma_reset_output()
375 reorganize_buffers(dev, adev->dmap_out, 0); in dma_reset_output()
437 if (adev->dmap_out->dma_mode == DMODE_OUTPUT) { in DMAbuf_sync()
438 dmap = adev->dmap_out; in DMAbuf_sync()
442 adev->dmap_out->flags |= DMA_SYNCING; in DMAbuf_sync()
443 adev->dmap_out->underrun_count = 0; in DMAbuf_sync()
444 while (!signal_pending(current) && n++ < adev->dmap_out->nbufs && in DMAbuf_sync()
445 adev->dmap_out->qlen && adev->dmap_out->underrun_count == 0) { in DMAbuf_sync()
452 adev->dmap_out->flags &= ~DMA_SYNCING; in DMAbuf_sync()
454 return adev->dmap_out->qlen; in DMAbuf_sync()
457 adev->dmap_out->flags &= ~(DMA_SYNCING | DMA_ACTIVE); in DMAbuf_sync()
476 adev->dmap_out->dma_mode = DMODE_NONE; in DMAbuf_sync()
477 return adev->dmap_out->qlen; in DMAbuf_sync()
486 dmap = adev->dmap_out; in DMAbuf_release()
488 adev->dmap_out->closing = 1; in DMAbuf_release()
495 if (!(adev->dmap_out->mapping_flags & DMA_MAP_MAPPED)) in DMAbuf_release()
496 if (!signal_pending(current) && (adev->dmap_out->dma_mode == DMODE_OUTPUT)) in DMAbuf_release()
498 if (adev->dmap_out->dma_mode == DMODE_OUTPUT) in DMAbuf_release()
499 memset(adev->dmap_out->raw_buf, adev->dmap_out->neutral_byte, adev->dmap_out->bytes_in_use); in DMAbuf_release()
506 close_dmap(adev, adev->dmap_out); in DMAbuf_release()
714 struct dma_buffparms *dmap = adev->dmap_out; in DMAbuf_space_in_queue()
751 struct dma_buffparms *dmap = adev->dmap_out; in output_sleep()
784 struct dma_buffparms *dmap = adev->dmap_out; in find_output_space()
830 struct dma_buffparms *dmap = adev->dmap_out; in DMAbuf_getwrbuffer()
862 struct dma_buffparms *dmap = adev->dmap_out; in DMAbuf_move_wrpointer()
917 struct dma_buffparms *dmap = (dma_mode == DMA_MODE_WRITE) ? adev->dmap_out : adev->dmap_in; in DMAbuf_start_dma()
921 printk("Device %d, chn=%s\n", dev, (dmap == adev->dmap_out) ? "out" : "in"); in DMAbuf_start_dma()
933 struct dma_buffparms *dmap = (dma_mode == DMA_MODE_WRITE) ? adev->dmap_out : adev->dmap_in; in local_start_dma()
937 printk(KERN_ERR "Device %s, chn=%s\n", adev->name, (dmap == adev->dmap_out) ? "out" : "in"); in local_start_dma()
962 struct dma_buffparms *dmap = adev->dmap_out; in do_outputintr()
1016 memset(adev->dmap_out->raw_buf, adev->dmap_out->neutral_byte, in do_outputintr()
1017 adev->dmap_out->buffsize); in do_outputintr()
1031 struct dma_buffparms *dmap = adev->dmap_out; in DMAbuf_outputintr()
1169 if (adev && adev->dmap_out == NULL) { in DMAbuf_init()
1175 adev->dmap_out = audio_devs[parent]->dmap_out; in DMAbuf_init()
1178 adev->dmap_out = adev->dmap_in = &adev->dmaps[0]; in DMAbuf_init()
1179 adev->dmap_out->dma = dma1; in DMAbuf_init()
1189 if (adev->dmap_out->raw_buf == NULL) in DMAbuf_init()
1190 sound_alloc_dmap(adev->dmap_out); in DMAbuf_init()
1228 struct dma_buffparms *dmap = adev->dmap_out; in poll_output()
1262 sound_free_dmap(adev->dmap_out); in DMAbuf_deinit()