Lines Matching defs:dmap_out
139 struct dma_buffparms *dmap = audio_devs[dev]->dmap_out;
192 audio_devs[dev]->dmap_out->closing = 1;
196 * We need to make sure we allocated the dmap_out buffer
269 (audio_devs[dev]->dmap_out->raw_buf + audio_devs[dev]->dmap_out->buffsize))
271 printk(KERN_ERR "audio: Buffer error 3 (%lx,%d), (%lx, %d)\n", (long) dma_buf, l, (long) audio_devs[dev]->dmap_out->raw_buf, (int) audio_devs[dev]->dmap_out->buffsize);
274 if (dma_buf < audio_devs[dev]->dmap_out->raw_buf)
276 printk(KERN_ERR "audio: Buffer error 13 (%lx<%lx)\n", (long) dma_buf, (long) audio_devs[dev]->dmap_out->raw_buf);
389 if (audio_devs[dev]->dmap_out->fragment_size == 0)
399 if (audio_devs[dev]->dmap_out->fragment_size == 0)
401 audio_devs[dev]->dmap_out->flags |= DMA_POST | DMA_DIRTY;
495 audio_devs[dev]->dmap_out->applic_profile = val;
501 dmap = audio_devs[dev]->dmap_out;
742 struct dma_buffparms *dmap_out = audio_devs[dev]->dmap_out;
757 ret = dma_subdivide(dev, dmap_out, fact);
770 dmap = dmap_out;
852 spin_lock_irqsave(&dmap_out->lock,flags);
855 (dmap_out->mapping_flags & DMA_MAP_MAPPED || dmap_out->qlen > 0) &&
858 if (!(dmap_out->flags & DMA_ALLOC_DONE))
859 reorganize_buffers(dev, dmap_out, 0);
860 dmap_out->dma_mode = DMODE_OUTPUT;
862 dmap_out->counts[dmap_out->qhead] = dmap_out->fragment_size;
863 DMAbuf_launch_output(dev, dmap_out);
866 spin_unlock_irqrestore(&dmap_out->lock,flags);
902 spin_lock_irqsave(&dmap_out->lock,flags);
903 cinfo.bytes = dmap_out->byte_counter;
904 cinfo.ptr = DMAbuf_get_buffer_pointer(dev, dmap_out, DMODE_OUTPUT) & ~3;
905 if (cinfo.ptr < dmap_out->fragment_size && dmap_out->qhead != 0)
906 cinfo.bytes += dmap_out->bytes_in_use; /* Pointer wrap not handled yet */
907 cinfo.blocks = dmap_out->qlen;
909 if (dmap_out->mapping_flags & DMA_MAP_MAPPED)
910 dmap_out->qlen = 0; /* Reset interrupt counter */
911 spin_unlock_irqrestore(&dmap_out->lock,flags);
919 if (!(dmap_out->flags & DMA_ALLOC_DONE))
924 spin_lock_irqsave(&dmap_out->lock,flags);
926 count = DMAbuf_get_buffer_pointer (dev, dmap_out, DMODE_OUTPUT);
927 if (count < dmap_out->fragment_size && dmap_out->qhead != 0)
928 count += dmap_out->bytes_in_use; /* Pointer wrap not handled yet */
929 count += dmap_out->byte_counter;
931 count = dmap_out->user_counter - count;
934 spin_unlock_irqrestore(&dmap_out->lock,flags);
939 if (audio_devs[dev]->dmap_out->qlen > 0)
940 if (!(audio_devs[dev]->dmap_out->flags & DMA_ACTIVE))
941 DMAbuf_launch_output(dev, audio_devs[dev]->dmap_out);
945 dmap = dmap_out;
947 reorganize_buffers(dev, dmap_out, (audio_devs[dev]->open_mode == OPEN_READ));
962 ret = dma_set_fragment(dev, dmap_out, fact);