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