Lines Matching refs:bfr
307 struct apple_rtkit_shmem *bfr) in apple_rtkit_free_buffer() argument
309 if (bfr->size == 0) in apple_rtkit_free_buffer()
313 rtk->ops->shmem_destroy(rtk->cookie, bfr); in apple_rtkit_free_buffer()
314 else if (bfr->buffer) in apple_rtkit_free_buffer()
315 dma_free_coherent(rtk->dev, bfr->size, bfr->buffer, bfr->iova); in apple_rtkit_free_buffer()
317 bfr->buffer = NULL; in apple_rtkit_free_buffer()
318 bfr->iomem = NULL; in apple_rtkit_free_buffer()
319 bfr->iova = 0; in apple_rtkit_free_buffer()
320 bfr->size = 0; in apple_rtkit_free_buffer()
321 bfr->is_mapped = false; in apple_rtkit_free_buffer()
325 struct apple_rtkit_shmem *bfr, size_t offset, in apple_rtkit_memcpy() argument
328 if (bfr->iomem) in apple_rtkit_memcpy()
329 memcpy_fromio(dst, bfr->iomem + offset, len); in apple_rtkit_memcpy()
331 memcpy(dst, bfr->buffer + offset, len); in apple_rtkit_memcpy()
337 u8 *bfr; in apple_rtkit_crashlog_rx() local
358 bfr = kzalloc(rtk->crashlog_buffer.size, GFP_KERNEL); in apple_rtkit_crashlog_rx()
359 if (bfr) { in apple_rtkit_crashlog_rx()
360 apple_rtkit_memcpy(rtk, bfr, &rtk->crashlog_buffer, 0, in apple_rtkit_crashlog_rx()
362 apple_rtkit_crashlog_dump(rtk, bfr, rtk->crashlog_buffer.size); in apple_rtkit_crashlog_rx()
363 kfree(bfr); in apple_rtkit_crashlog_rx()