/openbmc/linux/mm/ |
H A D | memory-tiers.c | 32 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() 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 459 if (!node_memory_types[node].memtype) in __init_node_memory_type() [all …]
|
/openbmc/linux/arch/x86/mm/pat/ |
H A D | memtype.h | 10 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 D | memtype_interval.c | 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_new, enum page_cache_mode *ret_type) in memtype_check_insert() 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() [all …]
|
H A D | memtype.c | 140 enum page_cache_mode memtype) in set_page_memtype() argument 146 switch (memtype) { in set_page_memtype() 173 enum page_cache_mode memtype) in set_page_memtype() argument 541 struct memtype *entry_new; in memtype_reserve() 594 entry_new = kzalloc(sizeof(struct memtype), GFP_KERNEL); in memtype_reserve() 627 struct memtype *entry_old; in memtype_free() 675 struct memtype *entry; in lookup_memtype() 1130 static struct memtype *memtype_get_idx(loff_t pos) in memtype_get_idx() 1132 struct memtype *entry_print; in memtype_get_idx() 1135 entry_print = kzalloc(sizeof(struct memtype), GFP_KERNEL); in memtype_get_idx() [all …]
|
H A D | Makefile | 3 obj-y := set_memory.o memtype.o
|
/openbmc/u-boot/arch/mips/mach-ath79/ar934x/ |
H A D | ddr.c | 41 int memtype; in ar934x_ddr_init() local 50 memtype = AR934X_DDR1; in ar934x_ddr_init() 53 memtype = AR934X_DDR2; in ar934x_ddr_init() 79 memtype = AR934X_SDRAM; in ar934x_ddr_init() 90 memcfg = &ar934x_mem_config[memtype]; in ar934x_ddr_init() 107 if (memtype == AR934X_DDR2) { in ar934x_ddr_init() 115 if (memtype != AR934X_SDRAM) in ar934x_ddr_init() 138 if (memtype != AR934X_SDRAM) { in ar934x_ddr_init()
|
/openbmc/linux/include/linux/ |
H A D | memory-tiers.h | 36 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
|
H A D | uio_driver.h | 42 int memtype; member
|
/openbmc/linux/fs/pstore/ |
H A D | ram_core.c | 404 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()
|
H A D | ram_internal.h | 84 unsigned int memtype, u32 flags, char *label);
|
H A D | ram.c | 87 unsigned int memtype; member 552 cxt->memtype, flags, label); in ramoops_init_przs() 599 cxt->memtype, PRZ_FLAG_ZAP_OLD, label); in ramoops_init_prz() 773 cxt->memtype = pdata->mem_type; in ramoops_probe()
|
/openbmc/linux/drivers/edac/ |
H A D | synopsys_edac.c | 798 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 824 memtype = readl(base + CTRL_OFST); in zynqmp_get_mtype() 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 1205 memtype = readl(priv->baseaddr + CTRL_OFST); in setup_column_address_map() [all …]
|
/openbmc/linux/drivers/uio/ |
H A D | uio_hv_generic.c | 286 pdata->info.mem[TXRX_RING_MAP].memtype = UIO_MEM_IOVA; in hv_uio_probe() 292 pdata->info.mem[INT_PAGE_MAP].memtype = UIO_MEM_LOGICAL; in hv_uio_probe() 298 pdata->info.mem[MON_PAGE_MAP].memtype = UIO_MEM_LOGICAL; in hv_uio_probe() 321 pdata->info.mem[RECV_BUF_MAP].memtype = UIO_MEM_VIRTUAL; in hv_uio_probe() 343 pdata->info.mem[SEND_BUF_MAP].memtype = UIO_MEM_VIRTUAL; in hv_uio_probe()
|
H A D | uio_pruss.c | 188 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 D | uio_cif.c | 64 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 D | uio_dfl.c | 30 uiomem->memtype = UIO_MEM_PHYS; in uio_dfl_probe()
|
H A D | uio_dmem_genirq.c | 251 uiomem->memtype = UIO_MEM_PHYS; in uio_dmem_genirq_probe() 267 uiomem->memtype = UIO_MEM_PHYS; in uio_dmem_genirq_probe()
|
H A D | uio_pci_generic.c | 121 uiomem->memtype = UIO_MEM_PHYS; in probe()
|
H A D | uio_netx.c | 91 info->mem[0].memtype = UIO_MEM_PHYS; in netx_pci_probe()
|
H A D | uio_mf624.c | 128 mem->memtype = UIO_MEM_PHYS; in mf624_setup_mem()
|
/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | mem.c | 23 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()
|
/openbmc/linux/include/linux/mtd/ |
H A D | hyperbus.h | 42 enum hyperbus_memtype memtype; member
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_catalog.c | 569 .memtype = {2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2}, 589 .memtype = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3}, 609 .memtype = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
|
/openbmc/linux/Documentation/arch/x86/ |
H A D | pat.rst | 112 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:
|
/openbmc/linux/drivers/mtd/hyperbus/ |
H A D | hyperbus-core.c | 79 hbdev->memtype = HYPERFLASH; in hyperbus_register_device()
|