Lines Matching full:cdr
100 i = ring->cdr.read; in safexcel_next_request()
137 i = ring->cdr.write; in safexcel_alloc_request()
138 if ((i + 1) % SAFEXCEL_RING_SIZE == ring->cdr.read) in safexcel_alloc_request()
189 bus_dmamap_sync(ring->cdr.dma.tag, ring->cdr.dma.map, in safexcel_rdr_intr()
204 cdesc = safexcel_cmd_descr_next(&ring->cdr); in safexcel_rdr_intr()
274 /* CDR interrupts */ in safexcel_ring_intr()
573 SAFEXCEL_ADDR_LO(ring->cdr.dma.paddr)); in safexcel_hw_setup_rings()
576 SAFEXCEL_ADDR_HI(ring->cdr.dma.paddr)); in safexcel_hw_setup_rings()
802 ring->cdr.read = ring->cdr.write = 0; in safexcel_init_rings()
805 cdesc = &ring->cdr.desc[j]; in safexcel_init_rings()
895 safexcel_dma_free_mem(&ring->cdr.dma); in safexcel_dma_free_rings()
933 error = safexcel_dma_alloc_mem(sc, &ring->cdr.dma, size); in safexcel_dma_init()
936 "failed to allocate CDR DMA memory, error %d\n", in safexcel_dma_init()
940 ring->cdr.desc = in safexcel_dma_init()
941 (struct safexcel_cmd_descr *)ring->cdr.dma.vaddr; in safexcel_dma_init()
943 /* Allocate additional CDR token memory. */ in safexcel_dma_init()
1929 (cdesc - sc->sc_ring[ringidx].cdr.desc)); in safexcel_set_token()
2026 cring = &ring->cdr; in safexcel_cmd_descr_add()
2062 cring = &ring->cdr; in safexcel_cmd_descr_rollback()
2574 bus_dmamap_sync(ring->cdr.dma.tag, ring->cdr.dma.map, in safexcel_process()