Home
last modified time | relevance | path

Searched refs:dma_tag (Results 1 – 25 of 77) sorted by relevance

1234

/freebsd/sys/dev/qat/qat/
H A Dqat_ocf_mem_pool.c208 &dma_mem->dma_tag); in qat_ocf_alloc_dma_mem()
217 bus_dmamem_alloc(dma_mem->dma_tag, in qat_ocf_alloc_dma_mem()
228 error = bus_dmamap_load(dma_mem->dma_tag, in qat_ocf_alloc_dma_mem()
244 bus_dmamem_free(dma_mem->dma_tag, dma_mem->dma_vaddr, dma_mem->dma_map); in qat_ocf_alloc_dma_mem()
246 bus_dma_tag_destroy(dma_mem->dma_tag); in qat_ocf_alloc_dma_mem()
254 if (qdm->dma_tag != NULL && qdm->dma_vaddr != NULL) { in qat_ocf_free_dma_mem()
255 bus_dmamap_unload(qdm->dma_tag, qdm->dma_map); in qat_ocf_free_dma_mem()
256 bus_dmamem_free(qdm->dma_tag, qdm->dma_vaddr, qdm->dma_map); in qat_ocf_free_dma_mem()
257 bus_dma_tag_destroy(qdm->dma_tag); in qat_ocf_free_dma_mem()
283 &dma_mem->dma_tag); in qat_ocf_dma_tag_and_map()
[all …]
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_mem.c89 &dma_mem->dma_tag)) != 0 ) { in os_dma_mem_alloc()
94 if (!dma_mem->dma_tag) { in os_dma_mem_alloc()
100 if ((ret = bus_dmamem_alloc(dma_mem->dma_tag, (void **)&dma_mem->virt_addr, in os_dma_mem_alloc()
107 if((ret = bus_dmamap_load(dma_mem->dma_tag, dma_mem->dma_map, in os_dma_mem_alloc()
124 bus_dmamem_free(dma_mem->dma_tag, dma_mem->virt_addr, in os_dma_mem_alloc()
127 if(dma_mem->dma_tag) in os_dma_mem_alloc()
128 bus_dma_tag_destroy(dma_mem->dma_tag); in os_dma_mem_alloc()
146 bus_dmamap_unload(dma_mem->dma_tag, dma_mem->dma_map); in os_dma_mem_free()
151 bus_dmamem_free(dma_mem->dma_tag, dma_mem->virt_addr, in os_dma_mem_free()
156 if(dma_mem->dma_tag) { in os_dma_mem_free()
[all …]
/freebsd/sys/dev/dcons/
H A Ddcons_crom.c79 bus_dma_tag_t dma_tag; member
159 bus_dmamap_sync(sc->dma_tag, sc->dma_map, BUS_DMASYNC_PREWRITE); in dmamap_cb()
167 dcons_conf->dma_tag = sc->dma_tag; in dmamap_cb()
212 &sc->dma_tag); in dcons_crom_attach()
215 error = bus_dmamap_create(sc->dma_tag, BUS_DMA_COHERENT, &sc->dma_map); in dcons_crom_attach()
218 error = bus_dmamap_load(sc->dma_tag, sc->dma_map, in dcons_crom_attach()
240 if (dcons_conf->dma_tag == sc->dma_tag) in dcons_crom_detach()
241 dcons_conf->dma_tag = NULL; in dcons_crom_detach()
243 bus_dmamap_unload(sc->dma_tag, sc->dma_map); in dcons_crom_detach()
244 bus_dmamap_destroy(sc->dma_tag, sc->dma_map); in dcons_crom_detach()
[all …]
H A Ddcons_os.c175 if (dg.dma_tag != NULL) in dcons_os_checkc_nopoll()
176 bus_dmamap_sync(dg.dma_tag, dg.dma_map, BUS_DMASYNC_POSTREAD); in dcons_os_checkc_nopoll()
180 if (dg.dma_tag != NULL) in dcons_os_checkc_nopoll()
181 bus_dmamap_sync(dg.dma_tag, dg.dma_map, BUS_DMASYNC_PREREAD); in dcons_os_checkc_nopoll()
196 if (dg.dma_tag != NULL) in dcons_os_putc()
197 bus_dmamap_sync(dg.dma_tag, dg.dma_map, BUS_DMASYNC_POSTWRITE); in dcons_os_putc()
201 if (dg.dma_tag != NULL) in dcons_os_putc()
202 bus_dmamap_sync(dg.dma_tag, dg.dma_map, BUS_DMASYNC_PREWRITE); in dcons_os_putc()
/freebsd/sys/dev/firewire/
H A Dfwdma.c88 &dma->dma_tag); in fwdma_malloc()
94 err = bus_dmamem_alloc(dma->dma_tag, &dma->v_addr, in fwdma_malloc()
102 bus_dmamap_load(dma->dma_tag, dma->dma_map, dma->v_addr, in fwdma_malloc()
111 bus_dmamap_unload(dma->dma_tag, dma->dma_map); in fwdma_free()
112 bus_dmamem_free(dma->dma_tag, dma->v_addr, dma->dma_map); in fwdma_free()
113 bus_dma_tag_destroy(dma->dma_tag); in fwdma_free()
180 &am->dma_tag)) { in fwdma_malloc_multiseg()
187 seg->v_addr = fwdma_malloc_size(am->dma_tag, &seg->dma_map, in fwdma_malloc_multiseg()
206 fwdma_free_size(am->dma_tag, seg->dma_map, in fwdma_free_multiseg()
209 bus_dma_tag_destroy(am->dma_tag); in fwdma_free_multiseg()
H A Dfwdma.h38 bus_dma_tag_t dma_tag; member
54 bus_dma_tag_t dma_tag; member
79 bus_dmamap_sync(dma->dma_tag, dma->dma_map, op); in fwdma_sync()
91 bus_dmamap_sync(am->dma_tag, seg->dma_map, op); in fwdma_sync_multiseg()
102 bus_dmamap_sync(am->dma_tag, seg->dma_map, op); in fwdma_sync_multiseg_all()
/freebsd/sys/dev/qat/qat_common/
H A Dqat_freebsd.c64 &mem->dma_tag); in bus_dma_mem_create()
69 error = bus_dmamem_alloc(mem->dma_tag, in bus_dma_mem_create()
78 error = bus_dmamap_load(mem->dma_tag, in bus_dma_mem_create()
99 bus_dmamap_unload(mem->dma_tag, mem->dma_map); in bus_dma_mem_free()
101 bus_dmamem_free(mem->dma_tag, mem->dma_vaddr, mem->dma_map); in bus_dma_mem_free()
102 if (mem->dma_tag != NULL) in bus_dma_mem_free()
103 bus_dma_tag_destroy(mem->dma_tag); in bus_dma_mem_free()
H A Dadf_freebsd_admin.c474 accel_dev->dma_tag, in adf_init_admin_comms()
489 ret = bus_dmamap_create(accel_dev->dma_tag, 0, &admin->const_tbl_map); in adf_init_admin_comms()
497 ret = bus_dmamap_load(accel_dev->dma_tag, in adf_init_admin_comms()
509 bus_dmamap_destroy(accel_dev->dma_tag, admin->const_tbl_map); in adf_init_admin_comms()
518 bus_dmamap_create(accel_dev->dma_tag, 0, &admin->aram_map); in adf_init_admin_comms()
526 ret = bus_dmamap_load(accel_dev->dma_tag, in adf_init_admin_comms()
539 bus_dmamap_destroy(accel_dev->dma_tag, admin->aram_map); in adf_init_admin_comms()
547 accel_dev->dma_tag, in adf_init_admin_comms()
555 bus_dmamap_unload(accel_dev->dma_tag, admin->const_tbl_map); in adf_init_admin_comms()
556 bus_dmamap_destroy(accel_dev->dma_tag, admin->const_tbl_map); in adf_init_admin_comms()
[all …]
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_alloc.c96 &buf->dma_tag); in mlx5_buf_alloc()
102 err = -bus_dmamem_alloc(buf->dma_tag, &buf->direct.buf, in mlx5_buf_alloc()
110 buf->dma_tag, buf->dma_map, buf->direct.buf, in mlx5_buf_alloc()
128 bus_dmamap_sync(buf->dev->cmd.dma_tag, buf->dma_map, BUS_DMASYNC_PREWRITE); in mlx5_buf_alloc()
132 bus_dmamem_free(buf->dma_tag, buf->direct.buf, buf->dma_map); in mlx5_buf_alloc()
134 bus_dma_tag_destroy(buf->dma_tag); in mlx5_buf_alloc()
143 bus_dmamap_unload(buf->dma_tag, buf->dma_map); in mlx5_buf_free()
144 bus_dmamem_free(buf->dma_tag, buf->direct.buf, buf->dma_map); in mlx5_buf_free()
145 bus_dma_tag_destroy(buf->dma_tag); in mlx5_buf_free()
H A Dmlx5_pagealloc.c80 bus_dmamap_sync(fwp[num].dev->cmd.dma_tag, fwp[num].dma_map, BUS_DMASYNC_PREWRITE); in mlx5_fwp_flush()
89 bus_dmamap_sync(fwp[num].dev->cmd.dma_tag, fwp[num].dma_map, BUS_DMASYNC_POSTREAD); in mlx5_fwp_invalidate()
90 bus_dmamap_sync(fwp[num].dev->cmd.dma_tag, fwp[num].dma_map, BUS_DMASYNC_PREREAD); in mlx5_fwp_invalidate()
125 err = bus_dmamem_alloc(dev->cmd.dma_tag, &fwp[x].virt_addr, in mlx5_fwp_alloc()
133 dev->cmd.dma_tag, fwp[x].dma_map, fwp[x].virt_addr, in mlx5_fwp_alloc()
143 bus_dmamem_free(dev->cmd.dma_tag, fwp[x].virt_addr, in mlx5_fwp_alloc()
153 bus_dmamap_unload(dev->cmd.dma_tag, fwp[x].dma_map); in mlx5_fwp_alloc()
154 bus_dmamem_free(dev->cmd.dma_tag, fwp[x].virt_addr, fwp[x].dma_map); in mlx5_fwp_alloc()
181 bus_dmamap_unload(dev->cmd.dma_tag, fwp[num].dma_map); in mlx5_fwp_free()
182 bus_dmamem_free(dev->cmd.dma_tag, fwp[num].virt_addr, fwp[num].dma_map); in mlx5_fwp_free()
/freebsd/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_rx.c132 err = -bus_dmamap_load_mbuf_sg(ring->dma_tag, ring->spare.dma_map, in mlx4_en_alloc_buf()
149 bus_dmamap_sync(ring->dma_tag, ring->spare.dma_map, in mlx4_en_alloc_buf()
155 bus_dmamap_sync(ring->dma_tag, mb_list->dma_map, in mlx4_en_alloc_buf()
157 bus_dmamap_unload(ring->dma_tag, mb_list->dma_map); in mlx4_en_alloc_buf()
167 err = -bus_dmamap_load_mbuf_sg(ring->dma_tag, mb_list->dma_map, in mlx4_en_alloc_buf()
190 bus_dmamap_sync(ring->dma_tag, mb_list->dma_map, BUS_DMASYNC_PREREAD); in mlx4_en_alloc_buf()
226 bus_dmamap_sync(ring->dma_tag, map, BUS_DMASYNC_POSTREAD); in mlx4_en_free_buf()
227 bus_dmamap_unload(ring->dma_tag, map); in mlx4_en_free_buf()
394 &ring->dma_tag))) { in mlx4_en_create_rx_ring()
415 err = -bus_dmamap_create(ring->dma_tag, 0, &ring->spare.dma_map); in mlx4_en_create_rx_ring()
[all …]
H A Dmlx4_en_tx.c87 &ring->dma_tag))) in mlx4_en_create_tx_ring()
109 err = -bus_dmamap_create(ring->dma_tag, 0, in mlx4_en_create_tx_ring()
113 bus_dmamap_destroy(ring->dma_tag, in mlx4_en_create_tx_ring()
180 bus_dmamap_destroy(ring->dma_tag, ring->tx_info[x].dma_map); in mlx4_en_create_tx_ring()
184 bus_dma_tag_destroy(ring->dma_tag); in mlx4_en_create_tx_ring()
206 bus_dmamap_destroy(ring->dma_tag, ring->tx_info[x].dma_map); in mlx4_en_destroy_tx_ring()
210 bus_dma_tag_destroy(ring->dma_tag); in mlx4_en_destroy_tx_ring()
302 bus_dmamap_sync(ring->dma_tag, tx_info->dma_map, in mlx4_en_free_tx_desc()
304 bus_dmamap_unload(ring->dma_tag, tx_info->dma_map); in mlx4_en_free_tx_desc()
775 err = bus_dmamap_load_mbuf_sg(ring->dma_tag, tx_info->dma_map, in mlx4_en_xmit()
[all …]
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_iq.c66 bus_dmamap_sync(iq->dma_tag, iq->data[ci].dma_map, iq->data[ci].dma_sync); in mlx5e_iq_poll()
67 bus_dmamap_unload(iq->dma_tag, iq->data[ci].dma_map); in mlx5e_iq_poll()
135 bus_dmamap_unload(iq->dma_tag, iq->data[x].dma_map); in mlx5e_iq_free_db()
146 bus_dmamap_destroy(iq->dma_tag, iq->data[x].dma_map); in mlx5e_iq_free_db()
163 err = -bus_dmamap_create(iq->dma_tag, 0, &iq->data[x].dma_map); in mlx5e_iq_alloc_db()
166 bus_dmamap_destroy(iq->dma_tag, iq->data[x].dma_map); in mlx5e_iq_alloc_db()
198 &iq->dma_tag))) in mlx5e_iq_create()
221 bus_dma_tag_destroy(iq->dma_tag); in mlx5e_iq_create()
231 bus_dma_tag_destroy(iq->dma_tag); in mlx5e_iq_destroy()
518 error = bus_dmamap_load(iq->dma_tag, iq->data[pi].dma_map, buffer, size, in mlx5e_iq_load_memory_single()
[all …]
/freebsd/sys/arm/xilinx/
H A Dzy7_devcfg.c67 bus_dma_tag_t dma_tag; member
520 &sc->dma_tag); in zy7_devcfg_open()
553 err = bus_dmamem_alloc(sc->dma_tag, &dma_mem, BUS_DMA_NOWAIT, in zy7_devcfg_write()
559 err = bus_dmamap_load(sc->dma_tag, sc->dma_map, dma_mem, PAGE_SIZE, in zy7_devcfg_write()
562 bus_dmamem_free(sc->dma_tag, dma_mem, sc->dma_map); in zy7_devcfg_write()
584 bus_dmamap_sync(sc->dma_tag, sc->dma_map, in zy7_devcfg_write()
611 bus_dmamap_sync(sc->dma_tag, sc->dma_map, in zy7_devcfg_write()
620 bus_dmamap_unload(sc->dma_tag, sc->dma_map); in zy7_devcfg_write()
621 bus_dmamem_free(sc->dma_tag, dma_mem, sc->dma_map); in zy7_devcfg_write()
633 bus_dma_tag_destroy(sc->dma_tag); in zy7_devcfg_close()
/freebsd/sys/dev/altera/msgdma/
H A Dmsgdma.c89 bus_dma_tag_t dma_tag; member
161 bus_dmamap_sync(chan->dma_tag, chan->dma_map[chan->idx_tail], in msgdma_intr()
316 bus_dmamap_unload(chan->dma_tag, chan->dma_map[i]); in msgdma_desc_free()
317 bus_dmamem_free(chan->dma_tag, desc, chan->dma_map[i]); in msgdma_desc_free()
320 bus_dma_tag_destroy(chan->dma_tag); in msgdma_desc_free()
349 &chan->dma_tag); in msgdma_desc_alloc()
366 err = bus_dmamem_alloc(chan->dma_tag, (void **)&chan->descs[i], in msgdma_desc_alloc()
377 err = bus_dmamap_load(chan->dma_tag, chan->dma_map[i], chan->descs[i], in msgdma_desc_alloc()
521 bus_dmamap_sync(chan->dma_tag, chan->dma_map[tmp], in msgdma_channel_submit_sg()
/freebsd/sys/dev/vmware/vmci/
H A Dvmci.c507 &dma->dma_tag); in vmci_dma_malloc_int()
513 error = bus_dmamem_alloc(dma->dma_tag, (void **)&dma->dma_vaddr, in vmci_dma_malloc_int()
520 error = bus_dmamap_load(dma->dma_tag, dma->dma_map, dma->dma_vaddr, in vmci_dma_malloc_int()
584 if (dma->dma_tag != NULL) { in vmci_dma_free_int()
586 bus_dmamap_sync(dma->dma_tag, dma->dma_map, in vmci_dma_free_int()
588 bus_dmamap_unload(dma->dma_tag, dma->dma_map); in vmci_dma_free_int()
592 bus_dmamem_free(dma->dma_tag, dma->dma_vaddr, in vmci_dma_free_int()
595 bus_dma_tag_destroy(dma->dma_tag); in vmci_dma_free_int()
/freebsd/sys/dev/sec/
H A Dsec.c159 bus_dmamap_sync(dma_mem->dma_tag, dma_mem->dma_map, op); in sec_sync_dma_mem()
792 &(dma_mem->dma_tag)); /* dmat */ in sec_alloc_dma_mem()
800 error = bus_dmamem_alloc(dma_mem->dma_tag, &(dma_mem->dma_vaddr), in sec_alloc_dma_mem()
809 error = bus_dmamap_load(dma_mem->dma_tag, dma_mem->dma_map, in sec_alloc_dma_mem()
823 bus_dmamem_free(dma_mem->dma_tag, dma_mem->dma_vaddr, dma_mem->dma_map); in sec_alloc_dma_mem()
825 bus_dma_tag_destroy(dma_mem->dma_tag); in sec_alloc_dma_mem()
868 &(dma_mem->dma_tag)); /* dmat */ in sec_desc_map_dma()
877 error = bus_dmamap_create(dma_mem->dma_tag, 0, &(dma_mem->dma_map)); in sec_desc_map_dma()
882 bus_dma_tag_destroy(dma_mem->dma_tag); in sec_desc_map_dma()
886 error = bus_dmamap_load_crp(dma_mem->dma_tag, dma_mem->dma_map, crp, in sec_desc_map_dma()
[all …]
/freebsd/sys/dev/ntb/test/
H A Dntb_tool.c219 bus_dma_tag_t dma_tag; member
819 inmw->size, 0, NULL, NULL, &inmw->dma_tag)) { in tool_setup_mw()
826 if (bus_dmamem_alloc(inmw->dma_tag, (void **)&inmw->virt_addr, in tool_setup_mw()
834 if (bus_dmamap_load(inmw->dma_tag, inmw->dma_map, inmw->virt_addr, in tool_setup_mw()
850 bus_dmamap_unload(inmw->dma_tag, inmw->dma_map); in tool_setup_mw()
853 bus_dmamem_free(inmw->dma_tag, inmw->virt_addr, inmw->dma_map); in tool_setup_mw()
856 bus_dma_tag_destroy(inmw->dma_tag); in tool_setup_mw()
862 inmw->dma_tag = 0; in tool_setup_mw()
876 if (inmw->virt_addr && inmw->dma_tag) { in tool_free_mw()
877 bus_dmamap_unload(inmw->dma_tag, inmw->dma_map); in tool_free_mw()
[all …]
/freebsd/sys/dev/nvme/
H A Dnvme_qpair.c579 bus_dmamap_sync(qpair->dma_tag, qpair->queuemem_map, in _nvme_qpair_process_completions()
631 bus_dmamap_sync(qpair->dma_tag, qpair->queuemem_map, in _nvme_qpair_process_completions()
776 allocsz, 1, allocsz, 0, NULL, NULL, &qpair->dma_tag); in nvme_qpair_construct()
781 bus_dma_tag_set_domain(qpair->dma_tag, qpair->domain); in nvme_qpair_construct()
783 if (bus_dmamem_alloc(qpair->dma_tag, (void **)&queuemem, in nvme_qpair_construct()
789 if (bus_dmamap_load(qpair->dma_tag, qpair->queuemem_map, in nvme_qpair_construct()
792 bus_dmamem_free(qpair->dma_tag, qpair->cmd, in nvme_qpair_construct()
928 bus_dmamap_unload(qpair->dma_tag, qpair->queuemem_map); in nvme_qpair_destroy()
929 bus_dmamem_free(qpair->dma_tag, qpair->cmd, in nvme_qpair_destroy()
934 if (qpair->dma_tag) { in nvme_qpair_destroy()
[all …]
/freebsd/sys/powerpc/ps3/
H A Dps3-hvcall.h132 …t64_t region, uint64_t sector, uint64_t nsectors, uint64_t flags, uint64_t buf, uint64_t *dma_tag);
133 …t64_t region, uint64_t sector, uint64_t nsectors, uint64_t flags, uint64_t buf, uint64_t *dma_tag);
134 …_id, uint64_t cmd_block, uint64_t cmd_size, uint64_t data_buf, uint64_t blocks, uint64_t *dma_tag);
135 int lv1_storage_get_async_status(uint64_t dev, uint64_t *dma_tag, uint64_t *status);
136 int lv1_storage_check_async_status(uint64_t dev, uint64_t dma_tag, uint64_t *status);
/freebsd/sys/dev/qat/qat_hw/qat_4xxx/
H A Dadf_drv.c56 if (accel_dev->dma_tag) in adf_cleanup_accel()
57 bus_dma_tag_destroy(accel_dev->dma_tag); in adf_cleanup_accel()
171 &accel_dev->dma_tag); in adf_attach()
/freebsd/sys/dev/qat/qat_hw/qat_c3xxx/
H A Dadf_drv.c54 if (accel_dev->dma_tag) in adf_cleanup_accel()
55 bus_dma_tag_destroy(accel_dev->dma_tag); in adf_cleanup_accel()
169 &accel_dev->dma_tag); in adf_attach()
/freebsd/sys/dev/qat/qat_hw/qat_dh895xcc/
H A Dadf_drv.c54 if (accel_dev->dma_tag) in adf_cleanup_accel()
55 bus_dma_tag_destroy(accel_dev->dma_tag); in adf_cleanup_accel()
158 &accel_dev->dma_tag); in adf_attach()
/freebsd/sys/dev/qat/qat_hw/qat_c4xxx/
H A Dadf_drv.c54 if (accel_dev->dma_tag) in adf_cleanup_accel()
55 bus_dma_tag_destroy(accel_dev->dma_tag); in adf_cleanup_accel()
166 &accel_dev->dma_tag); in adf_attach()
/freebsd/sys/dev/qat/qat_hw/qat_4xxxvf/
H A Dadf_drv.c55 if (accel_dev->dma_tag) in adf_cleanup_accel()
56 bus_dma_tag_destroy(accel_dev->dma_tag); in adf_cleanup_accel()
152 &accel_dev->dma_tag); in adf_attach()

1234