• Home
  • Raw
  • Download

Lines Matching refs:data

29     int32_t id, struct HdfSBuf *data, struct HdfSBuf *reply)  in CodecProxyCall()  argument
36 return self->remote->dispatcher->Dispatch(self->remote, id, data, reply); in CodecProxyCall()
39 static int32_t CodecProxyReqSBuf(struct HdfSBuf **data, struct HdfSBuf **reply) in CodecProxyReqSBuf() argument
41 *data = HdfSbufTypedObtain(SBUF_IPC); in CodecProxyReqSBuf()
42 if (*data == NULL) { in CodecProxyReqSBuf()
49 HdfSbufRecycle(*data); in CodecProxyReqSBuf()
54 static void CodecProxySBufRecycle(struct HdfSBuf *data, struct HdfSBuf *reply) in CodecProxySBufRecycle() argument
56 if (data != NULL) { in CodecProxySBufRecycle()
57 HdfSbufRecycle(data); in CodecProxySBufRecycle()
68 struct HdfSBuf *data = NULL; in CodecPorxyInit() local
73 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecPorxyInit()
77 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecPorxyInit()
79 CodecProxySBufRecycle(data, reply); in CodecPorxyInit()
82 ret = CodecProxyCall(self, CMD_CODEC_INIT, data, reply); in CodecPorxyInit()
86 CodecProxySBufRecycle(data, reply); in CodecPorxyInit()
93 struct HdfSBuf *data = NULL; in CodecProxyDeinit() local
98 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyDeinit()
102 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxyDeinit()
104 CodecProxySBufRecycle(data, reply); in CodecProxyDeinit()
107 ret = CodecProxyCall(self, CMD_CODEC_DEINIT, data, reply); in CodecProxyDeinit()
110 CodecProxySBufRecycle(data, reply); in CodecProxyDeinit()
113 CodecProxySBufRecycle(data, reply); in CodecProxyDeinit()
120 struct HdfSBuf *data = NULL; in CodecProxyEnumerateCapability() local
125 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyEnumerateCapability()
129 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxyEnumerateCapability()
131 CodecProxySBufRecycle(data, reply); in CodecProxyEnumerateCapability()
134 if (!HdfSbufWriteUint32(data, index)) { in CodecProxyEnumerateCapability()
136 CodecProxySBufRecycle(data, reply); in CodecProxyEnumerateCapability()
139 ret = CodecProxyCall(self, CMD_CODEC_ENUM_CAP, data, reply); in CodecProxyEnumerateCapability()
142 CodecProxySBufRecycle(data, reply); in CodecProxyEnumerateCapability()
147 CodecProxySBufRecycle(data, reply); in CodecProxyEnumerateCapability()
150 CodecProxySBufRecycle(data, reply); in CodecProxyEnumerateCapability()
158 struct HdfSBuf *data = NULL; in CodecProxyGetCapability() local
163 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyGetCapability()
167 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxyGetCapability()
169 CodecProxySBufRecycle(data, reply); in CodecProxyGetCapability()
172 if (!HdfSbufWriteUint32(data, (uint32_t)mime)) { in CodecProxyGetCapability()
174 CodecProxySBufRecycle(data, reply); in CodecProxyGetCapability()
177 if (!HdfSbufWriteUint32(data, (uint32_t)type)) { in CodecProxyGetCapability()
179 CodecProxySBufRecycle(data, reply); in CodecProxyGetCapability()
182 if (!HdfSbufWriteUint32(data, flags)) { in CodecProxyGetCapability()
184 CodecProxySBufRecycle(data, reply); in CodecProxyGetCapability()
187 ret = CodecProxyCall(self, CMD_CODEC_GET_CAP, data, reply); in CodecProxyGetCapability()
190 CodecProxySBufRecycle(data, reply); in CodecProxyGetCapability()
195 CodecProxySBufRecycle(data, reply); in CodecProxyGetCapability()
198 CodecProxySBufRecycle(data, reply); in CodecProxyGetCapability()
204 struct HdfSBuf *data = NULL; in CodecProxyCreate() local
211 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyCreate()
215 … if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data) || !HdfSbufWriteString(data, name)) { in CodecProxyCreate()
216 CodecProxySBufRecycle(data, reply); in CodecProxyCreate()
219 int32_t ret = CodecProxyCall(self, CMD_CODEC_CREATE, data, reply); in CodecProxyCreate()
222 CodecProxySBufRecycle(data, reply); in CodecProxyCreate()
227 CodecProxySBufRecycle(data, reply); in CodecProxyCreate()
231 CodecProxySBufRecycle(data, reply); in CodecProxyCreate()
238 struct HdfSBuf *data = NULL; in CodecCreateByType() local
245 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecCreateByType()
249 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecCreateByType()
251 CodecProxySBufRecycle(data, reply); in CodecCreateByType()
254 if (!HdfSbufWriteUint32(data, (uint32_t)type)) { in CodecCreateByType()
256 CodecProxySBufRecycle(data, reply); in CodecCreateByType()
259 if (!HdfSbufWriteUint32(data, (uint32_t)mime)) { in CodecCreateByType()
261 CodecProxySBufRecycle(data, reply); in CodecCreateByType()
264 ret = CodecProxyCall(self, CMD_CODEC_CREATE_BY_TYPE, data, reply); in CodecCreateByType()
267 CodecProxySBufRecycle(data, reply); in CodecCreateByType()
272 CodecProxySBufRecycle(data, reply); in CodecCreateByType()
276 CodecProxySBufRecycle(data, reply); in CodecCreateByType()
283 struct HdfSBuf *data = NULL; in CodecProxyDestroy() local
289 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyDestroy()
293 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxyDestroy()
295 CodecProxySBufRecycle(data, reply); in CodecProxyDestroy()
298 if (!HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecProxyDestroy()
300 CodecProxySBufRecycle(data, reply); in CodecProxyDestroy()
303 ret = CodecProxyCall(self, CMD_CODEC_DESTROY, data, reply); in CodecProxyDestroy()
307 CodecProxySBufRecycle(data, reply); in CodecProxyDestroy()
315 struct HdfSBuf *data = NULL; in CodecProxySetPortMode() local
320 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxySetPortMode()
324 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxySetPortMode()
326 CodecProxySBufRecycle(data, reply); in CodecProxySetPortMode()
329 if (!HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecProxySetPortMode()
331 CodecProxySBufRecycle(data, reply); in CodecProxySetPortMode()
334 if (!HdfSbufWriteUint32(data, (uint32_t)direct)) { in CodecProxySetPortMode()
336 CodecProxySBufRecycle(data, reply); in CodecProxySetPortMode()
339 if (!HdfSbufWriteUint32(data, (uint32_t)mode)) { in CodecProxySetPortMode()
341 CodecProxySBufRecycle(data, reply); in CodecProxySetPortMode()
344 if (!HdfSbufWriteUint32(data, (uint32_t)type)) { in CodecProxySetPortMode()
346 CodecProxySBufRecycle(data, reply); in CodecProxySetPortMode()
349 ret = CodecProxyCall(self, CMD_CODEC_SET_MODE, data, reply); in CodecProxySetPortMode()
353 CodecProxySBufRecycle(data, reply); in CodecProxySetPortMode()
361 struct HdfSBuf *data = NULL; in CodecProxyGetPortMode() local
366 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyGetPortMode()
370 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxyGetPortMode()
372 CodecProxySBufRecycle(data, reply); in CodecProxyGetPortMode()
375 if (!HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecProxyGetPortMode()
377 CodecProxySBufRecycle(data, reply); in CodecProxyGetPortMode()
380 if (!HdfSbufWriteUint32(data, (uint32_t)direct)) { in CodecProxyGetPortMode()
382 CodecProxySBufRecycle(data, reply); in CodecProxyGetPortMode()
385 ret = CodecProxyCall(self, CMD_CODEC_GET_MODE, data, reply); in CodecProxyGetPortMode()
388 CodecProxySBufRecycle(data, reply); in CodecProxyGetPortMode()
393 CodecProxySBufRecycle(data, reply); in CodecProxyGetPortMode()
398 CodecProxySBufRecycle(data, reply); in CodecProxyGetPortMode()
401 CodecProxySBufRecycle(data, reply); in CodecProxyGetPortMode()
408 struct HdfSBuf *data = NULL; in CodecProxySetParameter() local
414 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxySetParameter()
418 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxySetParameter()
420 CodecProxySBufRecycle(data, reply); in CodecProxySetParameter()
423 if (!HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecProxySetParameter()
425 CodecProxySBufRecycle(data, reply); in CodecProxySetParameter()
428 if (!HdfSbufWriteInt32(data, paramCnt)) { in CodecProxySetParameter()
430 CodecProxySBufRecycle(data, reply); in CodecProxySetParameter()
434 if (CodecProxyPackParam(data, &params[i]) != HDF_SUCCESS) { in CodecProxySetParameter()
436 CodecProxySBufRecycle(data, reply); in CodecProxySetParameter()
440 ret = CodecProxyCall(self, CMD_CODEC_SET_PARAMS, data, reply); in CodecProxySetParameter()
444 CodecProxySBufRecycle(data, reply); in CodecProxySetParameter()
452 struct HdfSBuf *data = NULL; in CodecProxyGetParameter() local
458 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyGetParameter()
462 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data) || in CodecProxyGetParameter()
463 !HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecProxyGetParameter()
465 CodecProxySBufRecycle(data, reply); in CodecProxyGetParameter()
468 if (!HdfSbufWriteInt32(data, paramCnt)) { in CodecProxyGetParameter()
470 CodecProxySBufRecycle(data, reply); in CodecProxyGetParameter()
474 if (CodecProxyPackParam(data, &params[i]) != HDF_SUCCESS) { in CodecProxyGetParameter()
476 CodecProxySBufRecycle(data, reply); in CodecProxyGetParameter()
480 ret = CodecProxyCall(self, CMD_CODEC_GET_PARAMS, data, reply); in CodecProxyGetParameter()
483 CodecProxySBufRecycle(data, reply); in CodecProxyGetParameter()
489 CodecProxySBufRecycle(data, reply); in CodecProxyGetParameter()
493 CodecProxySBufRecycle(data, reply); in CodecProxyGetParameter()
500 struct HdfSBuf *data = NULL; in CodecProxyStart() local
506 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyStart()
510 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxyStart()
512 CodecProxySBufRecycle(data, reply); in CodecProxyStart()
515 if (!HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecProxyStart()
517 CodecProxySBufRecycle(data, reply); in CodecProxyStart()
520 ret = CodecProxyCall(self, CMD_CODEC_START, data, reply); in CodecProxyStart()
524 CodecProxySBufRecycle(data, reply); in CodecProxyStart()
531 struct HdfSBuf *data = NULL; in CodecProxyStop() local
537 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyStop()
541 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxyStop()
543 CodecProxySBufRecycle(data, reply); in CodecProxyStop()
546 if (!HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecProxyStop()
548 CodecProxySBufRecycle(data, reply); in CodecProxyStop()
551 ret = CodecProxyCall(self, CMD_CODEC_STOP, data, reply); in CodecProxyStop()
555 CodecProxySBufRecycle(data, reply); in CodecProxyStop()
562 struct HdfSBuf *data = NULL; in CodecProxyReset() local
568 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyReset()
572 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxyReset()
574 CodecProxySBufRecycle(data, reply); in CodecProxyReset()
577 if (!HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecProxyReset()
579 CodecProxySBufRecycle(data, reply); in CodecProxyReset()
582 ret = CodecProxyCall(self, CMD_CODEC_RESET, data, reply); in CodecProxyReset()
586 CodecProxySBufRecycle(data, reply); in CodecProxyReset()
593 struct HdfSBuf *data = NULL; in CodecProxyFlush() local
599 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyFlush()
603 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxyFlush()
605 CodecProxySBufRecycle(data, reply); in CodecProxyFlush()
608 if (!HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecProxyFlush()
610 CodecProxySBufRecycle(data, reply); in CodecProxyFlush()
613 if (!HdfSbufWriteUint32(data, (uint32_t)directType)) { in CodecProxyFlush()
614 CodecProxySBufRecycle(data, reply); in CodecProxyFlush()
618 ret = CodecProxyCall(self, CMD_CODEC_FLUSH, data, reply); in CodecProxyFlush()
622 CodecProxySBufRecycle(data, reply); in CodecProxyFlush()
630 struct HdfSBuf *data = NULL; in CodecPorxyQueueInput() local
636 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecPorxyQueueInput()
640 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecPorxyQueueInput()
642 CodecProxySBufRecycle(data, reply); in CodecPorxyQueueInput()
645 if (!HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecPorxyQueueInput()
647 CodecProxySBufRecycle(data, reply); in CodecPorxyQueueInput()
650 if (CodecProxyPackCodecBuffer(data, inputData)) { in CodecPorxyQueueInput()
652 CodecProxySBufRecycle(data, reply); in CodecPorxyQueueInput()
655 if (!HdfSbufWriteUint32(data, timeoutMs)) { in CodecPorxyQueueInput()
657 CodecProxySBufRecycle(data, reply); in CodecPorxyQueueInput()
660 if (CodecProxyPackFenceFd(data, releaseFenceFd) != HDF_SUCCESS) { in CodecPorxyQueueInput()
662 CodecProxySBufRecycle(data, reply); in CodecPorxyQueueInput()
665 ret = CodecProxyCall(self, CMD_CODEC_QUEQUE_INPUT, data, reply); in CodecPorxyQueueInput()
669 CodecProxySBufRecycle(data, reply); in CodecPorxyQueueInput()
691 struct HdfSBuf *data = NULL; in CodecProxyDequeueInput() local
697 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyDequeueInput()
701 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxyDequeueInput()
703 CodecProxySBufRecycle(data, reply); in CodecProxyDequeueInput()
706 if (!HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecProxyDequeueInput()
708 CodecProxySBufRecycle(data, reply); in CodecProxyDequeueInput()
711 if (!HdfSbufWriteUint32(data, timeoutMs)) { in CodecProxyDequeueInput()
713 CodecProxySBufRecycle(data, reply); in CodecProxyDequeueInput()
716 if (!HdfSbufWriteUint32(data, inputData->bufferCnt)) { in CodecProxyDequeueInput()
718 CodecProxySBufRecycle(data, reply); in CodecProxyDequeueInput()
721 int32_t ret = CodecProxyCall(self, CMD_CODEC_DEQUEQUE_INPUT, data, reply); in CodecProxyDequeueInput()
726 CodecProxySBufRecycle(data, reply); in CodecProxyDequeueInput()
733 CodecProxySBufRecycle(data, reply); in CodecProxyDequeueInput()
741 struct HdfSBuf *data = NULL; in CodecProxyQueueOutput() local
747 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyQueueOutput()
751 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxyQueueOutput()
753 CodecProxySBufRecycle(data, reply); in CodecProxyQueueOutput()
756 if (!HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecProxyQueueOutput()
758 CodecProxySBufRecycle(data, reply); in CodecProxyQueueOutput()
761 if (CodecProxyPackCodecBuffer(data, outInfo)) { in CodecProxyQueueOutput()
763 CodecProxySBufRecycle(data, reply); in CodecProxyQueueOutput()
766 if (!HdfSbufWriteUint32(data, timeoutMs)) { in CodecProxyQueueOutput()
768 CodecProxySBufRecycle(data, reply); in CodecProxyQueueOutput()
771 if (CodecProxyPackFenceFd(data, releaseFenceFd) != HDF_SUCCESS) { in CodecProxyQueueOutput()
773 CodecProxySBufRecycle(data, reply); in CodecProxyQueueOutput()
776 ret = CodecProxyCall(self, CMD_CODEC_QUEQUE_OUTPUT, data, reply); in CodecProxyQueueOutput()
780 CodecProxySBufRecycle(data, reply); in CodecProxyQueueOutput()
788 struct HdfSBuf *data = NULL; in CodecProxyDequeueOutput() local
794 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxyDequeueOutput()
798 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data) || in CodecProxyDequeueOutput()
799 !HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecProxyDequeueOutput()
801 CodecProxySBufRecycle(data, reply); in CodecProxyDequeueOutput()
804 if (!HdfSbufWriteUint32(data, timeoutMs)) { in CodecProxyDequeueOutput()
806 CodecProxySBufRecycle(data, reply); in CodecProxyDequeueOutput()
809 if (!HdfSbufWriteUint32(data, outInfo->bufferCnt)) { in CodecProxyDequeueOutput()
811 CodecProxySBufRecycle(data, reply); in CodecProxyDequeueOutput()
814 ret = CodecProxyCall(self, CMD_CODEC_DEQUEQUE_OUTPUT, data, reply); in CodecProxyDequeueOutput()
819 CodecProxySBufRecycle(data, reply); in CodecProxyDequeueOutput()
824 CodecProxySBufRecycle(data, reply); in CodecProxyDequeueOutput()
829 CodecProxySBufRecycle(data, reply); in CodecProxyDequeueOutput()
832 CodecProxySBufRecycle(data, reply); in CodecProxyDequeueOutput()
840 struct HdfSBuf *data = NULL; in CodecProxySetCallback() local
845 if (CodecProxyReqSBuf(&data, &reply) != HDF_SUCCESS) { in CodecProxySetCallback()
849 if (!HdfRemoteServiceWriteInterfaceToken(self->remote, data)) { in CodecProxySetCallback()
851 CodecProxySBufRecycle(data, reply); in CodecProxySetCallback()
854 if (!HdfSbufWriteUint64(data, (uint64_t)(uintptr_t)handle)) { in CodecProxySetCallback()
856 CodecProxySBufRecycle(data, reply); in CodecProxySetCallback()
859 if (HdfSbufWriteRemoteService(data, cb->remote) != HDF_SUCCESS) { in CodecProxySetCallback()
861 CodecProxySBufRecycle(data, reply); in CodecProxySetCallback()
864 if (!HdfSbufWriteUint64(data, (uint64_t)instance)) { in CodecProxySetCallback()
866 CodecProxySBufRecycle(data, reply); in CodecProxySetCallback()
869 ret = CodecProxyCall(self, CMD_CODEC_SET_CBK, data, reply); in CodecProxySetCallback()
872 CodecProxySBufRecycle(data, reply); in CodecProxySetCallback()
875 CodecProxySBufRecycle(data, reply); in CodecProxySetCallback()