Searched refs:dmab (Results 1 - 7 of 7) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/core/
H A Dmemalloc.c174 * @dmab: buffer allocation record to store the allocated data
183 struct snd_dma_buffer *dmab)
187 if (WARN_ON(!dmab))
190 dmab->dev.type = type;
191 dmab->dev.dev = device;
192 dmab->bytes = 0;
195 dmab->area = snd_malloc_pages(size, (unsigned long)device);
196 dmab->addr = 0;
200 dmab->area = snd_malloc_dev_pages(device, size, &dmab
182 snd_dma_alloc_pages(int type, struct device *device, size_t size, struct snd_dma_buffer *dmab) argument
235 snd_dma_alloc_pages_fallback(int type, struct device *device, size_t size, struct snd_dma_buffer *dmab) argument
264 snd_dma_free_pages(struct snd_dma_buffer *dmab) argument
296 snd_dma_get_reserved_buf(struct snd_dma_buffer *dmab, unsigned int id) argument
331 snd_dma_reserve_buf(struct snd_dma_buffer *dmab, unsigned int id) argument
459 struct snd_dma_buffer dmab; local
473 struct snd_dma_buffer dmab; local
[all...]
H A Dsgbuf.c32 int snd_free_sgbuf_pages(struct snd_dma_buffer *dmab) argument
34 struct snd_sg_buf *sgbuf = dmab->private_data;
41 if (dmab->area)
42 vunmap(dmab->area);
43 dmab->area = NULL;
59 dmab->private_data = NULL;
67 size_t size, struct snd_dma_buffer *dmab,
76 dmab->area = NULL;
77 dmab->addr = 0;
78 dmab
66 snd_malloc_sgbuf_pages(struct device *device, size_t size, struct snd_dma_buffer *dmab, size_t *res_size) argument
[all...]
H A Dpcm_memory.c52 struct snd_dma_buffer *dmab = &substream->dma_buffer; local
56 if (snd_dma_get_reserved_buf(dmab, substream->dma_buf_id) > 0) {
57 if (dmab->bytes >= size)
60 snd_dma_free_pages(dmab);
61 dmab->bytes = 0;
65 if ((err = snd_dma_alloc_pages(dmab->dev.type, dmab->dev.dev,
66 size, dmab)) < 0) {
73 dmab->bytes = 0; /* tell error */
371 struct snd_dma_buffer *dmab local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/sound/
H A Dmemalloc.h72 size_t size, struct snd_dma_buffer *dmab,
74 int snd_free_sgbuf_pages(struct snd_dma_buffer *dmab);
119 struct snd_dma_buffer *dmab);
121 struct snd_dma_buffer *dmab);
122 void snd_dma_free_pages(struct snd_dma_buffer *dmab);
128 size_t snd_dma_get_reserved_buf(struct snd_dma_buffer *dmab, unsigned int id);
129 int snd_dma_reserve_buf(struct snd_dma_buffer *dmab, unsigned int id);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/lpfc/
H A Dlpfc_mem.c474 * @dmab: DMA Buffer container returned by lpfc_sli4_hbq_alloc
484 lpfc_sli4_rb_free(struct lpfc_hba *phba, struct hbq_dmabuf *dmab) argument
486 pci_pool_free(phba->lpfc_hrb_pool, dmab->hbuf.virt, dmab->hbuf.phys);
487 pci_pool_free(phba->lpfc_drb_pool, dmab->dbuf.virt, dmab->dbuf.phys);
488 kfree(dmab);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/rme9652/
H A Drme9652.c293 static int snd_hammerfall_get_buffer(struct pci_dev *pci, struct snd_dma_buffer *dmab, size_t size) argument
295 dmab->dev.type = SNDRV_DMA_TYPE_DEV;
296 dmab->dev.dev = snd_dma_pci_data(pci);
297 if (snd_dma_get_reserved_buf(dmab, snd_dma_pci_buf_id(pci))) {
298 if (dmab->bytes >= size)
302 size, dmab) < 0)
307 static void snd_hammerfall_free_buffer(struct snd_dma_buffer *dmab, struct pci_dev *pci) argument
309 if (dmab->area) {
310 dmab->dev.dev = NULL; /* make it anonymous */
311 snd_dma_reserve_buf(dmab, snd_dma_pci_buf_i
[all...]
H A Dhdsp.c563 static int snd_hammerfall_get_buffer(struct pci_dev *pci, struct snd_dma_buffer *dmab, size_t size) argument
565 dmab->dev.type = SNDRV_DMA_TYPE_DEV;
566 dmab->dev.dev = snd_dma_pci_data(pci);
567 if (snd_dma_get_reserved_buf(dmab, snd_dma_pci_buf_id(pci))) {
568 if (dmab->bytes >= size)
572 size, dmab) < 0)
577 static void snd_hammerfall_free_buffer(struct snd_dma_buffer *dmab, struct pci_dev *pci) argument
579 if (dmab->area) {
580 dmab->dev.dev = NULL; /* make it anonymous */
581 snd_dma_reserve_buf(dmab, snd_dma_pci_buf_i
[all...]

Completed in 77 milliseconds