Lines Matching refs:dmab
293 static int snd_hammerfall_get_buffer(struct pci_dev *pci, struct snd_dma_buffer *dmab, size_t size)
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)
309 if (dmab->area) {
310 dmab->dev.dev = NULL; /* make it anonymous */
311 snd_dma_reserve_buf(dmab, snd_dma_pci_buf_id(pci));