Lines Matching refs:memory

10 Part II describes extensions for supporting non-consistent memory
33 Consistent memory is memory for which a write by either the device or
37 devices to read that memory.)
39 This routine allocates a region of <size> bytes of consistent memory.
48 Note: consistent memory can be expensive on some platforms, and the
50 consolidate your requests for consistent memory as much as possible.
56 the returned memory, like GFP_DMA).
62 Wraps dma_alloc_coherent() and also zeroes the returned memory if the
69 Free a region of consistent memory you previously allocated. dev,
83 Many drivers need lots of small DMA-coherent memory regions for DMA
103 crossing restrictions, pass 0 for alloc; passing 4096 says memory allocated
110 Wraps dma_pool_alloc() and also zeroes the returned memory if the
117 This allocates memory from the pool; the returned memory will meet the
129 This puts memory back into the pool. The pool is what was passed to
131 were returned when that routine allocated the memory being freed.
138 memory back to the pool before you destroy it.
173 is the minimum required to cover all of memory. Examining the
189 Maps a piece of processor virtual memory so it can be accessed by the
190 device and returns the DMA address of the memory.
197 DMA_TO_DEVICE data is going from the memory to the device
198 DMA_FROM_DEVICE data is coming from the device to the memory
201 Notes: Not all memory regions in a machine can be mapped by this API.
203 physical memory. Since this API does not provide any scatter/gather
205 contiguous piece of memory. For this reason, memory to be mapped by
209 Further, the DMA address of the memory must be within the
212 the memory ANDed with the dma_mask is still equal to the DMA
213 address, then the device can perform DMA to the memory). To
214 ensure that the memory allocated by kmalloc is within the dma_mask,
222 maps an I/O DMA address to a physical memory address). However, to be
227 line width. In order for memory mapped by this API to operate
238 of the memory region by the software and before it is handed off to
239 the driver. Once this primitive is used, memory covered by this
245 accesses data that may be changed by the device. This memory should
250 isn't sure if the memory was modified before being handed off to the
252 you must always sync bidirectional memory twice: once before the
253 memory is handed off to the device (to make sure all memory changes
364 - before *and* after handing memory to the device if the memory is
405 you could pass an attribute DMA_ATTR_FOO when mapping memory
451 choose to return either consistent or non-consistent memory as it sees
453 have all the correct and necessary sync points for this memory in the
454 driver should it choose to return non-consistent memory.
456 Note: where the platform can return consistent memory, it will
459 Warning: Handling non-consistent memory is a real pain. You should
462 that simply cannot make consistent memory.
468 Free memory allocated by the nonconsistent API. All parameters must
477 memory or doing partial flushes.
488 Do a partial sync of memory that was allocated by
498 Declare region of memory to be handed out by dma_alloc_coherent() when
499 it's asked for coherent memory for this device.
501 phys_addr is the CPU physical address to which the memory is currently
505 with to actually address this memory (this will be handed out as the
512 DMA_MEMORY_MAP - request that the memory returned from
515 DMA_MEMORY_IO - request that the memory returned from
520 DMA_MEMORY_INCLUDES_CHILDREN - make the declared memory be allocated by
521 dma_alloc_coherent of any child devices of this one (for memory residing
524 DMA_MEMORY_EXCLUSIVE - only allocate memory from the declared regions.
525 Do not allow dma_alloc_coherent() to fall back to system memory when
526 it's out of memory in the declared region.
533 Note, for DMA_MEMORY_IO returns, all subsequent memory returned by
540 memory may be declared per device.
549 Remove the memory region previously declared from the system. This
552 driver's job to ensure that no parts of this memory region are
567 address of the memory, or an error (via PTR_ERR()) if any part of the
586 about what DMA memory was allocated for which device. If this code detects an
594 forcedeth 0000:00:08.0: DMA-API: device driver frees DMA memory with wrong
641 happen when it runs out of memory or if it was