| /linux/mm/ |
| H A D | cma_debug.c | 3 * CMA DebugFS Interface 10 #include <linux/cma.h> 16 #include "cma.h" 36 struct cma *cma = data; in cma_used_get() local 38 spin_lock_irq(&cma->lock); in cma_used_get() 39 *val = cma->count - cma->available_count; in cma_used_get() 40 spin_unlock_irq(&cma->lock); in cma_used_get() 48 struct cma *cma = data; in cma_maxchunk_get() local 55 spin_lock_irq(&cma->lock); in cma_maxchunk_get() 56 for (r = 0; r < cma->nranges; r++) { in cma_maxchunk_get() [all …]
|
| /linux/kernel/dma/ |
| H A D | Kconfig | 181 depends on HAVE_DMA_CONTIGUOUS && CMA 187 You can disable CMA by specifying "cma=0" on the kernel's command 199 Enable this option to get numa CMA areas so that NUMA devices 202 You can set the size of pernuma CMA by specifying "cma_pernuma=size" 203 or set the node id and its size of CMA by specifying "numa_cma= 209 bool "Default CMA area per NUMA node" 213 On systems with more than one NUMA node, the selected CMA 227 Memory Allocator. If the size of 0 is selected, CMA is disabled by 228 default, but it can be enabled by passing cma=size[MG] to the kernel. 239 If 0 percent is selected, CMA is disabled by default, but it can be [all …]
|
| H A D | pool.c | 6 #include <linux/cma.h> 66 struct cma *cma; in cma_in_zone() local 68 cma = dev_get_cma_area(NULL); in cma_in_zone() 69 if (!cma) in cma_in_zone() 72 size = cma_get_size(cma); in cma_in_zone() 76 /* CMA can't cross zone boundaries, see cma_activate_area() */ in cma_in_zone() 77 end = cma_get_base(cma) + size - 1; in cma_in_zone()
|
| /linux/Documentation/driver-api/cxl/allocation/ |
| H A D | hugepages.rst | 9 CXL Memory onlined as SystemRAM during early boot is eligible for use by CMA, 10 as the NUMA node hosting that capacity will be `Online` at the time CMA 14 capacity allocated by CMA - as the NUMA node hosting the capacity is `Offline` 15 at :code:`__init` time - when CMA carves out contiguous capacity.
|
| /linux/include/linux/ |
| H A D | dma-map-ops.h | 13 struct cma; 94 struct cma *dev_get_cma_area(struct device *dev); 95 struct cma *dma_contiguous_get_area_by_idx(unsigned int idx); 99 phys_addr_t limit, struct cma **res_cma, bool fixed); 110 static inline struct cma *dev_get_cma_area(struct device *dev) in dev_get_cma_area() 114 static inline struct cma *dma_contiguous_get_area_by_idx(unsigned int idx) in dma_contiguous_get_area_by_idx() 122 phys_addr_t base, phys_addr_t limit, struct cma **res_cma, in dma_contiguous_reserve_area()
|
| /linux/arch/s390/mm/ |
| H A D | init.c | 32 #include <linux/cma.h> 229 /* Prevent memory blocks which contain cma regions from going offline */ 236 static int s390_cma_check_range(struct cma *cma, void *data) in s390_cma_check_range() argument 242 if (cma_intersects(cma, mem_data->start, mem_data->end)) in s390_cma_check_range()
|
| /linux/arch/xtensa/boot/dts/ |
| H A D | kc705.dts | 22 linux,cma { 28 linux,cma-default;
|
| /linux/Documentation/devicetree/bindings/media/ |
| H A D | nuvoton,npcm-vcd.yaml | 46 CMA pool to use for buffers allocation instead of the default CMA pool.
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-kernel-kexec-kdump | 58 the Contiguous Memory Allocator (CMA) area that are allocated 60 addresses of CMA regions assigned for crashkernel use.
|
| /linux/arch/loongarch/boot/dts/ |
| H A D | loongson-2k2000-ref.dts | 33 linux,cma { 37 linux,cma-default;
|
| /linux/Documentation/ABI/obsolete/ |
| H A D | sysfs-kernel-kexec-kdump | 68 the Contiguous Memory Allocator (CMA) area that are allocated 70 addresses of CMA regions assigned for crashkernel use.
|
| /linux/drivers/gpu/drm/etnaviv/ |
| H A D | Kconfig | 12 select CMA if HAVE_DMA_CONTIGUOUS
|
| /linux/arch/arm/boot/dts/nxp/imx/ |
| H A D | imx6ul-ccimx6ulsom.dtsi | 20 linux,cma { 24 linux,cma-default;
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | tqma8xx.dtsi | 37 linux,cma { 42 linux,cma-default;
|
| H A D | imx93-tqma9352.dtsi | 25 linux,cma { 30 linux,cma-default;
|
| H A D | imx8mq-tqma8mq.dtsi | 52 linux,cma { 59 linux,cma-default;
|
| /linux/drivers/gpu/drm/ingenic/ |
| H A D | Kconfig | 5 depends on CMA
|
| /linux/Documentation/features/io/dma-contiguous/ |
| H A D | arch-support.txt | 4 # description: arch supports the DMA CMA (continuous memory allocator)
|
| /linux/drivers/s390/char/ |
| H A D | vmcp.c | 22 #include <linux/cma.h> 41 static struct cma *vmcp_cma;
|
| H A D | Kconfig | 123 select CMA
|
| /linux/arch/arm/boot/dts/broadcom/ |
| H A D | bcm283x.dtsi | 38 cma: linux,cma { label 42 linux,cma-default;
|
| /linux/Documentation/driver-api/cxl/linux/ |
| H A D | overview.rst | 41 * Any requested CMA is allocated from Online nodes
|
| /linux/Documentation/devicetree/bindings/remoteproc/ |
| H A D | ti,davinci-rproc.txt | 41 can be a CMA memory node, and should be defined as
|
| /linux/arch/powerpc/kvm/ |
| H A D | book3s_hv_builtin.c | 15 #include <linux/cma.h> 47 static struct cma *kvm_cma; 87 * We need CMA reservation only when we are in HV mode in kvm_cma_reserve()
|
| /linux/include/trace/events/ |
| H A D | cma.h | 3 #define TRACE_SYSTEM cma
|