Home
last modified time | relevance | path

Searched refs:offsetof (Results 1 – 25 of 38) sorted by relevance

12

/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/
H A Dbtm_snoop_filter_cmd.c56 offsetof(HciCreateConnectionCancelParam, bdAddr),
64 offsetof(HciLinkKeyRequestReplyParam, bdAddr),
66 offsetof(HciLinkKeyRequestReplyReturnParam, bdAddr),
70 offsetof(HciLinkKeyRequestNegativeReplyParam, bdAddr),
76 offsetof(HciPinCodeRequestReplyParam, bdAddr),
78 offsetof(HciPinCodeRequestReplyReturnParam, bdAddr),
99 offsetof(HciRemoteNameRequestCancelParam, addr),
121 offsetof(HciIOCapabilityRequestReplyParam, bdAddr),
139 offsetof(HciUserPasskeyRequestReplyParam, bdAddr),
151 offsetof(HciRemoteOobDataRequestReplyParam, bdAddr),
[all …]
H A Dbtm_snoop_filter_evt.c47 offset += offsetof(HciLeAdvertisingReport, data); in HciLeAdvertisingReportEventFilter()
85 offset += offsetof(HciLeExtendedAdvertisingReport, data); in HciLeExtendedAdvertisingReportEventFilter()
160 {HciCommonFilterAddress, offsetof(HciConnectionCompleteEventParam, bdAddr)},
161 {HciCommonFilterAddress, offsetof(HciConnectionRequestEventParam, bdAddr)},
175 {HciCommonFilterAddress, offsetof(HciRoleChangeEventParam, bdAddr)},
179 {HciCommonFilterAddress, offsetof(HciPinCodeRequestEventParam, bdAddr)},
180 {HciCommonFilterAddress, offsetof(HciLinkKeyRequestEventParam, bdAddr)},
181 {HciCommonFilterAddress, offsetof(HciLinkKeyNotificationEventParam, bdAddr)},
206 {HciCommonFilterAddress, offsetof(HciIoCapabilityRequestEventParam, bdAddr)},
207 {HciCommonFilterAddress, offsetof(HciIoCapabilityResponseEventParam, bdAddr)},
[all …]
/ohos5.0/base/update/updater/services/package/pkg_package/
H A Dpkg_zipfile.cpp102 WriteLE16(buff.data() + offsetof(EndCentralDir, numDisk), 0); in SavePackage()
103 WriteLE16(buff.data() + offsetof(EndCentralDir, startDiskOfCentralDir), 0); in SavePackage()
107 WriteLE32(buff.data() + offsetof(EndCentralDir, offset), currentOffset_); in SavePackage()
108 WriteLE16(buff.data() + offsetof(EndCentralDir, commentLen), 0); in SavePackage()
125 endDir.signature = ReadLE32(buffer.buffer + offsetof(EndCentralDir, signature)); in LoadPackage()
126 endDir.numDisk = ReadLE16(buffer.buffer + offsetof(EndCentralDir, numDisk)); in LoadPackage()
131 endDir.offset = ReadLE32(buffer.buffer + offsetof(EndCentralDir, offset)); in LoadPackage()
469 crc32_ = ReadLE32(buffer.buffer + offsetof(CentralDirEntry, crc)); in DoDecodeCentralDirEntry()
550 uint16_t flags = ReadLE16(data.buffer + offsetof(LocalFileHeader, flags)); in DecodeLocalFileHeaderCheck()
551 uint32_t crc32 = ReadLE32(data.buffer + offsetof(LocalFileHeader, crc)); in DecodeLocalFileHeaderCheck()
[all …]
H A Dpkg_upgradefile.cpp693 …pkgInfo_.updateFileVersion = ReadLE32(buffer.buffer + currLen + offsetof(UpgradePkgHeader, updateF… in ParsePkgHeaderToTlv()
890 fileInfo_.fileInfo.packedSize = ReadLE64(buffer.buffer + offsetof(UpgradeCompInfo, size)); in DecodeHeader()
892 fileInfo_.fileInfo.packedSize = ReadLE32(buffer.buffer + offsetof(UpgradeCompInfo, size)); in DecodeHeader()
893 fileInfo_.originalSize = ReadLE32(buffer.buffer + offsetof(UpgradeCompInfo, originalSize)); in DecodeHeader()
907 fileInfo_.id = ReadLE16(buffer.buffer + offsetof(UpgradeCompInfo, id)); in DecodeHeader()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/
H A Dsys_common_header.h42 #ifndef offsetof
43 #define offsetof(type, member) __builtin_offsetof(type, member) macro
48 (type *)((char *)__mptr - offsetof(type, member)); \
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/
H A Dsys_common_header.h38 #ifndef offsetof
39 #define offsetof(type, member) __builtin_offsetof(type, member) macro
44 (type *)((char *)__mptr - offsetof(type, member)); \
/ohos5.0/base/security/device_auth/common_lib/impl/src/
H A Dhc_tlv_parser.c133 …unsigned int memberCount = *(unsigned int *)((char *)tlv + offsetof(TlvOffsetExample, offsetCount)… in GetEmptyStructNode()
134 unsigned int *offset = (unsigned int *)((char *)tlv + offsetof(TlvOffsetExample, offset)); in GetEmptyStructNode()
151 …unsigned int memberCount = *(unsigned int *)((char *)tlv + offsetof(TlvOffsetExample, offsetCount)… in CheckStructNodeAllHasValue()
152 unsigned int *offset = (unsigned int *)((char *)tlv + offsetof(TlvOffsetExample, offset)); in CheckStructNodeAllHasValue()
242 …unsigned int memberCount = *(unsigned int *)((char *)tlv + offsetof(TlvOffsetExample, offsetCount)… in EncodeTlvStruct()
243 unsigned int *offset = (unsigned int *)((char *)tlv + offsetof(TlvOffsetExample, offset)); in EncodeTlvStruct()
265 …unsigned int memberCount = *(unsigned int *)((char *)tlv + offsetof(TlvOffsetExample, offsetCount)… in GetLenTlvStruct()
266 unsigned int *offset = (unsigned int *)((char *)tlv + offsetof(TlvOffsetExample, offset)); in GetLenTlvStruct()
288 …unsigned int memberCount = *(unsigned int *)((char *)tlv + offsetof(TlvOffsetExample, offsetCount)… in DeinitTlvStruct()
289 unsigned int *offset = (unsigned int *)((char *)tlv + offsetof(TlvOffsetExample, offset)); in DeinitTlvStruct()
/ohos5.0/base/update/sys_installer/services/module_update/util/src/
H A Dmodule_zip_helper.cpp170 uint32_t centralSignature = ReadLE32(centralDirBuf + offsetof(CentralDirEntry, signature)); in GetFileEntryOffset()
175 …uint32_t localHeaderOffset = ReadLE32(centralDirBuf + offsetof(CentralDirEntry, localHeaderOffset)… in GetFileEntryOffset()
181 uint32_t localHeaderSignature = ReadLE32(localHeaderBuf + offsetof(LocalFileHeader, signature)); in GetFileEntryOffset()
186 uint16_t nameSize = ReadLE16(localHeaderBuf + offsetof(LocalFileHeader, nameSize)); in GetFileEntryOffset()
187 uint16_t extraSize = ReadLE16(localHeaderBuf + offsetof(LocalFileHeader, extraSize)); in GetFileEntryOffset()
/ohos5.0/base/startup/hvb/libhvb/include/
H A Dhvb_util.h33 #ifdef offsetof
34 #define hvb_offsetof(type, member) offsetof(type, member)
/ohos5.0/foundation/arkui/ui_lite/frameworks/font/
H A Dui_font_cache.cpp62 offsetof(struct Bitmap, lruHead)); in GetSpace()
101 …bitmap = reinterpret_cast<struct Bitmap*>(reinterpret_cast<uint8_t*>(node) - offsetof(struct Bitma… in GetBitmap()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/
H A Dnstackx_dfile_frame.c119 if (length <= offsetof(FileInfoUnit, fileName)) { in EncodeFileInfo()
124 remainLength = length - offsetof(FileInfoUnit, fileName); in EncodeFileInfo()
133 *fileInfoSize = offsetof(FileInfoUnit, fileName) + fileNameLen; in EncodeFileInfo()
424 if (length - offset <= offsetof(FileInfoUnit, fileName)) { in DecodeFileHeaderFrameSp()
443 (fileNameLength > (length - offset - offsetof(FileInfoUnit, fileName)))) { in DecodeFileHeaderFrameSp()
455 offset += (offsetof(FileInfoUnit, fileName) + fileNameLength); in DecodeFileHeaderFrameSp()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dclat_utils.cpp347 …BPF_STMT(BPF_LD | BPF_W | BPF_ABS, static_cast<__u32>(SKF_NET_OFF) + offsetof(ipv6hdr, daddr.s6_ad… in AddFilterAndBindPacketSocket()
350 …BPF_STMT(BPF_LD | BPF_W | BPF_ABS, static_cast<__u32>(SKF_NET_OFF) + offsetof(ipv6hdr, daddr.s6_ad… in AddFilterAndBindPacketSocket()
353 …BPF_STMT(BPF_LD | BPF_W | BPF_ABS, static_cast<__u32>(SKF_NET_OFF) + offsetof(ipv6hdr, daddr.s6_ad… in AddFilterAndBindPacketSocket()
356 …BPF_STMT(BPF_LD | BPF_W | BPF_ABS, static_cast<__u32>(SKF_NET_OFF) + offsetof(ipv6hdr, daddr.s6_ad… in AddFilterAndBindPacketSocket()
H A Dclatd.cpp211 if (static_cast<size_t>(readLen) < offsetof(ClatdReadV6Buf, payload) + tpNet) { in ProcessV6Packet()
216 int packetLen = readLen - offsetof(ClatdReadV6Buf, payload); in ProcessV6Packet()
244 const int payloadOffset = offsetof(ClatdReadTunBuf, payload); in ProcessV4Packet()
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/include/
H A Dselinux_map.h56 #define HASHMAP_ENTRY(ptr, type, member) ((type *)((char *)(ptr)-offsetof(type, member)))
/ohos5.0/base/startup/init/interfaces/innerkits/include/
H A Dlist.h77 #define ListEntry(ptr, type, member) ((type *)((char *)(ptr) - offsetof(type, member)))
H A Dinit_hashmap.h34 #define HASHMAP_ENTRY(ptr, type, member) ((type *)((char *)(ptr) - offsetof(type, member)))
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/faultloggerd_client/
H A Dfaultloggerd_socket.cpp69 … int len = static_cast<int>(offsetof(struct sockaddr_un, sun_path) + strlen(server.sun_path) + 1); in StartConnect()
113 offsetof(struct sockaddr_un, sun_path) + strlen(server.sun_path)) < 0) { in GetServerSocket()
/ohos5.0/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_socket.cpp37 constexpr uint32_t IPV4_PROTOCOL = ETHER_HEADER_LEN + offsetof(iphdr, protocol);
38 constexpr uint32_t IPV4_FLAGS_OFFSET = ETHER_HEADER_LEN + offsetof(iphdr, frag_off);
39 constexpr uint32_t UDP_DST_PORT_INDIRECT_OFFSET = ETHER_HEADER_LEN + offsetof(udphdr, dest);
/ohos5.0/base/startup/init/services/loopevent/socket/
H A Dle_socket.c62 uint32_t size = offsetof(struct sockaddr_un, sun_path) + strlen(server); in CreatePipeServerSocket_()
102 uint32_t size = offsetof(struct sockaddr_un, sun_path) + strlen(serverAddr.sun_path); in CreatePipeSocket_()
/ohos5.0/foundation/resourceschedule/ffrt/src/sched/
H A Dtask_runqueue.h59 offsetof(ffrt_executor_task_t, wq)); in DeQueue()
H A Dscheduler.cpp46 offsetof(ffrt_executor_task_t, wq)); in InsertNode()
/ohos5.0/base/security/device_auth/common_lib/interfaces/
H A Dhc_tlv_parser.h62 tlv->offset[index++] = offsetof(TlvStructType, TlvMemberName);
66 tlv->offset[index++] = offsetof(TlvStructType, TlvMemberName);
/ohos5.0/base/startup/init/services/param/linux/
H A Dparam_message.c37 socklen_t len = offsetof(struct sockaddr_un, sun_path) + strlen(addr.sun_path); in ConnectServer()
/ohos5.0/base/startup/init/services/param/include/
H A Dparam_utils.h47 #define PARAM_ENTRY(ptr, type, member) (type *)((char *)(ptr)-offsetof(type, member))
/ohos5.0/base/startup/init/interfaces/innerkits/fd_holder/
H A Dfd_holder.c39 socklen_t len = (socklen_t)(offsetof(struct sockaddr_un, sun_path) + strlen(addr.sun_path) + 1); in BuildClientSocket()

12