Home
last modified time | relevance | path

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

/freebsd/sys/dev/drm2/ttm/
H A Dttm_bo.c48 static inline int ttm_mem_type_from_flags(uint32_t flags, uint32_t *mem_type) in ttm_mem_type_from_flags() argument
54 *mem_type = i; in ttm_mem_type_from_flags()
60 static void ttm_mem_type_debug(struct ttm_bo_device *bdev, int mem_type) in ttm_mem_type_debug() argument
62 struct ttm_mem_type_manager *man = &bdev->man[mem_type]; in ttm_mem_type_debug()
71 if (mem_type != TTM_PL_SYSTEM) in ttm_mem_type_debug()
78 int i, ret, mem_type; in ttm_bo_mem_space_debug() local
85 &mem_type); in ttm_bo_mem_space_debug()
89 i, placement->placement[i], mem_type); in ttm_bo_mem_space_debug()
90 ttm_mem_type_debug(bo->bdev, mem_type); in ttm_bo_mem_space_debug()
168 man = &bdev->man[bo->mem.mem_type]; in ttm_bo_add_to_lru()
[all …]
H A Dttm_bo_util.c50 if (old_mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_move_ttm()
55 old_mem->mem_type = TTM_PL_SYSTEM; in ttm_bo_move_ttm()
62 if (new_mem->mem_type != TTM_PL_SYSTEM) { in ttm_bo_move_ttm()
117 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_io_reserve()
141 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_io_free()
160 &bo->bdev->man[mem->mem_type]; in ttm_mem_io_reserve_vm()
188 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_reg_ioremap()
222 man = &bdev->man[mem->mem_type]; in ttm_mem_reg_iounmap()
296 struct ttm_mem_type_manager *man = &bdev->man[new_mem->mem_type]; in ttm_bo_move_memcpy()
333 if ((old_mem->mem_type == new_mem->mem_type) && in ttm_bo_move_memcpy()
[all …]
H A Dttm_bo_api.h106 uint32_t mem_type; member
597 extern int ttm_bo_clean_mm(struct ttm_bo_device *bdev, unsigned mem_type);
618 extern int ttm_bo_evict_mm(struct ttm_bo_device *bdev, unsigned mem_type);
H A Dttm_bo_vm.c111 &bdev->man[bo->mem.mem_type]; in ttm_bo_vm_fault()
/freebsd/contrib/llvm-project/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()
66 void *MmapOrDieOnFatalError(uptr size, const char *mem_type) { in MmapOrDieOnFatalError() argument
69 MAP_PRIVATE | MAP_ANON, mem_type); in MmapOrDieOnFatalError()
74 ReportMmapFailureAndDie(size, mem_type, "allocate", reserrno); in MmapOrDieOnFatalError()
84 const char *mem_type) { in MmapAlignedOrDieOnFatalError() argument
93 uptr map_res = (uptr)MmapOrDieOnFatalError(map_size, mem_type); in MmapAlignedOrDieOnFatalError()
111 void *MmapNoReserveOrDie(uptr size, const char *mem_type) { in MmapNoReserveOrDie() argument
114 MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, mem_type); in MmapNoReserveOrDie()
[all …]
H A Dsanitizer_fuchsia.cpp186 static void *DoAnonymousMmapOrDie(uptr size, const char *mem_type, in DoAnonymousMmapOrDie() argument
194 ReportMmapFailureAndDie(size, mem_type, "zx_vmo_create", status, in DoAnonymousMmapOrDie()
198 _zx_object_set_property(vmo, ZX_PROP_NAME, mem_type, in DoAnonymousMmapOrDie()
199 internal_strlen(mem_type)); in DoAnonymousMmapOrDie()
208 ReportMmapFailureAndDie(size, mem_type, "zx_vmar_map", status, in DoAnonymousMmapOrDie()
218 void *MmapOrDie(uptr size, const char *mem_type, bool raw_report) { in MmapOrDie() argument
219 return DoAnonymousMmapOrDie(size, mem_type, raw_report, true); in MmapOrDie()
222 void *MmapNoReserveOrDie(uptr size, const char *mem_type) { in MmapNoReserveOrDie() argument
223 return MmapOrDie(size, mem_type); in MmapNoReserveOrDie()
226 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()
164 static void *ReturnNullptrOnOOMOrDie(uptr size, const char *mem_type, in ReturnNullptrOnOOMOrDie() argument
169 ReportMmapFailureAndDie(size, mem_type, mmap_type, last_error); in ReturnNullptrOnOOMOrDie()
172 void *MmapOrDieOnFatalError(uptr size, const char *mem_type) { in MmapOrDieOnFatalError() argument
175 return ReturnNullptrOnOOMOrDie(size, mem_type, "allocate"); in MmapOrDieOnFatalError()
181 const char *mem_type) { in MmapAlignedOrDieOnFatalError() argument
191 return ReturnNullptrOnOOMOrDie(size, mem_type, "allocate aligned"); in MmapAlignedOrDieOnFatalError()
198 ReportMmapFailureAndDie(size, mem_type, "deallocate", GetLastError()); in MmapAlignedOrDieOnFatalError()
211 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.h90 void *MmapOrDie(uptr size, const char *mem_type, bool raw_report = false);
92 inline void *MmapOrDieQuietly(uptr size, const char *mem_type) { in MmapOrDieQuietly() argument
93 return MmapOrDie(size, mem_type, /*raw_report*/ true); in MmapOrDieQuietly()
98 void *MmapOrDieOnFatalError(uptr size, const char *mem_type);
103 void *MmapNoReserveOrDie(uptr size, const char *mem_type);
114 const char *mem_type);
324 void NORETURN ReportMmapFailureAndDie(uptr size, const char *mem_type,
H A Dsanitizer_stack_store.h78 void *Map(uptr size, const char *mem_type);
H A Dsanitizer_stack_store.cpp100 void *StackStore::Map(uptr size, const char *mem_type) { in Unmap()
102 return MmapNoReserveOrDie(size, mem_type); in Unmap()
95 Map(uptr size,const char * mem_type) Map() argument
/freebsd/sys/contrib/device-tree/Bindings/reserved-memory/
H A Dramoops.txt49 - unbuffered: deprecated, use mem_type instead. If present, and mem_type is
50 not specified, it is equivalent to mem_type = 1 and uses unbuffered mappings
51 to map the reserved region (defaults to buffered mappings mem_type = 0). If
52 both are specified -- "mem_type" overrides "unbuffered".
/freebsd/sys/dev/ixl/
H A Di40e_hmc.c57 enum i40e_memory_type mem_type; in i40e_add_sd_table_entry() local
77 mem_type = i40e_mem_pd; in i40e_add_sd_table_entry()
80 mem_type = i40e_mem_bp_jumbo; in i40e_add_sd_table_entry()
85 ret_code = i40e_allocate_dma_mem(hw, &mem, mem_type, alloc_len, in i40e_add_sd_table_entry()
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dqmi_wlfw_v01.h482 u32 mem_type; member
501 u32 mem_type; member
H A Dqmi_wlfw_v01.c1572 mem_type),
1644 mem_type),
/freebsd/sys/contrib/xen/hvm/
H A Ddm_op.h299 uint16_t mem_type; member
H A Dhvm_op.h178 uint16_t mem_type; member
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_request.c351 aio_req->cmd_flags.mem_type = 0; in pqisrc_build_aio_common()
422 DBG_INFO("%15s: 0x%x\n", "mem_type", aio_req->cmd_flags.mem_type); in pqisrc_show_aio_common()
476 aio_req->cmd_flags.mem_type = 0; in pqisrc_build_aio_R1_write()
544 DBG_INFO("%15s: 0x%x\n", "mem_type", aio_req->cmd_flags.mem_type); in pqisrc_show_aio_R1_write()
622 aio_req->cmd_flags.mem_type = 0; in pqisrc_build_aio_R5or6_write()
698 DBG_INFO("%15s: 0x%x\n", "mem_type", aio_req->cmd_flags.mem_type); in pqisrc_show_aio_R5or6_write()
H A Dsmartpqi_structures.h668 uint8_t mem_type : 1; member
/freebsd/sys/dev/cxgbe/cudbg/
H A Dcudbg_lib.c2462 static int get_payload_range(struct adapter *padap, u8 mem_type, in get_payload_range() argument
2502 if (mem_type < MEM_MC) { in get_payload_range()
2503 memcpy(&mem_region, &meminfo.avail[mem_type], in get_payload_range()
2512 mc_type = meminfo.avail[mem_type].base ? in get_payload_range()
2513 mem_type : mem_type - 1; in get_payload_range()
2546 struct cudbg_buffer *dbg_buff, u8 mem_type, in read_fw_mem() argument
2585 rc = get_payload_range(padap, mem_type, tot_len, in read_fw_mem()
2634 rc = t4_memory_rw(padap, MEMWIN_NIC, mem_type, bytes_read, in read_fw_mem()
/freebsd/sys/dev/cxgb/common/
H A Dcxgb_t3_hw.c3950 static int mc7_init(struct mc7 *mc7, unsigned int mc7_clock, int mem_type) in mc7_init() argument
3966 const struct mc7_timing_params *p = &mc7_timings[mem_type]; in mc7_init()
4025 mc7_mode[mem_type]) || in mc7_init()
/freebsd/sys/contrib/rdma/krping/
H A Dkrping.c77 enum mem_type { enum