Home
last modified time | relevance | path

Searched refs:area (Results 1 – 25 of 77) sorted by relevance

1234

/sound/core/oss/
Dmulaw.c183 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 …]
Drate.c85 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 …]
Dlinear.c70 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()
101 if (snd_BUG_ON(src_channels[channel].area.first % 8 || in linear_transfer()
102 src_channels[channel].area.step % 8)) in linear_transfer()
104 if (snd_BUG_ON(dst_channels[channel].area.first % 8 || in linear_transfer()
105 dst_channels[channel].area.step % 8)) in linear_transfer()
Dcopy.c41 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()
Dio.c47 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()
Droute.c33 snd_pcm_area_silence(&dvp->area, 0, frames, format); in zero_areas()
44 snd_pcm_area_copy(&src_channel->area, 0, &dst_channel->area, 0, frames, format); in copy_area()
Dpcm_plugin.c83 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()
588 v->area.addr = buf; in snd_pcm_plug_client_channels_buf()
589 v->area.first = channel * width; in snd_pcm_plug_client_channels_buf()
590 v->area.step = nchannels * width; in snd_pcm_plug_client_channels_buf()
/sound/core/
Dmemalloc.c125 dmab->area = NULL; in snd_malloc_dev_iram()
137 dmab->area = gen_pool_dma_alloc(pool, size, &dmab->addr); in snd_malloc_dev_iram()
148 if (pool && dmab->area) in snd_free_dev_iram()
149 gen_pool_free(pool, (unsigned long)dmab->area, dmab->bytes); in snd_free_dev_iram()
187 dmab->area = snd_malloc_pages(size, in snd_dma_alloc_pages()
195 if (dmab->area) in snd_dma_alloc_pages()
203 dmab->area = snd_malloc_dev_pages(device, size, &dmab->addr); in snd_dma_alloc_pages()
213 dmab->area = NULL; in snd_dma_alloc_pages()
217 if (! dmab->area) in snd_dma_alloc_pages()
252 if (! dmab->area) in snd_dma_alloc_pages_fallback()
[all …]
Dsgbuf.c42 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()
133 return dmab->area; in snd_malloc_sgbuf_pages()
Dpcm_native.c3274 struct vm_area_struct *area) in snd_pcm_mmap_status() argument
3277 if (!(area->vm_flags & VM_READ)) in snd_pcm_mmap_status()
3279 size = area->vm_end - area->vm_start; in snd_pcm_mmap_status()
3282 area->vm_ops = &snd_pcm_vm_ops_status; in snd_pcm_mmap_status()
3283 area->vm_private_data = substream; in snd_pcm_mmap_status()
3284 area->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP; in snd_pcm_mmap_status()
3310 struct vm_area_struct *area) in snd_pcm_mmap_control() argument
3313 if (!(area->vm_flags & VM_READ)) in snd_pcm_mmap_control()
3315 size = area->vm_end - area->vm_start; in snd_pcm_mmap_control()
3318 area->vm_ops = &snd_pcm_vm_ops_control; in snd_pcm_mmap_control()
[all …]
Dpcm_memory.c79 if (substream->dma_buffer.area == NULL) in snd_pcm_lib_preallocate_dma_free()
82 substream->dma_buffer.area = NULL; in snd_pcm_lib_preallocate_dma_free()
189 if (substream->dma_buffer.area) in snd_pcm_lib_preallocate_proc_write()
350 if (substream->dma_buffer.area != NULL && in snd_pcm_lib_malloc_pages()
/sound/arm/
Dpxa2xx-pcm-lib.c157 buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); in pxa2xx_pcm_preallocate_dma_buffer()
158 if (!buf->area) in pxa2xx_pcm_preallocate_dma_buffer()
176 if (!buf->area) in pxa2xx_pcm_free_dma_buffers()
178 dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr); in pxa2xx_pcm_free_dma_buffers()
179 buf->area = NULL; in pxa2xx_pcm_free_dma_buffers()
/sound/usb/usx2y/
DusX2Yhwdep.c60 static int snd_us428ctls_mmap(struct snd_hwdep * hw, struct file *filp, struct vm_area_struct *area) in snd_us428ctls_mmap() argument
62 unsigned long size = (unsigned long)(area->vm_end - area->vm_start); in snd_us428ctls_mmap()
83 area->vm_ops = &us428ctls_vm_ops; in snd_us428ctls_mmap()
84 area->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP; in snd_us428ctls_mmap()
85 area->vm_private_data = hw->private_data; in snd_us428ctls_mmap()
Dus122l.c135 static void usb_stream_hwdep_vm_open(struct vm_area_struct *area) in usb_stream_hwdep_vm_open() argument
137 struct us122l *us122l = area->vm_private_data; in usb_stream_hwdep_vm_open()
178 static void usb_stream_hwdep_vm_close(struct vm_area_struct *area) in usb_stream_hwdep_vm_close() argument
180 struct us122l *us122l = area->vm_private_data; in usb_stream_hwdep_vm_close()
236 struct file *filp, struct vm_area_struct *area) in usb_stream_hwdep_mmap() argument
238 unsigned long size = area->vm_end - area->vm_start; in usb_stream_hwdep_mmap()
245 offset = area->vm_pgoff << PAGE_SHIFT; in usb_stream_hwdep_mmap()
249 if (read && area->vm_flags & VM_WRITE) { in usb_stream_hwdep_mmap()
263 area->vm_ops = &usb_stream_hwdep_vm_ops; in usb_stream_hwdep_mmap()
264 area->vm_flags |= VM_DONTDUMP; in usb_stream_hwdep_mmap()
[all …]
Dusx2yhwdeppcm.c645 static void snd_usX2Y_hwdep_pcm_vm_open(struct vm_area_struct *area) in snd_usX2Y_hwdep_pcm_vm_open() argument
650 static void snd_usX2Y_hwdep_pcm_vm_close(struct vm_area_struct *area) in snd_usX2Y_hwdep_pcm_vm_close() argument
675 …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
677 unsigned long size = (unsigned long)(area->vm_end - area->vm_start); in snd_usX2Y_hwdep_pcm_mmap()
692 area->vm_ops = &snd_usX2Y_hwdep_pcm_vm_ops; in snd_usX2Y_hwdep_pcm_mmap()
693 area->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP; in snd_usX2Y_hwdep_pcm_mmap()
694 area->vm_private_data = hw->private_data; in snd_usX2Y_hwdep_pcm_mmap()
/sound/soc/omap/
Domap-pcm.c186 buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); in omap_pcm_preallocate_dma_buffer()
187 if (!buf->area) in omap_pcm_preallocate_dma_buffer()
206 if (!buf->area) in omap_pcm_free_dma_buffers()
209 dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr); in omap_pcm_free_dma_buffers()
210 buf->area = NULL; in omap_pcm_free_dma_buffers()
/sound/soc/fsl/
Dimx-pcm-fiq.c250 buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); in imx_pcm_preallocate_dma_buffer()
251 if (!buf->area) in imx_pcm_preallocate_dma_buffer()
301 imx_ssi_fiq_tx_buffer = (unsigned long)buf->area; in imx_pcm_fiq_new()
308 imx_ssi_fiq_rx_buffer = (unsigned long)buf->area; in imx_pcm_fiq_new()
329 if (!buf->area) in imx_pcm_free()
332 dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr); in imx_pcm_free()
333 buf->area = NULL; in imx_pcm_free()
/sound/soc/pxa/
Dmmp-pcm.c163 if (!buf->area) in mmp_pcm_free_dma_buffers()
165 gen_pool_free(gpool, (unsigned long)buf->area, size); in mmp_pcm_free_dma_buffers()
166 buf->area = NULL; in mmp_pcm_free_dma_buffers()
186 buf->area = gen_pool_dma_alloc(gpool, size, &buf->addr); in mmp_pcm_preallocate_dma_buffer()
187 if (!buf->area) in mmp_pcm_preallocate_dma_buffer()
/sound/soc/blackfin/
Dbf5xx-ac97-pcm.c340 buf->area = dma_alloc_coherent(pcm->card->dev, size, in bf5xx_pcm_preallocate_dma_buffer()
342 if (!buf->area) { in bf5xx_pcm_preallocate_dma_buffer()
350 buf->area, buf->bytes); in bf5xx_pcm_preallocate_dma_buffer()
353 sport_handle->tx_buf = buf->area; in bf5xx_pcm_preallocate_dma_buffer()
355 sport_handle->rx_buf = buf->area; in bf5xx_pcm_preallocate_dma_buffer()
407 if (!buf->area) in bf5xx_pcm_free_dma_buffers()
409 dma_free_coherent(NULL, buf->bytes, buf->area, 0); in bf5xx_pcm_free_dma_buffers()
410 buf->area = NULL; in bf5xx_pcm_free_dma_buffers()
/sound/hda/
Dhdac_controller.c43 WARN_ON_ONCE(!bus->rb.area); in snd_hdac_bus_init_cmd_io()
48 bus->corb.buf = (__le32 *)bus->rb.area; in snd_hdac_bus_init_cmd_io()
67 bus->rirb.buf = (__le32 *)(bus->rb.area + 2048); in snd_hdac_bus_init_cmd_io()
592 s->posbuf = (__le32 *)(bus->posbuf.area + s->index * 8); in snd_hdac_bus_alloc_stream_pages()
609 if (s->bdl.area) in snd_hdac_bus_free_stream_pages()
613 if (bus->rb.area) in snd_hdac_bus_free_stream_pages()
615 if (bus->posbuf.area) in snd_hdac_bus_free_stream_pages()
/sound/soc/kirkwood/
Dkirkwood-dma.c264 buf->area = dma_alloc_coherent(pcm->card->dev, size, in kirkwood_dma_preallocate_dma_buffer()
266 if (!buf->area) in kirkwood_dma_preallocate_dma_buffer()
312 if (!buf->area) in kirkwood_dma_free_dma_buffers()
316 buf->area, buf->addr); in kirkwood_dma_free_dma_buffers()
317 buf->area = NULL; in kirkwood_dma_free_dma_buffers()
/sound/soc/atmel/
Datmel-pcm-pdc.c60 buf->area = dma_alloc_coherent(pcm->card->dev, size, in atmel_pcm_preallocate_dma_buffer()
63 (void *)buf->area, (void *)(long)buf->addr, size); in atmel_pcm_preallocate_dma_buffer()
65 if (!buf->area) in atmel_pcm_preallocate_dma_buffer()
121 if (!buf->area) in atmel_pcm_free()
124 buf->area, buf->addr); in atmel_pcm_free()
125 buf->area = NULL; in atmel_pcm_free()
/sound/soc/bcm/
Dcygnus-pcm.c740 buf->area = dma_alloc_coherent(pcm->card->dev, size, in cygnus_pcm_preallocate_dma_buffer()
744 __func__, size, buf->area); in cygnus_pcm_preallocate_dma_buffer()
746 if (!buf->area) { in cygnus_pcm_preallocate_dma_buffer()
775 if (buf->area) { in cygnus_dma_free_dma_buffers()
777 buf->area, buf->addr); in cygnus_dma_free_dma_buffers()
778 buf->area = NULL; in cygnus_dma_free_dma_buffers()
785 if (buf->area) { in cygnus_dma_free_dma_buffers()
787 buf->area, buf->addr); in cygnus_dma_free_dma_buffers()
788 buf->area = NULL; in cygnus_dma_free_dma_buffers()
/sound/pci/trident/
Dtrident_memory.c52 …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/soc/intel/skylake/
Dskl-sst-cldma.c92 phys_addr_t addr = virt_to_phys(dmab_data->area + in skl_cldma_setup_bdle()
211 memcpy(ctx->cl_dev.dmab_data.area + ctx->cl_dev.dma_buffer_offset, in skl_cldma_fill_buffer()
218 memcpy(ctx->cl_dev.dmab_data.area + ctx->cl_dev.dma_buffer_offset, in skl_cldma_fill_buffer()
362 bdl = (u32 *)ctx->cl_dev.dmab_bdl.area; in skl_cldma_prepare()

1234