Home
last modified time | relevance | path

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

12

/linux/mm/
A Dmemory-tiers.c517 node_memory_types[node].memtype = memtype; in __init_node_memory_type()
526 if (node_memory_types[node].memtype == memtype) { in __init_node_memory_type()
548 if (IS_ERR(memtype)) { in set_node_memory_tier()
556 memtype = node_memory_types[node].memtype; in set_node_memory_tier()
594 memtype = node_memory_types[node].memtype; in clear_node_memory_tier()
611 kfree(memtype); in release_memtype()
618 memtype = kmalloc(sizeof(*memtype), GFP_KERNEL); in alloc_memory_type()
619 if (!memtype) in alloc_memory_type()
626 return memtype; in alloc_memory_type()
648 if (node_memory_types[node].memtype == memtype || !memtype) in clear_node_memory_type()
[all …]
/linux/arch/x86/mm/pat/
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()
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,
57 static struct memtype *memtype_match(u64 start, u64 end, int match_type) in memtype_match()
59 struct memtype *entry_match; in memtype_match()
82 struct memtype *entry_match; in memtype_check_conflict()
131 struct memtype *memtype_erase(u64 start, u64 end) in memtype_erase()
133 struct memtype *entry_old; in memtype_erase()
164 struct memtype *memtype_lookup(u64 addr) in memtype_lookup()
175 int memtype_copy_nth_element(struct memtype *entry_out, loff_t pos) in memtype_copy_nth_element()
[all …]
A Dmemtype.c141 enum page_cache_mode memtype) in set_page_memtype() argument
147 switch (memtype) { in set_page_memtype()
174 enum page_cache_mode memtype) in set_page_memtype() argument
523 struct memtype *entry_new; in memtype_reserve()
576 entry_new = kzalloc(sizeof(struct memtype), GFP_KERNEL); in memtype_reserve()
609 struct memtype *entry_old; in memtype_free()
657 struct memtype *entry; in lookup_memtype()
1132 static struct memtype *memtype_get_idx(loff_t pos) in memtype_get_idx()
1134 struct memtype *entry_print; in memtype_get_idx()
1137 entry_print = kzalloc(sizeof(struct memtype), GFP_KERNEL); in memtype_get_idx()
[all …]
A DMakefile3 obj-y := set_memory.o memtype.o
/linux/include/linux/
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
A Duio_driver.h48 int memtype; member
/linux/fs/pstore/
A Dram_core.c404 unsigned int memtype) in persistent_ram_vmap() argument
416 switch (memtype) { in persistent_ram_vmap()
427 pr_err("invalid mem_type=%d\n", memtype); in persistent_ram_vmap()
458 unsigned int memtype, char *label) in persistent_ram_iomap() argument
469 if (memtype) in persistent_ram_iomap()
483 struct persistent_ram_zone *prz, int memtype) in persistent_ram_buffer_map() argument
489 prz->vaddr = persistent_ram_vmap(start, size, memtype); in persistent_ram_buffer_map()
491 prz->vaddr = persistent_ram_iomap(start, size, memtype, in persistent_ram_buffer_map()
586 unsigned int memtype, u32 flags, char *label) in persistent_ram_new() argument
604 ret = persistent_ram_buffer_map(start, size, prz, memtype); in persistent_ram_new()
A Dram_internal.h84 unsigned int memtype, u32 flags, char *label);
A Dram.c91 unsigned int memtype; member
556 cxt->memtype, flags, label); in ramoops_init_przs()
603 cxt->memtype, PRZ_FLAG_ZAP_OLD, label); in ramoops_init_prz()
777 cxt->memtype = pdata->mem_type; in ramoops_probe()
/linux/drivers/edac/
A Dsynopsys_edac.c798 u32 memtype; in zynq_get_mtype() local
800 memtype = readl(base + T_ZQ_OFST); in zynq_get_mtype()
802 if (memtype & T_ZQ_DDRMODE_MASK) in zynq_get_mtype()
822 u32 memtype; in zynqmp_get_mtype() local
826 if ((memtype & MEM_TYPE_DDR3) || (memtype & MEM_TYPE_LPDDR3)) in zynqmp_get_mtype()
828 else if (memtype & MEM_TYPE_DDR2) in zynqmp_get_mtype()
830 else if ((memtype & MEM_TYPE_LPDDR4) || (memtype & MEM_TYPE_DDR4)) in zynqmp_get_mtype()
1202 u32 width, memtype; in setup_column_address_map() local
1232 if (memtype & MEM_TYPE_LPDDR3) { in setup_column_address_map()
1252 if (memtype & MEM_TYPE_LPDDR3) { in setup_column_address_map()
[all …]
/linux/drivers/uio/
A Duio_hv_generic.c285 pdata->info.mem[TXRX_RING_MAP].memtype = UIO_MEM_IOVA; in hv_uio_probe()
291 pdata->info.mem[INT_PAGE_MAP].memtype = UIO_MEM_LOGICAL; in hv_uio_probe()
297 pdata->info.mem[MON_PAGE_MAP].memtype = UIO_MEM_LOGICAL; in hv_uio_probe()
320 pdata->info.mem[RECV_BUF_MAP].memtype = UIO_MEM_VIRTUAL; in hv_uio_probe()
342 pdata->info.mem[SEND_BUF_MAP].memtype = UIO_MEM_VIRTUAL; in hv_uio_probe()
A Duio_cif.c64 info->mem[0].memtype = UIO_MEM_PHYS; in hilscher_pci_probe()
67 info->mem[1].memtype = UIO_MEM_PHYS; in hilscher_pci_probe()
A Duio_dfl.c30 uiomem->memtype = UIO_MEM_PHYS; in uio_dfl_probe()
A Duio_dmem_genirq.c244 uiomem->memtype = UIO_MEM_PHYS; in uio_dmem_genirq_probe()
260 uiomem->memtype = UIO_MEM_DMA_COHERENT; in uio_dmem_genirq_probe()
A Duio_pci_generic.c121 uiomem->memtype = UIO_MEM_PHYS; in probe()
A Duio_netx.c91 info->mem[0].memtype = UIO_MEM_PHYS; in netx_pci_probe()
A Duio_mf624.c128 mem->memtype = UIO_MEM_PHYS; in mf624_setup_mem()
A Duio_sercos3.c116 info->mem[n].memtype = UIO_MEM_PHYS; in sercos3_setup_iomem()
/linux/drivers/firmware/efi/libstub/
A Dmem.c23 int memtype = install_cfg_tbl ? EFI_ACPI_RECLAIM_MEMORY in efi_get_memory_map() local
37 status = efi_bs_call(allocate_pool, memtype, sizeof(*m) + size, in efi_get_memory_map()
/linux/drivers/gpu/drm/msm/disp/dpu1/
A Ddpu_hw_catalog.c521 .memtype = {2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},
541 .memtype = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
561 .memtype = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
581 .memtype = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
/linux/include/linux/mtd/
A Dhyperbus.h42 enum hyperbus_memtype memtype; member
/linux/Documentation/arch/x86/
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/
A Dhyperbus-core.c79 hbdev->memtype = HYPERFLASH; in hyperbus_register_device()
/linux/arch/x86/include/asm/
A Dvmx.h151 static inline u64 vmx_basic_encode_vmcs_info(u32 revision, u16 size, u8 memtype) in vmx_basic_encode_vmcs_info() argument
153 return revision | ((u64)size << 32) | ((u64)memtype << 50); in vmx_basic_encode_vmcs_info()

Completed in 46 milliseconds

12