Lines Matching refs:size
26 extern void *__dma_direct_alloc_coherent(struct device *dev, size_t size,
29 extern void __dma_direct_free_coherent(struct device *dev, size_t size,
35 size_t size, struct dma_attrs *attrs);
46 extern void *__dma_alloc_coherent(struct device *dev, size_t size,
48 extern void __dma_free_coherent(size_t size, void *vaddr);
49 extern void __dma_sync(void *vaddr, size_t size, int direction);
51 size_t size, int direction);
59 #define __dma_alloc_coherent(dev, gfp, size, handle) NULL argument
60 #define __dma_free_coherent(size, addr) ((void)0) argument
61 #define __dma_sync(addr, size, rw) ((void)0) argument
133 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) in dma_capable() argument
138 if (sd->max_direct_dma_addr && addr + size > sd->max_direct_dma_addr) in dma_capable()
145 return addr + size - 1 <= *dev->dma_mask; in dma_capable()
160 static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size, in dma_cache_sync() argument
164 __dma_sync(vaddr, size, (int)direction); in dma_cache_sync()