Lines Matching refs:descriptors
189 descriptor = &ring->descriptors[ring->head]; in ring_write_descriptors()
231 if (!(ring->descriptors[ring->tail].flags in ring_work()
238 frame->size = ring->descriptors[ring->tail].length; in ring_work()
239 frame->eof = ring->descriptors[ring->tail].eof; in ring_work()
240 frame->sof = ring->descriptors[ring->tail].sof; in ring_work()
241 frame->flags = ring->descriptors[ring->tail].flags; in ring_work()
299 if (ring->descriptors[ring->tail].flags & RING_DESC_COMPLETED) { in tb_ring_poll()
305 frame->size = ring->descriptors[ring->tail].length; in tb_ring_poll()
306 frame->eof = ring->descriptors[ring->tail].eof; in tb_ring_poll()
307 frame->sof = ring->descriptors[ring->tail].sof; in tb_ring_poll()
308 frame->flags = ring->descriptors[ring->tail].flags; in tb_ring_poll()
508 ring->descriptors = dma_alloc_coherent(&ring->nhi->pdev->dev, in tb_ring_alloc()
509 size * sizeof(*ring->descriptors), in tb_ring_alloc()
511 if (!ring->descriptors) in tb_ring_alloc()
526 ring->size * sizeof(*ring->descriptors), in tb_ring_alloc()
527 ring->descriptors, ring->descriptors_dma); in tb_ring_alloc()
712 ring->size * sizeof(*ring->descriptors), in tb_ring_free()
713 ring->descriptors, ring->descriptors_dma); in tb_ring_free()
715 ring->descriptors = NULL; in tb_ring_free()