Home
last modified time | relevance | path

Searched refs:validFd (Results 1 – 7 of 7) sorted by relevance

/drivers/peripheral/codec/hdi_service/common/
Dcommon_msgproc.c37 uint8_t validFd = handle->fd >= 0 ? 1 : 0; in PackBufferHandle() local
38 if (!HdfSbufWriteUint8(data, validFd)) { in PackBufferHandle()
42 if (validFd && !HdfSbufWriteFileDescriptor(data, handle->fd)) { in PackBufferHandle()
66 uint8_t validFd = 0; in ParseBufferHandle() local
89 if (!HdfSbufReadUint8(data, &validFd)) { in ParseBufferHandle()
95 if (validFd != 0) { in ParseBufferHandle()
/drivers/peripheral/codec/hal/src/
Dcodec_types.c31 uint8_t validFd = 0; in BufferHandleMarshalling() local
41 validFd = 1; in BufferHandleMarshalling()
43 if (!HdfSbufWriteUint8(data, validFd)) { in BufferHandleMarshalling()
47 if ((validFd != 0) && !HdfSbufWriteFileDescriptor(data, handle->fd)) { in BufferHandleMarshalling()
71 uint8_t validFd = 0; in BufferHandleUnmarshalling() local
94 if (!HdfSbufReadUint8(data, &validFd)) { in BufferHandleUnmarshalling()
100 if (validFd != 0) { in BufferHandleUnmarshalling()
205 uint8_t validFd = 0; in OmxCodecBufferBlockMarshalling() local
231 validFd = dataBlock->fenceFd >= 0; in OmxCodecBufferBlockMarshalling()
232 if (!HdfSbufWriteUint8(data, validFd)) { in OmxCodecBufferBlockMarshalling()
[all …]
/drivers/peripheral/display/hdi_service/device/src/util/
Ddisplay_device_common.cpp242 bool validFd = (fd >= 0); in DisplayDeviceWriteFileDescriptor() local
243 if (!parcel->WriteBool(validFd)) { in DisplayDeviceWriteFileDescriptor()
247 if (validFd && !parcel->WriteFileDescriptor(fd)) { in DisplayDeviceWriteFileDescriptor()
250 } else if (!validFd) { in DisplayDeviceWriteFileDescriptor()
259 bool validFd = false; in DisplayDeviceReadFileDescriptor() local
260 if (!parcel->ReadBool(validFd)) { in DisplayDeviceReadFileDescriptor()
264 if (validFd) { in DisplayDeviceReadFileDescriptor()
/drivers/peripheral/codec/hdi_service/codec_proxy/
Dproxy_msgproc.c231 uint8_t validFd = buffer->buf >= 0 ? 1 : 0; in CodecProxyPackBufOfBufferInfo() local
232 if (!HdfSbufWriteUint8(data, validFd)) { in CodecProxyPackBufOfBufferInfo()
236 if (validFd && !HdfSbufWriteFileDescriptor(data, (int32_t)buffer->buf)) { in CodecProxyPackBufOfBufferInfo()
300 uint8_t validFd = 0; in CodecProxyParseBufOfBufferInfo() local
301 if (!HdfSbufReadUint8(reply, &validFd)) { in CodecProxyParseBufOfBufferInfo()
305 if (validFd != 0) { in CodecProxyParseBufOfBufferInfo()
424 uint8_t validFd = 0; in CodecProxyParseFenceFd() local
425 if (!HdfSbufReadUint8(reply, &validFd)) { in CodecProxyParseFenceFd()
429 if (validFd != 0) { in CodecProxyParseFenceFd()
439 uint8_t validFd = fenceFd >= 0; in CodecProxyPackFenceFd() local
[all …]
/drivers/peripheral/codec/hdi_service/codec_service_stub/
Dstub_msgproc.c243 uint8_t validFd = buffer->buf >= 0 ? 1 : 0; in CodecSerPackBufOfBufferInfo() local
244 if (!HdfSbufWriteUint8(reply, validFd)) { in CodecSerPackBufOfBufferInfo()
248 if (validFd && !HdfSbufWriteFileDescriptor(reply, (int32_t)buffer->buf)) { in CodecSerPackBufOfBufferInfo()
312 uint8_t validFd = 0; in CodecSerParseBufOfBufferInfo() local
313 if (!HdfSbufReadUint8(data, &validFd)) { in CodecSerParseBufOfBufferInfo()
317 if (validFd != 0) { in CodecSerParseBufOfBufferInfo()
432 uint8_t validFd = 0; in CodecSerParseFenceFd() local
433 if (!HdfSbufReadUint8(data, &validFd)) { in CodecSerParseFenceFd()
437 if (validFd != 0) { in CodecSerParseFenceFd()
447 uint8_t validFd = fenceFd >= 0; in CodecSerPackFenceFd() local
[all …]
/drivers/hdf_core/adapter/uhdf2/hdi/src/
Dbuffer_util.c139 bool validFd = (handle->fd >= 0); in HdfSbufWriteNativeBufferHandle() local
140 if (!HdfSbufWriteInt8(data, validFd ? 1 : 0)) { in HdfSbufWriteNativeBufferHandle()
144 if (validFd && !HdfSbufWriteFileDescriptor(data, handle->fd)) { in HdfSbufWriteNativeBufferHandle()
210 bool validFd = false; in HdfSbufReadNativeBufferHandle() local
211 if (!HdfSbufReadInt8(data, (int8_t *)&validFd)) { in HdfSbufReadNativeBufferHandle()
216 if (validFd) { in HdfSbufReadNativeBufferHandle()
Dnative_buffer.cpp98 bool validFd = (handle_->fd >= 0); in Marshalling() local
99 if (!messageParcel.WriteBool(validFd)) { in Marshalling()
103 if (validFd && !messageParcel.WriteFileDescriptor(handle_->fd)) { in Marshalling()
215 bool validFd = false; in ExtractFromParcel() local
219 !messageParcel.ReadBool(validFd)) { in ExtractFromParcel()
223 if (validFd) { in ExtractFromParcel()