Home
last modified time | relevance | path

Searched refs:dma_bufs (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/hid/intel-ish-hid/ishtp/
Dloader.c145 void **dma_bufs, u32 fragment_size) in release_dma_bufs() argument
151 if (dma_bufs[i]) { in release_dma_bufs()
153 dma_free_coherent(dev->devc, fragment_size, dma_bufs[i], dma_addr); in release_dma_bufs()
154 dma_bufs[i] = NULL; in release_dma_bufs()
173 void **dma_bufs, u32 fragment_size, u32 fragment_count) in prepare_dma_bufs() argument
181 dma_bufs[i] = dma_alloc_coherent(dev->devc, fragment_size, &dma_addr, GFP_KERNEL); in prepare_dma_bufs()
182 if (!dma_bufs[i]) in prepare_dma_bufs()
189 memcpy(dma_bufs[i], ish_fw->data + offset, length); in prepare_dma_bufs()
190 clflush_cache_range(dma_bufs[i], fragment_size); in prepare_dma_bufs()
340 void *dma_bufs[FRAGMENT_MAX_NUM] = {}; in ishtp_loader_work() local
[all …]
/linux-6.12.1/drivers/media/platform/marvell/
Dmcam-core.c377 cam->dma_bufs[i] = dma_alloc_coherent(cam->dev, in mcam_alloc_dma_bufs()
380 if (cam->dma_bufs[i] == NULL) { in mcam_alloc_dma_bufs()
390 cam->dma_bufs[0], cam->dma_handles[0]); in mcam_alloc_dma_bufs()
411 cam->dma_bufs[i], cam->dma_handles[i]); in mcam_free_dma_bufs()
412 cam->dma_bufs[i] = NULL; in mcam_free_dma_bufs()
473 cam->dma_bufs[bufno], in mcam_frame_work()
Dmcam-core.h169 void *dma_bufs[MAX_DMA_BUFS]; /* Internal buffer addresses */ member