/sound/core/oss/ |
D | mulaw.c | 183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode() 188 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in mulaw_decode() 189 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in mulaw_decode() 190 src_step = src_channels[channel].area.step / 8; in mulaw_decode() 191 dst_step = dst_channels[channel].area.step / 8; in mulaw_decode() 229 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_encode() 234 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in mulaw_encode() 235 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in mulaw_encode() 236 src_step = src_channels[channel].area.step / 8; in mulaw_encode() 237 dst_step = dst_channels[channel].area.step / 8; in mulaw_encode() [all …]
|
D | rate.c | 85 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_expand() 90 src = (signed short *)src_channels[channel].area.addr + in resample_expand() 91 src_channels[channel].area.first / 8 / 2; in resample_expand() 92 dst = (signed short *)dst_channels[channel].area.addr + in resample_expand() 93 dst_channels[channel].area.first / 8 / 2; in resample_expand() 94 src_step = src_channels[channel].area.step / 8 / 2; in resample_expand() 95 dst_step = dst_channels[channel].area.step / 8 / 2; in resample_expand() 144 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_shrink() 149 src = (signed short *)src_channels[channel].area.addr + in resample_shrink() 150 src_channels[channel].area.first / 8 / 2; in resample_shrink() [all …]
|
D | linear.c | 70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert() 75 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in convert() 76 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in convert() 77 src_step = src_channels[channel].area.step / 8; in convert() 78 dst_step = dst_channels[channel].area.step / 8; in convert() 104 if (snd_BUG_ON(src_channels[channel].area.first % 8 || in linear_transfer() 105 src_channels[channel].area.step % 8)) in linear_transfer() 107 if (snd_BUG_ON(dst_channels[channel].area.first % 8 || in linear_transfer() 108 dst_channels[channel].area.step % 8)) in linear_transfer()
|
D | copy.c | 41 if (snd_BUG_ON(src_channels->area.first % 8 || in copy_transfer() 42 src_channels->area.step % 8)) in copy_transfer() 44 if (snd_BUG_ON(dst_channels->area.first % 8 || in copy_transfer() 45 dst_channels->area.step % 8)) in copy_transfer() 49 snd_pcm_area_silence(&dst_channels->area, 0, frames, plugin->dst_format.format); in copy_transfer() 54 …snd_pcm_area_copy(&src_channels->area, 0, &dst_channels->area, 0, frames, plugin->src_format.forma… in copy_transfer()
|
D | io.c | 47 return pcm_write(plugin->plug, src_channels->area.addr, frames); in io_playback_transfer() 55 bufs[channel] = src_channels[channel].area.addr; in io_playback_transfer() 73 return pcm_read(plugin->plug, dst_channels->area.addr, frames); in io_capture_transfer() 81 bufs[channel] = dst_channels[channel].area.addr; in io_capture_transfer()
|
D | route.c | 34 snd_pcm_area_silence(&dvp->area, 0, frames, format); in zero_areas() 45 snd_pcm_area_copy(&src_channel->area, 0, &dst_channel->area, 0, frames, format); in copy_area()
|
D | pcm_plugin.c | 83 c->area.addr = plugin->buf; in snd_pcm_plugin_alloc() 84 c->area.first = channel * width; in snd_pcm_plugin_alloc() 85 c->area.step = format->channels * width; in snd_pcm_plugin_alloc() 95 c->area.addr = plugin->buf + (channel * size); in snd_pcm_plugin_alloc() 96 c->area.first = 0; in snd_pcm_plugin_alloc() 97 c->area.step = width; in snd_pcm_plugin_alloc() 573 v->area.addr = buf; in snd_pcm_plug_client_channels_buf() 574 v->area.first = channel * width; in snd_pcm_plug_client_channels_buf() 575 v->area.step = nchannels * width; in snd_pcm_plug_client_channels_buf()
|
/sound/core/ |
D | sgbuf.c | 41 if (dmab->area) in snd_free_sgbuf_pages() 42 vunmap(dmab->area); in snd_free_sgbuf_pages() 43 dmab->area = NULL; in snd_free_sgbuf_pages() 50 tmpb.area = sgbuf->table[i].buf; in snd_free_sgbuf_pages() 76 dmab->area = NULL; in snd_malloc_sgbuf_pages() 112 table->buf = tmpb.area; in snd_malloc_sgbuf_pages() 117 *pgtable++ = virt_to_page(tmpb.area); in snd_malloc_sgbuf_pages() 118 tmpb.area += PAGE_SIZE; in snd_malloc_sgbuf_pages() 128 dmab->area = vmap(sgbuf->page_table, sgbuf->pages, VM_MAP, PAGE_KERNEL); in snd_malloc_sgbuf_pages() 129 if (! dmab->area) in snd_malloc_sgbuf_pages() [all …]
|
D | pcm_native.c | 2986 static int snd_pcm_mmap_status_fault(struct vm_area_struct *area, in snd_pcm_mmap_status_fault() argument 2989 struct snd_pcm_substream *substream = area->vm_private_data; in snd_pcm_mmap_status_fault() 3006 struct vm_area_struct *area) in snd_pcm_mmap_status() argument 3010 if (!(area->vm_flags & VM_READ)) in snd_pcm_mmap_status() 3013 size = area->vm_end - area->vm_start; in snd_pcm_mmap_status() 3016 area->vm_ops = &snd_pcm_vm_ops_status; in snd_pcm_mmap_status() 3017 area->vm_private_data = substream; in snd_pcm_mmap_status() 3018 area->vm_flags |= VM_RESERVED; in snd_pcm_mmap_status() 3025 static int snd_pcm_mmap_control_fault(struct vm_area_struct *area, in snd_pcm_mmap_control_fault() argument 3028 struct snd_pcm_substream *substream = area->vm_private_data; in snd_pcm_mmap_control_fault() [all …]
|
D | memalloc.c | 195 dmab->area = snd_malloc_pages(size, (unsigned long)device); in snd_dma_alloc_pages() 200 dmab->area = snd_malloc_dev_pages(device, size, &dmab->addr); in snd_dma_alloc_pages() 208 dmab->area = NULL; in snd_dma_alloc_pages() 212 if (! dmab->area) in snd_dma_alloc_pages() 250 if (! dmab->area) in snd_dma_alloc_pages_fallback() 266 snd_free_pages(dmab->area, dmab->bytes); in snd_dma_free_pages() 270 snd_free_dev_pages(dmab->dev.dev, dmab->bytes, dmab->area, dmab->addr); in snd_dma_free_pages()
|
D | pcm_memory.c | 80 if (substream->dma_buffer.area == NULL) in snd_pcm_lib_preallocate_dma_free() 86 substream->dma_buffer.area = NULL; in snd_pcm_lib_preallocate_dma_free() 194 if (substream->dma_buffer.area) in snd_pcm_lib_preallocate_proc_write() 386 if (substream->dma_buffer.area != NULL && in snd_pcm_lib_malloc_pages()
|
/sound/usb/usx2y/ |
D | usX2Yhwdep.c | 36 static int snd_us428ctls_vm_fault(struct vm_area_struct *area, in snd_us428ctls_vm_fault() argument 44 area->vm_start, in snd_us428ctls_vm_fault() 48 vaddr = (char*)((struct usX2Ydev *)area->vm_private_data)->us428ctls_sharedmem + offset; in snd_us428ctls_vm_fault() 63 static int snd_us428ctls_mmap(struct snd_hwdep * hw, struct file *filp, struct vm_area_struct *area) in snd_us428ctls_mmap() argument 65 unsigned long size = (unsigned long)(area->vm_end - area->vm_start); in snd_us428ctls_mmap() 86 area->vm_ops = &us428ctls_vm_ops; in snd_us428ctls_mmap() 87 area->vm_flags |= VM_RESERVED | VM_DONTEXPAND; in snd_us428ctls_mmap() 88 area->vm_private_data = hw->private_data; in snd_us428ctls_mmap()
|
D | us122l.c | 106 static void usb_stream_hwdep_vm_open(struct vm_area_struct *area) in usb_stream_hwdep_vm_open() argument 108 struct us122l *us122l = area->vm_private_data; in usb_stream_hwdep_vm_open() 113 static int usb_stream_hwdep_vm_fault(struct vm_area_struct *area, in usb_stream_hwdep_vm_fault() argument 119 struct us122l *us122l = area->vm_private_data; in usb_stream_hwdep_vm_fault() 150 static void usb_stream_hwdep_vm_close(struct vm_area_struct *area) in usb_stream_hwdep_vm_close() argument 152 struct us122l *us122l = area->vm_private_data; in usb_stream_hwdep_vm_close() 197 struct file *filp, struct vm_area_struct *area) in usb_stream_hwdep_mmap() argument 199 unsigned long size = area->vm_end - area->vm_start; in usb_stream_hwdep_mmap() 206 offset = area->vm_pgoff << PAGE_SHIFT; in usb_stream_hwdep_mmap() 210 if (read && area->vm_flags & VM_WRITE) { in usb_stream_hwdep_mmap() [all …]
|
D | usx2yhwdeppcm.c | 676 static void snd_usX2Y_hwdep_pcm_vm_open(struct vm_area_struct *area) in snd_usX2Y_hwdep_pcm_vm_open() argument 681 static void snd_usX2Y_hwdep_pcm_vm_close(struct vm_area_struct *area) in snd_usX2Y_hwdep_pcm_vm_close() argument 686 static int snd_usX2Y_hwdep_pcm_vm_fault(struct vm_area_struct *area, in snd_usX2Y_hwdep_pcm_vm_fault() argument 693 vaddr = (char*)((struct usX2Ydev *)area->vm_private_data)->hwdep_pcm_shm + offset; in snd_usX2Y_hwdep_pcm_vm_fault() 707 …int snd_usX2Y_hwdep_pcm_mmap(struct snd_hwdep * hw, struct file *filp, struct vm_area_struct *area) in snd_usX2Y_hwdep_pcm_mmap() argument 709 unsigned long size = (unsigned long)(area->vm_end - area->vm_start); in snd_usX2Y_hwdep_pcm_mmap() 724 area->vm_ops = &snd_usX2Y_hwdep_pcm_vm_ops; in snd_usX2Y_hwdep_pcm_mmap() 725 area->vm_flags |= VM_RESERVED | VM_DONTEXPAND; in snd_usX2Y_hwdep_pcm_mmap() 726 area->vm_private_data = hw->private_data; in snd_usX2Y_hwdep_pcm_mmap()
|
/sound/soc/blackfin/ |
D | bf5xx-i2s-pcm.c | 207 buf->area = dma_alloc_coherent(pcm->card->dev, size, in bf5xx_pcm_preallocate_dma_buffer() 209 if (!buf->area) { in bf5xx_pcm_preallocate_dma_buffer() 217 buf->area, buf->bytes); in bf5xx_pcm_preallocate_dma_buffer() 220 sport_handle->tx_buf = buf->area; in bf5xx_pcm_preallocate_dma_buffer() 222 sport_handle->rx_buf = buf->area; in bf5xx_pcm_preallocate_dma_buffer() 239 if (!buf->area) in bf5xx_pcm_free_dma_buffers() 241 dma_free_coherent(NULL, buf->bytes, buf->area, 0); in bf5xx_pcm_free_dma_buffers() 242 buf->area = NULL; in bf5xx_pcm_free_dma_buffers()
|
D | bf5xx-ac97-pcm.c | 325 buf->area = dma_alloc_coherent(pcm->card->dev, size, in bf5xx_pcm_preallocate_dma_buffer() 327 if (!buf->area) { in bf5xx_pcm_preallocate_dma_buffer() 335 buf->area, buf->bytes); in bf5xx_pcm_preallocate_dma_buffer() 338 sport_handle->tx_buf = buf->area; in bf5xx_pcm_preallocate_dma_buffer() 340 sport_handle->rx_buf = buf->area; in bf5xx_pcm_preallocate_dma_buffer() 393 if (!buf->area) in bf5xx_pcm_free_dma_buffers() 395 dma_free_coherent(NULL, buf->bytes, buf->area, 0); in bf5xx_pcm_free_dma_buffers() 396 buf->area = NULL; in bf5xx_pcm_free_dma_buffers()
|
/sound/arm/ |
D | devdma.c | 29 dma_free_coherent(buf->dev.dev, buf->bytes, buf->area, buf->addr); in devdma_hw_free() 48 if (substream->dma_buffer.area != NULL && substream->dma_buffer.bytes >= size) { in devdma_hw_alloc() 57 buf->area = dma_alloc_coherent(dev, size, &buf->addr, GFP_KERNEL); in devdma_hw_alloc() 61 if (!buf->area) in devdma_hw_alloc()
|
D | pxa2xx-pcm-lib.c | 247 buf->area = dma_alloc_writecombine(pcm->card->dev, size, in pxa2xx_pcm_preallocate_dma_buffer() 249 if (!buf->area) in pxa2xx_pcm_preallocate_dma_buffer() 267 if (!buf->area) in pxa2xx_pcm_free_dma_buffers() 270 buf->area, buf->addr); in pxa2xx_pcm_free_dma_buffers() 271 buf->area = NULL; in pxa2xx_pcm_free_dma_buffers()
|
/sound/soc/davinci/ |
D | davinci-pcm.c | 310 buf->area = dma_alloc_writecombine(pcm->card->dev, size, in davinci_pcm_preallocate_dma_buffer() 314 "size=%d\n", (void *) buf->area, (void *) buf->addr, size); in davinci_pcm_preallocate_dma_buffer() 316 if (!buf->area) in davinci_pcm_preallocate_dma_buffer() 335 if (!buf->area) in davinci_pcm_free() 339 buf->area, buf->addr); in davinci_pcm_free() 340 buf->area = NULL; in davinci_pcm_free()
|
/sound/soc/omap/ |
D | omap-pcm.c | 292 buf->area = dma_alloc_writecombine(pcm->card->dev, size, in omap_pcm_preallocate_dma_buffer() 294 if (!buf->area) in omap_pcm_preallocate_dma_buffer() 313 if (!buf->area) in omap_pcm_free_dma_buffers() 317 buf->area, buf->addr); in omap_pcm_free_dma_buffers() 318 buf->area = NULL; in omap_pcm_free_dma_buffers()
|
/sound/soc/atmel/ |
D | atmel-pcm.c | 103 buf->area = dma_alloc_coherent(pcm->card->dev, size, in atmel_pcm_preallocate_dma_buffer() 107 (void *) buf->area, in atmel_pcm_preallocate_dma_buffer() 111 if (!buf->area) in atmel_pcm_preallocate_dma_buffer() 409 if (!buf->area) in atmel_pcm_free_dma_buffers() 412 buf->area, buf->addr); in atmel_pcm_free_dma_buffers() 413 buf->area = NULL; in atmel_pcm_free_dma_buffers()
|
/sound/soc/s3c24xx/ |
D | s3c24xx-pcm.c | 398 buf->area = dma_alloc_writecombine(pcm->card->dev, size, in s3c24xx_pcm_preallocate_dma_buffer() 400 if (!buf->area) in s3c24xx_pcm_preallocate_dma_buffer() 420 if (!buf->area) in s3c24xx_pcm_free_dma_buffers() 424 buf->area, buf->addr); in s3c24xx_pcm_free_dma_buffers() 425 buf->area = NULL; in s3c24xx_pcm_free_dma_buffers()
|
/sound/pci/trident/ |
D | trident_memory.c | 52 …age) __set_tlb_bus(trident, page, (unsigned long)trident->tlb.silent_page.area, trident->tlb.silen… 82 …__set_tlb_bus(trident, page, (unsigned long)trident->tlb.silent_page.area, trident->tlb.silent_pag… in set_silent_tlb() 83 …__set_tlb_bus(trident, page+1, (unsigned long)trident->tlb.silent_page.area, trident->tlb.silent_p… in set_silent_tlb() 118 …__set_tlb_bus(trident, page, (unsigned long)trident->tlb.silent_page.area, trident->tlb.silent_pag… in set_silent_tlb()
|
/sound/pci/cs5535audio/ |
D | cs5535audio_pcm.c | 132 if (dma->desc_buf.area == NULL) { in cs5535audio_build_dma_packets() 150 &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[i]; in cs5535audio_build_dma_packets() 158 lastdesc = &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[periods]; in cs5535audio_build_dma_packets() 242 dma->desc_buf.area = NULL; in cs5535audio_clear_dma_packets()
|
/sound/pci/mixart/ |
D | mixart.c | 287 flowinfo = (struct mixart_flowinfo *)chip->mgr->flowinfo.area; in snd_mixart_add_ref_pipe() 291 bufferinfo = (struct mixart_bufferinfo *)chip->mgr->bufferinfo.area; in snd_mixart_add_ref_pipe() 624 bufferinfo = (struct mixart_bufferinfo *)chip->mgr->bufferinfo.area; in snd_mixart_hw_params() 1086 if(mgr->flowinfo.area) { in snd_mixart_free() 1088 mgr->flowinfo.area = NULL; in snd_mixart_free() 1091 if(mgr->bufferinfo.area) { in snd_mixart_free() 1093 mgr->bufferinfo.area = NULL; in snd_mixart_free() 1410 memset(mgr->flowinfo.area, 0, size); in snd_mixart_probe() 1421 memset(mgr->bufferinfo.area, 0, size); in snd_mixart_probe()
|