/drivers/hdf_core/adapter/uhdf2/utils/src/hcs_parser/ |
D | hcs_blob_load.c | 38 int32_t length = 0; in OpenHcsBlobFile() local 41 return length; in OpenHcsBlobFile() 47 return length; in OpenHcsBlobFile() 56 length = (int32_t)ftell(fp); in OpenHcsBlobFile() 57 if ((length <= 0) || (length >= HBC_BLOB_MAX_LENGTH)) { in OpenHcsBlobFile() 58 length = 0; in OpenHcsBlobFile() 59 HDF_LOGE("%{public}s failed, the HcsBlob file length is %{public}d", __func__, length); in OpenHcsBlobFile() 62 *hcsBlob = (char *)OsalMemCalloc(length + 1); in OpenHcsBlobFile() 64 length = 0; in OpenHcsBlobFile() 69 (void)fread((void *)(*hcsBlob), (size_t)length, 1, fp); in OpenHcsBlobFile() [all …]
|
D | hcs_dm_parser.c | 50 uint32_t length = OpenHcsBlobFile(g_hcsBlobPath, &g_hcsBlob); in CreateHcsToTree() local 51 if (length == 0) { in CreateHcsToTree() 55 if (!HcsCheckBlobFormat(g_hcsBlob, length)) { in CreateHcsToTree()
|
/drivers/hdf_core/framework/model/audio/usb/src/ |
D | audio_usb_validate_desc.c | 273 size_t length; in ValidateMixerUnit() local 280 length = sizeof(struct uac_mixer_unit_descriptor) + uacMixerDesc->bNrInPins; in ValidateMixerUnit() 284 length += AUDIO_USB_DESC_LEN_2 + AUDIO_USB_DESC_LEN_2; in ValidateMixerUnit() 287 length += AUDIO_USB_DESC_LEN_4 + AUDIO_USB_DESC_LEN_1; in ValidateMixerUnit() 288 length += AUDIO_USB_DESC_LEN_2; in ValidateMixerUnit() 291 length += AUDIO_USB_DESC_LEN_2; in ValidateMixerUnit() 294 length += AUDIO_USB_DESC_LEN_2 + AUDIO_USB_DESC_LEN_2; in ValidateMixerUnit() 297 temp = uacMixerDesc->bLength >= length; in ValidateMixerUnit() 302 const struct UsbDescValidator *usbDesc, size_t *length) in UacProcessGetLength() argument 308 *length += AUDIO_USB_DESC_LEN_4; in UacProcessGetLength() [all …]
|
/drivers/hdf_core/framework/utils/src/hcs_parser/ |
D | hcs_blob_if.c | 69 int32_t length = HCS_PREFIX_LENGTH + HCS_STRING_LENGTH(start + HCS_PREFIX_LENGTH); in HcsGetAttrLength() local 71 switch (HcsGetPrefix(start + length)) { in HcsGetAttrLength() 78 dataLen = HcsGetDataTypeOffset(start + length); in HcsGetAttrLength() 81 dataLen = HcsGetArrayLength(start + length); in HcsGetAttrLength() 87 return (dataLen < 0) ? HDF_FAILURE : (dataLen + length); in HcsGetAttrLength() 92 int32_t length; in HcsGetNodeOrAttrLength() local 95 … length = HCS_STRING_LENGTH(start + HCS_PREFIX_LENGTH) + HCS_PREFIX_LENGTH + HCS_DWORD_LENGTH; in HcsGetNodeOrAttrLength() 98 length = HcsGetAttrLength(start); in HcsGetNodeOrAttrLength() 101 length = HDF_FAILURE; in HcsGetNodeOrAttrLength() 104 return length; in HcsGetNodeOrAttrLength() [all …]
|
D | hcs_buildin_parser.c | 23 uint32_t length; in BuildHcsTree() local 29 HdfGetBuildInConfigData(&hcsBlob, &length); in BuildHcsTree() 30 if (!HcsCheckBlobFormat((const char *)hcsBlob, length)) { in BuildHcsTree()
|
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/ |
D | v4l2_buffer.cpp | 134 buf.m.planes[0].length = frameSpec->buffer_->GetSize(); in SetInqueueBuffer() 136 buf.length = 1; in SetInqueueBuffer() 138 buf.length = frameSpec->buffer_->GetSize(); in SetInqueueBuffer() 148 buf.m.planes[0].length = adapterBufferMap_[buf.index].length; in SetMmapInqueueBuffer() 150 buf.length = 1; in SetMmapInqueueBuffer() 152 buf.length = adapterBufferMap_[buf.index].length; in SetMmapInqueueBuffer() 162 buf.length = 1; in SetDmaInqueueBuffer() 163 buf.m.planes[0].length = adapterBufferMap_[buf.index].length; in SetDmaInqueueBuffer() 166 buf.length = adapterBufferMap_[buf.index].length; in SetDmaInqueueBuffer() 182 buf.length = 1; in V4L2DequeueBuffer() [all …]
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/control/ |
D | XSelect.js | 54 if (list.length > model) { 55 for (let i = list.length - model; i < list.length; i++) { 57 if (i != list.length - 1) { 69 this.pm2f_.fillRect(x, y + h, w, 20 * this.list_.length, this.backgroundColor_); 80 if (list.length > model) { 81 for (let k = list.length - model; k < list.length; k++) { 83 if (k != list.length - 1) { 118 if (y > this.posY_ + this.posH_ + (this.open_ ? 20 * this.list_.length : 0)) { 134 if (this.tmpSelect_ >= 0 && this.tmpSelect_ <= this.list_.length) {
|
/drivers/hdf_core/adapter/khdf/linux/platform/fwk/ |
D | platform_trace.c | 30 int length; in PlatformTraceAddMsg() local 38 length = snprintf_s(messages, PLATFORM_TRACE_MSG_MAX_LEN + 1, PLATFORM_TRACE_MSG_MAX_LEN, in PlatformTraceAddMsg() 40 if (length < 0) { in PlatformTraceAddMsg() 41 … HDF_LOGE("PlatformTraceAddMsg[%s][%s]: generate messages fail[%d]!", module, moduleFun, length); in PlatformTraceAddMsg() 46 length = vsprintf_s(messages + length - 1, PLATFORM_TRACE_MSG_MAX_LEN, fmt, argList); in PlatformTraceAddMsg() 48 if (length < 0) { in PlatformTraceAddMsg() 49 … HDF_LOGE("PlatformTraceAddMsg[%s][%s]: generate messages fail[%d]!", module, moduleFun, length); in PlatformTraceAddMsg() 111 static ssize_t TraceFileWrite(OsalFile *file, const char *string, uint32_t length) in TraceFileWrite() argument 127 ret = vfs_write(fp, string, length, &pos); in TraceFileWrite() 130 HDF_LOGE("TraceFileWrite: write file length %d fail, ret: %d!", length, ret); in TraceFileWrite() [all …]
|
/drivers/peripheral/bluetooth/hci/hdi_service/implement/ |
D | hci_protocol.cpp | 44 ssize_t HciProtocol::Read(int fd, uint8_t *data, size_t length) in Read() argument 48 ssize_t ret = TEMP_FAILURE_RETRY(read(fd, data, length)); in Read() 57 ssize_t HciProtocol::Write(int fd, const uint8_t *data, size_t length) in Write() argument 63 ret = TEMP_FAILURE_RETRY(write(fd, data, length)); in Write() 69 } else if (static_cast<size_t>(ret) != length) { in Write() 70 HDF_LOGE("write data %zd less than %zu.", ret, length); in Write()
|
/drivers/peripheral/usb/test/unittest/hal/src/ |
D | usbfn_mtp_test.cpp | 76 .length = 0, 363 uint32_t length = BULK_IN_LESS_THEN_ONCE; variable 365 devData.assign(length, 'w'); 367 std::cout << "UsbfnMtpWrite001===>use libusb in PC launch bulk-in transfer(expect=" << length 387 uint32_t length = BULK_IN_ONCE_MAX_SIZE; variable 389 devData.assign(length, 'w'); 390 std::cout << "UsbfnMtpWrite002===>use libusb in PC launch bulk-in transfer(expect=" << length 410 uint32_t length = BULK_IN_MORE_THEN_ONCE; variable 412 devData.assign(length, 'w'); 413 std::cout << "UsbfnMtpWrite003===>use libusb in PC launch bulk-in transfer(expect=" << length [all …]
|
/drivers/hdf_core/framework/model/camera/buffer_manager/src/ |
D | camera_buffer.c | 60 buffer->planes[plane].length = 0; in CameraBufferFreeUserPtrPlanes() 110 unsigned long size = MemoryAdapterPageAlign(buffer->planes[planeNum].length); in CameraBufferAllocMmapPlane() 111 if (size < buffer->planes[planeNum].length) { in CameraBufferAllocMmapPlane() 164 off = MemoryAdapterPageAlign(p->memory.offset + p->length); in CameraBufferSetupOffsets() 171 off += buffer->planes[planeId].length; in CameraBufferSetupOffsets() 204 dst->length = src->length; in CameraBufferToUserBuffer() 271 uint32_t length; in CameraBufferCheckPlaneLength() local 276 length = userBuffer->planes[planeId].length; in CameraBufferCheckPlaneLength() 278 length = buffer->planes[planeId].length; in CameraBufferCheckPlaneLength() 281 userBuffer->planes[planeId].bytesUsed : length; in CameraBufferCheckPlaneLength() [all …]
|
/drivers/peripheral/input/interfaces/include/ |
D | input_controller.h | 119 int32_t (*GetChipInfo)(uint32_t devIndex, char *chipInfo, uint32_t length); 133 int32_t (*GetVendorName)(uint32_t devIndex, char *vendorName, uint32_t length); 147 int32_t (*GetChipName)(uint32_t devIndex, char *chipName, uint32_t length); 182 …int32_t (*RunCapacitanceTest)(uint32_t devIndex, uint32_t testType, char *result, uint32_t length);
|
/drivers/hdf_core/framework/support/platform/src/hdmi/ |
D | hdmi_infoframe.c | 50 uint32_t length; in HdmiInfoFramePacketVsEncoding() local 55 length = HDMI_INFOFRAME_PACKET_HEADER_LEN + vs->len; in HdmiInfoFramePacketVsEncoding() 56 if (len < length) { in HdmiInfoFramePacketVsEncoding() 84 if (userContent->len == 0 || (userContent->len + length) > len) { in HdmiInfoFramePacketVsEncoding() 87 … if (memcpy_s(&data[length], (len - length), userContent->data, userContent->len) != EOK) { in HdmiInfoFramePacketVsEncoding() 91 length += userContent->len; in HdmiInfoFramePacketVsEncoding() 94 HdmiInfoFrameFillCheckSum(data, length); in HdmiInfoFramePacketVsEncoding() 100 uint32_t length; in HdmiInfoFramePacketAviEncoding() local 104 length = HDMI_INFOFRAME_PACKET_HEADER_LEN + avi->len; in HdmiInfoFramePacketAviEncoding() 105 if (len < length) { in HdmiInfoFramePacketAviEncoding() [all …]
|
/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
D | osal_file.c | 67 ssize_t OsalFileWrite(OsalFile *file, const void *string, uint32_t length) in OsalFileWrite() argument 76 ret = write((int32_t)(uintptr_t)file->realFile, string, length); in OsalFileWrite() 78 HDF_LOGE("%s write file fail %d %d", __func__, length, errno); in OsalFileWrite() 96 ssize_t OsalFileRead(OsalFile *file, void *buf, uint32_t length) in OsalFileRead() argument 105 ret = read((int32_t)(uintptr_t)file->realFile, buf, length); in OsalFileRead() 107 HDF_LOGE("%s read file fail %u %d", __func__, length, errno); in OsalFileRead()
|
/drivers/hdf_core/adapter/khdf/linux/osal/src/ |
D | osal_file.c | 48 ssize_t OsalFileWrite(OsalFile *file, const void *string, uint32_t length) in OsalFileWrite() argument 60 ret = kernel_write(fp, string, length, &pos); in OsalFileWrite() 62 HDF_LOGE("%s write file length %u fail %d", __func__, length, ret); in OsalFileWrite() 84 ssize_t OsalFileRead(OsalFile *file, void *buf, uint32_t length) in OsalFileRead() argument 96 ret = kernel_read(fp, buf, length, &pos); in OsalFileRead() 98 HDF_LOGE("%s read file length %u fail %d", __func__, length, ret); in OsalFileRead()
|
/drivers/hdf_core/framework/model/storage/include/mtd/ |
D | mtd_user.h | 32 uint32_t length; member 37 uint64_t length; member 42 uint32_t length; member
|
/drivers/peripheral/user_auth/test/unittest/service_test/src/ |
D | signature_operation.cpp | 103 static ResultCode WriteTlvHead(const AuthAttributeType type, const uint32_t length, Buffer *buf) in WriteTlvHead() argument 111 …_s(buf->buf + buf->contentSize, buf->maxSize - buf->contentSize, &length, sizeof(length)) != EOK) { in WriteTlvHead() 115 buf->contentSize += sizeof(length); in WriteTlvHead() 119 static ResultCode WriteTlv(const AuthAttributeType type, const uint32_t length, const uint8_t *valu… in WriteTlv() argument 121 if (WriteTlvHead(type, length, buf) != RESULT_SUCCESS) { in WriteTlv() 126 …if (memcpy_s(buf->buf + buf->contentSize, buf->maxSize - buf->contentSize, value, length) != EOK) { in WriteTlv() 127 …_LOGE("copy buffer content fail %{public}d %{public}d", buf->maxSize - buf->contentSize, length); in WriteTlv() 130 buf->contentSize += length; in WriteTlv()
|
/drivers/peripheral/usb/interfaces/ddk/host/ |
D | usb_raw_api.h | 80 uint16_t length; member 98 uint32_t length; member 114 int32_t length; member 124 int32_t length; member 142 uint32_t length; member 413 …bRawRequest *UsbRawAllocRequest(const UsbRawHandle *devHandle, int32_t isoPackets, int32_t length);
|
D | usb_ddk_interface.h | 192 uint32_t length; member 243 uint32_t length; member 257 uint32_t length; member 436 …st *UsbAllocRequest(const UsbInterfaceHandle *interfaceHandle, int32_t isoPackets, int32_t length); 437 …bAllocRequestByMmap(const UsbInterfaceHandle *interfaceHandle, int32_t isoPackets, int32_t length);
|
/drivers/external_device_manager/frameworks/ddk/usb/ |
D | input_emit_event.cpp | 35 int32_t OH_Usb_EmitEvent(int32_t deviceId, const EmitItem items[], uint32_t length) in OH_Usb_EmitEvent() argument 37 if (length > MAX_EMIT_ITEM_NUM) { in OH_Usb_EmitEvent() 42 std::vector<EmitItem> itemsTmp(items, items + length); in OH_Usb_EmitEvent()
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
D | re.js | 24 for (let i = 0; i < tt.length; i++) { 30 ret[regs].push([p, p + tt[i].length]); 46 return data.substring(0, reg[0]) + data.substring(reg[1], data.length);
|
/drivers/peripheral/usb/hdi_service/include/ |
D | usbd_type.h | 110 int32_t length; member 117 int32_t length; member 130 uint16_t length; member 137 int32_t length; member 195 uint32_t length; member
|
/drivers/peripheral/usb/ddk/host/include/ |
D | usb_ddk_request.h | 52 unsigned int length; member 78 uint32_t length; member 120 uint32_t length; member
|
/drivers/peripheral/codec/hdi_service/codec_service_stub/ |
D | codec_callback_stub.c | 32 uint32_t length = 0; in SerCodecOnEvent() local 43 if (!HdfSbufReadUint32(data, &length)) { in SerCodecOnEvent() 47 if (length > 0) { in SerCodecOnEvent() 48 eventData = (int32_t *)OsalMemCalloc(length); in SerCodecOnEvent() 53 for (uint32_t i = 0; i < length; i++) { in SerCodecOnEvent() 61 ret = serviceImpl->callback.OnEvent((UINTPTR)userData, event, length, eventData); in SerCodecOnEvent()
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
D | thermal_simulation_node.cpp | 136 WriteFile(typeBuf, type, type.length()); in AddSensorTypeTemp() 142 WriteFile(tempBuf, temp, temp.length()); in AddSensorTypeTemp() 166 WriteFile(typePath, type, type.length()); in AddFanSensorNode() 174 WriteFile(speedPath, speed, speed.length()); in AddFanSensorNode() 204 WriteFile(fileBuf, sTemp, sTemp.length()); in AddMitigationDevice() 209 WriteFile(fileBuf, sTemp, sTemp.length()); in AddMitigationDevice() 216 WriteFile(fileBuf, sTemp, sTemp.length()); in AddMitigationDevice() 225 WriteFile(fileBuf, sTemp, sTemp.length()); in AddMitigationDevice()
|