Lines Matching refs:block
82 struct snd_gf1_dma_block *block; in snd_gf1_dma_next_block() local
86 block = gus->gf1.dma_data_pcm; in snd_gf1_dma_next_block()
87 if (gus->gf1.dma_data_pcm_last == block) { in snd_gf1_dma_next_block()
91 gus->gf1.dma_data_pcm = block->next; in snd_gf1_dma_next_block()
94 block = gus->gf1.dma_data_synth; in snd_gf1_dma_next_block()
95 if (gus->gf1.dma_data_synth_last == block) { in snd_gf1_dma_next_block()
99 gus->gf1.dma_data_synth = block->next; in snd_gf1_dma_next_block()
102 block = NULL; in snd_gf1_dma_next_block()
104 if (block) { in snd_gf1_dma_next_block()
105 gus->gf1.dma_ack = block->ack; in snd_gf1_dma_next_block()
106 gus->gf1.dma_private_data = block->private_data; in snd_gf1_dma_next_block()
108 return block; in snd_gf1_dma_next_block()
114 struct snd_gf1_dma_block *block; in snd_gf1_dma_interrupt() local
127 block = snd_gf1_dma_next_block(gus); in snd_gf1_dma_interrupt()
129 if (!block) in snd_gf1_dma_interrupt()
131 snd_gf1_dma_program(gus, block->addr, block->buf_addr, block->count, (unsigned short) block->cmd); in snd_gf1_dma_interrupt()
132 kfree(block); in snd_gf1_dma_interrupt()
136 block->addr, block->buf_addr, block->count, block->cmd); in snd_gf1_dma_interrupt()
159 struct snd_gf1_dma_block *block; in snd_gf1_dma_done() local
167 while ((block = gus->gf1.dma_data_pcm)) { in snd_gf1_dma_done()
168 gus->gf1.dma_data_pcm = block->next; in snd_gf1_dma_done()
169 kfree(block); in snd_gf1_dma_done()
171 while ((block = gus->gf1.dma_data_synth)) { in snd_gf1_dma_done()
172 gus->gf1.dma_data_synth = block->next; in snd_gf1_dma_done()
173 kfree(block); in snd_gf1_dma_done()
188 struct snd_gf1_dma_block *block; in snd_gf1_dma_transfer_block() local
190 block = kmalloc(sizeof(*block), atomic ? GFP_ATOMIC : GFP_KERNEL); in snd_gf1_dma_transfer_block()
191 if (!block) in snd_gf1_dma_transfer_block()
194 *block = *__block; in snd_gf1_dma_transfer_block()
195 block->next = NULL; in snd_gf1_dma_transfer_block()
198 block->addr, (long) block->buffer, block->count, in snd_gf1_dma_transfer_block()
199 block->cmd); in snd_gf1_dma_transfer_block()
209 gus->gf1.dma_data_synth_last->next = block; in snd_gf1_dma_transfer_block()
210 gus->gf1.dma_data_synth_last = block; in snd_gf1_dma_transfer_block()
213 gus->gf1.dma_data_synth_last = block; in snd_gf1_dma_transfer_block()
217 gus->gf1.dma_data_pcm_last->next = block; in snd_gf1_dma_transfer_block()
218 gus->gf1.dma_data_pcm_last = block; in snd_gf1_dma_transfer_block()
221 gus->gf1.dma_data_pcm_last = block; in snd_gf1_dma_transfer_block()
226 block = snd_gf1_dma_next_block(gus); in snd_gf1_dma_transfer_block()
228 if (block == NULL) in snd_gf1_dma_transfer_block()
230 snd_gf1_dma_program(gus, block->addr, block->buf_addr, block->count, (unsigned short) block->cmd); in snd_gf1_dma_transfer_block()
231 kfree(block); in snd_gf1_dma_transfer_block()