Searched refs:bfr (Results 1 – 6 of 6) sorted by relevance
/linux/drivers/soc/apple/ |
H A D | rtkit-crashlog.c | 63 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 …]
|
H A D | rtkit.c | 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() [all …]
|
H A D | rtkit-internal.h | 56 void apple_rtkit_crashlog_dump(struct apple_rtkit *rtk, u8 *bfr, size_t size);
|
/linux/drivers/nvme/host/ |
H A D | apple.c | 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 [all …]
|
/linux/include/linux/soc/apple/ |
H A D | rtkit.h | 62 int (*shmem_setup)(void *cookie, struct apple_rtkit_shmem *bfr); 63 void (*shmem_destroy)(void *cookie, struct apple_rtkit_shmem *bfr);
|
/linux/drivers/bluetooth/ |
H A D | hci_bcm4377.c | 1830 void *bfr; in bcm4377_boot() local 1856 bfr = dma_alloc_coherent(&bcm4377->pdev->dev, fw->size, &fw_dma, in bcm4377_boot() 1858 if (!bfr) { in bcm4377_boot() 1863 memcpy(bfr, fw->data, fw->size); in bcm4377_boot() 1901 dma_free_coherent(&bcm4377->pdev->dev, fw->size, bfr, fw_dma); in bcm4377_boot()
|