Home
last modified time | relevance | path

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

/system/bt/osi/src/socket_utils/
Dsocket_local_client.c62 sizeof(*p_addr) - offsetof(struct sockaddr_un, sun_path) - 1) { in osi_socket_make_sockaddr_un()
75 sizeof(*p_addr) - offsetof(struct sockaddr_un, sun_path) - 1) { in osi_socket_make_sockaddr_un()
87 sizeof(*p_addr) - offsetof(struct sockaddr_un, sun_path) - 1) { in osi_socket_make_sockaddr_un()
99 *alen = namelen + offsetof(struct sockaddr_un, sun_path) + 1; in osi_socket_make_sockaddr_un()
/system/core/libcutils/
Dsocket_local_client_unix.c76 - offsetof(struct sockaddr_un, sun_path) - 1) { in socket_make_sockaddr_un()
89 - offsetof(struct sockaddr_un, sun_path) - 1) { in socket_make_sockaddr_un()
101 - offsetof(struct sockaddr_un, sun_path) - 1) { in socket_make_sockaddr_un()
113 *alen = namelen + offsetof(struct sockaddr_un, sun_path) + 1; in socket_make_sockaddr_un()
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/kernel/
Dkernel.h26 #ifndef offsetof
27 #define offsetof(TYPE,MEMBER) ((size_t) & ((TYPE *) 0)->MEMBER) macro
31 …eof(((type *) 0)->member) * __mptr = (ptr); (type *) ((char *) __mptr - offsetof(type, member)); })
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/kernel/
Dkernel.h14 #ifndef offsetof
15 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) macro
28 (type *)((char *)__mptr - offsetof(type, member)); })
/system/core/libmemunreachable/
DThreadCapture.cpp232 offsetof(struct pt_regs, rsp) / sizeof(uintptr_t) in PtraceThreadInfo()
234 offsetof(struct pt_regs, esp) / sizeof(uintptr_t) in PtraceThreadInfo()
236 offsetof(struct pt_regs, ARM_sp) / sizeof(uintptr_t) in PtraceThreadInfo()
238 offsetof(struct user_pt_regs, sp) / sizeof(uintptr_t) in PtraceThreadInfo()
240 offsetof(struct pt_regs, regs[29]) / sizeof(uintptr_t) in PtraceThreadInfo()
/system/core/liblog/
Dlogd_reader.c166 - offsetof(struct sockaddr_un, sun_path) - 1) { in socket_make_sockaddr_un()
179 - offsetof(struct sockaddr_un, sun_path) - 1) { in socket_make_sockaddr_un()
191 - offsetof(struct sockaddr_un, sun_path) - 1) { in socket_make_sockaddr_un()
204 *alen = namelen + offsetof(struct sockaddr_un, sun_path) + 1; in socket_make_sockaddr_un()
/system/core/trusty/gatekeeper/
Dtrusty_gatekeeper.cpp38 static_assert(offsetof(TrustyGateKeeperDevice, device_) == 0, in TrustyGateKeeperDevice()
40 static_assert(offsetof(TrustyGateKeeperDevice, device_.common) == 0, in TrustyGateKeeperDevice()
/system/core/include/cutils/
Dlist.h33 (container *) (((char*) (node)) - offsetof(container, member))
/system/extras/ext4_utils/
Djbd2.h70 #define JBD2_TAG_SIZE32 (offsetof(journal_block_tag_t, t_blocknr_high))
Dext4.h305 #define EXT4_FITS_IN_INODE(ext4_inode, einode, field) ((offsetof(typeof(*ext4_inode), field) + …
Dext4_utils.c513 crc = ext4_crc16(crc, &aux_info.bg_desc[i], offsetof(struct ext2_group_desc, bg_checksum)); in ext4_update_free()
/system/extras/boot_control_copy/
Dbootinfo.c124 #define BOOTINFO_OFFSET offsetof(struct bootloader_message, slot_suffix)
/system/extras/perfprofd/quipper/
Dperf_utils.cc119 offset = offsetof(event_t, sample.array); in GetPerfSampleDataOffset()
Dperf_reader.cc915 size_t attr_size_offset = attr_offset + offsetof(perf_event_attr, size); in ReadPerfEventAttrSize()
/system/vold/
Dsecdiscard.cpp169 size_t allocsize = offsetof(struct fiemap, fm_extents[extent_count]); in alloc_fiemap()
DCommandListener.cpp361 size_t dirent_len = offsetof(struct dirent, d_name) + in listAsecsInDirectory()
/system/media/audio_utils/
Decho_reference.c80 offsetof(struct echo_reference, provider)); in echo_reference_get_next_buffer()
107 offsetof(struct echo_reference, provider)); in echo_reference_release_buffer()
/system/extras/f2fs_utils/
Df2fs_sparseblock.c432 + offsetof(struct f2fs_checkpoint, sit_nat_version_bitmap), in generate_f2fs_info()
/system/core/libsparse/
Doutput_file.c60 ((outer_t *)((char *)inner - offsetof(outer_t, elem)))
/system/update_engine/common/
Dutils.cc884 if (size < offsetof(Elf32_Ehdr, e_machine) + sizeof(hdr->e_machine)) in GetFileFormatELF()
/system/bt/stack/btm/
Dbtm_inq.c1193 p_ent = (tINQ_DB_ENT *) ((UINT8 *)p_cur - offsetof (tINQ_DB_ENT, inq_info)); in BTM_InqDbNext()
/system/media/camera/tests/
Dcamera_metadata_tests.cpp41 offsetof(struct _AlignasStruct, field); })