Lines Matching refs:dma
88 #include <linux/dma-mapping.h>
499 struct snd_dma_buffer dma;
1011 pa -= chip->dma.addr;
1024 /* base offset of dma calcs when reading the pointer
1045 /* dma on, no envelopes, filter to all 1s) */
1104 pa -= chip->dma.addr;
1107 /* base offset of dma calcs when reading the pointer
1133 /* dma on, no envelopes, filter to all 1s) */
1409 if (! chip->dma.area)
1411 snd_dma_free_pages(&chip->dma);
1427 chip->total_bufsize, &chip->dma);
1428 if (err < 0 || ! chip->dma.area) {
1430 "can't allocate dma pages for size %d\n",
1434 if ((chip->dma.addr + chip->dma.bytes - 1) & ~((1 << 28) - 1)) {
1435 snd_dma_free_pages(&chip->dma);
1447 memset(chip->dma.area, 0, ESM_MEM_ALIGN);
1448 chunk->buf = chip->dma;
1478 "cannot allocate dma buffer: size = %d\n", size);
1485 /* remove dma areas if allocated */
1708 "cannot allocate dma buffer - using default clock %d\n",
1718 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);
2394 if (chip->dma.addr) {
2396 wave_set_register(chip, 0x01FC, chip->dma.addr >> 12);