Home
last modified time | relevance | path

Searched refs:native_handle (Results 1 – 9 of 9) sorted by relevance

/device/linaro/hikey/gralloc/
Dgralloc_priv.h136 struct private_handle_t : public native_handle
141 struct native_handle nativeHandle;
245 version = sizeof(native_handle); in private_handle_t()
247 numInts = (sizeof(private_handle_t) - sizeof(native_handle)) / sizeof(int) - sNumFds; in private_handle_t()
277 version = sizeof(native_handle); in private_handle_t()
279 numInts = (sizeof(private_handle_t) - sizeof(native_handle)) / sizeof(int) - sNumFds; in private_handle_t()
314 version = sizeof(native_handle); in private_handle_t()
316 numInts = (sizeof(private_handle_t) - sizeof(native_handle)) / sizeof(int) - sNumFds; in private_handle_t()
329 static int validate(const native_handle *h) in validate()
333 if (!hnd || hnd->version != sizeof(native_handle) || hnd->magic != sMagic) in validate()
[all …]
/device/linaro/hikey/gralloc960/
Dmali_gralloc_buffer.h51 #define NUM_INTS_IN_PRIVATE_HANDLE ((sizeof(struct private_handle_t) - sizeof(native_handle)) / siz…
67 struct private_handle_t : public native_handle
72 struct native_handle nativeHandle;
189 version = sizeof(native_handle); in private_handle_t()
225 version = sizeof(native_handle); in private_handle_t()
240 static int validate(const native_handle *h) in validate()
244 if (!h || h->version != sizeof(native_handle) || h->numInts != NUM_INTS_IN_PRIVATE_HANDLE || in validate()
253 static private_handle_t *dynamicCast(const native_handle *in) in dynamicCast()
/device/amlogic/yukawa/hal/gralloc/
Dmali_gralloc_buffer.h51 #define NUM_INTS_IN_PRIVATE_HANDLE ((sizeof(struct private_handle_t) - sizeof(native_handle)) / siz…
67 struct private_handle_t : public native_handle
72 struct native_handle nativeHandle;
203 version = sizeof(native_handle); in private_handle_t()
241 version = sizeof(native_handle); in private_handle_t()
257 static int validate(const native_handle *h) in validate()
261 if (!h || h->version != sizeof(native_handle) || h->numInts != NUM_INTS_IN_PRIVATE_HANDLE || in validate()
270 static private_handle_t *dynamicCast(const native_handle *in) in dynamicCast()
/device/google/cuttlefish/guest/hals/camera/
DGrallocModule.cpp84 native_handle_t* native_handle = const_cast<native_handle_t*>(handle); in release() local
86 auto ret = mGralloc3->freeBuffer(native_handle); in release()
109 native_handle_t* native_handle = const_cast<native_handle_t*>(handle); in lock() local
120 auto ret = mGralloc3->lock(native_handle, usage, rect, empty_fence_handle, in lock()
152 native_handle_t* native_handle = const_cast<native_handle_t*>(handle); in lock_ycbcr() local
165 auto ret = mGralloc3->lockYCbCr(native_handle, usage, rect, in lock_ycbcr()
204 native_handle_t* native_handle = const_cast<native_handle_t*>(handle); in unlock() local
207 auto ret = mGralloc3->unlock(native_handle, in unlock()
/device/google/cuttlefish/guest/hals/gralloc/legacy/
Dgralloc_vsoc_priv.h76 struct private_handle_t : public native_handle {
109 version = sizeof(native_handle); in fd()
118 static int validate(const native_handle* h) { in validate()
124 if (h->version != sizeof(native_handle)) { in validate()
130 sizeof(native_handle)); in validate()
/device/generic/goldfish-opengl/fuchsia/include/cutils/
Dnative_handle.h4 typedef struct native_handle { struct
/device/generic/goldfish-opengl/shared/gralloc_cb/include/
Dgralloc_cb_bp.h60 version = sizeof(native_handle); in cb_handle_t()
86 return (version == sizeof(native_handle)) in isValid()
/device/google/cuttlefish/guest/hals/hwcomposer/common/
Dgralloc_utils.cpp336 auto native_handle = const_cast<native_handle_t*>(buffer); in Unlock() local
339 auto ret = gralloc3_->unlock(native_handle, in Unlock()
/device/generic/goldfish-opengl/system/gralloc/
Dgralloc_old.cpp123 return (version == sizeof(native_handle)) && (magic == CB_HANDLE_MAGIC_OLD); in isValid()