Lines Matching refs:descriptors
202 descriptor = &ring->descriptors[ring->head]; in ring_write_descriptors()
247 if (!(ring->descriptors[ring->tail].flags in ring_work()
254 frame->size = ring->descriptors[ring->tail].length; in ring_work()
255 frame->eof = ring->descriptors[ring->tail].eof; in ring_work()
256 frame->sof = ring->descriptors[ring->tail].sof; in ring_work()
257 frame->flags = ring->descriptors[ring->tail].flags; in ring_work()
315 if (ring->descriptors[ring->tail].flags & RING_DESC_COMPLETED) { in tb_ring_poll()
321 frame->size = ring->descriptors[ring->tail].length; in tb_ring_poll()
322 frame->eof = ring->descriptors[ring->tail].eof; in tb_ring_poll()
323 frame->sof = ring->descriptors[ring->tail].sof; in tb_ring_poll()
324 frame->flags = ring->descriptors[ring->tail].flags; in tb_ring_poll()
525 ring->descriptors = dma_alloc_coherent(&ring->nhi->pdev->dev, in tb_ring_alloc()
526 size * sizeof(*ring->descriptors), in tb_ring_alloc()
528 if (!ring->descriptors) in tb_ring_alloc()
543 ring->size * sizeof(*ring->descriptors), in tb_ring_alloc()
544 ring->descriptors, ring->descriptors_dma); in tb_ring_alloc()
729 ring->size * sizeof(*ring->descriptors), in tb_ring_free()
730 ring->descriptors, ring->descriptors_dma); in tb_ring_free()
732 ring->descriptors = NULL; in tb_ring_free()