Lines Matching refs:size
63 static void *hexagon_dma_alloc_coherent(struct device *dev, size_t size, in hexagon_dma_alloc_coherent() argument
86 ret = (void *) gen_pool_alloc(coherent_pool, size); in hexagon_dma_alloc_coherent()
89 memset(ret, 0, size); in hexagon_dma_alloc_coherent()
97 static void hexagon_free_coherent(struct device *dev, size_t size, void *vaddr, in hexagon_free_coherent() argument
100 gen_pool_free(coherent_pool, (unsigned long) vaddr, size); in hexagon_free_coherent()
104 dma_addr_t bus, size_t size) in check_addr() argument
106 if (hwdev && hwdev->dma_mask && !dma_capable(hwdev, bus, size)) { in check_addr()
110 name, (long long)bus, size, in check_addr()
143 static inline void dma_sync(void *addr, size_t size, in dma_sync() argument
149 (unsigned long) addr + size); in dma_sync()
153 (unsigned long) addr + size); in dma_sync()
157 (unsigned long) addr + size); in dma_sync()
184 unsigned long offset, size_t size, in hexagon_map_page() argument
189 WARN_ON(size == 0); in hexagon_map_page()
191 if (!check_addr("map_single", dev, bus, size)) in hexagon_map_page()
194 dma_sync(dma_addr_to_virt(bus), size, dir); in hexagon_map_page()
200 dma_addr_t dma_handle, size_t size, in hexagon_sync_single_for_cpu() argument
203 dma_sync(dma_addr_to_virt(dma_handle), size, dir); in hexagon_sync_single_for_cpu()
207 dma_addr_t dma_handle, size_t size, in hexagon_sync_single_for_device() argument
210 dma_sync(dma_addr_to_virt(dma_handle), size, dir); in hexagon_sync_single_for_device()