Lines Matching refs:dma_bufs
145 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
362 rv = prepare_dma_bufs(dev, ish_fw, fragment, dma_bufs, fragment_size, fragment_count); in ishtp_loader_work()
397 release_dma_bufs(dev, fragment, dma_bufs, fragment_size); in ishtp_loader_work()