Lines Matching defs:dmap_out
282 struct dma_buffparms *dmap_out = NULL;
287 adev->dmap_in = adev->dmap_out;
292 dmap_out = adev->dmap_out;
294 if (dmap_in == dmap_out)
298 if ((retval = open_dmap(adev, mode, dmap_out)) < 0) {
309 close_dmap(adev, dmap_out);
319 if (adev->dmap_out->dma_mode == DMODE_OUTPUT)
320 memset(adev->dmap_out->raw_buf, adev->dmap_out->neutral_byte,
321 adev->dmap_out->bytes_in_use);
338 struct dma_buffparms *dmap = adev->dmap_out;
347 adev->dmap_out->flags |= DMA_SYNCING;
349 adev->dmap_out->underrun_count = 0;
350 if (!signal_pending(current) && adev->dmap_out->qlen &&
351 adev->dmap_out->underrun_count == 0){
357 adev->dmap_out->flags &= ~(DMA_SYNCING | DMA_ACTIVE);
366 adev->dmap_out->flags &= ~DMA_STARTED;
374 reorganize_buffers(dev, adev->dmap_out, 0);
436 if (adev->dmap_out->dma_mode == DMODE_OUTPUT) {
437 dmap = adev->dmap_out;
441 adev->dmap_out->flags |= DMA_SYNCING;
442 adev->dmap_out->underrun_count = 0;
443 while (!signal_pending(current) && n++ < adev->dmap_out->nbufs &&
444 adev->dmap_out->qlen && adev->dmap_out->underrun_count == 0) {
450 adev->dmap_out->flags &= ~DMA_SYNCING;
452 return adev->dmap_out->qlen;
455 adev->dmap_out->flags &= ~(DMA_SYNCING | DMA_ACTIVE);
474 adev->dmap_out->dma_mode = DMODE_NONE;
475 return adev->dmap_out->qlen;
484 dmap = adev->dmap_out;
486 adev->dmap_out->closing = 1;
493 if (!(adev->dmap_out->mapping_flags & DMA_MAP_MAPPED))
494 if (!signal_pending(current) && (adev->dmap_out->dma_mode == DMODE_OUTPUT))
496 if (adev->dmap_out->dma_mode == DMODE_OUTPUT)
497 memset(adev->dmap_out->raw_buf, adev->dmap_out->neutral_byte, adev->dmap_out->bytes_in_use);
504 close_dmap(adev, adev->dmap_out);
713 struct dma_buffparms *dmap = adev->dmap_out;
750 struct dma_buffparms *dmap = adev->dmap_out;
784 struct dma_buffparms *dmap = adev->dmap_out;
830 struct dma_buffparms *dmap = adev->dmap_out;
862 struct dma_buffparms *dmap = adev->dmap_out;
917 struct dma_buffparms *dmap = (dma_mode == DMA_MODE_WRITE) ? adev->dmap_out : adev->dmap_in;
921 printk("Device %d, chn=%s\n", dev, (dmap == adev->dmap_out) ? "out" : "in");
933 struct dma_buffparms *dmap = (dma_mode == DMA_MODE_WRITE) ? adev->dmap_out : adev->dmap_in;
937 printk(KERN_ERR "Device %s, chn=%s\n", adev->name, (dmap == adev->dmap_out) ? "out" : "in");
962 struct dma_buffparms *dmap = adev->dmap_out;
1016 memset(adev->dmap_out->raw_buf, adev->dmap_out->neutral_byte,
1017 adev->dmap_out->buffsize);
1031 struct dma_buffparms *dmap = adev->dmap_out;
1169 if (adev && adev->dmap_out == NULL) {
1175 adev->dmap_out = audio_devs[parent]->dmap_out;
1178 adev->dmap_out = adev->dmap_in = &adev->dmaps[0];
1179 adev->dmap_out->dma = dma1;
1189 if (adev->dmap_out->raw_buf == NULL)
1190 sound_alloc_dmap(adev->dmap_out);
1228 struct dma_buffparms *dmap = adev->dmap_out;
1262 sound_free_dmap(adev->dmap_out);