Lines Matching refs:handle
38 static int validateAndMap(private_handle_t* handle) { in validateAndMap() argument
39 if (private_handle_t::validate(handle)) { in validateAndMap()
41 __func__, handle); in validateAndMap()
44 if (handle->fd_metadata == -1) { in validateAndMap()
46 __func__, handle, handle->id, handle->fd_metadata); in validateAndMap()
50 if (!handle->base_metadata) { in validateAndMap()
53 handle->fd_metadata, 0); in validateAndMap()
56 __func__, handle, handle->id, handle->fd_metadata, strerror(errno)); in validateAndMap()
60 handle->base_metadata = (uintptr_t) base; in validateAndMap()
65 int setMetaData(private_handle_t *handle, DispParamType paramType, in setMetaData() argument
67 auto err = validateAndMap(handle); in setMetaData()
71 MetaData_t *data = reinterpret_cast <MetaData_t *>(handle->base_metadata); in setMetaData()
126 int clearMetaData(private_handle_t *handle, DispParamType paramType) { in clearMetaData() argument
127 auto err = validateAndMap(handle); in clearMetaData()
131 MetaData_t *data = reinterpret_cast <MetaData_t *>(handle->base_metadata); in clearMetaData()
145 int getMetaData(private_handle_t *handle, DispFetchParamType paramType, in getMetaData() argument
147 int ret = validateAndMap(handle); in getMetaData()
150 MetaData_t *data = reinterpret_cast <MetaData_t *>(handle->base_metadata); in getMetaData()