Lines Matching refs:bfr
311 struct apple_rtkit_shmem *bfr) in apple_rtkit_free_buffer() argument
313 if (bfr->size == 0) in apple_rtkit_free_buffer()
317 rtk->ops->shmem_destroy(rtk->cookie, bfr); in apple_rtkit_free_buffer()
318 else if (bfr->buffer) in apple_rtkit_free_buffer()
319 dma_free_coherent(rtk->dev, bfr->size, bfr->buffer, bfr->iova); in apple_rtkit_free_buffer()
321 bfr->buffer = NULL; in apple_rtkit_free_buffer()
322 bfr->iomem = NULL; in apple_rtkit_free_buffer()
323 bfr->iova = 0; in apple_rtkit_free_buffer()
324 bfr->size = 0; in apple_rtkit_free_buffer()
325 bfr->is_mapped = false; in apple_rtkit_free_buffer()
329 struct apple_rtkit_shmem *bfr, size_t offset, in apple_rtkit_memcpy() argument
332 if (bfr->iomem) in apple_rtkit_memcpy()
333 memcpy_fromio(dst, bfr->iomem + offset, len); in apple_rtkit_memcpy()
335 memcpy(dst, bfr->buffer + offset, len); in apple_rtkit_memcpy()
341 u8 *bfr; in apple_rtkit_crashlog_rx() local
362 bfr = kzalloc(rtk->crashlog_buffer.size, GFP_KERNEL); in apple_rtkit_crashlog_rx()
363 if (bfr) { in apple_rtkit_crashlog_rx()
364 apple_rtkit_memcpy(rtk, bfr, &rtk->crashlog_buffer, 0, in apple_rtkit_crashlog_rx()
366 apple_rtkit_crashlog_dump(rtk, bfr, rtk->crashlog_buffer.size); in apple_rtkit_crashlog_rx()
367 kfree(bfr); in apple_rtkit_crashlog_rx()