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