Home
last modified time | relevance | path

Searched refs:dma_map (Results 1 – 25 of 83) sorted by relevance

1234

/freebsd/sys/dev/qat/qat/
H A Dqat_ocf_mem_pool.c220 &dma_mem->dma_map); in qat_ocf_alloc_dma_mem()
229 dma_mem->dma_map, 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()
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()
289 &dma_mem->dma_map); in qat_ocf_dma_tag_and_map()
324 qat_cookie->gcm_aad_dma_mem.dma_map, in qat_ocf_cookie_dma_pre_sync()
329 qat_cookie->src_dma_mem.dma_map, in qat_ocf_cookie_dma_pre_sync()
333 qat_cookie->dst_dma_mem.dma_map, in qat_ocf_cookie_dma_pre_sync()
337 qat_cookie->dma_map, in qat_ocf_cookie_dma_pre_sync()
[all …]
/freebsd/sys/dev/dcons/
H A Ddcons_crom.c80 bus_dmamap_t dma_map; member
159 bus_dmamap_sync(sc->dma_tag, sc->dma_map, BUS_DMASYNC_PREWRITE); in dmamap_cb()
168 dcons_conf->dma_map = sc->dma_map; in dmamap_cb()
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()
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()
H A Ddcons_os.c176 bus_dmamap_sync(dg.dma_tag, dg.dma_map, BUS_DMASYNC_POSTREAD); in dcons_os_checkc_nopoll()
181 bus_dmamap_sync(dg.dma_tag, dg.dma_map, BUS_DMASYNC_PREREAD); in dcons_os_checkc_nopoll()
197 bus_dmamap_sync(dg.dma_tag, dg.dma_map, BUS_DMASYNC_POSTWRITE); in dcons_os_putc()
202 bus_dmamap_sync(dg.dma_tag, dg.dma_map, BUS_DMASYNC_PREWRITE); in dcons_os_putc()
H A Ddcons_os.h48 bus_dmamap_t dma_map; member
/freebsd/sys/dev/firewire/
H A Dfwdma.h39 bus_dmamap_t dma_map; member
45 bus_dmamap_t dma_map; 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()
H A Dfwdma.c95 flag, &dma->dma_map); 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()
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()
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_mem.c101 BUS_DMA_NOWAIT, &dma_mem->dma_map)) != 0) { in os_dma_mem_alloc()
107 if((ret = bus_dmamap_load(dma_mem->dma_tag, dma_mem->dma_map, in os_dma_mem_alloc()
125 dma_mem->dma_map); in os_dma_mem_alloc()
146 bus_dmamap_unload(dma_mem->dma_tag, dma_mem->dma_map); in os_dma_mem_free()
152 dma_mem->dma_map); in os_dma_mem_free()
/freebsd/sys/dev/qat/qat_common/
H A Dqat_freebsd.c72 &mem->dma_map); in bus_dma_mem_create()
79 mem->dma_map, 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()
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_alloc.c103 BUS_DMA_WAITOK | BUS_DMA_COHERENT, &buf->dma_map); 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()
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()
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()
126 BUS_DMA_WAITOK | BUS_DMA_COHERENT, &fwp[x].dma_map); in mlx5_fwp_alloc()
133 dev->cmd.dma_tag, fwp[x].dma_map, fwp[x].virt_addr, in mlx5_fwp_alloc()
144 fwp[x].dma_map); 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()
195 map = mb_list->dma_map; in mlx4_en_alloc_buf()
196 mb_list->dma_map = ring->spare.dma_map; in mlx4_en_alloc_buf()
197 ring->spare.dma_map = map; in mlx4_en_alloc_buf()
225 bus_dmamap_t map = mb_list->dma_map; in mlx4_en_free_buf()
[all …]
H A Dmlx4_en_tx.c110 &ring->tx_info[x].dma_map); in mlx4_en_create_tx_ring()
114 ring->tx_info[x].dma_map); 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()
206 bus_dmamap_destroy(ring->dma_tag, ring->tx_info[x].dma_map); 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()
787 err = bus_dmamap_load_mbuf_sg(ring->dma_tag, tx_info->dma_map, in mlx4_en_xmit()
798 bus_dmamap_sync(ring->dma_tag, tx_info->dma_map, in mlx4_en_xmit()
802 bus_dmamap_unload(ring->dma_tag, tx_info->dma_map); in mlx4_en_xmit()
/freebsd/sys/arm/xilinx/
H A Dzy7_devcfg.c68 bus_dmamap_t dma_map; member
509 sc->dma_map = NULL; in zy7_devcfg_open()
554 &sc->dma_map); 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()
606 err = mtx_sleep(sc->dma_map, &sc->sc_mtx, PCATCH, 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()
[all …]
/freebsd/sys/dev/altera/msgdma/
H A Dmsgdma.c90 bus_dmamap_t *dma_map; 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()
322 free(chan->dma_map, M_DEVBUF); in msgdma_desc_free()
359 chan->dma_map = malloc(nsegments * sizeof(bus_dmamap_t), in msgdma_desc_alloc()
367 BUS_DMA_WAITOK | BUS_DMA_ZERO, &chan->dma_map[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/glxsb/
H A Dglxsb.c160 bus_dmamap_t dma_map; /* DMA map */ member
394 BUS_DMA_NOWAIT, &dma->dma_map); in glxsb_dma_alloc()
402 rc = bus_dmamap_load(sc->sc_dmat, dma->dma_map, dma->dma_vaddr, in glxsb_dma_alloc()
414 bus_dmamem_free(sc->sc_dmat, dma->dma_vaddr, dma->dma_map); in glxsb_dma_alloc()
424 bus_dmamap_sync(sc->sc_dmat, dma->dma_map, in glxsb_dma_pre_op()
432 bus_dmamap_sync(sc->sc_dmat, dma->dma_map, in glxsb_dma_post_op()
440 bus_dmamap_unload(sc->sc_dmat, dma->dma_map); in glxsb_dma_free()
441 bus_dmamem_free(sc->sc_dmat, dma->dma_vaddr, dma->dma_map); in glxsb_dma_free()
/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()
518 error = bus_dmamap_load(iq->dma_tag, iq->data[pi].dma_map, buffer, size, in mlx5e_iq_load_memory_single()
535 bus_dmamap_sync(iq->dma_tag, iq->data[pi].dma_map, dma_sync); in mlx5e_iq_load_memory_single()
H A Dmlx5_en_tx.c574 err = bus_dmamap_load_mbuf_sg(sq->dma_tag, sq->mbuf[pi].dma_map, in mlx5e_sq_dump_xmit()
586 err = bus_dmamap_load_mbuf_sg(sq->dma_tag, sq->mbuf[pi].dma_map, in mlx5e_sq_dump_xmit()
594 bus_dmamap_sync(sq->dma_tag, sq->mbuf[pi].dma_map, in mlx5e_sq_dump_xmit()
604 bus_dmamap_unload(sq->dma_tag, sq->mbuf[pi].dma_map); in mlx5e_sq_dump_xmit()
613 bus_dmamap_unload(sq->dma_tag, sq->mbuf[pi].dma_map); in mlx5e_sq_dump_xmit()
944 err = bus_dmamap_load_mbuf_sg(sq->dma_tag, sq->mbuf[pi].dma_map, in mlx5e_sq_xmit()
956 err = bus_dmamap_load_mbuf_sg(sq->dma_tag, sq->mbuf[pi].dma_map, in mlx5e_sq_xmit()
965 bus_dmamap_sync(sq->dma_tag, sq->mbuf[pi].dma_map, in mlx5e_sq_xmit()
969 bus_dmamap_unload(sq->dma_tag, sq->mbuf[pi].dma_map); in mlx5e_sq_xmit()
1081 bus_dmamap_sync(sq->dma_tag, sq->mbuf[ci].dma_map, in mlx5e_poll_tx_cq()
[all...]
/freebsd/sys/dev/hptiop/
H A Dhptiop.c393 srb->dma_map, BUS_DMASYNC_POSTREAD); in hptiop_request_callback_itl()
394 bus_dmamap_unload(hba->io_dmat, srb->dma_map); in hptiop_request_callback_itl()
398 srb->dma_map, BUS_DMASYNC_POSTWRITE); in hptiop_request_callback_itl()
399 bus_dmamap_unload(hba->io_dmat, srb->dma_map); in hptiop_request_callback_itl()
547 srb->dma_map, BUS_DMASYNC_POSTREAD); in hptiop_request_callback_mv()
548 bus_dmamap_unload(hba->io_dmat, srb->dma_map); in hptiop_request_callback_mv()
552 srb->dma_map, BUS_DMASYNC_POSTWRITE); in hptiop_request_callback_mv()
553 bus_dmamap_unload(hba->io_dmat, srb->dma_map); in hptiop_request_callback_mv()
654 srb->dma_map, BUS_DMASYNC_POSTREAD); in hptiop_request_callback_mvfrey()
655 bus_dmamap_unload(hba->io_dmat, srb->dma_map); in hptiop_request_callback_mvfrey()
[all …]
/freebsd/sys/dev/qat/include/
H A Dqat_ocf_mem_pool.h32 bus_dmamap_t dma_map; member
76 bus_dmamap_t dma_map; member
/freebsd/sys/arm/broadcom/bcm2835/
H A Dbcm2835_dma.c135 bus_dmamap_t dma_map; member
279 &ch->dma_map); in bcm_dma_init()
297 err = bus_dmamap_load(sc->sc_dma_tag, ch->dma_map, cb_virt, in bcm_dma_init()
583 sc->sc_dma_ch[ch].dma_map, BUS_DMASYNC_PREWRITE); in bcm_dma_start()
661 bus_dmamap_sync(sc->sc_dma_tag, ch->dma_map, in bcm_dma_intr()
/freebsd/sys/dev/vmware/vmci/
H A Dvmci.c514 BUS_DMA_ZERO | BUS_DMA_NOWAIT, &dma->dma_map); in vmci_dma_malloc_int()
520 error = bus_dmamap_load(dma->dma_tag, dma->dma_map, dma->dma_vaddr, in vmci_dma_malloc_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()
593 dma->dma_map); 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()
801 BUS_DMA_NOWAIT | BUS_DMA_ZERO, &(dma_mem->dma_map)); 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()
877 error = bus_dmamap_create(dma_mem->dma_tag, 0, &(dma_mem->dma_map)); 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()
892 bus_dmamap_destroy(dma_mem->dma_tag, dma_mem->dma_map); in sec_desc_map_dma()
911 bus_dmamap_unload(dma_mem->dma_tag, dma_mem->dma_map); in sec_free_dma_mem()
914 bus_dmamap_destroy(dma_mem->dma_tag, dma_mem->dma_map); in sec_free_dma_mem()
917 dma_mem->dma_map); in sec_free_dma_mem()
/freebsd/sys/dev/ntb/test/
H A Dntb_tool.c218 bus_dmamap_t dma_map; member
827 BUS_DMA_WAITOK | BUS_DMA_ZERO, &inmw->dma_map)) { 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()
863 inmw->dma_map = 0; in tool_setup_mw()
877 bus_dmamap_unload(inmw->dma_tag, inmw->dma_map); in tool_free_mw()
878 bus_dmamem_free(inmw->dma_tag, inmw->virt_addr, inmw->dma_map); in tool_free_mw()
885 inmw->dma_map = 0; in tool_free_mw()
/freebsd/sys/dev/isci/
H A Disci_io_request.c218 isci_request->parent.dma_map, in isci_io_request_complete()
222 isci_request->parent.dma_map); in isci_io_request_complete()
681 bus_dmamap_create(request->dma_tag, 0, &request->dma_map); in isci_request_construct()
719 bus_dmamap_sync(io_request->parent.dma_tag, io_request->parent.dma_map, in isci_io_request_construct()
777 io_request->parent.dma_map, ccb, in isci_io_request_execute_scsi_io()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_pci.c1644 if (bus_dmamap_create(priv->dmat, 0, &sgl->dma_map) != 0) { in linux_dma_map_sg_attrs()
1652 if (_bus_dmamap_load_phys(priv->dmat, sgl->dma_map, in linux_dma_map_sg_attrs()
1655 bus_dmamap_unload(priv->dmat, sgl->dma_map); in linux_dma_map_sg_attrs()
1656 bus_dmamap_destroy(priv->dmat, sgl->dma_map); in linux_dma_map_sg_attrs()
1668 bus_dmamap_sync(priv->dmat, sgl->dma_map, BUS_DMASYNC_PREWRITE); in linux_dma_map_sg_attrs()
1671 bus_dmamap_sync(priv->dmat, sgl->dma_map, BUS_DMASYNC_PREREAD); in linux_dma_map_sg_attrs()
1674 bus_dmamap_sync(priv->dmat, sgl->dma_map, BUS_DMASYNC_PREWRITE); in linux_dma_map_sg_attrs()
1698 bus_dmamap_sync(priv->dmat, sgl->dma_map, BUS_DMASYNC_POSTREAD); in linux_dma_unmap_sg_attrs()
1699 bus_dmamap_sync(priv->dmat, sgl->dma_map, BUS_DMASYNC_PREREAD); in linux_dma_unmap_sg_attrs()
1702 bus_dmamap_sync(priv->dmat, sgl->dma_map, BUS_DMASYNC_POSTWRITE); in linux_dma_unmap_sg_attrs()
[all …]

1234