Lines Matching refs:bfr
233 struct apple_rtkit_shmem *bfr) in apple_nvme_sart_dma_setup() argument
238 if (bfr->iova) in apple_nvme_sart_dma_setup()
240 if (!bfr->size) in apple_nvme_sart_dma_setup()
243 bfr->buffer = in apple_nvme_sart_dma_setup()
244 dma_alloc_coherent(anv->dev, bfr->size, &bfr->iova, GFP_KERNEL); in apple_nvme_sart_dma_setup()
245 if (!bfr->buffer) in apple_nvme_sart_dma_setup()
248 ret = apple_sart_add_allowed_region(anv->sart, bfr->iova, bfr->size); in apple_nvme_sart_dma_setup()
250 dma_free_coherent(anv->dev, bfr->size, bfr->buffer, bfr->iova); in apple_nvme_sart_dma_setup()
251 bfr->buffer = NULL; in apple_nvme_sart_dma_setup()
259 struct apple_rtkit_shmem *bfr) in apple_nvme_sart_dma_destroy() argument
263 apple_sart_remove_allowed_region(anv->sart, bfr->iova, bfr->size); in apple_nvme_sart_dma_destroy()
264 dma_free_coherent(anv->dev, bfr->size, bfr->buffer, bfr->iova); in apple_nvme_sart_dma_destroy()