Lines Matching refs:pb
35 unsigned int ch, pb; in tw686x_audio_irq() local
43 pb = !!(pb_status & BIT(AUDIO_CHANNEL_OFFSET + ch)); in tw686x_audio_irq()
57 done = ac->curr_bufs[!pb]; in tw686x_audio_irq()
58 ac->curr_bufs[pb] = next; in tw686x_audio_irq()
68 desc = &ac->dma_descs[pb]; in tw686x_audio_irq()
73 u32 reg = pb ? ADMA_B_ADDR[ch] : ADMA_P_ADDR[ch]; in tw686x_audio_irq()
312 int pb; in tw686x_audio_dma_free() local
314 for (pb = 0; pb < 2; pb++) { in tw686x_audio_dma_free()
315 if (!ac->dma_descs[pb].virt) in tw686x_audio_dma_free()
317 pci_free_consistent(dev->pci_dev, ac->dma_descs[pb].size, in tw686x_audio_dma_free()
318 ac->dma_descs[pb].virt, in tw686x_audio_dma_free()
319 ac->dma_descs[pb].phys); in tw686x_audio_dma_free()
320 ac->dma_descs[pb].virt = NULL; in tw686x_audio_dma_free()
327 int pb; in tw686x_audio_dma_alloc() local
337 for (pb = 0; pb < 2; pb++) { in tw686x_audio_dma_alloc()
338 u32 reg = pb ? ADMA_B_ADDR[ac->ch] : ADMA_P_ADDR[ac->ch]; in tw686x_audio_dma_alloc()
342 &ac->dma_descs[pb].phys); in tw686x_audio_dma_alloc()
346 ac->ch, pb ? "B" : "P"); in tw686x_audio_dma_alloc()
349 ac->dma_descs[pb].virt = virt; in tw686x_audio_dma_alloc()
350 ac->dma_descs[pb].size = AUDIO_DMA_SIZE_MAX; in tw686x_audio_dma_alloc()
351 reg_write(dev, reg, ac->dma_descs[pb].phys); in tw686x_audio_dma_alloc()