Home
last modified time | relevance | path

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

/linux-4.4.14/arch/x86/mm/
Dpat_rbtree.c39 static int is_node_overlap(struct memtype *node, u64 start, u64 end) in is_node_overlap()
51 struct memtype *data = container_of(node, struct memtype, rb); in get_subtree_max_end()
57 static u64 compute_subtree_max_end(struct memtype *data) in compute_subtree_max_end()
72 RB_DECLARE_CALLBACKS(static, memtype_rb_augment_cb, struct memtype, rb, in RB_DECLARE_CALLBACKS() argument
76 static struct memtype *memtype_rb_lowest_match(struct rb_root *root, in RB_DECLARE_CALLBACKS()
80 struct memtype *last_lower = NULL; in RB_DECLARE_CALLBACKS()
83 struct memtype *data = container_of(node, struct memtype, rb); in RB_DECLARE_CALLBACKS()
101 static struct memtype *memtype_rb_exact_match(struct rb_root *root, in memtype_rb_exact_match()
104 struct memtype *match; in memtype_rb_exact_match()
115 match = container_of(node, struct memtype, rb); in memtype_rb_exact_match()
[all …]
Dpat_internal.h9 struct memtype { struct
31 extern int rbt_memtype_check_insert(struct memtype *new, argument
33 extern struct memtype *rbt_memtype_erase(u64 start, u64 end);
34 extern struct memtype *rbt_memtype_lookup(u64 addr);
35 extern int rbt_memtype_copy_nth_element(struct memtype *out, loff_t pos);
37 static inline int rbt_memtype_check_insert(struct memtype *new, in rbt_memtype_check_insert()
40 static inline struct memtype *rbt_memtype_erase(u64 start, u64 end) in rbt_memtype_erase()
42 static inline struct memtype *rbt_memtype_lookup(u64 addr) in rbt_memtype_lookup()
44 static inline int rbt_memtype_copy_nth_element(struct memtype *out, loff_t pos) in rbt_memtype_copy_nth_element()
Dpat.c107 enum page_cache_mode memtype) in set_page_memtype() argument
113 switch (memtype) { in set_page_memtype()
140 enum page_cache_mode memtype) in set_page_memtype() argument
490 struct memtype *new; in reserve_memtype()
532 new = kzalloc(sizeof(struct memtype), GFP_KERNEL); in reserve_memtype()
566 struct memtype *entry; in free_memtype()
615 struct memtype *entry; in lookup_memtype()
1011 static struct memtype *memtype_get_idx(loff_t pos) in memtype_get_idx()
1013 struct memtype *print_entry; in memtype_get_idx()
1016 print_entry = kzalloc(sizeof(struct memtype), GFP_KERNEL); in memtype_get_idx()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dgf100.c89 gf100_vm_addr(struct nvkm_vma *vma, u64 phys, u32 memtype, u32 target) in gf100_vm_addr() argument
98 phys |= ((u64)memtype << 36); in gf100_vm_addr()
108 phys = gf100_vm_addr(vma, phys, mem->memtype, 0); in gf100_vm_map()
135 u32 memtype = gf100_pte_storage_type_map[mem->memtype & 0xff]; in gf100_vm_map_sg() local
140 u64 phys = gf100_vm_addr(vma, *list++, memtype, target); in gf100_vm_map_sg()
Dnv50.c64 vm_addr(struct nvkm_vma *vma, u64 phys, u32 memtype, u32 target) in vm_addr() argument
67 phys |= (u64)memtype << 40; in vm_addr()
81 u32 comp = (mem->memtype & 0x180) >> 7; in nv50_vm_map()
92 phys = vm_addr(vma, phys, mem->memtype, target); in nv50_vm_map()
134 u64 phys = vm_addr(vma, (u64)*list++, mem->memtype, target); in nv50_vm_map_sg()
/linux-4.4.14/fs/pstore/
Dram_core.c384 unsigned int memtype) in persistent_ram_vmap() argument
396 if (memtype) in persistent_ram_vmap()
419 unsigned int memtype) in persistent_ram_iomap() argument
432 if (memtype) in persistent_ram_iomap()
441 struct persistent_ram_zone *prz, int memtype) in persistent_ram_buffer_map() argument
447 prz->vaddr = persistent_ram_vmap(start, size, memtype); in persistent_ram_buffer_map()
449 prz->vaddr = persistent_ram_iomap(start, size, memtype); in persistent_ram_buffer_map()
516 unsigned int memtype) in persistent_ram_new() argument
527 ret = persistent_ram_buffer_map(start, size, prz, memtype); in persistent_ram_new()
Dram.c92 unsigned int memtype; member
415 cxt->memtype); in ramoops_init_przs()
445 *prz = persistent_ram_new(*paddr, sz, sig, &cxt->ecc_info, cxt->memtype); in ramoops_init_prz()
494 cxt->memtype = pdata->mem_type; in ramoops_probe()
/linux-4.4.14/drivers/uio/
Duio_mf624.c156 info->mem[0].memtype = UIO_MEM_PHYS; in mf624_pci_probe()
167 info->mem[1].memtype = UIO_MEM_PHYS; in mf624_pci_probe()
178 info->mem[2].memtype = UIO_MEM_PHYS; in mf624_pci_probe()
Duio_pruss.c191 p->mem[0].memtype = UIO_MEM_PHYS; in pruss_probe()
195 p->mem[1].memtype = UIO_MEM_PHYS; in pruss_probe()
199 p->mem[2].memtype = UIO_MEM_PHYS; in pruss_probe()
Duio_cif.c66 info->mem[0].memtype = UIO_MEM_PHYS; in hilscher_pci_probe()
69 info->mem[1].memtype = UIO_MEM_PHYS; in hilscher_pci_probe()
Duio_dmem_genirq.c226 uiomem->memtype = UIO_MEM_PHYS; in uio_dmem_genirq_probe()
242 uiomem->memtype = UIO_MEM_PHYS; in uio_dmem_genirq_probe()
Duio_netx.c92 info->mem[0].memtype = UIO_MEM_PHYS; in netx_pci_probe()
Duio_sercos3.c115 info->mem[n].memtype = UIO_MEM_PHYS; in sercos3_setup_iomem()
Duio_pdrv_genirq.c174 uiomem->memtype = UIO_MEM_PHYS; in uio_pdrv_genirq_probe()
Duio.c610 if (idev->info->mem[mi].memtype == UIO_MEM_LOGICAL) in uio_vma_fault()
697 switch (idev->info->mem[mi].memtype) { in uio_mmap()
Duio_fsl_elbc_gpcm.c388 info->mem[0].memtype = UIO_MEM_PHYS; in uio_fsl_elbc_gpcm_probe()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dpriv.h24 bool (*memtype_valid)(struct nvkm_fb *, u32 memtype);
33 bool nv04_fb_memtype_valid(struct nvkm_fb *, u32 memtype);
Dgf100.c32 u8 memtype = (tile_flags & 0x0000ff00) >> 8; in gf100_fb_memtype_valid() local
33 return likely((gf100_pte_storage_type_map[memtype] != 0xff)); in gf100_fb_memtype_valid()
Dbase.c33 nvkm_fb_memtype_valid(struct nvkm_fb *fb, u32 memtype) in nvkm_fb_memtype_valid() argument
35 return fb->func->memtype_valid(fb, memtype); in nvkm_fb_memtype_valid()
Dnv50.c51 nv50_fb_memtype_valid(struct nvkm_fb *fb, u32 memtype) in nv50_fb_memtype_valid() argument
53 return nv50_fb_memtype[(memtype & 0xff00) >> 8] != 0; in nv50_fb_memtype_valid()
Dramnv50.c529 u32 memtype, struct nvkm_mem **pmem) in nv50_ram_get() argument
535 int comp = (memtype & 0x300) >> 8; in nv50_ram_get()
536 int type = (memtype & 0x07f); in nv50_ram_get()
537 int back = (memtype & 0x800); in nv50_ram_get()
563 mem->memtype = (comp << 7) | type; in nv50_ram_get()
Dramgf100.c446 u32 memtype, struct nvkm_mem **pmem) in gf100_ram_get() argument
452 int type = (memtype & 0x0ff); in gf100_ram_get()
453 int back = (memtype & 0x800); in gf100_ram_get()
481 mem->memtype = type; in gf100_ram_get()
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dfb.h34 u32 memtype; member
60 bool nvkm_fb_memtype_valid(struct nvkm_fb *, u32 memtype);
/linux-4.4.14/arch/arm/mach-at91/
Dpm_suspend.S98 str r0, .memtype
201 ldr r1, .memtype
320 .memtype: label
/linux-4.4.14/drivers/edac/
Dsynopsys_edac.c339 u32 memtype; in synps_edac_get_mtype() local
341 memtype = readl(base + T_ZQ_OFST); in synps_edac_get_mtype()
343 if (memtype & T_ZQ_DDRMODE_MASK) in synps_edac_get_mtype()
/linux-4.4.14/include/linux/
Dpstore_ram.h57 unsigned int memtype);
Duio_driver.h39 int memtype; member
/linux-4.4.14/Documentation/x86/
Dpat.txt104 In addition, step 2 internally tracks the region as UC or WC in memtype
171 With CONFIG_DEBUG_FS enabled, PAT memtype list can be examined by
175 PAT memtype list:
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_bo.c308 nouveau_bo_pin(struct nouveau_bo *nvbo, uint32_t memtype, bool contig) in nouveau_bo_pin() argument
320 memtype == TTM_PL_FLAG_VRAM && contig) { in nouveau_bo_pin()
333 if (!(memtype & (1 << bo->mem.mem_type)) || evict) { in nouveau_bo_pin()
336 1 << bo->mem.mem_type, memtype); in nouveau_bo_pin()
351 nouveau_bo_placement_set(nvbo, memtype, 0); in nouveau_bo_pin()
895 int src_tiled = !!node->memtype; in nv50_bo_move_m2mf()
896 int dst_tiled = !!((struct nvkm_mem *)new_mem->mm_node)->memtype; in nv50_bo_move_m2mf()
1376 if (drm->device.info.family < NV_DEVICE_INFO_V0_TESLA || !node->memtype) in nouveau_ttm_io_mem_reserve()
Dnouveau_ttm.c162 node->memtype = (nvbo->tile_flags & 0x7f00) >> 8; in nouveau_gart_manager_new()
167 node->memtype = (nvbo->tile_flags & 0xff00) >> 8; in nouveau_gart_manager_new()
/linux-4.4.14/drivers/video/fbdev/matrox/
Dmatroxfb_DAC1064.c940 if (minfo->devflags.memtype == -1) in MGAG100_preinit()
943 hw->MXoptionReg |= (minfo->devflags.memtype & 7) << 10; in MGAG100_preinit()
960 if (minfo->devflags.memtype == -1) in MGAG100_preinit()
963 hw->MXoptionReg |= (minfo->devflags.memtype & 7) << 10; in MGAG100_preinit()
Dmatroxfb_base.c1272 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.txt for explana…
Dmatroxfb_base.h454 int memtype; member
/linux-4.4.14/drivers/video/fbdev/sis/
Dsis_main.c4311 u16 index, rindex, memtype = 0; in sisfb_post_sis300() local
4321 memtype = bios[0x52]; in sisfb_post_sis300()
4323 memtype = SiS_GetReg(SISSR, 0x3a); in sisfb_post_sis300()
4325 memtype &= 0x07; in sisfb_post_sis300()
4336 index = memtype * 5; in sisfb_post_sis300()
4364 memtype += 0xa5; in sisfb_post_sis300()
4365 v1 = bios[memtype]; in sisfb_post_sis300()
4366 v2 = bios[memtype + 8]; in sisfb_post_sis300()
4367 v3 = bios[memtype + 16]; in sisfb_post_sis300()
4368 v4 = bios[memtype + 24]; in sisfb_post_sis300()
[all …]
/linux-4.4.14/drivers/target/
Dtarget_core_user.c766 if (info->mem[mi].memtype == UIO_MEM_LOGICAL) in tcmu_vma_fault()
907 info->mem[0].memtype = UIO_MEM_VIRTUAL; in tcmu_configure_device()
/linux-4.4.14/drivers/scsi/bfa/
Dbfa_ioc.c3770 bfa_trc(sfp, req->memtype); in bfa_sfp_getdata_send()
3784 bfa_sfp_getdata(struct bfa_sfp_s *sfp, enum bfi_sfp_mem_e memtype) in bfa_sfp_getdata() argument
3792 sfp->memtype = memtype; in bfa_sfp_getdata()
3793 req->memtype = memtype; in bfa_sfp_getdata()
3876 bfa_trc(sfp, sfp->memtype); in bfa_sfp_show_comp()
3877 if (sfp->memtype == BFI_SFP_MEM_DIAGEXT) { in bfa_sfp_show_comp()
3913 req->memtype = 0; in bfa_sfp_state_query()
Dbfi.h867 u8 memtype; member
Dbfa_ioc.h429 enum bfi_sfp_mem_e memtype; /* mem access type */ member
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
Dgk20a.c556 node->mem.memtype = 0; in gk20a_instobj_new()
/linux-4.4.14/Documentation/fb/
Dmatroxfb.txt149 memtype - specifies memory type, implies 'init'. This is valid only for G200
168 You should use sdram or sgram parameter in addition to memtype
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c2104 u32 offset, memtype, memaddr; in cxgb4_read_tpte() local
2131 memtype = MEM_EDC0; in cxgb4_read_tpte()
2134 memtype = MEM_EDC1; in cxgb4_read_tpte()
2138 memtype = MEM_MC0; in cxgb4_read_tpte()
2145 memtype = MEM_MC1; in cxgb4_read_tpte()
2158 ret = t4_memory_rw(adap, 0, memtype, memaddr, 32, tpte, T4_MEMORY_READ); in cxgb4_read_tpte()
Dcxgb4.h296 u32 memtype; /* which memory (EDC0, EDC1, MC) */ member
Dt4_hw.c7218 dparams->memtype = PCIE_FW_PF_DEVLOG_MEMTYPE_G(pf_dparams); in t4_init_devlog_params()
7241 dparams->memtype = FW_DEVLOG_CMD_MEMTYPE_DEVLOG_G(devlog_meminfo); in t4_init_devlog_params()
Dcxgb4_debugfs.c1093 ret = t4_memory_rw(adap, adap->params.drv_memwin, dparams->memtype, in devlog_open()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dcnic.c1105 uinfo->mem[0].memtype = UIO_MEM_PHYS; in cnic_init_uio()
1128 uinfo->mem[1].memtype = UIO_MEM_LOGICAL; in cnic_init_uio()
1132 uinfo->mem[2].memtype = UIO_MEM_LOGICAL; in cnic_init_uio()
1136 uinfo->mem[3].memtype = UIO_MEM_LOGICAL; in cnic_init_uio()