Home
last modified time | relevance | path

Searched full:cma (Results 1 – 25 of 70) sorted by relevance

123

/linux/mm/
H A Dcma_debug.c3 * 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 DKconfig181 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 Dpool.c6 #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 Dhugepages.rst9 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 Ddma-map-ops.h13 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 Dinit.c32 #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 Dkc705.dts22 linux,cma {
28 linux,cma-default;
/linux/Documentation/devicetree/bindings/media/
H A Dnuvoton,npcm-vcd.yaml46 CMA pool to use for buffers allocation instead of the default CMA pool.
/linux/Documentation/ABI/testing/
H A Dsysfs-kernel-kexec-kdump58 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 Dloongson-2k2000-ref.dts33 linux,cma {
37 linux,cma-default;
/linux/Documentation/ABI/obsolete/
H A Dsysfs-kernel-kexec-kdump68 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 DKconfig12 select CMA if HAVE_DMA_CONTIGUOUS
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6ul-ccimx6ulsom.dtsi20 linux,cma {
24 linux,cma-default;
/linux/arch/arm64/boot/dts/freescale/
H A Dtqma8xx.dtsi37 linux,cma {
42 linux,cma-default;
H A Dimx93-tqma9352.dtsi25 linux,cma {
30 linux,cma-default;
H A Dimx8mq-tqma8mq.dtsi52 linux,cma {
59 linux,cma-default;
/linux/drivers/gpu/drm/ingenic/
H A DKconfig5 depends on CMA
/linux/Documentation/features/io/dma-contiguous/
H A Darch-support.txt4 # description: arch supports the DMA CMA (continuous memory allocator)
/linux/drivers/s390/char/
H A Dvmcp.c22 #include <linux/cma.h>
41 static struct cma *vmcp_cma;
H A DKconfig123 select CMA
/linux/arch/arm/boot/dts/broadcom/
H A Dbcm283x.dtsi38 cma: linux,cma { label
42 linux,cma-default;
/linux/Documentation/driver-api/cxl/linux/
H A Doverview.rst41 * Any requested CMA is allocated from Online nodes
/linux/Documentation/devicetree/bindings/remoteproc/
H A Dti,davinci-rproc.txt41 can be a CMA memory node, and should be defined as
/linux/arch/powerpc/kvm/
H A Dbook3s_hv_builtin.c15 #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 Dcma.h3 #define TRACE_SYSTEM cma

123