Home
last modified time | relevance | path

Searched refs:memtype (Results 1 - 25 of 122) sorted by relevance

12345

/kernel/linux/linux-6.6/mm/
H A Dmemory-tiers.c32 struct memory_dev_type *memtype; member
116 struct memory_dev_type *memtype; in get_memtier_nodemask() local
118 list_for_each_entry(memtype, &memtier->memory_types, tier_sibiling) in get_memtier_nodemask()
119 nodes_or(nodes, nodes, memtype->nodes); in get_memtier_nodemask()
162 static struct memory_tier *find_create_memory_tier(struct memory_dev_type *memtype) in find_create_memory_tier() argument
167 int adistance = memtype->adistance; in find_create_memory_tier()
174 * If the memtype is already part of a memory tier, in find_create_memory_tier()
177 if (!list_empty(&memtype->tier_sibiling)) { in find_create_memory_tier()
221 list_add(&memtype->tier_sibiling, &memtier->memory_types); in find_create_memory_tier()
457 static inline void __init_node_memory_type(int node, struct memory_dev_type *memtype) in __init_node_memory_type() argument
478 struct memory_dev_type *memtype; set_node_memory_tier() local
523 struct memory_dev_type *memtype; clear_node_memory_tier() local
541 struct memory_dev_type *memtype; release_memtype() local
549 struct memory_dev_type *memtype; alloc_memory_type() local
563 put_memory_type(struct memory_dev_type *memtype) put_memory_type() argument
569 init_node_memory_type(int node, struct memory_dev_type *memtype) init_node_memory_type() argument
578 clear_node_memory_type(int node, struct memory_dev_type *memtype) clear_node_memory_type() argument
[all...]
/kernel/linux/linux-5.10/arch/x86/mm/pat/
H A Dmemtype.h10 struct memtype { struct
32 extern int memtype_check_insert(struct memtype *entry_new,
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.c19 #include <asm/memtype.h>
21 #include "memtype.h"
24 * The memtype tree keeps track of memory type for specific
36 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()
116 int memtype_check_insert(struct memtype *entry_ne
[all...]
H A Dmemtype.c54 #include <asm/memtype.h>
57 #include "memtype.h"
144 enum page_cache_mode memtype) in set_page_memtype()
150 switch (memtype) { in set_page_memtype()
177 enum page_cache_mode memtype) in set_page_memtype()
409 static DEFINE_SPINLOCK(memtype_lock); /* protects memtype accesses */
489 * - Find the memtype of all the pages in the range, look for any conflicts.
490 * - In case of no conflicts, set the new memtype for pages in the range.
551 * When changing the memtype for pages containing poison allow in sanitize_phys()
580 struct memtype *entry_ne in memtype_reserve()
143 set_page_memtype(struct page *pg, enum page_cache_mode memtype) set_page_memtype() argument
176 set_page_memtype(struct page *pg, enum page_cache_mode memtype) set_page_memtype() argument
[all...]
H A DMakefile3 obj-y := set_memory.o memtype.o
/kernel/linux/linux-6.6/arch/x86/mm/pat/
H A Dmemtype.h10 struct memtype { struct
32 extern int memtype_check_insert(struct memtype *entry_new,
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.c19 #include <asm/memtype.h>
21 #include "memtype.h"
24 * The memtype tree keeps track of memory type for specific
36 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()
116 int memtype_check_insert(struct memtype *entry_ne
[all...]
H A Dmemtype.c55 #include <asm/memtype.h>
58 #include "memtype.h"
140 enum page_cache_mode memtype) in set_page_memtype()
146 switch (memtype) { in set_page_memtype()
173 enum page_cache_mode memtype) in set_page_memtype()
370 static DEFINE_SPINLOCK(memtype_lock); /* protects memtype accesses */
450 * - Find the memtype of all the pages in the range, look for any conflicts.
451 * - In case of no conflicts, set the new memtype for pages in the range.
512 * When changing the memtype for pages containing poison allow in sanitize_phys()
541 struct memtype *entry_ne in memtype_reserve()
139 set_page_memtype(struct page *pg, enum page_cache_mode memtype) set_page_memtype() argument
172 set_page_memtype(struct page *pg, enum page_cache_mode memtype) set_page_memtype() argument
[all...]
H A DMakefile3 obj-y := set_memory.o memtype.o
/kernel/linux/linux-6.6/include/linux/
H A Dmemory-tiers.h36 void put_memory_type(struct memory_dev_type *memtype);
38 void clear_node_memory_type(int node, struct memory_dev_type *memtype);
71 static inline void put_memory_type(struct memory_dev_type *memtype) in put_memory_type() argument
81 static inline void clear_node_memory_type(int node, struct memory_dev_type *memtype) in clear_node_memory_type() argument
/kernel/linux/linux-6.6/fs/pstore/
H A Dram_core.c404 unsigned int memtype) in persistent_ram_vmap()
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()
469 if (memtype) in persistent_ram_iomap()
483 struct persistent_ram_zone *prz, int memtype) in persistent_ram_buffer_map()
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()
604 ret = persistent_ram_buffer_map(start, size, prz, memtype); in persistent_ram_new()
403 persistent_ram_vmap(phys_addr_t start, size_t size, unsigned int memtype) persistent_ram_vmap() argument
457 persistent_ram_iomap(phys_addr_t start, size_t size, unsigned int memtype, char *label) persistent_ram_iomap() argument
482 persistent_ram_buffer_map(phys_addr_t start, phys_addr_t size, struct persistent_ram_zone *prz, int memtype) persistent_ram_buffer_map() argument
584 persistent_ram_new(phys_addr_t start, size_t size, u32 sig, struct persistent_ram_ecc_info *ecc_info, unsigned int memtype, u32 flags, char *label) persistent_ram_new() argument
[all...]
H A Dram_internal.h84 unsigned int memtype, u32 flags, char *label);
/kernel/linux/linux-5.10/fs/pstore/
H A Dram_core.c400 unsigned int memtype) in persistent_ram_vmap()
412 if (memtype) in persistent_ram_vmap()
444 unsigned int memtype, char *label) in persistent_ram_iomap()
455 if (memtype) in persistent_ram_iomap()
469 struct persistent_ram_zone *prz, int memtype) in persistent_ram_buffer_map()
475 prz->vaddr = persistent_ram_vmap(start, size, memtype); in persistent_ram_buffer_map()
477 prz->vaddr = persistent_ram_iomap(start, size, memtype, in persistent_ram_buffer_map()
565 unsigned int memtype, u32 flags, char *label) in persistent_ram_new()
583 ret = persistent_ram_buffer_map(start, size, prz, memtype); in persistent_ram_new()
399 persistent_ram_vmap(phys_addr_t start, size_t size, unsigned int memtype) persistent_ram_vmap() argument
443 persistent_ram_iomap(phys_addr_t start, size_t size, unsigned int memtype, char *label) persistent_ram_iomap() argument
468 persistent_ram_buffer_map(phys_addr_t start, phys_addr_t size, struct persistent_ram_zone *prz, int memtype) persistent_ram_buffer_map() argument
563 persistent_ram_new(phys_addr_t start, size_t size, u32 sig, struct persistent_ram_ecc_info *ecc_info, unsigned int memtype, u32 flags, char *label) persistent_ram_new() argument
/kernel/linux/linux-5.10/drivers/edac/
H A Dsynopsys_edac.c727 u32 memtype; in zynq_get_mtype() local
729 memtype = readl(base + T_ZQ_OFST); in zynq_get_mtype()
731 if (memtype & T_ZQ_DDRMODE_MASK) in zynq_get_mtype()
751 u32 memtype; in zynqmp_get_mtype() local
753 memtype = readl(base + CTRL_OFST); in zynqmp_get_mtype()
755 if ((memtype & MEM_TYPE_DDR3) || (memtype & MEM_TYPE_LPDDR3)) in zynqmp_get_mtype()
757 else if (memtype & MEM_TYPE_DDR2) in zynqmp_get_mtype()
759 else if ((memtype & MEM_TYPE_LPDDR4) || (memtype in zynqmp_get_mtype()
1119 u32 width, memtype; setup_column_address_map() local
[all...]
/kernel/linux/linux-6.6/drivers/edac/
H A Dsynopsys_edac.c751 u32 memtype; in zynq_get_mtype() local
753 memtype = readl(base + T_ZQ_OFST); in zynq_get_mtype()
755 if (memtype & T_ZQ_DDRMODE_MASK) in zynq_get_mtype()
775 u32 memtype; in zynqmp_get_mtype() local
777 memtype = readl(base + CTRL_OFST); in zynqmp_get_mtype()
779 if ((memtype & MEM_TYPE_DDR3) || (memtype & MEM_TYPE_LPDDR3)) in zynqmp_get_mtype()
781 else if (memtype & MEM_TYPE_DDR2) in zynqmp_get_mtype()
783 else if ((memtype & MEM_TYPE_LPDDR4) || (memtype in zynqmp_get_mtype()
1146 u32 width, memtype; setup_column_address_map() local
[all...]
/kernel/linux/linux-6.6/drivers/uio/
H A Duio_hv_generic.c275 pdata->info.mem[TXRX_RING_MAP].memtype = UIO_MEM_IOVA; in hv_uio_probe()
281 pdata->info.mem[INT_PAGE_MAP].memtype = UIO_MEM_LOGICAL; in hv_uio_probe()
287 pdata->info.mem[MON_PAGE_MAP].memtype = UIO_MEM_LOGICAL; in hv_uio_probe()
309 pdata->info.mem[RECV_BUF_MAP].memtype = UIO_MEM_VIRTUAL; in hv_uio_probe()
330 pdata->info.mem[SEND_BUF_MAP].memtype = UIO_MEM_VIRTUAL; in hv_uio_probe()
H A Duio_pruss.c188 p->mem[0].memtype = UIO_MEM_PHYS; in pruss_probe()
192 p->mem[1].memtype = UIO_MEM_PHYS; in pruss_probe()
196 p->mem[2].memtype = UIO_MEM_PHYS; in pruss_probe()
H 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()
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/
H 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()
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/
H 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()
/kernel/linux/linux-5.10/drivers/uio/
H A Duio_hv_generic.c278 pdata->info.mem[TXRX_RING_MAP].memtype = UIO_MEM_IOVA; in hv_uio_probe()
284 pdata->info.mem[INT_PAGE_MAP].memtype = UIO_MEM_LOGICAL; in hv_uio_probe()
290 pdata->info.mem[MON_PAGE_MAP].memtype = UIO_MEM_LOGICAL; in hv_uio_probe()
312 pdata->info.mem[RECV_BUF_MAP].memtype = UIO_MEM_VIRTUAL; in hv_uio_probe()
333 pdata->info.mem[SEND_BUF_MAP].memtype = UIO_MEM_VIRTUAL; in hv_uio_probe()
H 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()
H A Duio_pruss.c199 p->mem[0].memtype = UIO_MEM_PHYS; in pruss_probe()
203 p->mem[1].memtype = UIO_MEM_PHYS; in pruss_probe()
207 p->mem[2].memtype = UIO_MEM_PHYS; in pruss_probe()
/kernel/linux/linux-5.10/include/linux/mtd/
H A Dhyperbus.h33 * @memtype: type of memory device: HyperFlash or HyperRAM
42 enum hyperbus_memtype memtype; member
/kernel/linux/linux-6.6/include/linux/mtd/
H A Dhyperbus.h33 * @memtype: type of memory device: HyperFlash or HyperRAM
42 enum hyperbus_memtype memtype; member

Completed in 14 milliseconds

12345