Lines Matching defs:dma
105 vmxnet3_alloc_dma_mem(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma, size_t size,
119 &dma->dmaHandle)) != DDI_SUCCESS) {
128 if (ddi_dma_mem_alloc(dma->dmaHandle, size, &vmxnet3_dev_attr,
129 DDI_DMA_CONSISTENT, cb, NULL, &dma->buf, &dma->bufLen,
130 &dma->dataHandle) != DDI_SUCCESS) {
139 if ((dmaerr = ddi_dma_addr_bind_handle(dma->dmaHandle, NULL, dma->buf,
140 dma->bufLen, DDI_DMA_RDWR | DDI_DMA_STREAMING, cb, NULL, &cookie,
149 dma->bufPA = cookie.dmac_laddress;
154 ddi_dma_mem_free(&dma->dataHandle);
156 ddi_dma_free_handle(&dma->dmaHandle);
158 dma->buf = NULL;
159 dma->bufPA = NULL;
160 dma->bufLen = 0;
165 vmxnet3_alloc_dma_mem_1(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma, size_t size,
168 return (vmxnet3_alloc_dma_mem(dp, dma, size, canSleep,
173 vmxnet3_alloc_dma_mem_512(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma,
176 return (vmxnet3_alloc_dma_mem(dp, dma, size, canSleep,
181 vmxnet3_alloc_dma_mem_128(vmxnet3_softc_t *dp, vmxnet3_dmabuf_t *dma,
184 return (vmxnet3_alloc_dma_mem(dp, dma, size, canSleep,
192 vmxnet3_free_dma_mem(vmxnet3_dmabuf_t *dma)
194 (void) ddi_dma_unbind_handle(dma->dmaHandle);
195 ddi_dma_mem_free(&dma->dataHandle);
196 ddi_dma_free_handle(&dma->dmaHandle);
198 dma->buf = NULL;
199 dma->bufPA = NULL;
200 dma->bufLen = 0;