Home
last modified time | relevance | path

Searched refs:mem_type (Results 1 – 25 of 50) sorted by relevance

12

/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix.cpp46 void *MmapOrDie(uptr size, const char *mem_type, bool raw_report) { in MmapOrDie() argument
49 MAP_PRIVATE | MAP_ANON, mem_type); in MmapOrDie()
52 ReportMmapFailureAndDie(size, mem_type, "allocate", reserrno, raw_report); in MmapOrDie()
68 void *MmapOrDieOnFatalError(uptr size, const char *mem_type) { in MmapOrDieOnFatalError() argument
71 MAP_PRIVATE | MAP_ANON, mem_type); in MmapOrDieOnFatalError()
76 ReportMmapFailureAndDie(size, mem_type, "allocate", reserrno); in MmapOrDieOnFatalError()
86 const char *mem_type) { in MmapAlignedOrDieOnFatalError() argument
95 uptr map_res = (uptr)MmapOrDieOnFatalError(map_size, mem_type); in MmapAlignedOrDieOnFatalError()
113 void *MmapNoReserveOrDie(uptr size, const char *mem_type) { in MmapNoReserveOrDie() argument
116 MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, mem_type); in MmapNoReserveOrDie()
[all …]
H A Dsanitizer_fuchsia.cpp132 static void *DoAnonymousMmapOrDie(uptr size, const char *mem_type, in DoAnonymousMmapOrDie() argument
140 ReportMmapFailureAndDie(size, mem_type, "zx_vmo_create", status, in DoAnonymousMmapOrDie()
144 _zx_object_set_property(vmo, ZX_PROP_NAME, mem_type, in DoAnonymousMmapOrDie()
145 internal_strlen(mem_type)); in DoAnonymousMmapOrDie()
156 ReportMmapFailureAndDie(size, mem_type, "zx_vmar_map", status, in DoAnonymousMmapOrDie()
166 void *MmapOrDie(uptr size, const char *mem_type, bool raw_report) { in MmapOrDie() argument
167 return DoAnonymousMmapOrDie(size, mem_type, raw_report, true); in MmapOrDie()
170 void *MmapNoReserveOrDie(uptr size, const char *mem_type) { in MmapNoReserveOrDie() argument
171 return MmapOrDie(size, mem_type); in MmapNoReserveOrDie()
174 void *MmapOrDieOnFatalError(uptr size, const char *mem_type) { in MmapOrDieOnFatalError() argument
[all …]
H A Dsanitizer_win.cpp139 void *MmapOrDie(uptr size, const char *mem_type, bool raw_report) { in MmapOrDie() argument
142 ReportMmapFailureAndDie(size, mem_type, "allocate", in MmapOrDie()
167 static void *ReturnNullptrOnOOMOrDie(uptr size, const char *mem_type, in ReturnNullptrOnOOMOrDie() argument
172 ReportMmapFailureAndDie(size, mem_type, mmap_type, last_error); in ReturnNullptrOnOOMOrDie()
175 void *MmapOrDieOnFatalError(uptr size, const char *mem_type) { in MmapOrDieOnFatalError() argument
178 return ReturnNullptrOnOOMOrDie(size, mem_type, "allocate"); in MmapOrDieOnFatalError()
184 const char *mem_type) { in MmapAlignedOrDieOnFatalError() argument
194 return ReturnNullptrOnOOMOrDie(size, mem_type, "allocate aligned"); in MmapAlignedOrDieOnFatalError()
201 ReportMmapFailureAndDie(size, mem_type, "deallocate", GetLastError()); in MmapAlignedOrDieOnFatalError()
214 return ReturnNullptrOnOOMOrDie(size, mem_type, "allocate aligned"); in MmapAlignedOrDieOnFatalError()
[all …]
H A Dsanitizer_common.cpp38 void NORETURN ReportMmapFailureAndDie(uptr size, const char *mem_type, in ReportMmapFailureAndDie() argument
51 mmap_type, size, size, mem_type, err); in ReportMmapFailureAndDie()
56 SanitizerToolName, mmap_type, size, size, mem_type, err); in ReportMmapFailureAndDie()
H A Dsanitizer_common.h92 void *MmapOrDie(uptr size, const char *mem_type, bool raw_report = false);
93 inline void *MmapOrDieQuietly(uptr size, const char *mem_type) { in MmapOrDieQuietly() argument
94 return MmapOrDie(size, mem_type, /*raw_report*/ true); in MmapOrDieQuietly()
99 void *MmapOrDieOnFatalError(uptr size, const char *mem_type);
104 void *MmapNoReserveOrDie(uptr size, const char *mem_type);
115 const char *mem_type);
315 void NORETURN ReportMmapFailureAndDie(uptr size, const char *mem_type,
/openbsd-src/sys/dev/pci/
H A Dif_ath_pci.c117 pcireg_t mem_type; in ath_pci_attach() local
126 mem_type = pci_mapreg_type(pc, pa->pa_tag, ATH_BAR0); in ath_pci_attach()
127 if (mem_type != PCI_MAPREG_TYPE_MEM && in ath_pci_attach()
128 mem_type != PCI_MAPREG_MEM_TYPE_64BIT) { in ath_pci_attach()
129 printf(": bad PCI register type %d\n", (int)mem_type); in ath_pci_attach()
132 if (pci_mapreg_map(pa, ATH_BAR0, mem_type, 0, &sc->sc_st, &sc->sc_sh, in ath_pci_attach()
/openbsd-src/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_ttm.c98 .mem_type = TTM_PL_SYSTEM, in amdgpu_evict_flags()
125 switch (bo->resource->mem_type) { in amdgpu_evict_flags()
201 if (WARN_ON(mem->mem_type == AMDGPU_PL_PREEMPT)) in amdgpu_ttm_map_buffer()
206 *addr = amdgpu_ttm_domain_start(adev, mem->mem_type) + in amdgpu_ttm_map_buffer()
255 if (mem->mem_type == TTM_PL_TT) { in amdgpu_ttm_map_buffer()
382 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit()
426 if (res->mem_type == TTM_PL_SYSTEM || res->mem_type == TTM_PL_TT || in amdgpu_res_cpu_visible()
427 res->mem_type == AMDGPU_PL_PREEMPT || res->mem_type in amdgpu_res_cpu_visible()
2365 amdgpu_ttm_evict_resources(struct amdgpu_device * adev,int mem_type) amdgpu_ttm_evict_resources() argument
[all...]
H A Damdgpu_atomfirmware.c305 u8 mem_type; in amdgpu_atomfirmware_get_vram_info() local
332 mem_type = igp_info->v11.memorytype; in amdgpu_atomfirmware_get_vram_info()
333 if (mem_type == LpDdr5MemType) in amdgpu_atomfirmware_get_vram_info()
340 *vram_type = convert_atom_mem_type_to_vram_type(adev, mem_type); in amdgpu_atomfirmware_get_vram_info()
353 mem_type = igp_info->v21.memorytype; in amdgpu_atomfirmware_get_vram_info()
354 if (mem_type == LpDdr5MemType) in amdgpu_atomfirmware_get_vram_info()
361 *vram_type = convert_atom_mem_type_to_vram_type(adev, mem_type); in amdgpu_atomfirmware_get_vram_info()
367 mem_type = igp_info->v23.memorytype; in amdgpu_atomfirmware_get_vram_info()
368 if (mem_type == LpDdr5MemType) in amdgpu_atomfirmware_get_vram_info()
375 *vram_type = convert_atom_mem_type_to_vram_type(adev, mem_type); in amdgpu_atomfirmware_get_vram_info()
[all …]
H A Damdgpu_object.c149 places[c].mem_type = TTM_PL_VRAM; in amdgpu_bo_placement_from_domain()
165 places[c].mem_type = AMDGPU_PL_DOORBELL; in amdgpu_bo_placement_from_domain()
173 places[c].mem_type = in amdgpu_bo_placement_from_domain()
183 places[c].mem_type = TTM_PL_SYSTEM; in amdgpu_bo_placement_from_domain()
191 places[c].mem_type = AMDGPU_PL_GDS; in amdgpu_bo_placement_from_domain()
199 places[c].mem_type = AMDGPU_PL_GWS; in amdgpu_bo_placement_from_domain()
207 places[c].mem_type = AMDGPU_PL_OA; in amdgpu_bo_placement_from_domain()
215 places[c].mem_type = TTM_PL_SYSTEM; in amdgpu_bo_placement_from_domain()
639 bo->tbo.resource->mem_type == TTM_PL_VRAM) { in amdgpu_bo_create()
928 uint32_t mem_type = bo->tbo.resource->mem_type; in amdgpu_bo_pin_restricted() local
[all …]
H A Damdgpu_res_cursor.h41 uint32_t mem_type; member
67 cur->mem_type = res->mem_type; in amdgpu_res_first()
69 switch (cur->mem_type) { in amdgpu_res_first()
144 switch (cur->mem_type) { in amdgpu_res_next()
H A Damdgpu_dma_buf.c168 } else if (!(amdgpu_mem_type_to_domain(bo->tbo.resource->mem_type) & in amdgpu_dma_buf_map()
173 switch (bo->tbo.resource->mem_type) { in amdgpu_dma_buf_map()
385 if (!bo->tbo.resource || bo->tbo.resource->mem_type == TTM_PL_SYSTEM) in amdgpu_dma_buf_move_notify()
H A Damdgpu_object.h177 static inline unsigned amdgpu_mem_type_to_domain(u32 mem_type) in amdgpu_mem_type_to_domain() argument
179 switch (mem_type) { in amdgpu_mem_type_to_domain()
/openbsd-src/sys/dev/pci/drm/radeon/
H A Dradeon_ttm.c95 .mem_type = TTM_PL_SYSTEM, in radeon_evict_flags()
109 switch (bo->resource->mem_type) { in radeon_evict_flags()
127 if (rbo->placements[i].mem_type == TTM_PL_VRAM) { in radeon_evict_flags()
162 switch (old_mem->mem_type) { in radeon_move_blit()
170 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit()
173 switch (new_mem->mem_type) { in radeon_move_blit()
181 DRM_ERROR("Unknown placement %d\n", old_mem->mem_type); in radeon_move_blit()
211 if (new_mem->mem_type == TTM_PL_TT) { in radeon_bo_move()
223 if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && in radeon_bo_move()
228 if (old_mem->mem_type in radeon_bo_move()
[all...]
H A Dradeon_object.c90 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
95 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
101 rbo->placements[c].mem_type = TTM_PL_TT; in radeon_ttm_placement_from_domain()
107 rbo->placements[c].mem_type = TTM_PL_SYSTEM; in radeon_ttm_placement_from_domain()
112 rbo->placements[c].mem_type = TTM_PL_SYSTEM; in radeon_ttm_placement_from_domain()
121 (rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_ttm_placement_from_domain()
311 if ((bo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_bo_pin_restricted()
344 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in radeon_bo_unpin()
512 radeon_mem_type_to_domain(bo->tbo.resource->mem_type); in radeon_bo_list_validate()
716 if (bo->tbo.resource->mem_type ! in radeon_bo_check_tiling()
[all...]
H A Dradeon_object.h40 static inline unsigned radeon_mem_type_to_domain(u32 mem_type) in radeon_mem_type_to_domain() argument
42 switch (mem_type) { in radeon_mem_type_to_domain()
98 switch (bo->tbo.resource->mem_type) { in radeon_bo_gpu_offset()
/openbsd-src/sys/dev/pci/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()
124 old_use_tt = !bo->resource || ttm_manager_type(bdev, bo->resource->mem_type)->use_tt; in ttm_bo_handle_move_mem()
125 new_use_tt = ttm_manager_type(bdev, mem->mem_type)->use_tt; in ttm_bo_handle_move_mem()
141 if (mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_handle_move_mem()
494 if (bo->resource->mem_type == TTM_PL_SYSTEM) in ttm_bo_eviction_valuable()
542 if (ret && place && (bo->resource->mem_type != place->mem_type || in ttm_bo_evict_swapout_allowable()
736 man = ttm_manager_type(bdev, place->mem_type); in ttm_bo_mem_force_space()
[all …]
H A Dttm_resource.c81 return &bulk->pos[res->mem_type][res->bo->priority]; in ttm_lru_bulk_move_pos()
164 man = ttm_manager_type(bdev, res->mem_type); in ttm_resource_move_to_lru_tail()
185 res->mem_type = place->mem_type; in ttm_resource_init()
193 man = ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_init()
231 ttm_manager_type(bo->bdev, place->mem_type); in ttm_resource_alloc()
254 man = ttm_manager_type(bo->bdev, (*res)->mem_type); in ttm_resource_free()
283 man = ttm_manager_type(bdev, res->mem_type); in ttm_resource_intersects()
312 man = ttm_manager_type(bdev, res->mem_type); in ttm_resource_compatible()
336 if ((res->mem_type == heap->mem_type) && in ttm_resource_places_compat()
H A Dttm_bo_util.c149 ttm_manager_type(bo->bdev, dst_mem->mem_type); in ttm_bo_move_memcpy()
164 src_man = ttm_manager_type(bdev, src_mem->mem_type); in ttm_bo_move_memcpy()
298 man = ttm_manager_type(bo->bdev, res->mem_type); in ttm_io_prot()
358 ttm_manager_type(bo->bdev, bo->resource->mem_type); in ttm_bo_kmap_ttm()
643 from = ttm_manager_type(bdev, bo->resource->mem_type); in ttm_bo_move_pipeline_evict()
682 struct ttm_resource_manager *from = ttm_manager_type(bdev, bo->resource->mem_type); in ttm_bo_move_accel_cleanup()
683 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_accel_cleanup()
716 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_sync_cleanup()
/openbsd-src/sys/dev/pci/drm/include/drm/ttm/
H A Dttm_device.h280 ttm_manager_type(struct ttm_device *bdev, int mem_type) in ttm_manager_type() argument
283 BUILD_BUG_ON(__builtin_constant_p(mem_type) in ttm_manager_type()
284 && mem_type >= TTM_NUM_MEM_TYPES); in ttm_manager_type()
286 return bdev->man_drv[mem_type]; in ttm_manager_type()
H A Dttm_placement.h80 uint32_t mem_type; member
/openbsd-src/sys/dev/pci/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()
321 dst_reg = i915_ttm_region(bo->bdev, dst_mem->mem_type); in i915_ttm_memcpy_init()
322 src_reg = i915_ttm_region(bo->bdev, bo->resource->mem_type); in i915_ttm_memcpy_init()
580 ttm_manager_type(bo->bdev, dst_mem->mem_type); in i915_ttm_move()
593 if (dst_mem->mem_type != TTM_PL_SYSTEM) { in i915_ttm_move()
594 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()
H A Di915_gem_create.c174 enum intel_memory_type mem_type; in i915_gem_dumb_create() local
205 mem_type = INTEL_MEMORY_SYSTEM; in i915_gem_dumb_create()
207 mem_type = INTEL_MEMORY_LOCAL; in i915_gem_dumb_create()
209 mr = intel_memory_region_by_type(to_i915(dev), mem_type); in i915_gem_dumb_create()
/openbsd-src/sys/dev/pci/drm/i915/
H A Dintel_region_ttm.c91 int mem_type = intel_region_to_ttm_type(mem); in intel_region_ttm_init() local
94 ret = i915_ttm_buddy_man_init(bdev, mem_type, false, in intel_region_ttm_init()
101 mem->region_private = ttm_manager_type(bdev, mem_type); in intel_region_ttm_init()
H A Dintel_memory_region.c166 enum intel_memory_type mem_type) in intel_memory_region_by_type() argument
172 if (mr->type == mem_type) in intel_memory_region_by_type()

12