Lines Matching refs:descriptors
247 descriptor = &ring->descriptors[ring->head]; in ring_write_descriptors()
292 if (!(ring->descriptors[ring->tail].flags in ring_work()
299 frame->size = ring->descriptors[ring->tail].length; in ring_work()
300 frame->eof = ring->descriptors[ring->tail].eof; in ring_work()
301 frame->sof = ring->descriptors[ring->tail].sof; in ring_work()
302 frame->flags = ring->descriptors[ring->tail].flags; in ring_work()
360 if (ring->descriptors[ring->tail].flags & RING_DESC_COMPLETED) { in tb_ring_poll()
366 frame->size = ring->descriptors[ring->tail].length; in tb_ring_poll()
367 frame->eof = ring->descriptors[ring->tail].eof; in tb_ring_poll()
368 frame->sof = ring->descriptors[ring->tail].sof; in tb_ring_poll()
369 frame->flags = ring->descriptors[ring->tail].flags; in tb_ring_poll()
610 ring->descriptors = dma_alloc_coherent(&ring->nhi->pdev->dev, in tb_ring_alloc()
611 size * sizeof(*ring->descriptors), in tb_ring_alloc()
613 if (!ring->descriptors) in tb_ring_alloc()
628 ring->size * sizeof(*ring->descriptors), in tb_ring_alloc()
629 ring->descriptors, ring->descriptors_dma); in tb_ring_alloc()
830 ring->size * sizeof(*ring->descriptors), in tb_ring_free()
831 ring->descriptors, ring->descriptors_dma); in tb_ring_free()
833 ring->descriptors = NULL; in tb_ring_free()