Lines Matching defs:dma
88 #include <linux/dma-mapping.h>
495 struct snd_dma_buffer dma;
1007 pa -= chip->dma.addr;
1020 /* base offset of dma calcs when reading the pointer
1041 /* dma on, no envelopes, filter to all 1s) */
1100 pa -= chip->dma.addr;
1103 /* base offset of dma calcs when reading the pointer
1129 /* dma on, no envelopes, filter to all 1s) */
1405 if (! chip->dma.area)
1407 snd_dma_free_pages(&chip->dma);
1423 chip->total_bufsize, &chip->dma);
1424 if (err < 0 || ! chip->dma.area) {
1426 "can't allocate dma pages for size %d\n",
1430 if ((chip->dma.addr + chip->dma.bytes - 1) & ~((1 << 28) - 1)) {
1431 snd_dma_free_pages(&chip->dma);
1443 memset(chip->dma.area, 0, ESM_MEM_ALIGN);
1444 chunk->buf = chip->dma;
1474 "cannot allocate dma buffer: size = %d\n", size);
1481 /* remove dma areas if allocated */
1707 "cannot allocate dma buffer - using default clock %d\n",
1717 pa = (unsigned int)((memory->buf.addr - chip->dma.addr) >> 1);
1802 wave_set_register(chip, 0x01FC, chip->dma.addr >> 12);
1803 wave_set_register(chip, 0x01FD, chip->dma.addr >> 12);
1804 wave_set_register(chip, 0x01FE, chip->dma.addr >> 12);
1805 wave_set_register(chip, 0x01FF, chip->dma.addr >> 12);
2391 if (chip->dma.addr) {
2393 wave_set_register(chip, 0x01FC, chip->dma.addr >> 12);