Home
last modified time | relevance | path

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

/linux-4.1.27/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.c102 enum page_cache_mode memtype) in set_page_memtype() argument
108 switch (memtype) { in set_page_memtype()
134 enum page_cache_mode memtype) in set_page_memtype() argument
396 struct memtype *new; in reserve_memtype()
442 new = kzalloc(sizeof(struct memtype), GFP_KERNEL); in reserve_memtype()
476 struct memtype *entry; in free_memtype()
525 struct memtype *entry; in lookup_memtype()
926 static struct memtype *memtype_get_idx(loff_t pos) in memtype_get_idx()
928 struct memtype *print_entry; in memtype_get_idx()
931 print_entry = kzalloc(sizeof(struct memtype), GFP_KERNEL); in memtype_get_idx()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dgf100.c92 gf100_vm_addr(struct nvkm_vma *vma, u64 phys, u32 memtype, u32 target) in gf100_vm_addr() argument
101 phys |= ((u64)memtype << 36); in gf100_vm_addr()
111 phys = gf100_vm_addr(vma, phys, mem->memtype, 0); in gf100_vm_map()
136 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.c65 vm_addr(struct nvkm_vma *vma, u64 phys, u32 memtype, u32 target) in vm_addr() argument
68 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()
131 u64 phys = vm_addr(vma, (u64)*list++, mem->memtype, target); in nv50_vm_map_sg()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dgf100.c33 u8 memtype = (tile_flags & 0x0000ff00) >> 8; in gf100_fb_memtype_valid() local
34 return likely((gf100_pte_storage_type_map[memtype] != 0xff)); in gf100_fb_memtype_valid()
120 .memtype = gf100_fb_memtype_valid,
Dpriv.h66 bool (*memtype)(struct nvkm_fb *, u32); member
69 bool nv04_fb_memtype_valid(struct nvkm_fb *, u32 memtype);
70 bool nv50_fb_memtype_valid(struct nvkm_fb *, u32 memtype);
Dnv50.c44 nv50_fb_memtype_valid(struct nvkm_fb *pfb, u32 memtype) in nv50_fb_memtype_valid() argument
46 return nv50_fb_memtype[(memtype & 0xff00) >> 8] != 0; in nv50_fb_memtype_valid()
317 .base.memtype = nv50_fb_memtype_valid,
Dramnv50.c254 u32 memtype, struct nvkm_mem **pmem) in nv50_ram_get() argument
260 int comp = (memtype & 0x300) >> 8; in nv50_ram_get()
261 int type = (memtype & 0x07f); in nv50_ram_get()
262 int back = (memtype & 0x800); in nv50_ram_get()
288 mem->memtype = (comp << 7) | type; in nv50_ram_get()
Dgk104.c35 .memtype = gf100_fb_memtype_valid,
Dgm107.c35 .memtype = gf100_fb_memtype_valid,
Dmcp89.c35 .base.memtype = nv50_fb_memtype_valid,
Dmcp77.c35 .base.memtype = nv50_fb_memtype_valid,
Dgt215.c35 .base.memtype = nv50_fb_memtype_valid,
Dg84.c35 .base.memtype = nv50_fb_memtype_valid,
Dnv4e.c37 .base.memtype = nv04_fb_memtype_valid,
Dnv1a.c37 .base.memtype = nv04_fb_memtype_valid,
Dnv47.c37 .base.memtype = nv04_fb_memtype_valid,
Dnv49.c37 .base.memtype = nv04_fb_memtype_valid,
Dnv50.h27 u32 memtype, struct nvkm_mem **);
Dgk20a.c67 .memtype = gf100_fb_memtype_valid,
Dnv46.c51 .base.memtype = nv04_fb_memtype_valid,
Dnv25.c53 .base.memtype = nv04_fb_memtype_valid,
Dnv41.c61 .base.memtype = nv04_fb_memtype_valid,
Dnv36.c54 .base.memtype = nv04_fb_memtype_valid,
Dnv35.c54 .base.memtype = nv04_fb_memtype_valid,
Dnv10.c64 .base.memtype = nv04_fb_memtype_valid,
Dnv40.c68 .base.memtype = nv04_fb_memtype_valid,
Dnv44.c71 .base.memtype = nv04_fb_memtype_valid,
Dnv04.c85 .base.memtype = nv04_fb_memtype_valid,
Dnv20.c87 .base.memtype = nv04_fb_memtype_valid,
Dramgf100.c445 u32 memtype, struct nvkm_mem **pmem) in gf100_ram_get() argument
450 int type = (memtype & 0x0ff); in gf100_ram_get()
451 int back = (memtype & 0x800); in gf100_ram_get()
481 mem->memtype = type; in gf100_ram_get()
Dbase.c135 pfb->memtype_valid = impl->memtype; in nvkm_fb_create_()
Dnv30.c133 .base.memtype = nv04_fb_memtype_valid,
/linux-4.1.27/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
401 cxt->memtype); in ramoops_init_przs()
431 *prz = persistent_ram_new(*paddr, sz, sig, &cxt->ecc_info, cxt->memtype); in ramoops_init_prz()
480 cxt->memtype = pdata->mem_type; in ramoops_probe()
/linux-4.1.27/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.c190 p->mem[0].memtype = UIO_MEM_PHYS; in pruss_probe()
194 p->mem[1].memtype = UIO_MEM_PHYS; in pruss_probe()
198 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.c609 if (idev->info->mem[mi].memtype == UIO_MEM_LOGICAL) in uio_vma_fault()
696 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.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dfb.h34 u32 memtype; member
51 bool (*memtype_valid)(struct nvkm_fb *, u32 memtype);
/linux-4.1.27/arch/arm/mach-at91/
Dpm_suspend.S99 str r0, .memtype
202 ldr r1, .memtype
321 .memtype: label
/linux-4.1.27/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.1.27/include/linux/
Dpstore_ram.h57 unsigned int memtype);
Duio_driver.h39 int memtype; member
/linux-4.1.27/Documentation/x86/
Dpat.txt97 In addition, step 2 internally tracks the region as UC or WC in memtype
133 With CONFIG_DEBUG_FS enabled, PAT memtype list can be examined by
137 PAT memtype list:
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_bo.c313 nouveau_bo_pin(struct nouveau_bo *nvbo, uint32_t memtype, bool contig) in nouveau_bo_pin() argument
325 memtype == TTM_PL_FLAG_VRAM && contig) { in nouveau_bo_pin()
338 if (!(memtype & (1 << bo->mem.mem_type)) || evict) { in nouveau_bo_pin()
341 1 << bo->mem.mem_type, memtype); in nouveau_bo_pin()
356 nouveau_bo_placement_set(nvbo, memtype, 0); in nouveau_bo_pin()
901 int src_tiled = !!node->memtype; in nv50_bo_move_m2mf()
902 int dst_tiled = !!((struct nvkm_mem *)new_mem->mm_node)->memtype; in nv50_bo_move_m2mf()
1381 if (drm->device.info.family < NV_DEVICE_INFO_V0_TESLA || !node->memtype) in nouveau_ttm_io_mem_reserve()
Dnouveau_ttm.c180 node->memtype = (nvbo->tile_flags & 0x7f00) >> 8; in nouveau_gart_manager_new()
184 node->memtype = (nvbo->tile_flags & 0xff00) >> 8; in nouveau_gart_manager_new()
/linux-4.1.27/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.c1281 static int memtype = -1; /* "matroxfb:memtype:xxx" */ variable
2080 minfo->devflags.memtype = memtype; in matroxfb_probe()
2081 if (memtype != -1) in matroxfb_probe()
2424 memtype = simple_strtoul(this_opt+8, NULL, 0); in matroxfb_setup()
2516 module_param(memtype, int, 0);
2517 MODULE_PARM_DESC(memtype, "Memory type for G200/G400 (see Documentation/fb/matroxfb.txt for explana…
Dmatroxfb_base.h479 int memtype; member
/linux-4.1.27/drivers/video/fbdev/sis/
Dsis_main.c4314 u16 index, rindex, memtype = 0; in sisfb_post_sis300() local
4324 memtype = bios[0x52]; in sisfb_post_sis300()
4326 memtype = SiS_GetReg(SISSR, 0x3a); in sisfb_post_sis300()
4328 memtype &= 0x07; in sisfb_post_sis300()
4339 index = memtype * 5; in sisfb_post_sis300()
4367 memtype += 0xa5; in sisfb_post_sis300()
4368 v1 = bios[memtype]; in sisfb_post_sis300()
4369 v2 = bios[memtype + 8]; in sisfb_post_sis300()
4370 v3 = bios[memtype + 16]; in sisfb_post_sis300()
4371 v4 = bios[memtype + 24]; in sisfb_post_sis300()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
Dgk20a.c355 node->mem->memtype = 0; in gk20a_instobj_ctor()
/linux-4.1.27/drivers/target/
Dtarget_core_user.c726 if (info->mem[mi].memtype == UIO_MEM_LOGICAL) in tcmu_vma_fault()
867 info->mem[0].memtype = UIO_MEM_VIRTUAL; in tcmu_configure_device()
/linux-4.1.27/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.1.27/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.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c2067 u32 offset, memtype, memaddr; in cxgb4_read_tpte() local
2094 memtype = MEM_EDC0; in cxgb4_read_tpte()
2097 memtype = MEM_EDC1; in cxgb4_read_tpte()
2101 memtype = MEM_MC0; in cxgb4_read_tpte()
2111 memtype = MEM_MC1; in cxgb4_read_tpte()
2121 ret = t4_memory_rw(adap, 0, memtype, memaddr, 32, tpte, T4_MEMORY_READ); in cxgb4_read_tpte()
Dcxgb4.h290 u32 memtype; /* which memory (EDC0, EDC1, MC) */ member
Dt4_hw.c5213 dparams->memtype = PCIE_FW_PF_DEVLOG_MEMTYPE_G(pf_dparams); in t4_init_devlog_params()
5235 dparams->memtype = FW_DEVLOG_CMD_MEMTYPE_DEVLOG_G(devlog_meminfo); in t4_init_devlog_params()
Dcxgb4_debugfs.c915 ret = t4_memory_rw(adap, adap->params.drv_memwin, dparams->memtype, in devlog_open()
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dcnic.c1094 uinfo->mem[0].memtype = UIO_MEM_PHYS; in cnic_init_uio()
1117 uinfo->mem[1].memtype = UIO_MEM_LOGICAL; in cnic_init_uio()
1121 uinfo->mem[2].memtype = UIO_MEM_LOGICAL; in cnic_init_uio()
1125 uinfo->mem[3].memtype = UIO_MEM_LOGICAL; in cnic_init_uio()