Lines Matching refs:size_t
25 void *(*alloc)(struct device *dev, size_t size,
28 void (*free)(struct device *dev, size_t size, void *vaddr,
30 struct page *(*alloc_pages)(struct device *dev, size_t size,
33 void (*free_pages)(struct device *dev, size_t size, struct page *vaddr,
35 struct sg_table *(*alloc_noncontiguous)(struct device *dev, size_t size,
38 void (*free_noncontiguous)(struct device *dev, size_t size,
41 void *, dma_addr_t, size_t, unsigned long attrs);
44 void *cpu_addr, dma_addr_t dma_addr, size_t size,
48 unsigned long offset, size_t size,
51 size_t size, enum dma_data_direction dir,
63 size_t size, enum dma_data_direction dir,
66 size_t size, enum dma_data_direction dir,
69 size_t size, enum dma_data_direction dir);
71 dma_addr_t dma_handle, size_t size,
77 void (*cache_sync)(struct device *dev, void *vaddr, size_t size,
81 size_t (*max_mapping_size)(struct device *dev);
82 size_t (*opt_mapping_size)(void);
126 struct page *dma_alloc_from_contiguous(struct device *dev, size_t count,
130 struct page *dma_alloc_contiguous(struct device *dev, size_t size, gfp_t gfp);
131 void dma_free_contiguous(struct device *dev, struct page *page, size_t size);
149 size_t count, unsigned int order, bool no_warn) in dma_alloc_from_contiguous()
159 static inline struct page *dma_alloc_contiguous(struct device *dev, size_t size, in dma_alloc_contiguous()
165 size_t size) in dma_free_contiguous()
179 dma_addr_t device_addr, size_t size);
185 void *cpu_addr, size_t size, int *ret);
188 phys_addr_t phys_addr, dma_addr_t device_addr, size_t size) in dma_declare_coherent_memory()
204 size_t size, int *ret);
205 int dma_init_global_coherent(phys_addr_t phys_addr, size_t size);
217 void *cpu_addr, size_t size, int *ret) in dma_mmap_from_global_coherent()
238 void *cpu_addr, dma_addr_t dma_addr, size_t size,
241 void *cpu_addr, dma_addr_t dma_addr, size_t size,
243 struct page *dma_common_alloc_pages(struct device *dev, size_t size,
245 void dma_common_free_pages(struct device *dev, size_t size, struct page *vaddr,
249 void *dma_common_contiguous_remap(struct page *page, size_t size, pgprot_t prot,
251 void *dma_common_pages_remap(struct page **pages, size_t size, pgprot_t prot,
253 void dma_common_free_remap(void *cpu_addr, size_t size);
255 struct page *dma_alloc_from_pool(struct device *dev, size_t size,
257 bool (*phys_addr_ok)(struct device *, phys_addr_t, size_t));
258 bool dma_free_from_pool(struct device *dev, void *start, size_t size);
278 void *arch_dma_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle,
280 void arch_dma_free(struct device *dev, size_t size, void *cpu_addr,
304 void arch_sync_dma_for_device(phys_addr_t paddr, size_t size,
307 static inline void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, in arch_sync_dma_for_device()
314 void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size,
317 static inline void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size, in arch_sync_dma_for_cpu()
332 void arch_dma_prep_coherent(struct page *page, size_t size);
334 static inline void arch_dma_prep_coherent(struct page *page, size_t size) in arch_dma_prep_coherent()
340 void arch_dma_mark_clean(phys_addr_t paddr, size_t size);
342 static inline void arch_dma_mark_clean(phys_addr_t paddr, size_t size) in arch_dma_mark_clean()
347 void *arch_dma_set_uncached(void *addr, size_t size);
348 void arch_dma_clear_uncached(void *addr, size_t size);