Home
last modified time | relevance | path

Searched refs:mem_type (Results 26 – 50 of 179) sorted by relevance

12345678

/linux/arch/arm/include/asm/mach/
H A Dmap.h53 struct mem_type;
54 extern const struct mem_type *get_mem_type(unsigned int type);
59 const struct mem_type *mtype);
/linux/drivers/gpu/drm/ttm/
H A Dttm_bo.c54 int i, mem_type; in ttm_bo_mem_space_debug() local
57 mem_type = placement->placement[i].mem_type; in ttm_bo_mem_space_debug()
59 i, placement->placement[i].flags, mem_type); in ttm_bo_mem_space_debug()
60 man = ttm_manager_type(bo->bdev, mem_type); in ttm_bo_mem_space_debug()
141 if (mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_handle_move_mem()
498 if (bo->resource->mem_type == TTM_PL_SYSTEM) in ttm_bo_eviction_valuable()
546 if (ret && place && (bo->resource->mem_type != place->mem_type || in ttm_bo_evict_swapout_allowable()
763 man = ttm_manager_type(bdev, place->mem_type); in ttm_bo_alloc_resource()
1134 place.mem_type = bo->resource->mem_type; in ttm_bo_swapout()
1159 if (bo->resource->mem_type != TTM_PL_SYSTEM) { in ttm_bo_swapout()
[all …]
H A Dttm_resource.c84 return &bulk->pos[res->mem_type][res->bo->priority]; in ttm_lru_bulk_move_pos()
168 man = ttm_manager_type(bdev, res->mem_type); in ttm_resource_move_to_lru_tail()
189 res->mem_type = place->mem_type; in ttm_resource_init()
197 man = ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_init()
235 ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_alloc()
259 man = ttm_manager_type(bo->bdev, (*res)->mem_type); in ttm_resource_free()
288 man = ttm_manager_type(bdev, res->mem_type); in ttm_resource_intersects()
319 if (res->mem_type != place->mem_type) in ttm_resource_compatible()
330 man = ttm_manager_type(bdev, res->mem_type); in ttm_resource_compatible()
/linux/include/drm/ttm/
H A Dttm_device.h276 ttm_manager_type(struct ttm_device *bdev, int mem_type) in ttm_manager_type() argument
278 BUILD_BUG_ON(__builtin_constant_p(mem_type) in ttm_manager_type()
279 && mem_type >= TTM_NUM_MEM_TYPES); in ttm_manager_type()
280 return bdev->man_drv[mem_type]; in ttm_manager_type()
/linux/drivers/gpu/drm/qxl/
H A Dqxl_object.c67 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain()
71 qbo->placements[c].mem_type = TTM_PL_PRIV; in qxl_ttm_placement_from_domain()
73 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain()
77 qbo->placements[c].mem_type = TTM_PL_SYSTEM; in qxl_ttm_placement_from_domain()
81 qbo->placements[c].mem_type = TTM_PL_SYSTEM; in qxl_ttm_placement_from_domain()
207 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in qxl_bo_kmap_atomic_page()
209 else if (bo->tbo.resource->mem_type == TTM_PL_PRIV) in qxl_bo_kmap_atomic_page()
260 if ((bo->tbo.resource->mem_type != TTM_PL_VRAM) && in qxl_bo_kunmap_atomic_page()
261 (bo->tbo.resource->mem_type != TTM_PL_PRIV)) in qxl_bo_kunmap_atomic_page()
/linux/arch/loongarch/kernel/
H A Dmem.c15 u32 mem_type; in memblock_init() local
21 mem_type = md->type; in memblock_init()
26 switch (mem_type) { in memblock_init()
H A Dnuma.c278 u32 mem_type; in init_node_memblock() local
284 mem_type = md->type; in init_node_memblock()
289 switch (mem_type) { in init_node_memblock()
296 add_numamem_region(mem_start, mem_end, mem_type); in init_node_memblock()
301 add_numamem_region(mem_start, mem_end, mem_type); in init_node_memblock()
309 mem_type, mem_start, mem_size); in init_node_memblock()
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_bo.c442 pl[*n].mem_type = TTM_PL_VRAM; in nouveau_bo_placement_set()
448 pl[*n].mem_type = TTM_PL_TT; in nouveau_bo_placement_set()
454 pl[*n].mem_type = TTM_PL_SYSTEM; in nouveau_bo_placement_set()
485 switch (bo->resource->mem_type) { in nouveau_bo_pin_locked()
499 bo->resource->mem_type, domain); in nouveau_bo_pin_locked()
520 switch (bo->resource->mem_type) { in nouveau_bo_pin_locked()
546 switch (bo->resource->mem_type) { in nouveau_bo_unpin_locked()
810 switch (bo->resource->mem_type) { in nouveau_bo_evict_flags()
1120 hop->mem_type = TTM_PL_TT; in nouveau_bo_move()
1156 switch (reg->mem_type) { in nouveau_ttm_io_mem_free_locked()
[all …]
/linux/arch/arm/mach-omap2/
H A Dsram.h11 u32 mem_type);
29 u32 mem_type);
42 u32 mem_type);
/linux/drivers/gpu/drm/xe/
H A Dxe_bo_evict.c33 u32 mem_type; in xe_bo_evict_all() local
41 for (mem_type = XE_PL_VRAM0; mem_type <= XE_PL_VRAM1; ++mem_type) { in xe_bo_evict_all()
43 ttm_manager_type(bdev, mem_type); in xe_bo_evict_all()
H A Dxe_bo.h205 bool mem_type_is_vram(u32 mem_type);
211 bool xe_bo_can_migrate(struct xe_bo *bo, u32 mem_type);
213 int xe_bo_migrate(struct xe_bo *bo, u32 mem_type);
326 static inline bool xe_bo_is_mem_type(struct xe_bo *bo, u32 mem_type) in xe_bo_is_mem_type() argument
329 return bo->ttm.resource->mem_type == mem_type; in xe_bo_is_mem_type()
/linux/tools/testing/selftests/mm/
H A Duffd-unit-tests.c29 struct mem_type { struct
35 typedef struct mem_type mem_type_t; argument
72 mem_type_t *mem_type; member
190 map_shared = mem_type->shared; in uffd_setup_environment()
191 uffd_test_ops = mem_type->mem_ops; in uffd_setup_environment()
204 args->mem_type = mem_type; in uffd_setup_environment()
436 if (args->mem_type->shared) { in uffd_wp_fork_test_common()
1270 mem_type_t *mem_type = args->mem_type; in do_register_ioctls_test() local
1485 mem_type_t *mem_type; in main() local
1526 mem_type = &mem_types[j]; in main()
[all …]
/linux/tools/testing/selftests/arm64/mte/
H A Dcheck_ksm_options.c98 static int check_madvise_options(int mem_type, int mode, int mapping) in check_madvise_options() argument
110 ptr = mte_allocate_memory(TEST_UNIT * page_sz, mem_type, mapping, true); in check_madvise_options()
111 if (check_allocated_memory(ptr, TEST_UNIT * page_sz, mem_type, false) != KSFT_PASS) in check_madvise_options()
127 mte_free_memory(ptr, TEST_UNIT * page_sz, mem_type, true); in check_madvise_options()
H A Dcheck_user_mem.c34 static int check_usermem_access_fault(int mem_type, int mode, int mapping, in check_usermem_access_fault() argument
55 ptr = mte_allocate_memory(len, mem_type, mapping, true); in check_usermem_access_fault()
56 if (check_allocated_memory(ptr, len, mem_type, true) != KSFT_PASS) { in check_usermem_access_fault()
137 mte_free_memory((void *)ptr, len, mem_type, true); in check_usermem_access_fault()
/linux/include/trace/events/
H A Dxdp.h330 __field(u32, mem_type)
337 __entry->mem_type = xa->mem.type;
343 __print_symbolic(__entry->mem_type, __MEM_TYPE_SYM_TAB),
358 __field(u32, mem_type)
367 __entry->mem_type = xa->mem.type;
376 __print_symbolic(__entry->mem_type, __MEM_TYPE_SYM_TAB),
392 __field(u32, mem_type)
398 __entry->mem_type = mem->type;
403 __print_symbolic(__entry->mem_type, __MEM_TYPE_SYM_TAB),
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_ttm_move.c108 int mem_type; in i915_ttm_adjust_gem_after_move() local
118 mem_type = I915_PL_SYSTEM; in i915_ttm_adjust_gem_after_move()
123 mem_type = bo->resource->mem_type; in i915_ttm_adjust_gem_after_move()
134 if (intel_region_to_ttm_type(obj->mm.region) != mem_type) { in i915_ttm_adjust_gem_after_move()
138 if (intel_region_to_ttm_type(mr) == mem_type && in i915_ttm_adjust_gem_after_move()
320 dst_reg = i915_ttm_region(bo->bdev, dst_mem->mem_type); in i915_ttm_memcpy_init()
321 src_reg = i915_ttm_region(bo->bdev, bo->resource->mem_type); in i915_ttm_memcpy_init()
577 ttm_manager_type(bo->bdev, dst_mem->mem_type); in i915_ttm_move()
590 if (dst_mem->mem_type != TTM_PL_SYSTEM) { in i915_ttm_move()
591 hop->mem_type = TTM_PL_SYSTEM; in i915_ttm_move()
H A Di915_gem_ttm.h90 return mem->mem_type != I915_PL_SYSTEM; in i915_ttm_gtt_binds_lmem()
102 return mem && mem->mem_type != I915_PL_SYSTEM; in i915_ttm_cpu_maps_iomem()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_object.c89 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
94 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
100 rbo->placements[c].mem_type = TTM_PL_TT; in radeon_ttm_placement_from_domain()
106 rbo->placements[c].mem_type = TTM_PL_SYSTEM; in radeon_ttm_placement_from_domain()
111 rbo->placements[c].mem_type = TTM_PL_SYSTEM; in radeon_ttm_placement_from_domain()
119 (rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_ttm_placement_from_domain()
309 if ((bo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_bo_pin_restricted()
342 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in radeon_bo_unpin()
695 if (bo->tbo.resource->mem_type != TTM_PL_VRAM) { in radeon_bo_check_tiling()
735 if (bo->resource->mem_type != TTM_PL_VRAM) in radeon_bo_fault_reserve_notify()
[all …]
/linux/drivers/i2c/
H A Di2c-smbus.c319 u8 common_mem_type = 0x0, mem_type; in i2c_register_spd() local
332 mem_type = dmi_memdev_type(handle); in i2c_register_spd()
333 if (mem_type <= 0x02) /* Invalid, Other, Unknown */ in i2c_register_spd()
338 common_mem_type = mem_type; in i2c_register_spd()
341 if (mem_type != common_mem_type) { in i2c_register_spd()
/linux/arch/arm/mm/
H A Dioremap.c111 const struct mem_type *mtype) in ioremap_page()
189 size_t size, const struct mem_type *type) in remap_area_sections()
216 size_t size, const struct mem_type *type) in remap_area_supersections()
252 const struct mem_type *type; in __arm_ioremap_pfn_caller()
454 void pci_ioremap_set_mem_type(int mem_type) in pci_ioremap_set_mem_type() argument
456 pci_ioremap_mem_type = mem_type; in pci_ioremap_set_mem_type()
H A Dmm.h38 struct mem_type { struct
46 const struct mem_type *get_mem_type(unsigned int type); argument
/linux/drivers/mtd/maps/
H A Dpcmciamtd.c61 static int mem_type; variable
76 module_param(mem_type, int, 0);
77 MODULE_PARM_DESC(mem_type, "Set Memory type (0=Flash, 1=RAM, 2=ROM, default=0)");
566 if(mem_type == 1) { in pcmciamtd_config()
568 } else if(mem_type == 2) { in pcmciamtd_config()
738 if(mem_type && mem_type != 1 && mem_type != 2) { in init_pcmciamtd()
739 info("bad mem_type (%d), using default", mem_type); in init_pcmciamtd()
740 mem_type = 0; in init_pcmciamtd()
/linux/include/linux/
H A Dwkup_m3_ipc.h26 int mem_type; member
57 void (*set_mem_type)(struct wkup_m3_ipc *m3_ipc, int mem_type);
/linux/Documentation/devicetree/bindings/reserved-memory/
H A Dramoops.yaml106 Use mem_type instead. If present, and mem_type is not specified,
107 it is equivalent to mem_type = 1 and uses unbuffered mappings to map
108 the reserved region (defaults to buffered mappings mem_type = 0).
109 If both are specified -- "mem_type" overrides "unbuffered".
/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_kunit_helpers.c77 uint32_t mem_type, uint32_t flags) in ttm_place_kunit_init() argument
84 place->mem_type = mem_type; in ttm_place_kunit_init()

12345678