Lines Matching refs:buffer_index
2862 unsigned int buffer_index; in prev_ao_dma_index() local
2865 buffer_index = AO_DMA_RING_COUNT - 1; in prev_ao_dma_index()
2867 buffer_index = devpriv->ao_dma_index - 1; in prev_ao_dma_index()
2868 return buffer_index; in prev_ao_dma_index()
2874 unsigned int buffer_index; in last_ao_dma_load_completed() local
2878 buffer_index = prev_ao_dma_index(dev); in last_ao_dma_load_completed()
2885 if (transfer_address != devpriv->ao_buffer_bus_addr[buffer_index]) in last_ao_dma_load_completed()
2934 unsigned int buffer_index = devpriv->ao_dma_index; in load_ao_dma_buffer() local
2941 devpriv->ao_buffer[buffer_index], in load_ao_dma_buffer()
2947 devpriv->ao_dma_desc[buffer_index].transfer_size = cpu_to_le32(nbytes); in load_ao_dma_buffer()
2949 next_bits = le32_to_cpu(devpriv->ao_dma_desc[buffer_index].next); in load_ao_dma_buffer()
2951 devpriv->ao_dma_desc[buffer_index].next = cpu_to_le32(next_bits); in load_ao_dma_buffer()
2960 devpriv->ao_dma_index = (buffer_index + 1) % AO_DMA_RING_COUNT; in load_ao_dma_buffer()
2971 unsigned int buffer_index; in load_ao_dma() local
2974 buffer_index = devpriv->ao_dma_index; in load_ao_dma()
2978 devpriv->ao_buffer_bus_addr[buffer_index] && in load_ao_dma()
2980 devpriv->ao_buffer_bus_addr[buffer_index] + in load_ao_dma()