Lines Matching refs:descriptors
198 descriptor = &ring->descriptors[ring->head]; in ring_write_descriptors()
243 if (!(ring->descriptors[ring->tail].flags in ring_work()
250 frame->size = ring->descriptors[ring->tail].length; in ring_work()
251 frame->eof = ring->descriptors[ring->tail].eof; in ring_work()
252 frame->sof = ring->descriptors[ring->tail].sof; in ring_work()
253 frame->flags = ring->descriptors[ring->tail].flags; in ring_work()
311 if (ring->descriptors[ring->tail].flags & RING_DESC_COMPLETED) { in tb_ring_poll()
317 frame->size = ring->descriptors[ring->tail].length; in tb_ring_poll()
318 frame->eof = ring->descriptors[ring->tail].eof; in tb_ring_poll()
319 frame->sof = ring->descriptors[ring->tail].sof; in tb_ring_poll()
320 frame->flags = ring->descriptors[ring->tail].flags; in tb_ring_poll()
528 ring->descriptors = dma_alloc_coherent(&ring->nhi->pdev->dev, in tb_ring_alloc()
529 size * sizeof(*ring->descriptors), in tb_ring_alloc()
531 if (!ring->descriptors) in tb_ring_alloc()
546 ring->size * sizeof(*ring->descriptors), in tb_ring_alloc()
547 ring->descriptors, ring->descriptors_dma); in tb_ring_alloc()
719 ring->size * sizeof(*ring->descriptors), in tb_ring_free()
720 ring->descriptors, ring->descriptors_dma); in tb_ring_free()
722 ring->descriptors = NULL; in tb_ring_free()