Home
last modified time | relevance | path

Searched refs:bfr (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/drivers/soc/apple/
Drtkit-crashlog.c63 static void apple_rtkit_crashlog_dump_str(struct apple_rtkit *rtk, u8 *bfr, in apple_rtkit_crashlog_dump_str() argument
69 memcpy(&idx, bfr, 4); in apple_rtkit_crashlog_dump_str()
71 ptr = bfr + 4; in apple_rtkit_crashlog_dump_str()
72 end = bfr + size; in apple_rtkit_crashlog_dump_str()
91 static void apple_rtkit_crashlog_dump_version(struct apple_rtkit *rtk, u8 *bfr, in apple_rtkit_crashlog_dump_version() argument
94 dev_warn(rtk->dev, "RTKit: Version: %s", bfr + 16); in apple_rtkit_crashlog_dump_version()
97 static void apple_rtkit_crashlog_dump_time(struct apple_rtkit *rtk, u8 *bfr, in apple_rtkit_crashlog_dump_time() argument
102 memcpy(&crash_time, bfr, 8); in apple_rtkit_crashlog_dump_time()
106 static void apple_rtkit_crashlog_dump_mailbox(struct apple_rtkit *rtk, u8 *bfr, in apple_rtkit_crashlog_dump_mailbox() argument
113 memcpy(&type, bfr + 16, 4); in apple_rtkit_crashlog_dump_mailbox()
[all …]
Drtkit.c312 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()
[all …]
Drtkit-internal.h60 void apple_rtkit_crashlog_dump(struct apple_rtkit *rtk, u8 *bfr, size_t size);
/linux-6.6.21/drivers/nvme/host/
Dapple.c233 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
[all …]
/linux-6.6.21/include/linux/soc/apple/
Drtkit.h62 int (*shmem_setup)(void *cookie, struct apple_rtkit_shmem *bfr);
63 void (*shmem_destroy)(void *cookie, struct apple_rtkit_shmem *bfr);
/linux-6.6.21/drivers/bluetooth/
Dhci_bcm4377.c1812 void *bfr; in bcm4377_boot() local
1838 bfr = dma_alloc_coherent(&bcm4377->pdev->dev, fw->size, &fw_dma, in bcm4377_boot()
1840 if (!bfr) { in bcm4377_boot()
1845 memcpy(bfr, fw->data, fw->size); in bcm4377_boot()
1880 dma_free_coherent(&bcm4377->pdev->dev, fw->size, bfr, fw_dma); in bcm4377_boot()