Home
last modified time | relevance | path

Searched refs:mmap_ptr (Results 1 – 8 of 8) sorted by relevance

/third_party/mesa3d/src/virtio/vulkan/
Dvn_renderer_vtest.c676 if (!bo->base.mmap_ptr && mappable) { in vtest_bo_map()
688 bo->base.mmap_ptr = ptr; in vtest_bo_map()
697 return bo->base.mmap_ptr; in vtest_bo_map()
715 if (bo->base.mmap_ptr) in vtest_bo_destroy()
716 munmap(bo->base.mmap_ptr, bo->base.mmap_size); in vtest_bo_destroy()
784 munmap(shmem->base.mmap_ptr, shmem->base.mmap_size); in vtest_shmem_destroy()
820 .mmap_ptr = ptr, in vtest_shmem_create()
Dvn_renderer.h16 void *mmap_ptr; member
25 void *mmap_ptr; member
298 assert(shmem->mmap_ptr); in vn_renderer_shmem_create()
Dvn_renderer_virtgpu.c1082 if (!bo->base.mmap_ptr && mappable) { in virtgpu_bo_map()
1083 bo->base.mmap_ptr = in virtgpu_bo_map()
1087 return bo->base.mmap_ptr; in virtgpu_bo_map()
1120 if (bo->base.mmap_ptr) in virtgpu_bo_destroy()
1121 munmap(bo->base.mmap_ptr, bo->base.mmap_size); in virtgpu_bo_destroy()
1278 munmap(shmem->base.mmap_ptr, shmem->base.mmap_size); in virtgpu_shmem_destroy()
1307 .mmap_ptr = ptr, in virtgpu_shmem_create()
Dvn_cs.c205 vn_cs_encoder_add_buffer(enc, shmem, 0, shmem->mmap_ptr, buf_size); in vn_cs_encoder_reserve_internal()
Dvn_instance.c138 instance->ring.shmem->mmap_ptr); in vn_instance_init_ring()
565 instance->reply.ptr = shmem->mmap_ptr; in vn_instance_grow_reply_shmem_locked()
/third_party/mindspore/mindspore/lite/mindir/include/
Dmindir_tensor.h34 uint8_t *mmap_ptr, unsigned int offset);
/third_party/mindspore/mindspore/lite/mindir/src/
Dmindir_tensor.cc240 …indIR_Tensor_GetData(ConstTensorPtr tensor, const SharedBuffer &buffer_templete, uint8_t *mmap_ptr, in MindIR_Tensor_GetData() argument
254 if (mmap_ptr == nullptr) { in MindIR_Tensor_GetData()
261 memcpy(mmap_ptr + offset, value->data()->data(), value->data()->size()); in MindIR_Tensor_GetData()
Dmindir_nnrt_lite_graph_to_model.cc115 uint8_t *mmap_ptr = nullptr; in MindIR_LiteGraph_To_Model() local
117 mmap_ptr = in MindIR_LiteGraph_To_Model()
119 if (mmap_ptr == MAP_FAILED) { in MindIR_LiteGraph_To_Model()
131 tmp.data = MindIR_Tensor_GetData(tensor, buffer, mmap_ptr, tensor_buffer_offset); in MindIR_LiteGraph_To_Model()
138 auto munmap_res = munmap(mmap_ptr, buffer.bufferSize); in MindIR_LiteGraph_To_Model()