Home
last modified time | relevance | path

Searched refs:expectedSize (Results 1 - 12 of 12) sorted by relevance

/drivers/peripheral/clearplay/hdi_service/common/
H A Ddata_parser.cpp39 uint32_t expectedSize = initData.size(); in ParsePssh() local
40 expectedSize = htonl(expectedSize); in ParsePssh()
41 if (memcmp(&initData[readPosition], &expectedSize, sizeof(expectedSize)) != 0) { in ParsePssh()
42 HDF_LOGD("%{public}s: memcmp(&initData[readPosition], &expectedSize, sizeof(expectedSize)) != 0", __func__); in ParsePssh()
44 readPosition += sizeof(expectedSize); in ParsePssh()
/drivers/peripheral/display/hdi_service/gralloc/include/
H A Dparcel_utils.h39 pAllocInfo->expectedSize = data.ReadUint32(); in UnpackAllocInfo()
64 if (!data.WriteUint32(pAllocInfo->expectedSize)) { in PackAllocInfo()
/drivers/peripheral/usb/net/src/
H A Dusb_net_host.c356 struct UsbnetHost *usbNet, unsigned int currentSize, unsigned int expectedSize) in UsbnetHostNotificationBufferProcess()
358 if (usbNet->nbSize < expectedSize) { in UsbnetHostNotificationBufferProcess()
363 unsigned int allocSize = expectedSize; in UsbnetHostNotificationBufferProcess()
370 unsigned int copySize = MIN(currentSize, expectedSize - usbNet->nbIndex); in UsbnetHostNotificationBufferProcess()
418 unsigned int expectedSize = 0; in UsbnetHostReqCallback() local
429 expectedSize = sizeof(struct UsbCdcNotification) + LE16_TO_CPU(dr->wLength); in UsbnetHostReqCallback()
435 if (currentSize < expectedSize) { in UsbnetHostReqCallback()
436 if (UsbnetHostNotificationBufferProcess(req, usbNet, currentSize, expectedSize) != HDF_SUCCESS) { in UsbnetHostReqCallback()
442 if (currentSize >= expectedSize) { in UsbnetHostReqCallback()
355 UsbnetHostNotificationBufferProcess(const struct UsbRawRequest *req, struct UsbnetHost *usbNet, unsigned int currentSize, unsigned int expectedSize) UsbnetHostNotificationBufferProcess() argument
H A Dcdc_ether.c748 unsigned int currentSize, uint32_t expectedSize) in EcmNotificationAndRequest()
750 if (currentSize >= expectedSize) { in EcmNotificationAndRequest()
779 uint32_t expectedSize = sizeof(struct UsbCdcNotification) + LE16_TO_CPU(dr->wLength); in EcmCtrlIrq() local
780 if (currentSize < expectedSize) { in EcmCtrlIrq()
781 if (ecm->nbSize < expectedSize) { in EcmCtrlIrq()
786 uint32_t allocSize = expectedSize; in EcmCtrlIrq()
793 uint32_t copySize = MIN(currentSize, expectedSize - ecm->nbIndex); in EcmCtrlIrq()
805 EcmNotificationAndRequest(req, ecm, dr, currentSize, expectedSize); in EcmCtrlIrq()
747 EcmNotificationAndRequest(struct UsbRequest *req, struct EcmDevice *ecm, struct UsbCdcNotification *dr, unsigned int currentSize, uint32_t expectedSize) EcmNotificationAndRequest() argument
/drivers/peripheral/usb/serial/src/
H A Dusb_serial_rawapi.c1038 const struct UsbRawRequest *req, struct AcmDevice *acm, unsigned int currentSize, unsigned int expectedSize) in AcmNotificationBufferProcess()
1040 if (acm->nbSize < expectedSize) { in AcmNotificationBufferProcess()
1045 unsigned int allocSize = expectedSize; in AcmNotificationBufferProcess()
1052 unsigned int copySize = MIN(currentSize, expectedSize - acm->nbIndex); in AcmNotificationBufferProcess()
1080 unsigned int expectedSize = 0; in AcmNotifyReqCallback() local
1092 expectedSize = sizeof(struct UsbCdcNotification) + LE16_TO_CPU(dr->wLength); in AcmNotifyReqCallback()
1097 if (currentSize < expectedSize) { in AcmNotifyReqCallback()
1098 if (AcmNotificationBufferProcess(req, acm, currentSize, expectedSize) != HDF_SUCCESS) { in AcmNotifyReqCallback()
1103 if (currentSize >= expectedSize) { in AcmNotifyReqCallback()
1037 AcmNotificationBufferProcess( const struct UsbRawRequest *req, struct AcmDevice *acm, unsigned int currentSize, unsigned int expectedSize) AcmNotificationBufferProcess() argument
H A Dusb_serial.c1280 unsigned int expectedSize = sizeof(struct UsbCdcNotification) + LE16_TO_CPU(dr->wLength); in AcmCtrlIrqCheckSize() local
1281 if (currentSize < expectedSize) { in AcmCtrlIrqCheckSize()
1282 if (acm->nbSize < expectedSize) { in AcmCtrlIrqCheckSize()
1287 unsigned int allocSize = expectedSize; in AcmCtrlIrqCheckSize()
1294 unsigned int copySize = MIN(currentSize, expectedSize - acm->nbIndex); in AcmCtrlIrqCheckSize()
1305 if (currentSize >= expectedSize) { in AcmCtrlIrqCheckSize()
/drivers/peripheral/display/buffer/test/fuzztest/metadata_fuzzer/
H A Dmetadata_fuzzer.cpp70 info.expectedSize = info.width * info.height; in GetAllocInfo()
/drivers/peripheral/usb/test/unittest/host_sdk/
H A Dusb_raw_sdk_if_test.cpp242 unsigned int expectedSize, copySize, allocSize; in AcmNotifyReqCallback() local
249 expectedSize = sizeof(struct UsbCdcNotification) + LE16_TO_CPU(dr->wLength); in AcmNotifyReqCallback()
250 if (currentSize < expectedSize) { in AcmNotifyReqCallback()
251 if (acm->nbSize < expectedSize) { in AcmNotifyReqCallback()
256 allocSize = expectedSize; in AcmNotifyReqCallback()
263 copySize = MIN(currentSize, expectedSize - acm->nbIndex); in AcmNotifyReqCallback()
271 if (currentSize >= expectedSize) { in AcmNotifyReqCallback()
H A Dusb_host_sdk_if_test.cpp152 uint32_t expectedSize = sizeof(struct UsbCdcNotification) + LE16_TO_CPU(dr->wLength); in AcmCtrlIrq() local
153 if (currentSize < expectedSize) { in AcmCtrlIrq()
154 if (acm->nbSize < expectedSize) { in AcmCtrlIrq()
159 uint32_t allocSize = expectedSize; in AcmCtrlIrq()
166 uint32_t copySize = MIN(currentSize, expectedSize - acm->nbIndex); in AcmCtrlIrq()
174 if (currentSize >= expectedSize) { in AcmCtrlIrq()
/drivers/peripheral/display/interfaces/include/
H A Ddisplay_type.h477 uint32_t expectedSize; /**< Size assigned by memory requester */ member
/drivers/peripheral/display/composer/test/fuzztest/device_fuzzer/
H A Ddevice_fuzzer.cpp74 info.expectedSize = info.width * info.height; in GetAllocInfo()
/drivers/peripheral/display/composer/test/fuzztest/layer_fuzzer/
H A Dlayer_fuzzer.cpp104 info.expectedSize = info.width * info.height; in GetAllocInfo()

Completed in 27 milliseconds