Lines Matching refs:descriptors
211 descriptor = &ring->descriptors[ring->head]; in ring_write_descriptors()
256 if (!(ring->descriptors[ring->tail].flags in ring_work()
263 frame->size = ring->descriptors[ring->tail].length; in ring_work()
264 frame->eof = ring->descriptors[ring->tail].eof; in ring_work()
265 frame->sof = ring->descriptors[ring->tail].sof; in ring_work()
266 frame->flags = ring->descriptors[ring->tail].flags; in ring_work()
324 if (ring->descriptors[ring->tail].flags & RING_DESC_COMPLETED) { in tb_ring_poll()
330 frame->size = ring->descriptors[ring->tail].length; in tb_ring_poll()
331 frame->eof = ring->descriptors[ring->tail].eof; in tb_ring_poll()
332 frame->sof = ring->descriptors[ring->tail].sof; in tb_ring_poll()
333 frame->flags = ring->descriptors[ring->tail].flags; in tb_ring_poll()
570 ring->descriptors = dma_alloc_coherent(&ring->nhi->pdev->dev, in tb_ring_alloc()
571 size * sizeof(*ring->descriptors), in tb_ring_alloc()
573 if (!ring->descriptors) in tb_ring_alloc()
588 ring->size * sizeof(*ring->descriptors), in tb_ring_alloc()
589 ring->descriptors, ring->descriptors_dma); in tb_ring_alloc()
790 ring->size * sizeof(*ring->descriptors), in tb_ring_free()
791 ring->descriptors, ring->descriptors_dma); in tb_ring_free()
793 ring->descriptors = NULL; in tb_ring_free()