/Linux-v5.4/arch/x86/mm/ |
D | pat_rbtree.c | 39 static int is_node_overlap(struct memtype *node, u64 start, u64 end) in is_node_overlap() 51 struct memtype *data = rb_entry(node, struct memtype, rb); in get_subtree_max_end() 60 struct memtype, rb, u64, subtree_max_end, NODE_END) in RB_DECLARE_CALLBACKS_MAX() argument 63 static struct memtype *memtype_rb_lowest_match(struct rb_root *root, in RB_DECLARE_CALLBACKS_MAX() 67 struct memtype *last_lower = NULL; in RB_DECLARE_CALLBACKS_MAX() 70 struct memtype *data = rb_entry(node, struct memtype, rb); in RB_DECLARE_CALLBACKS_MAX() 93 static struct memtype *memtype_rb_match(struct rb_root *root, in memtype_rb_match() 96 struct memtype *match; in memtype_rb_match() 112 match = rb_entry(node, struct memtype, rb); in memtype_rb_match() 126 struct memtype *match; in memtype_rb_check_conflict() [all …]
|
D | pat_internal.h | 10 struct memtype { struct 32 extern int rbt_memtype_check_insert(struct memtype *new, argument 34 extern struct memtype *rbt_memtype_erase(u64 start, u64 end); 35 extern struct memtype *rbt_memtype_lookup(u64 addr); 36 extern int rbt_memtype_copy_nth_element(struct memtype *out, loff_t pos); 38 static inline int rbt_memtype_check_insert(struct memtype *new, in rbt_memtype_check_insert() 41 static inline struct memtype *rbt_memtype_erase(u64 start, u64 end) in rbt_memtype_erase() 43 static inline struct memtype *rbt_memtype_lookup(u64 addr) in rbt_memtype_lookup() 45 static inline int rbt_memtype_copy_nth_element(struct memtype *out, loff_t pos) in rbt_memtype_copy_nth_element()
|
D | pat.c | 118 enum page_cache_mode memtype) in set_page_memtype() argument 124 switch (memtype) { in set_page_memtype() 151 enum page_cache_mode memtype) in set_page_memtype() argument 548 struct memtype *new; in reserve_memtype() 596 new = kzalloc(sizeof(struct memtype), GFP_KERNEL); in reserve_memtype() 630 struct memtype *entry; in free_memtype() 682 struct memtype *entry; in lookup_memtype() 1102 static struct memtype *memtype_get_idx(loff_t pos) in memtype_get_idx() 1104 struct memtype *print_entry; in memtype_get_idx() 1107 print_entry = kzalloc(sizeof(struct memtype), GFP_KERNEL); in memtype_get_idx() [all …]
|
/Linux-v5.4/drivers/edac/ |
D | synopsys_edac.c | 729 u32 memtype; in zynq_get_mtype() local 731 memtype = readl(base + T_ZQ_OFST); in zynq_get_mtype() 733 if (memtype & T_ZQ_DDRMODE_MASK) in zynq_get_mtype() 753 u32 memtype; in zynqmp_get_mtype() local 755 memtype = readl(base + CTRL_OFST); in zynqmp_get_mtype() 757 if ((memtype & MEM_TYPE_DDR3) || (memtype & MEM_TYPE_LPDDR3)) in zynqmp_get_mtype() 759 else if (memtype & MEM_TYPE_DDR2) in zynqmp_get_mtype() 761 else if ((memtype & MEM_TYPE_LPDDR4) || (memtype & MEM_TYPE_DDR4)) in zynqmp_get_mtype() 1121 u32 width, memtype; in setup_column_address_map() local 1124 memtype = readl(priv->baseaddr + CTRL_OFST); in setup_column_address_map() [all …]
|
D | pnd2_edac.c | 1271 int i, j, ranks_of_dimm[DNV_MAX_DIMMS], banks, rowbits, colbits, memtype; in dnv_get_dimm_config() local 1277 memtype = MEM_DDR4; in dnv_get_dimm_config() 1281 memtype = MEM_DDR3; in dnv_get_dimm_config() 1297 if (memtype == MEM_DDR3) { in dnv_get_dimm_config() 1325 dimm->mtype = memtype; in dnv_get_dimm_config()
|
/Linux-v5.4/fs/pstore/ |
D | ram_core.c | 402 unsigned int memtype) in persistent_ram_vmap() argument 414 if (memtype) in persistent_ram_vmap() 442 unsigned int memtype, char *label) in persistent_ram_iomap() argument 453 if (memtype) in persistent_ram_iomap() 467 struct persistent_ram_zone *prz, int memtype) in persistent_ram_buffer_map() argument 473 prz->vaddr = persistent_ram_vmap(start, size, memtype); in persistent_ram_buffer_map() 475 prz->vaddr = persistent_ram_iomap(start, size, memtype, in persistent_ram_buffer_map() 563 unsigned int memtype, u32 flags, char *label) in persistent_ram_new() argument 579 ret = persistent_ram_buffer_map(start, size, prz, memtype); in persistent_ram_new()
|
D | ram.c | 79 unsigned int memtype; member 574 cxt->memtype, flags, label); in ramoops_init_przs() 619 cxt->memtype, PRZ_FLAG_ZAP_OLD, label); in ramoops_init_prz() 770 cxt->memtype = pdata->mem_type; in ramoops_probe()
|
/Linux-v5.4/drivers/uio/ |
D | uio_hv_generic.c | 277 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() 309 pdata->info.mem[RECV_BUF_MAP].memtype = UIO_MEM_VIRTUAL; in hv_uio_probe() 328 pdata->info.mem[SEND_BUF_MAP].memtype = UIO_MEM_VIRTUAL; in hv_uio_probe()
|
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()
|
D | uio_pruss.c | 199 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()
|
D | uio_dmem_genirq.c | 222 uiomem->memtype = UIO_MEM_PHYS; in uio_dmem_genirq_probe() 238 uiomem->memtype = UIO_MEM_PHYS; in uio_dmem_genirq_probe()
|
D | uio_netx.c | 91 info->mem[0].memtype = UIO_MEM_PHYS; in netx_pci_probe()
|
D | uio_mf624.c | 128 mem->memtype = UIO_MEM_PHYS; in mf624_setup_mem()
|
D | uio_sercos3.c | 116 info->mem[n].memtype = UIO_MEM_PHYS; in sercos3_setup_iomem()
|
D | uio_pdrv_genirq.c | 180 uiomem->memtype = UIO_MEM_PHYS; in uio_pdrv_genirq_probe()
|
D | uio.c | 695 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()
|
/Linux-v5.4/include/linux/mtd/ |
D | hyperbus.h | 30 enum hyperbus_memtype memtype; member
|
/Linux-v5.4/include/linux/ |
D | pstore_ram.h | 104 unsigned int memtype, u32 flags, char *label);
|
D | uio_driver.h | 42 int memtype; member
|
/Linux-v5.4/arch/arm/mach-at91/ |
D | pm_suspend.S | 93 str tmp1, .memtype 378 ldr r1, .memtype 501 .memtype: label
|
/Linux-v5.4/Documentation/x86/ |
D | pat.rst | 114 In addition, step 2 internally tracks the region as UC or WC in memtype 179 With CONFIG_DEBUG_FS enabled, PAT memtype list can be examined by:: 183 PAT memtype list:
|
/Linux-v5.4/drivers/mtd/hyperbus/ |
D | hyperbus-core.c | 79 hbdev->memtype = HYPERFLASH; in hyperbus_register_device()
|
/Linux-v5.4/drivers/video/fbdev/matrox/ |
D | matroxfb_DAC1064.c | 941 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()
|
D | matroxfb_base.c | 1273 static int memtype = -1; /* "matroxfb:memtype:xxx" */ variable 2070 minfo->devflags.memtype = memtype; in matroxfb_probe() 2071 if (memtype != -1) in matroxfb_probe() 2414 memtype = simple_strtoul(this_opt+8, NULL, 0); in matroxfb_setup() 2504 module_param(memtype, int, 0); 2505 MODULE_PARM_DESC(memtype, "Memory type for G200/G400 (see Documentation/fb/matroxfb.rst for explana…
|
/Linux-v5.4/drivers/gpu/drm/nouveau/ |
D | nouveau_bo.c | 408 nouveau_bo_pin(struct nouveau_bo *nvbo, uint32_t memtype, bool contig) in nouveau_bo_pin() argument 420 memtype == TTM_PL_FLAG_VRAM && contig) { in nouveau_bo_pin() 429 if (!(memtype & (1 << bo->mem.mem_type)) || evict) { in nouveau_bo_pin() 432 1 << bo->mem.mem_type, memtype); in nouveau_bo_pin() 447 nouveau_bo_placement_set(nvbo, memtype, 0); in nouveau_bo_pin()
|