Lines Matching defs:dmap_in
193 audio_devs[dev]->dmap_in->closing = 1;
497 audio_devs[dev]->dmap_in->applic_profile = val;
743 struct dma_buffparms *dmap_in = audio_devs[dev]->dmap_in;
763 ret = dma_subdivide(dev, dmap_in, fact);
776 dmap = dmap_in;
833 spin_lock_irqsave(&dmap_in->lock,flags);
837 reorganize_buffers(dev, dmap_in, 1);
839 dmap_in->fragment_size, dmap_in->nbufs)) < 0) {
840 spin_unlock_irqrestore(&dmap_in->lock,flags);
843 dmap_in->dma_mode = DMODE_INPUT;
845 DMAbuf_activate_recording(dev, dmap_in);
848 spin_unlock_irqrestore(&dmap_in->lock,flags);
884 spin_lock_irqsave(&dmap_in->lock,flags);
885 cinfo.bytes = dmap_in->byte_counter;
886 cinfo.ptr = DMAbuf_get_buffer_pointer(dev, dmap_in, DMODE_INPUT) & ~3;
887 if (cinfo.ptr < dmap_in->fragment_size && dmap_in->qtail != 0)
888 cinfo.bytes += dmap_in->bytes_in_use; /* Pointer wrap not handled yet */
889 cinfo.blocks = dmap_in->qlen;
891 if (dmap_in->mapping_flags & DMA_MAP_MAPPED)
892 dmap_in->qlen = 0; /* Reset interrupt counter */
893 spin_unlock_irqrestore(&dmap_in->lock,flags);
951 reorganize_buffers(dev, dmap_in, (audio_devs[dev]->open_mode == OPEN_READ));
953 dmap = dmap_in;
968 ret = dma_set_fragment(dev, dmap_in, fact);