Lines Matching refs:size
52 static void *hexagon_dma_alloc_coherent(struct device *dev, size_t size, in hexagon_dma_alloc_coherent() argument
75 ret = (void *) gen_pool_alloc(coherent_pool, size); in hexagon_dma_alloc_coherent()
78 memset(ret, 0, size); in hexagon_dma_alloc_coherent()
86 static void hexagon_free_coherent(struct device *dev, size_t size, void *vaddr, in hexagon_free_coherent() argument
89 gen_pool_free(coherent_pool, (unsigned long) vaddr, size); in hexagon_free_coherent()
93 dma_addr_t bus, size_t size) in check_addr() argument
95 if (hwdev && hwdev->dma_mask && !dma_capable(hwdev, bus, size)) { in check_addr()
99 name, (long long)bus, size, in check_addr()
132 static inline void dma_sync(void *addr, size_t size, in dma_sync() argument
138 (unsigned long) addr + size); in dma_sync()
142 (unsigned long) addr + size); in dma_sync()
146 (unsigned long) addr + size); in dma_sync()
173 unsigned long offset, size_t size, in hexagon_map_page() argument
178 WARN_ON(size == 0); in hexagon_map_page()
180 if (!check_addr("map_single", dev, bus, size)) in hexagon_map_page()
183 dma_sync(dma_addr_to_virt(bus), size, dir); in hexagon_map_page()
189 dma_addr_t dma_handle, size_t size, in hexagon_sync_single_for_cpu() argument
192 dma_sync(dma_addr_to_virt(dma_handle), size, dir); in hexagon_sync_single_for_cpu()
196 dma_addr_t dma_handle, size_t size, in hexagon_sync_single_for_device() argument
199 dma_sync(dma_addr_to_virt(dma_handle), size, dir); in hexagon_sync_single_for_device()