Lines Matching refs:nh
117 native_handle_t* nh = native_handle_create(1, 0); in native_handle_create_from_fd() local
118 if (nh == nullptr) { in native_handle_create_from_fd()
121 nh->data[0] = fd; in native_handle_create_from_fd()
122 return nh; in native_handle_create_from_fd()
136 inline int native_handle_read_fd(native_handle_t const* nh, int index = 0) {
137 return ((nh == nullptr) || (nh->numFds == 0) ||
138 (nh->numFds <= index) || (index < 0)) ?
139 -1 : nh->data[index];
261 inline hidl_handle inHidlHandle(native_handle_t const* nh) { in inHidlHandle() argument
262 return hidl_handle(nh); in inHidlHandle()
281 inline bool wrapAs(Message* t, native_handle_t** nh, omx_message const& l) { in wrapAs() argument
282 *nh = native_handle_create_from_fd(l.fenceFd); in wrapAs()
283 if (!*nh) { in wrapAs()
286 t->fence = *nh; in wrapAs()
317 native_handle_delete(*nh); in wrapAs()
410 inline bool wrapAs(hidl_handle* t, native_handle_t** nh, in wrapAs() argument
412 *nh = native_handle_create_from_fd(l.get()); in wrapAs()
413 if (!*nh) { in wrapAs()
416 *t = *nh; in wrapAs()