/drivers/hdf_core/framework/utils/src/hcs_parser/ |
D | hcs_generate_tree.c | 16 static struct DeviceResourceNode *GetParentNode(int32_t offset, const struct TreeStack *treeStack, in GetParentNode() argument 20 while ((parentLayer > 0) && (configOffset + offset > 0)) { in GetParentNode() 21 if (treeStack[parentLayer].offset >= (uint32_t)(configOffset + offset)) { in GetParentNode() 30 static struct DeviceResourceNode *CreateTreeNode(const char *start, int32_t offset, in CreateTreeNode() argument 36 newNode->name = start + offset + HCS_PREFIX_LENGTH; in CreateTreeNode() 37 newNode->hashValue = (uint32_t)offset + sizeof(struct HbcHeader); in CreateTreeNode() 54 uint32_t offset) in UpdateTreeStack() argument 62 (*treeStack)[*treeLayer].offset = offset; in UpdateTreeStack() 84 static int32_t ParseByteCode(const char *treeStart, int32_t offset, char **treeMem, in ParseByteCode() argument 87 int32_t termOffset = HcsGetNodeOrAttrLength(treeStart + offset); in ParseByteCode() [all …]
|
D | hcs_parser.c | 22 bool HcsDecompile(const char *hcsBlob, uint32_t offset, struct DeviceResourceNode **root) in HcsDecompile() argument 24 int32_t nodeLength = HcsGetNodeLength(hcsBlob + offset); in HcsDecompile() 33 treeMemLength = GetHcsTreeSize(hcsBlob + offset, nodeLength); in HcsDecompile() 44 treeLayer = GenerateCfgTree(hcsBlob + offset, nodeLength, treeMem, root); in HcsDecompile()
|
/drivers/hdf_core/adapter/khdf/liteos/osal/src/ |
D | osal_firmware.c | 45 uint32_t offset; member 96 fw->offset = 0; in OsalRequestFirmware() 103 int32_t OsalSeekFirmware(struct OsalFirmware *fwPara, uint32_t offset) in OsalSeekFirmware() argument 107 if (fwPara == NULL || offset >= fwPara->fwSize || fwPara->para == NULL) { in OsalSeekFirmware() 113 fw->offset = offset; in OsalSeekFirmware() 139 if (fw->offset >= fwPara->fwSize) { in OsalReadFirmware() 140 HDF_LOGE("%s file offset invalid %d %d", __func__, fw->offset, fwPara->fwSize); in OsalReadFirmware() 144 if (fw->offset + block->dataSize >= fwPara->fwSize) { in OsalReadFirmware() 145 block->dataSize = fwPara->fwSize - fw->offset; in OsalReadFirmware() 154 readOffset = (uint32_t)lseek(fw->fd, fw->offset, SEEK_SET); in OsalReadFirmware() [all …]
|
D | osal_file.c | 114 off_t OsalFileLseek(OsalFile *file, off_t offset, int32_t whence) in OsalFileLseek() argument 123 ret = lseek((int32_t)(uintptr_t)file->realFile, offset, whence); in OsalFileLseek() 125 HDF_LOGE("%s lseek file fail %lld %d %d", __func__, offset, whence, errno); in OsalFileLseek()
|
/drivers/peripheral/huks/test/fuzztest/ |
D | huks_hdi_fuzz_common.cpp | 55 uint32_t offset = sizeof(struct HksParamSet) + sizeof(struct HksParam) * paramSet->paramsCnt; in HuksFreshParamSet() local 58 if (offset > size) { in HuksFreshParamSet() 62 if (IsAdditionOverflow(offset, paramSet->params[i].blob.size)) { in HuksFreshParamSet() 66 if (isCopy && (memcpy_s((uint8_t *)paramSet + offset, size - offset, in HuksFreshParamSet() 70 paramSet->params[i].blob.data = (uint8_t *)paramSet + offset; in HuksFreshParamSet() 71 offset += paramSet->params[i].blob.size; in HuksFreshParamSet() 75 if (paramSet->paramSetSize != offset) { in HuksFreshParamSet()
|
/drivers/peripheral/clearplay/hdi_service/src/ |
D | media_decrypt_module_service.cpp | 141 size_t offset = 0; in DecryptBySM4Cbc() local 157 …ret = memcpy_s(destData + offset, subSample.clearHeaderLen, srcData + offset, subSample.clearHeade… in DecryptBySM4Cbc() 163 offset += subSample.clearHeaderLen; in DecryptBySM4Cbc() 169 EVP_DecryptUpdate(ctx, (unsigned char *)(destData + offset), &len, in DecryptBySM4Cbc() 170 (const unsigned char *)(srcData + offset), (int)(subSample.payLoadLen)); in DecryptBySM4Cbc() 172 EVP_DecryptFinal_ex(ctx, (unsigned char *)(destData + offset + len), &len); in DecryptBySM4Cbc() 174 offset += subSample.payLoadLen; in DecryptBySM4Cbc() 187 size_t offset = 0; in DecryptByAesCbc() local 201 …ret = memcpy_s(destData + offset, subSample.clearHeaderLen, srcData + offset, subSample.clearHeade… in DecryptByAesCbc() 207 offset += subSample.clearHeaderLen; in DecryptByAesCbc() [all …]
|
/drivers/hdf_core/adapter/khdf/liteos_m/network/src/ |
D | netbuf_adapter.c | 315 nb->bufs[E_HEAD_BUF].offset = 0; in NetBufAlloc() 317 nb->bufs[E_DATA_BUF].offset = 0; in NetBufAlloc() 319 nb->bufs[E_TAIL_BUF].offset = 0; in NetBufAlloc() 374 dataBuf->offset += len; in NetBufPush() 386 tailBuf->offset += len; in NetBufPush() 390 if (dataBuf->len < len || nb->dataLen < len || tailBuf->offset < len) { in NetBufPush() 392 dataBuf->len, nb->dataLen, tailBuf->offset, len); in NetBufPush() 398 tailBuf->offset -= len; in NetBufPush() 405 return (nb->mem + dataBuf->offset); in NetBufPush() 431 if (headBuf->len < len || dataBuf->offset < len) { in NetBufPop() [all …]
|
/drivers/hdf_core/adapter/khdf/liteos/network/src/ |
D | netbuf_adapter.c | 315 nb->bufs[E_HEAD_BUF].offset = 0; in NetBufAlloc() 317 nb->bufs[E_DATA_BUF].offset = 0; in NetBufAlloc() 319 nb->bufs[E_TAIL_BUF].offset = 0; in NetBufAlloc() 374 dataBuf->offset += len; in NetBufPush() 386 tailBuf->offset += len; in NetBufPush() 390 if (dataBuf->len < len || nb->dataLen < len || tailBuf->offset < len) { in NetBufPush() 392 dataBuf->len, nb->dataLen, tailBuf->offset, len); in NetBufPush() 398 tailBuf->offset -= len; in NetBufPush() 405 return (nb->mem + dataBuf->offset); in NetBufPush() 431 if (headBuf->len < len || dataBuf->offset < len) { in NetBufPop() [all …]
|
/drivers/hdf_core/adapter/khdf/linux/osal/src/ |
D | osal_mem.c | 33 uint32_t offset; member 87 block->hdr.offset = 0; in OsalMemAlloc() 119 uint32_t offset; in OsalMemAllocAlign() local 136 offset = aligned_ptr - buf; in OsalMemAllocAlign() 137 block = (struct mem_block *)(base + offset); in OsalMemAllocAlign() 139 block->hdr.offset = offset; in OsalMemAllocAlign() 157 base = (char *)block - block->hdr.offset; in OsalMemFree()
|
D | osal_cdev.c | 151 static loff_t OsalCdevSeek(struct file* filep, loff_t offset, int whence) in OsalCdevSeek() argument 154 return dev->opsImpl->seek(filep, offset, whence); in OsalCdevSeek() 157 static ssize_t OsalCdevRead(struct file* filep, char __user* buf, size_t buflen, loff_t* offset) in OsalCdevRead() argument 160 return dev->opsImpl->read(filep, buf, buflen, offset); in OsalCdevRead() 163 …ic ssize_t OsalCdevWrite(struct file* filep, const char __user* buf, size_t buflen, loff_t* offset) in OsalCdevWrite() argument 166 return dev->opsImpl->write(filep, buf, buflen, offset); in OsalCdevWrite()
|
/drivers/peripheral/bluetooth/hci/hdi_service/implement/ |
D | bluetooth_address.cpp | 75 size_t offset = 0; in ParseAddressFromString() local 78 for (bytesIndex = 0; bytesIndex < ADDRESS_SIZE && offset < string.size(); bytesIndex++) { in ParseAddressFromString() 80 if (sscanf_s(&string[offset], "%02hhx:%n", &address_[bytesIndex], &readCount) > 0) { in ParseAddressFromString() 84 offset += readCount; in ParseAddressFromString() 205 int offset = 0; in ReadAddress() local 208 …&address[offset], (ADDRESS_STR_LEN + 1) - offset, ADDRESS_STR_LEN - offset, "%02x:", address_[ii]); in ReadAddress() 212 offset += ret; in ReadAddress()
|
/drivers/peripheral/partitionslot/hal/src/ |
D | partitionslot_manager.cpp | 77 int32_t PartitionSlotManager::WriteSlot(int fd, int32_t slot, off_t offset, off_t size) in WriteSlot() argument 79 if (lseek(fd, offset, SEEK_SET) < 0) { in WriteSlot() 91 int PartitionSlotManager::ReadMisc(off_t offset, off_t size) in ReadMisc() argument 97 if (lseek(fd, offset, SEEK_SET) < 0) { in ReadMisc() 113 int PartitionSlotManager::WriteSlotToMisc(int32_t slot, off_t offset, off_t size) in WriteSlotToMisc() argument 125 if (WriteSlot(fd, slot, offset, size) < 0) { in WriteSlotToMisc()
|
/drivers/peripheral/partitionslot/hal/include/ |
D | partitionslot_manager.h | 36 int32_t WriteSlot(int fd, int32_t slot, off_t offset, off_t size); 37 int ReadMisc(off_t offset, off_t size); 38 int WriteSlotToMisc(int32_t slot, off_t offset, off_t size);
|
/drivers/hdf_core/framework/include/osal/ |
D | osal_cdev.h | 26 int64_t (*seek)(struct file *filep, int64_t offset, int whence); 27 ssize_t (*read)(struct file *filep, char __user *buffer, size_t buflen, int64_t *offset); 28 ssize_t (*write)(struct file *filep, const char __user *buffer, size_t buflen, int64_t *offset);
|
/drivers/hdf_core/interfaces/inner_api/hdi/base/ |
D | hdi_smq.h | 366 int offset = (static_cast<int>(memzone->offset) / PAGE_SIZE) * PAGE_SIZE; in MapMemZone() local 367 int length = static_cast<int>(memzone->offset) - offset + static_cast<int>(memzone->size); in MapMemZone() 369 void *ptr = mmap(0, length, PROT_READ | PROT_WRITE, MAP_SHARED, meta_->GetFd(), offset); in MapMemZone() 373 zoneType, length, offset, meta_->GetFd(), errno); in MapMemZone() 376 return (reinterpret_cast<uintptr_t>(ptr) + (static_cast<int>(memzone->offset) - offset)); in MapMemZone() 386 int offset = (static_cast<int>(memzone->offset) / PAGE_SIZE) * PAGE_SIZE; in UnMapMemZone() local 387 int length = static_cast<int>(memzone->offset) - offset + static_cast<int>(memzone->size); in UnMapMemZone() 388 uint8_t *ptr = reinterpret_cast<uint8_t *>(addr) - (static_cast<int>(memzone->offset) - offset); in UnMapMemZone()
|
D | hdi_smq_meta.h | 72 uint32_t offset; member 274 size_t offset = 0; in SharedMemQueueMeta() local 275 for (size_t i = 0; i < MEMZONE_COUNT; offset += memZoneSize[i++]) { in SharedMemQueueMeta() 276 memzone_[i].offset = AlignToWord(offset); in SharedMemQueueMeta() 280 size_ = memzone_[MEMZONE_DATA].offset + memzone_[MEMZONE_DATA].size; in SharedMemQueueMeta()
|
/drivers/peripheral/codec/hal/idl_service/src/ |
D | codec_share_buffer.cpp | 87 codecBuffer.offset = 0; in Allocate() 112 …*sharedPtr = const_cast<void *>(shMem_->ReadFromAshmem(codecBuffer.filledLen, codecBuffer.offset)); in EmptyOmxBuffer() 115 codecBuffer.offset); in EmptyOmxBuffer() 118 …auto ret = memcpy_s(omxBuffer.pBuffer + codecBuffer.offset, codecBuffer.allocLen - codecBuffer.off… in EmptyOmxBuffer()
|
D | icodec_buffer.cpp | 100 omxBuffer.nOffset = codecBuffer.offset; in FillOmxBuffer() 108 omxBuffer.nOffset = codecBuffer.offset; in EmptyOmxBuffer() 117 codecBuffer_.offset = omxBuffer.nOffset; in EmptyOmxBufferDone() 124 codecBuffer_.offset = omxBuffer.nOffset; in FillOmxBufferDone()
|
/drivers/peripheral/display/hal/default_standard/src/display_gralloc/ |
D | framebuffer_allocator.cpp | 42 varInfo.transp.offset = 24; // offset 24 of a channel in SetFdFormatAndVirtualRes() 43 varInfo.red.offset = 0; // offset 16 of red channel in SetFdFormatAndVirtualRes() 44 varInfo.green.offset = 8; // offset 8 of green channel in SetFdFormatAndVirtualRes() 45 varInfo.blue.offset = 16; // offset 16 of blue channel in SetFdFormatAndVirtualRes() 112 uint32_t offset = smemAddress - smemStart_; in Allocate() local 118 handle.key = offset; in Allocate()
|
/drivers/peripheral/huks/test/unittest/ |
D | hdi_ihuks_api_function_test.cpp | 198 uint32_t offset = sizeof(struct HksParamSet) + sizeof(struct HksParam) * paramSet->paramsCnt; in HuksFreshParamSet() local 201 if (offset > size) { in HuksFreshParamSet() 205 if (IsAdditionOverflow(offset, paramSet->params[i].blob.size)) { in HuksFreshParamSet() 209 if (isCopy && (memcpy_s((uint8_t *)paramSet + offset, size - offset, in HuksFreshParamSet() 213 paramSet->params[i].blob.data = (uint8_t *)paramSet + offset; in HuksFreshParamSet() 214 offset += paramSet->params[i].blob.size; in HuksFreshParamSet() 218 if (paramSet->paramSetSize != offset) { in HuksFreshParamSet()
|
/drivers/peripheral/codec/hal/v2.0/hdi_impl/src/ |
D | codec_share_buffer.cpp | 95 codecBuffer.offset = 0; in Allocate() 126 …*sharedPtr = const_cast<void *>(shMem_->ReadFromAshmem(codecBuffer.filledLen, codecBuffer.offset)); in EmptyOmxBuffer() 129 codecBuffer.offset); in EmptyOmxBuffer() 132 …auto ret = memcpy_s(omxBuffer.pBuffer + codecBuffer.offset, codecBuffer.allocLen - codecBuffer.off… in EmptyOmxBuffer()
|
D | icodec_buffer.cpp | 115 omxBuffer.nOffset = codecBuffer.offset; in FillOmxBuffer() 123 omxBuffer.nOffset = codecBuffer.offset; in EmptyOmxBuffer() 132 codecBuffer_.offset = omxBuffer.nOffset; in EmptyOmxBufferDone() 139 codecBuffer_.offset = omxBuffer.nOffset; in FillOmxBufferDone()
|
/drivers/hdf_core/framework/support/platform/src/hdmi/ |
D | hdmi_scdc.c | 16 static int32_t HdmiScdcRead(const struct HdmiScdc *scdc, enum HdmiScdcsOffset offset, uint8_t *buff… in HdmiScdcRead() argument 31 cfg.offset = offset; in HdmiScdcRead() 36 static int32_t HdmiScdcWrite(const struct HdmiScdc *scdc, enum HdmiScdcsOffset offset, uint8_t *buf… in HdmiScdcWrite() argument 51 cfg.offset = offset; in HdmiScdcWrite() 56 static int32_t HdmiScdcReadByte(const struct HdmiScdc *scdc, enum HdmiScdcsOffset offset, uint8_t *… in HdmiScdcReadByte() argument 58 return HdmiScdcRead(scdc, offset, byte, sizeof(*byte)); in HdmiScdcReadByte() 61 static int32_t HdmiScdcWriteByte(const struct HdmiScdc *scdc, enum HdmiScdcsOffset offset, uint8_t … in HdmiScdcWriteByte() argument 63 return HdmiScdcWrite(scdc, offset, byte, sizeof(*byte)); in HdmiScdcWriteByte()
|
D | hdmi_hdcp.c | 14 static int32_t HdmiHdcpRead(struct HdmiHdcp *hdcp, enum HdmiHdcpPortOffset offset, uint8_t *buffer,… in HdmiHdcpRead() argument 29 cfg.offset = offset; in HdmiHdcpRead() 34 static int32_t HdmiHdcpWrite(struct HdmiHdcp *hdcp, enum HdmiHdcpPortOffset offset, uint8_t *buffer… in HdmiHdcpWrite() argument 49 cfg.offset = offset; in HdmiHdcpWrite() 127 uint8_t offset; in HdmiHdcpReadMsgHv() local 137 offset = HDMI_HDCP_V_H0 + i * HDMI_HDCP_MSG_PER_VH_LEN; in HdmiHdcpReadMsgHv() 138 ret = HdmiHdcpRead(hdcp, offset, &(hdcp->vh[i]), HDMI_HDCP_MSG_PER_VH_LEN); in HdmiHdcpReadMsgHv()
|
/drivers/peripheral/usb/net/include/ |
D | rndis_rawapi.h | 121 __le32 offset; member 138 __le32 offset; member 148 __le32 offset; member 181 __le32 offset; member
|