Lines Matching refs:bfr
312 struct apple_rtkit_shmem *bfr) in apple_rtkit_free_buffer() argument
314 if (bfr->size == 0) in apple_rtkit_free_buffer()
318 rtk->ops->shmem_destroy(rtk->cookie, bfr); in apple_rtkit_free_buffer()
319 else if (bfr->buffer) in apple_rtkit_free_buffer()
320 dma_free_coherent(rtk->dev, bfr->size, bfr->buffer, bfr->iova); in apple_rtkit_free_buffer()
322 bfr->buffer = NULL; in apple_rtkit_free_buffer()
323 bfr->iomem = NULL; in apple_rtkit_free_buffer()
324 bfr->iova = 0; in apple_rtkit_free_buffer()
325 bfr->size = 0; in apple_rtkit_free_buffer()
326 bfr->is_mapped = false; in apple_rtkit_free_buffer()
330 struct apple_rtkit_shmem *bfr, size_t offset, in apple_rtkit_memcpy() argument
333 if (bfr->iomem) in apple_rtkit_memcpy()
334 memcpy_fromio(dst, bfr->iomem + offset, len); in apple_rtkit_memcpy()
336 memcpy(dst, bfr->buffer + offset, len); in apple_rtkit_memcpy()
342 u8 *bfr; in apple_rtkit_crashlog_rx() local
363 bfr = kzalloc(rtk->crashlog_buffer.size, GFP_KERNEL); in apple_rtkit_crashlog_rx()
364 if (bfr) { in apple_rtkit_crashlog_rx()
365 apple_rtkit_memcpy(rtk, bfr, &rtk->crashlog_buffer, 0, in apple_rtkit_crashlog_rx()
367 apple_rtkit_crashlog_dump(rtk, bfr, rtk->crashlog_buffer.size); in apple_rtkit_crashlog_rx()
368 kfree(bfr); in apple_rtkit_crashlog_rx()