Lines Matching refs:tag
2623 /* Create a DMA tag for descriptors and buffers. */
2630 &ring->tag)))
2638 if ((error = bus_dmamem_alloc(ring->tag, (void**)&ring->first,
2647 if ((error = bus_dmamap_load(ring->tag, ring->map, descs, size_descs,
2657 if ((error = bus_dmamap_create(ring->tag, 0, &descs[i].map)))
2665 /* Use the DMA tag passed to attach() for descriptors and buffers. */
2666 ring->tag = sc->pa_dmat;
2669 if ((error = bus_dmamem_alloc(ring->tag, size_descs, PAGE_SIZE, 0,
2677 if ((error = bus_dmamem_map(ring->tag, ring->segs, ring->nsegs,
2687 if ((error = bus_dmamap_create(ring->tag, size_descs, 1,
2695 if ((error = bus_dmamap_load(ring->tag, ring->map, descs, size_descs,
2705 if ((error = bus_dmamap_create(ring->tag, MAX_DESC_LEN, 2,
2762 bus_dmamap_unload(ring->tag, ring->read->map);
2771 bus_dmamap_destroy(ring->tag, desc->map);
2775 bus_dmamap_unload(ring->tag, ring->map);
2778 bus_dmamem_free(ring->tag, ring->first, ring->map);
2779 /* Free the DMA tag created for this ring. */
2780 if (ring->tag != NULL)
2781 bus_dma_tag_destroy(ring->tag);
2788 bus_dmamap_destroy(ring->tag, desc->map);
2792 bus_dmamap_unload(ring->tag, ring->map);
2795 bus_dmamap_destroy(ring->tag, ring->map);
2798 bus_dmamem_unmap(ring->tag, (caddr_t)ring->first, ring->size_descs);
2801 bus_dmamem_free(ring->tag, ring->segs, ring->nsegs);
2884 bus_dmamap_unload(ring->tag, last_desc->map);
3096 bus_dmamap_unload(ring->tag, desc->map);
3149 bus_dmamap_unload(ring->tag, ring->temp->map);
5866 sc->csr_tag = pa->pa_iot; /* bus_space tag for IO refs */
5869 sc->csr_tag = pa->pa_memt; /* bus_space tag for MEM refs */
6015 pcitag_t tag = pci_make_tag(sc->sc_pc, sc->sc_bus, dev, 0);
6016 if (pci_probe_device(sc, tag, lkm_nbsd_match, &pa) != 0)
6158 sc->csr_tag = pa->pa_iot; /* bus_space tag for IO refs */
6161 sc->csr_tag = pa->pa_memt; /* bus_space tag for MEM refs */