Lines Matching refs:Vmo
64 zx_handle_t Vmo;
66 if (Data && Data->Vmo != ZX_HANDLE_INVALID) {
67 // If a Vmo was specified, it's a resize operation.
70 Vmo = Data->Vmo;
72 Status = _zx_vmo_set_size(Vmo, VmoSize + Size);
79 // Otherwise, create a Vmo and set its name.
80 Status = _zx_vmo_create(Size, ZX_VMO_RESIZABLE, &Vmo);
86 _zx_object_set_property(Vmo, ZX_PROP_NAME, Name, strlen(Name));
96 Status = _zx_vmar_map(Vmar, MapFlags, Offset, Vmo, VmoSize, Size, &P);
97 // No need to track the Vmo if we don't intend on resizing it. Close it.
100 DCHECK_EQ(Data->Vmo, ZX_HANDLE_INVALID);
101 Data->Vmo = Vmo;
103 CHECK_EQ(_zx_handle_close(Vmo), ZX_OK);
132 if (Data->Vmo != ZX_HANDLE_INVALID)
133 CHECK_EQ(_zx_handle_close(Data->Vmo), ZX_OK);
142 DCHECK_NE(Data->Vmo, ZX_HANDLE_INVALID);
144 _zx_vmo_op_range(Data->Vmo, ZX_VMO_OP_DECOMMIT, Offset, Size, NULL, 0);