Lines Matching refs:handle
42 static int validateAndMap(private_handle_t* handle) { in validateAndMap() argument
43 if (private_handle_t::validate(handle)) { in validateAndMap()
44 ALOGE("%s: Private handle is invalid - handle:%p", __func__, handle); in validateAndMap()
47 if (handle->fd_metadata == -1) { in validateAndMap()
49 __func__, handle, handle->fd_metadata); in validateAndMap()
53 if (!handle->base_metadata) { in validateAndMap()
56 handle->fd_metadata, 0); in validateAndMap()
59 __func__, handle, handle->fd_metadata, strerror(errno)); in validateAndMap()
63 handle->base_metadata = (uintptr_t) base; in validateAndMap()
68 int setMetaData(private_handle_t *handle, DispParamType paramType, in setMetaData() argument
70 auto err = validateAndMap(handle); in setMetaData()
73 return setMetaDataVa(reinterpret_cast<MetaData_t*>(handle->base_metadata), in setMetaData()
135 int clearMetaData(private_handle_t *handle, DispParamType paramType) { in clearMetaData() argument
136 auto err = validateAndMap(handle); in clearMetaData()
139 return clearMetaDataVa(reinterpret_cast<MetaData_t *>(handle->base_metadata), in clearMetaData()
159 int getMetaData(private_handle_t *handle, DispFetchParamType paramType, in getMetaData() argument
161 int ret = validateAndMap(handle); in getMetaData()
164 return getMetaDataVa(reinterpret_cast<MetaData_t *>(handle->base_metadata), in getMetaData()