Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/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,
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 Dmemtype.c144 enum page_cache_mode memtype) in set_page_memtype() argument
150 switch (memtype) { in set_page_memtype()
177 enum page_cache_mode memtype) in set_page_memtype() argument
580 struct memtype *entry_new; in memtype_reserve()
633 entry_new = kzalloc(sizeof(struct memtype), GFP_KERNEL); in memtype_reserve()
666 struct memtype *entry_old; in memtype_free()
714 struct memtype *entry; in lookup_memtype()
1138 static struct memtype *memtype_get_idx(loff_t pos) in memtype_get_idx()
1140 struct memtype *entry_print; in memtype_get_idx()
1143 entry_print = kzalloc(sizeof(struct memtype), GFP_KERNEL); in memtype_get_idx()
[all …]
H A DMakefile3 obj-y := set_memory.o memtype.o
/OK3568_Linux_fs/u-boot/arch/mips/mach-ath79/ar934x/
H A Dddr.c42 int memtype; in ar934x_ddr_init() local
51 memtype = AR934X_DDR1; in ar934x_ddr_init()
54 memtype = AR934X_DDR2; in ar934x_ddr_init()
80 memtype = AR934X_SDRAM; in ar934x_ddr_init()
91 memcfg = &ar934x_mem_config[memtype]; in ar934x_ddr_init()
108 if (memtype == AR934X_DDR2) { in ar934x_ddr_init()
116 if (memtype != AR934X_SDRAM) in ar934x_ddr_init()
139 if (memtype != AR934X_SDRAM) { in ar934x_ddr_init()
/OK3568_Linux_fs/kernel/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 & MEM_TYPE_DDR4)) in zynqmp_get_mtype()
1119 u32 width, memtype; in setup_column_address_map() local
1122 memtype = readl(priv->baseaddr + CTRL_OFST); in setup_column_address_map()
[all …]
/OK3568_Linux_fs/kernel/fs/pstore/
H 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()
454 unsigned int memtype, char *label) in persistent_ram_iomap() argument
465 if (memtype) in persistent_ram_iomap()
479 struct persistent_ram_zone *prz, int memtype) in persistent_ram_buffer_map() argument
485 prz->vaddr = persistent_ram_vmap(start, size, memtype); in persistent_ram_buffer_map()
487 prz->vaddr = persistent_ram_iomap(start, size, memtype, in persistent_ram_buffer_map()
575 unsigned int memtype, u32 flags, char *label) in persistent_ram_new() argument
591 ret = persistent_ram_buffer_map(start, size, prz, memtype); in persistent_ram_new()
H A Dram.c93 unsigned int memtype; member
604 cxt->memtype, flags, label); in ramoops_init_przs()
650 cxt->memtype, PRZ_FLAG_ZAP_OLD, label); in ramoops_init_prz()
889 cxt->memtype = pdata->mem_type; in ramoops_probe()
/OK3568_Linux_fs/u-boot/lib/efi_loader/
H A Defi_smbios.c22 int memtype = EFI_RUNTIME_SERVICES_DATA; in efi_smbios_register() local
24 if (efi_allocate_pages(1, memtype, pages, &dmi) != EFI_SUCCESS) in efi_smbios_register()
/OK3568_Linux_fs/kernel/drivers/uio/
H A Duio_hv_generic.c277 pdata->info.mem[TXRX_RING_MAP].memtype = UIO_MEM_IOVA; in hv_uio_probe()
283 pdata->info.mem[INT_PAGE_MAP].memtype = UIO_MEM_LOGICAL; in hv_uio_probe()
289 pdata->info.mem[MON_PAGE_MAP].memtype = UIO_MEM_LOGICAL; in hv_uio_probe()
311 pdata->info.mem[RECV_BUF_MAP].memtype = UIO_MEM_VIRTUAL; in hv_uio_probe()
332 pdata->info.mem[SEND_BUF_MAP].memtype = UIO_MEM_VIRTUAL; in hv_uio_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()
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_dmem_genirq.c236 uiomem->memtype = UIO_MEM_PHYS; in uio_dmem_genirq_probe()
252 uiomem->memtype = UIO_MEM_PHYS; in uio_dmem_genirq_probe()
H A Duio_netx.c91 info->mem[0].memtype = UIO_MEM_PHYS; in netx_pci_probe()
H A Duio_mf624.c128 mem->memtype = UIO_MEM_PHYS; in mf624_setup_mem()
H A Duio_sercos3.c116 info->mem[n].memtype = UIO_MEM_PHYS; in sercos3_setup_iomem()
H A Duio.c695 if (idev->info->mem[mi].memtype == UIO_MEM_LOGICAL) in uio_vma_fault()
741 if (idev->info->mem[mi].memtype == UIO_MEM_PHYS) in uio_mmap_physical()
798 switch (idev->info->mem[mi].memtype) { in uio_mmap()
/OK3568_Linux_fs/kernel/include/linux/mtd/
H A Dhyperbus.h42 enum hyperbus_memtype memtype; member
/OK3568_Linux_fs/kernel/include/linux/
H A Dpstore_ram.h104 unsigned int memtype, u32 flags, char *label);
H A Duio_driver.h43 int memtype; member
/OK3568_Linux_fs/kernel/Documentation/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:
/OK3568_Linux_fs/kernel/arch/arm/mach-at91/
H A Dpm_suspend.S94 str tmp1, .memtype
564 ldr r1, .memtype
687 .memtype: label
/OK3568_Linux_fs/kernel/drivers/mtd/hyperbus/
H A Dhyperbus-core.c79 hbdev->memtype = HYPERFLASH; in hyperbus_register_device()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_uio.c963 uio->mem[0].memtype = UIO_MEM_PHYS; in rockchip_gmac_uio_probe()
968 uio->mem[1].memtype = UIO_MEM_PHYS; in rockchip_gmac_uio_probe()
973 uio->mem[2].memtype = UIO_MEM_PHYS; in rockchip_gmac_uio_probe()
/OK3568_Linux_fs/kernel/drivers/video/fbdev/matrox/
H A Dmatroxfb_DAC1064.c941 if (minfo->devflags.memtype == -1) in MGAG100_preinit()
944 hw->MXoptionReg |= (minfo->devflags.memtype & 7) << 10; in MGAG100_preinit()
961 if (minfo->devflags.memtype == -1) in MGAG100_preinit()
964 hw->MXoptionReg |= (minfo->devflags.memtype & 7) << 10; in MGAG100_preinit()

123