Home
last modified time | relevance | path

Searched refs:memtype (Results 1 – 25 of 33) sorted by relevance

12

/linux/mm/
H A Dmemory-tiers.c34 struct memory_dev_type *memtype; member
151 struct memory_dev_type *memtype; in get_memtier_nodemask() local
153 list_for_each_entry(memtype, &memtier->memory_types, tier_sibling) in get_memtier_nodemask()
154 nodes_or(nodes, nodes, memtype->nodes); in get_memtier_nodemask()
197 static struct memory_tier *find_create_memory_tier(struct memory_dev_type *memtype) in find_create_memory_tier() argument
202 int adistance = memtype->adistance; in find_create_memory_tier()
212 if (!list_empty(&memtype->tier_sibling)) { in find_create_memory_tier()
256 list_add(&memtype->tier_sibling, &memtier->memory_types); in find_create_memory_tier()
524 static inline void __init_node_memory_type(int node, struct memory_dev_type *memtype) in __init_node_memory_type() argument
526 if (!node_memory_types[node].memtype) in __init_node_memory_type()
[all …]
/linux/arch/x86/mm/pat/
H A Dmemtype.h10 struct memtype { struct
32 extern int memtype_check_insert(struct memtype *entry_new, argument
34 extern struct memtype *memtype_erase(u64 start, u64 end);
35 extern struct memtype *memtype_lookup(u64 addr);
36 extern int memtype_copy_nth_element(struct memtype *entry_out, loff_t pos);
38 static inline int memtype_check_insert(struct memtype *entry_new, in memtype_check_insert()
41 static inline struct memtype *memtype_erase(u64 start, u64 end) in memtype_erase()
43 static inline struct memtype *memtype_lookup(u64 addr) in memtype_lookup()
45 static inline int memtype_copy_nth_element(struct memtype *out, loff_t pos) in memtype_copy_nth_element()
H A Dmemtype_interval.c36 static inline u64 interval_start(struct memtype *entry) in interval_start()
41 static inline u64 interval_end(struct memtype *entry) in interval_end()
46 INTERVAL_TREE_DEFINE(struct memtype, rb, u64, subtree_max_end,
56 struct memtype *entry_match; in memtype_check_conflict()
90 int memtype_check_insert(struct memtype *entry_new, enum page_cache_mode *ret_type) in memtype_check_insert()
105 struct memtype *memtype_erase(u64 start, u64 end) in memtype_erase()
107 struct memtype *entry = interval_iter_first(&memtype_rbroot, start, end - 1); in memtype_erase()
119 struct memtype *memtype_lookup(u64 addr) in memtype_lookup()
130 int memtype_copy_nth_element(struct memtype *entry_out, loff_t pos) in memtype_copy_nth_element()
132 struct memtype *entry_match; in memtype_copy_nth_element()
H A Dmemtype.c143 enum page_cache_mode memtype) in set_page_memtype() argument
149 switch (memtype) { in set_page_memtype()
176 enum page_cache_mode memtype) in set_page_memtype() argument
524 struct memtype *entry_new; in memtype_reserve()
577 entry_new = kzalloc_obj(struct memtype); in memtype_reserve()
610 struct memtype *entry_old; in memtype_free()
658 struct memtype *entry; in lookup_memtype()
964 static struct memtype *memtype_get_idx(loff_t pos) in memtype_get_idx()
966 struct memtype *entry_print; in memtype_get_idx()
969 entry_print = kzalloc_obj(struct memtype); in memtype_get_idx()
[all …]
H A DMakefile3 obj-y := set_memory.o memtype.o
/linux/include/linux/
H A Dmemory-tiers.h43 void put_memory_type(struct memory_dev_type *memtype);
45 void clear_node_memory_type(int node, struct memory_dev_type *memtype);
89 static inline void put_memory_type(struct memory_dev_type *memtype) in put_memory_type() argument
99 static inline void clear_node_memory_type(int node, struct memory_dev_type *memtype) in clear_node_memory_type() argument
H A Duio_driver.h48 int memtype; member
/linux/fs/pstore/
H A Dram_core.c414 unsigned int memtype) in persistent_ram_vmap() argument
426 switch (memtype) { in persistent_ram_vmap()
437 pr_err("invalid mem_type=%d\n", memtype); in persistent_ram_vmap()
475 unsigned int memtype, char *label) in persistent_ram_iomap() argument
486 if (memtype) in persistent_ram_iomap()
500 struct persistent_ram_zone *prz, int memtype) in persistent_ram_buffer_map() argument
506 prz->vaddr = persistent_ram_vmap(start, size, memtype); in persistent_ram_buffer_map()
508 prz->vaddr = persistent_ram_iomap(start, size, memtype, in persistent_ram_buffer_map()
603 unsigned int memtype, u32 flags, char *label) in persistent_ram_new() argument
621 ret = persistent_ram_buffer_map(start, size, prz, memtype); in persistent_ram_new()
H A Dram_internal.h84 unsigned int memtype, u32 flags, char *label);
H A Dram.c91 unsigned int memtype; member
555 cxt->memtype, flags, label); in ramoops_init_przs()
602 cxt->memtype, PRZ_FLAG_ZAP_OLD, label); in ramoops_init_prz()
776 cxt->memtype = pdata->mem_type; in ramoops_probe()
/linux/drivers/edac/
H A Dsynopsys_edac.c791 u32 memtype; in zynq_get_mtype() local
793 memtype = readl(base + T_ZQ_OFST); in zynq_get_mtype()
795 if (memtype & T_ZQ_DDRMODE_MASK) in zynq_get_mtype()
815 u32 memtype; in zynqmp_get_mtype() local
817 memtype = readl(base + CTRL_OFST); in zynqmp_get_mtype()
819 if ((memtype & MEM_TYPE_DDR3) || (memtype & MEM_TYPE_LPDDR3)) in zynqmp_get_mtype()
821 else if (memtype & MEM_TYPE_DDR2) in zynqmp_get_mtype()
823 else if ((memtype & MEM_TYPE_LPDDR4) || (memtype & MEM_TYPE_DDR4)) in zynqmp_get_mtype()
1195 u32 width, memtype; in setup_column_address_map() local
1198 memtype = readl(priv->baseaddr + CTRL_OFST); in setup_column_address_map()
[all …]
/linux/include/linux/mtd/
H A Dhyperbus.h42 enum hyperbus_memtype memtype; member
/linux/drivers/uio/
H A Duio_dfl.c30 uiomem->memtype = UIO_MEM_PHYS; in uio_dfl_probe()
H A Duio_pci_generic.c121 uiomem->memtype = UIO_MEM_PHYS; in probe()
H A Duio_mf624.c128 mem->memtype = UIO_MEM_PHYS; in mf624_setup_mem()
H A Duio_pci_generic_sva.c120 uiomem->memtype = UIO_MEM_PHYS; in probe()
H A Duio.c712 if (idev->info->mem[mi].memtype == UIO_MEM_LOGICAL) in uio_vma_fault()
758 if (idev->info->mem[mi].memtype == UIO_MEM_PHYS) in uio_mmap_physical()
858 switch (idev->info->mem[mi].memtype) { in uio_mmap()
H A Duio_fsl_elbc_gpcm.c394 info->mem[0].memtype = UIO_MEM_PHYS; in uio_fsl_elbc_gpcm_probe()
/linux/Documentation/arch/x86/
H A Dpat.rst112 In addition, step 2 internally tracks the region as UC or WC in memtype
177 With CONFIG_DEBUG_FS enabled, PAT memtype list can be examined by::
181 PAT memtype list:
/linux/drivers/mtd/hyperbus/
H A Dhyperbus-core.c79 hbdev->memtype = HYPERFLASH; in hyperbus_register_device()
/linux/arch/arm/mach-at91/
H A Dpm_suspend.S318 ldr r1, .memtype
404 ldr r1, .memtype
1085 str tmp1, .memtype
1171 .memtype: label
/linux/drivers/video/fbdev/matrox/
H A Dmatroxfb_base.c1277 static int memtype = -1; /* "matroxfb:memtype:xxx" */ variable
2087 minfo->devflags.memtype = memtype; in matroxfb_probe()
2088 if (memtype != -1) in matroxfb_probe()
2436 memtype = simple_strtoul(this_opt+8, NULL, 0); in matroxfb_setup()
2524 module_param(memtype, int, 0);
2525 MODULE_PARM_DESC(memtype, "Memory type for G200/G400 (see Documentation/fb/matroxfb.rst for explana…
H A Dmatroxfb_base.h453 int memtype; member
/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_hw_catalog.h616 u32 memtype[MAX_XIN_COUNT]; member
/linux/Documentation/fb/
H A Dmatroxfb.rst158 memtype specifies memory type, implies 'init'. This is valid only for G200
181 You should use sdram or sgram parameter in addition to memtype

12