Home
last modified time | relevance | path

Searched refs:length (Results 1 - 25 of 207) sorted by relevance

123456789

/drivers/hdf_core/adapter/uhdf2/utils/src/hcs_parser/
H A Dhcs_blob_load.c38 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 in OpenHcsBlobFile()
[all...]
H A Dhcs_dm_parser.c50 uint32_t length = OpenHcsBlobFile(HCS_BLOB_PATH, &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/
H A Daudio_usb_validate_desc.c273 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()
308 *length in UacProcessGetLength()
301 UacProcessGetLength(const struct uac_processing_unit_descriptor *uacProcessDesc, const uint8_t *hdr, const struct UsbDescValidator *usbDesc, size_t *length) UacProcessGetLength() argument
332 UacV1ProcessGetLen( const struct uac_processing_unit_descriptor *uacProcessDesc, const uint8_t *hdr, size_t *length) UacV1ProcessGetLen() argument
351 UacV2ProcessGetLen( const struct uac_processing_unit_descriptor *uacProcessDesc, const uint8_t *hdr, size_t *length) UacV2ProcessGetLen() argument
370 UacV3ProcessGetLen( const struct uac_processing_unit_descriptor *uacProcessDesc, const uint8_t *hdr, size_t *length) UacV3ProcessGetLen() argument
391 ValidateProcessingUnitSub(const struct UsbDescValidator *usbDesc, const struct uac_processing_unit_descriptor *uacProcessDesc, const uint8_t *hdr, size_t *length) ValidateProcessingUnitSub() argument
430 size_t length; ValidateProcessingUnit() local
469 size_t length; ValidateSelectorUnit() local
[all...]
/drivers/hdf_core/framework/utils/src/hcs_parser/
H A Dhcs_blob_if.c69 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()
173 CheckHcsBlobLength(uint32_t length, struct HbcHeader *header) CheckHcsBlobLength() argument
195 HcsCheckBlobFormat(const char *start, uint32_t length) HcsCheckBlobFormat() argument
[all...]
H A Dhcs_buildin_parser.c23 uint32_t length; in BuildHcsTree() local
29 HdfGetBuildInConfigData(&hcsBlob, &length); in BuildHcsTree()
30 if (!HcsCheckBlobFormat((const char *)hcsBlob, length)) { in BuildHcsTree()
/drivers/peripheral/bluetooth/hci/hdi_service/implement/
H A Dhci_protocol.cpp50 ssize_t HciProtocol::Read(int fd, uint8_t *data, size_t length) in Read() argument
54 ssize_t ret = TEMP_FAILURE_RETRY(read(fd, data, length)); in Read()
63 ssize_t HciProtocol::Write(int fd, const uint8_t *data, size_t length) in Write() argument
69 ret = TEMP_FAILURE_RETRY(write(fd, data, length)); in Write()
75 } else if (static_cast<size_t>(ret) != length) { in Write()
76 HDF_LOGE("write data %zd less than %zu.", ret, length); in Write()
H A Dhci_protocol.h41 static ssize_t Read(int fd, uint8_t *data, size_t length);
42 static ssize_t Write(int fd, const uint8_t *data, size_t length);
/drivers/hdf_core/adapter/khdf/linux/platform/fwk/
H A Dplatform_trace.c31 int length; in PlatformTraceAddMsg() local
39 length = snprintf_s(messages, PLATFORM_TRACE_MSG_MAX_LEN + 1, PLATFORM_TRACE_MSG_MAX_LEN, in PlatformTraceAddMsg()
41 if (length < 0) { in PlatformTraceAddMsg()
42 HDF_LOGE("PlatformTraceAddMsg[%s][%s]: generate messages fail[%d]!", module, moduleFun, length); in PlatformTraceAddMsg()
47 length = vsprintf_s(messages + length - 1, PLATFORM_TRACE_MSG_MAX_LEN, fmt, argList); in PlatformTraceAddMsg()
49 if (length < 0) { in PlatformTraceAddMsg()
50 HDF_LOGE("PlatformTraceAddMsg[%s][%s]: generate messages fail[%d]!", module, moduleFun, length); in PlatformTraceAddMsg()
112 static ssize_t TraceFileWrite(OsalFile *file, const char *string, uint32_t length) in TraceFileWrite() argument
132 ret = vfs_write(fp, string, length, in TraceFileWrite()
144 TraceFileRead(OsalFile *file, char *buf, uint32_t length) TraceFileRead() argument
[all...]
/drivers/hdf_core/framework/model/camera/buffer_manager/src/
H A Dcamera_buffer.c60 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()
303 CameraBufferPrepareUserPtrPlane(struct CameraBuffer *buffer, uint32_t planeNum, unsigned long userPtr, uint32_t length) CameraBufferPrepareUserPtrPlane() argument
[all...]
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/
H A Dv4l2_buffer.cpp237 buf.m.planes[0].length = frameSpec->buffer_->GetSize(); in SetInqueueBuffer()
239 buf.length = 1; in SetInqueueBuffer()
241 buf.length = frameSpec->buffer_->GetSize(); in SetInqueueBuffer()
251 buf.m.planes[0].length = adapterBufferMap_[buf.index].length; in SetMmapInqueueBuffer()
253 buf.length = 1; in SetMmapInqueueBuffer()
255 buf.length = adapterBufferMap_[buf.index].length; in SetMmapInqueueBuffer()
265 buf.length = 1; in SetDmaInqueueBuffer()
266 buf.m.planes[0].length in SetDmaInqueueBuffer()
[all...]
/drivers/hdf_core/framework/support/platform/src/hdmi/
H A Dhdmi_infoframe.c50 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 in HdmiInfoFramePacketAviEncoding()
174 uint32_t length; HdmiInfoFramePacketSpdEncoding() local
210 uint32_t length; HdmiInfoFramePacketAudioEncoding() local
251 uint32_t length; HdmiInfoFramePacketDrmEncoding() local
643 uint8_t length = 0x07; HdmiGetVsifLength() local
741 uint32_t length; HdmiFillSpdInfoFrame() local
[all...]
/drivers/peripheral/usb/test/unittest/hal/src/
H A Dusbfn_mtp_test.cpp76 .length = 0,
239 * @tc.desc: Positive test: parameters correctly, read length less then one packet size
262 * @tc.desc: Positive test: parameters correctly, read length exactly one packet size
285 * @tc.desc: Positive test: parameters correctly, read length more then one packet size, please read again
369 uint32_t length = BULK_IN_LESS_THEN_ONCE; in HWTEST_F() local
371 devData.assign(length, 'w'); in HWTEST_F()
373 std::cout << "UsbfnMtpWrite001===>use libusb in PC launch bulk-in transfer(expect=" << length in HWTEST_F()
393 uint32_t length = BULK_IN_ONCE_MAX_SIZE; in HWTEST_F() local
395 devData.assign(length, 'w'); in HWTEST_F()
396 std::cout << "UsbfnMtpWrite002===>use libusb in PC launch bulk-in transfer(expect=" << length in HWTEST_F()
416 uint32_t length = BULK_IN_MORE_THEN_ONCE; HWTEST_F() local
[all...]
/drivers/peripheral/input/interfaces/include/
H A Dinput_controller.h113 * @param length Indicates the length of the chip information. The minimum value of length is 10.
119 int32_t (*GetChipInfo)(uint32_t devIndex, char *chipInfo, uint32_t length);
127 * @param length Indicates the length of the module vendor name. The minimum value of length is 10.
133 int32_t (*GetVendorName)(uint32_t devIndex, char *vendorName, uint32_t length);
141 * @param length Indicates the length o
[all...]
/drivers/hdf_core/framework/model/storage/include/mtd/
H A Dmtd_user.h32 uint32_t length; member
37 uint64_t length; member
42 uint32_t length; member
/drivers/hdf_core/adapter/khdf/linux/osal/src/
H A Dosal_file.c48 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/adapter/khdf/liteos/osal/src/
H A Dosal_file.c67 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/peripheral/user_auth/test/unittest/service_test/src/
H A Dsignature_operation.cpp128 static ResultCode WriteTlvHead(const AuthAttributeType type, const uint32_t length, Buffer *buf) in WriteTlvHead() argument
136 if (memcpy_s(buf->buf + buf->contentSize, buf->maxSize - buf->contentSize, &length, sizeof(length)) != EOK) { in WriteTlvHead()
137 IAM_LOGE("copy length fail"); in WriteTlvHead()
140 buf->contentSize += sizeof(length); in WriteTlvHead()
144 static ResultCode WriteTlv(const AuthAttributeType type, const uint32_t length, const uint8_t *value, Buffer *buf) in WriteTlv() argument
146 if (WriteTlvHead(type, length, buf) != RESULT_SUCCESS) { in WriteTlv()
151 if (memcpy_s(buf->buf + buf->contentSize, buf->maxSize - buf->contentSize, value, length) != EOK) { in WriteTlv()
152 IAM_LOGE("copy buffer content fail %{public}d %{public}d", buf->maxSize - buf->contentSize, length); in WriteTlv()
155 buf->contentSize += length; in WriteTlv()
[all...]
/drivers/peripheral/usb/interfaces/ddk/host/
H A Dusb_ddk_interface.h192 uint32_t length; member
193 /** Actual length of the data sent at request completion */
243 uint32_t length; member
257 uint32_t length; member
458 * @param length Indicates the size of the user space to allocate.
463 struct UsbRequest *UsbAllocRequest(const UsbInterfaceHandle *interfaceHandle, int32_t isoPackets, int32_t length);
464 struct UsbRequest *UsbAllocRequestByMmap(const UsbInterfaceHandle *interfaceHandle, int32_t isoPackets, int32_t length);
466 const UsbInterfaceHandle *interfaceHandle, int32_t isoPackets, int32_t length, int32_t fd);
H A Dusb_raw_api.h80 uint16_t length; member
98 uint32_t length; member
114 int32_t length; member
124 int32_t length; member
125 /** Actual length of the data sent at request completion */
142 uint32_t length; member
185 /** Interface descriptor array. Its length is determined by the numAltsetting field. */
408 * @param length Indicates the size of the user space to allocate.
413 struct UsbRawRequest *UsbRawAllocRequest(const UsbRawHandle *devHandle, int32_t isoPackets, int32_t length);
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/
H A Dre.js24 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/hdf_core/framework/include/osal/
H A Dosal_file.h140 * @param length Indicates the length of the content to write.
145 * Greater than <b>0</b> | The length of the file content is successfully written.
152 ssize_t OsalFileWrite(OsalFile *file, const void *string, uint32_t length);
169 * @param length Indicates the length of the content to read.
174 * Greater than <b>0</b> | The length of the file content is successfully read.
181 ssize_t OsalFileRead(OsalFile *file, void *buf, uint32_t length);
/drivers/hdf_core/interfaces/inner_api/osal/shared/
H A Dosal_file.h140 * @param length Indicates the length of the content to write.
145 * Greater than <b>0</b> | The length of the file content is successfully written.
152 ssize_t OsalFileWrite(OsalFile *file, const void *string, uint32_t length);
169 * @param length Indicates the length of the content to read.
174 * Greater than <b>0</b> | The length of the file content is successfully read.
181 ssize_t OsalFileRead(OsalFile *file, void *buf, uint32_t length);
/drivers/external_device_manager/frameworks/ddk/hid/
H A Dinput_emit_event.cpp136 hidEventProperties->hidEventTypes.hidEventType + hidEventProperties->hidEventTypes.length, in ParseHidEventProperties()
144 hidEventProperties->hidKeys.hidKeyCode + hidEventProperties->hidKeys.length, in ParseHidEventProperties()
152 hidEventProperties->hidAbs.hidAbsAxes + hidEventProperties->hidAbs.length, in ParseHidEventProperties()
160 hidEventProperties->hidRelBits.hidRelAxes + hidEventProperties->hidRelBits.length, in ParseHidEventProperties()
168 hidEventProperties->hidMiscellaneous.hidMscEvent + hidEventProperties->hidMiscellaneous.length, in ParseHidEventProperties()
199 EDM_LOGE(MODULE_HID_DDK, "properties length is out of range"); in CheckHidDevice()
209 EDM_LOGE(MODULE_HID_DDK, "length of hidDevice->deviceName is out of range"); in CheckHidDevice()
231 if (hidEventProperties->hidEventTypes.length > MAX_HID_EVENT_TYPES_LEN) { in OH_Hid_CreateDevice()
232 EDM_LOGE(MODULE_HID_DDK, "hidEventTypes length is out of range"); in OH_Hid_CreateDevice()
236 if (hidEventProperties->hidKeys.length > MAX_HID_KEYS_LE in OH_Hid_CreateDevice()
268 OH_Hid_EmitEvent(int32_t deviceId, const Hid_EmitItem items[], uint16_t length) OH_Hid_EmitEvent() argument
[all...]
/drivers/peripheral/usb/hdi_service/include/
H A Dusbd_type.h110 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/
H A Dusb_ddk_request.h52 unsigned int length; member
77 /* the length of data buffer */
78 uint32_t length; member
79 /* the actual length of the requested data */
92 /* the length of data buffer */
120 uint32_t length; member

Completed in 11 milliseconds

123456789