/device/linaro/bootloader/arm-trusted-firmware/plat/arm/css/drivers/sds/ |
D | sds.c | 33 static int sds_struct_is_valid(uintptr_t header) in sds_struct_is_valid() argument 35 size_t struct_size = GET_SDS_HEADER_STRUCT_SIZE(header); in sds_struct_is_valid() 38 if (GET_SDS_HEADER_ID(header) == 0) in sds_struct_is_valid() 42 if (GET_SDS_HEADER_VERSION(header) == SDS_REGION_SCH_VERSION) in sds_struct_is_valid() 62 uintptr_t header; in validate_sds_struct_headers() local 69 header = sds_mem_base + SDS_REGION_DESC_SIZE; in validate_sds_struct_headers() 73 if (sds_struct_is_valid(header) != SDS_OK) { in validate_sds_struct_headers() 77 header += GET_SDS_HEADER_STRUCT_SIZE(header) + SDS_HEADER_SIZE; in validate_sds_struct_headers() 86 static int get_struct_header(uint32_t structure_id, struct_header_t **header) in get_struct_header() argument 91 assert(header); in get_struct_header() [all …]
|
D | sds_private.h | 70 #define GET_SDS_HEADER_ID(header) \ argument 71 ((((struct_header_t *)(header))->reg[0]) & SDS_HEADER_ID_MASK) 72 #define GET_SDS_HEADER_VERSION(header) \ argument 73 (((((struct_header_t *)(header))->reg[0]) >> SDS_HEADER_MINOR_VERSION_SHIFT)\ 75 #define GET_SDS_HEADER_STRUCT_SIZE(header) \ argument 76 (((((struct_header_t *)(header))->reg[1]) >> SDS_HEADER_STRUCT_SIZE_SHIFT)\ 78 #define IS_SDS_HEADER_VALID(header) \ argument 79 ((((struct_header_t *)(header))->reg[1]) & SDS_HEADER_VALID_MASK) 80 #define GET_SDS_STRUCT_FIELD(header, field_offset) \ argument 81 ((((uint8_t *)(header)) + sizeof(struct_header_t)) + (field_offset))
|
/device/generic/goldfish/wifi/wifi_hal/ |
D | netlinkmessage.cpp | 40 auto header = reinterpret_cast<nlmsghdr*>(mData.data()); in NetlinkMessage() local 41 header->nlmsg_len = mData.size(); in NetlinkMessage() 42 header->nlmsg_flags = NLM_F_REQUEST; in NetlinkMessage() 43 header->nlmsg_type = type; in NetlinkMessage() 44 header->nlmsg_seq = sequence; in NetlinkMessage() 45 header->nlmsg_pid = getpid(); in NetlinkMessage() 66 auto header = reinterpret_cast<const nlmsghdr*>(mData.data()); in type() local 67 return header->nlmsg_type; in type() 71 auto header = reinterpret_cast<const nlmsghdr*>(mData.data()); in sequence() local 72 return header->nlmsg_seq; in sequence() [all …]
|
D | netlinkmessage.h | 40 nlmsghdr* header() { in header() function 43 const nlmsghdr* header() const { in header() function 49 return reinterpret_cast<T*>(NLMSG_DATA(header())); in payload() 53 return reinterpret_cast<T*>(NLMSG_DATA(header())); in payload()
|
D | netlink.cpp | 203 auto header = reinterpret_cast<nlmsghdr*>(data); in readNetlinkMessage() local 204 if (data + header->nlmsg_len > end) { in readNetlinkMessage() 209 if (header->nlmsg_type == NLMSG_ERROR) { in readNetlinkMessage() 211 auto err = reinterpret_cast<nlmsgerr*>(NLMSG_DATA(header)); in readNetlinkMessage() 213 strerror(-err->error), header->nlmsg_seq); in readNetlinkMessage() 220 notifyHandler(data, header->nlmsg_len); in readNetlinkMessage() 222 data += header->nlmsg_len; in readNetlinkMessage()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | quopri.py | 21 def needsquoting(c, quotetabs, header): argument 32 return header 42 def encode(input, output, quotetabs, header = 0): argument 55 odata = b2a_qp(data, quotetabs = quotetabs, header = header) 82 if needsquoting(c, quotetabs, header): 84 if header and c == ' ': 105 def encodestring(s, quotetabs = 0, header = 0): argument 107 return b2a_qp(s, quotetabs = quotetabs, header = header) 111 encode(infp, outfp, quotetabs, header) 116 def decode(input, output, header = 0): argument [all …]
|
/device/generic/goldfish/dhcp/common/ |
D | socket.cpp | 136 struct msghdr header; in sendOnInterface() local 137 memset(&header, 0, sizeof(header)); in sendOnInterface() 143 header.msg_name = &addr; in sendOnInterface() 144 header.msg_namelen = sizeof(addr); in sendOnInterface() 145 header.msg_iov = &iov; in sendOnInterface() 146 header.msg_iovlen = 1; in sendOnInterface() 147 header.msg_control = &controlData; in sendOnInterface() 148 header.msg_controllen = sizeof(controlData); in sendOnInterface() 150 struct cmsghdr* controlHeader = CMSG_FIRSTHDR(&header); in sendOnInterface() 159 ssize_t status = ::sendmsg(mSocketFd, &header, 0); in sendOnInterface() [all …]
|
/device/google/cuttlefish_common/host/commands/launch/ |
D | boot_image_unpacker.cc | 59 boot_img_hdr header; in FromImage() local 60 auto bytes_read = boot_img->Read(&header, sizeof(header)); in FromImage() 61 if (bytes_read != sizeof(header)) { in FromImage() 67 cmdline << reinterpret_cast<char*>(&header.cmdline[0]); in FromImage() 68 if (header.extra_cmdline[0] != '\0') { in FromImage() 70 cmdline << reinterpret_cast<char*>(&header.extra_cmdline[0]); in FromImage() 73 uint32_t page_size = header.page_size; in FromImage() 79 ((header.kernel_size + page_size - 1) / page_size) * page_size; in FromImage() 82 boot_img, cmdline.str(), header.kernel_size, kernel_offset, in FromImage() 83 header.ramdisk_size, ramdisk_offset)); in FromImage()
|
D | vsoc_shared_memory.cc | 114 auto header = reinterpret_cast<vsoc_shm_layout_descriptor*>(shared_memory); in WriteLayout() local 115 header->major_version = CURRENT_VSOC_LAYOUT_MAJOR_VERSION; in WriteLayout() 116 header->minor_version = CURRENT_VSOC_LAYOUT_MINOR_VERSION; in WriteLayout() 117 header->size = file_size; in WriteLayout() 118 header->region_count = allocators.size(); in WriteLayout() 126 header->vsoc_region_desc_offset = sizeof(vsoc_shm_layout_descriptor); in WriteLayout() 127 auto region_descriptions = reinterpret_cast<vsoc_device_region*>(header + 1); in WriteLayout()
|
/device/generic/goldfish/include/ |
D | qemud.h | 89 char header[5]; in qemud_channel_send() local 97 snprintf(header, sizeof header, "%04x", msglen); in qemud_channel_send() 98 if (!WriteFully(fd, header, 4)) { in qemud_channel_send() 113 char header[5]; in qemud_channel_recv() local 116 if (!ReadFully(fd, header, 4)) { in qemud_channel_recv() 120 header[4] = 0; in qemud_channel_recv() 121 if (sscanf(header, "%04x", &size) != 1) { in qemud_channel_recv() 122 D("malformed qemud frame header: '%.*s'", 4, header); in qemud_channel_recv()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/ |
D | message.py | 492 def _get_params_preserve(self, failobj, header): argument 496 value = self.get(header, missing) 513 def get_params(self, failobj=None, header='content-type', unquote=True): argument 527 params = self._get_params_preserve(missing, header) 535 def get_param(self, param, failobj=None, header='content-type', argument 561 if header not in self: 563 for k, v in self._get_params_preserve(failobj, header): 571 def set_param(self, param, value, header='Content-Type', requote=True, argument 592 if header not in self and header.lower() == 'content-type': 595 ctype = self.get(header) [all …]
|
D | base64mime.py | 64 def header_encode(header, charset='iso-8859-1', keep_eols=False, argument 92 if not header: 93 return header 96 header = fix_eols(header) 104 for i in range(0, len(header), max_unencoded): 105 base64ed.append(b2a_base64(header[i:i+max_unencoded]))
|
/device/linaro/bootloader/edk2/BeagleBoardPkg/Debugger_scripts/ |
D | rvi_symbols_macros.inc | 87 define /R int valid_pe_header(header) 88 unsigned char *header; 90 if ((header[0x00] == 'M') && 91 (header[0x01] == 'Z') && 92 (header[0x80] == 'P') && 93 (header[0x81] == 'E')) 102 define /R unsigned long pe_headersize(header) 103 unsigned char *header; 107 size = header + 0x00AC; 113 define /R unsigned char *pe_filename(header) [all …]
|
D | trace32_load_symbols_cygwin.cmm | 98 ENTRY &header 99 IF Data.BYTE(D:&header+0x00)==0x4D 101 IF Data.BYTE(D:&header+0x01)==0x5A 103 IF Data.BYTE(D:&header+0x80)==0x50 105 IF Data.BYTE(D:&header+0x81)==0x45 139 ENTRY &header &load_address 140 GOSUB valid_pe_header &header 145 &debugOffset=Data.LONG(D:&header+0x0128) 146 &stringOffset=&header+&debugOffset+0x002C 161 ENTRY &header; [all …]
|
D | trace32_load_symbols.cmm | 126 ENTRY &header 127 IF Data.BYTE(D:&header+0x00)==0x4D 129 IF Data.BYTE(D:&header+0x01)==0x5A 131 IF Data.BYTE(D:&header+0x80)==0x50 133 IF Data.BYTE(D:&header+0x81)==0x45 167 ENTRY &header &load_address 168 GOSUB valid_pe_header &header 173 &debugOffset=Data.LONG(D:&header+0x0128) 174 &stringOffset=&header+&debugOffset+0x002C 185 ENTRY &header; [all …]
|
/device/google/contexthub/firmware/app/chre/common/ |
D | chre10_app.c | 47 static void initDataHeader(struct chreSensorDataHeader *header, uint64_t timestamp, uint32_t sensor… in initDataHeader() argument 48 header->baseTimestamp = timestamp; in initDataHeader() 49 header->sensorHandle = sensorHandle; in initDataHeader() 50 header->readingCount = 1; in initDataHeader() 51 header->reserved[0] = header->reserved[1] = 0; in initDataHeader() 59 initDataHeader(&three.header, src->referenceTime, sensorHandle); in processTripleAxisData() 64 three.header.baseTimestamp += src->samples[i].deltaTime; in processTripleAxisData() 82 initDataHeader(&occ.header, src->referenceTime, sensorHandle); in processSingleAxisData() 87 occ.header.baseTimestamp += src->samples[i].deltaTime; in processSingleAxisData() 97 initDataHeader(&flt.header, src->referenceTime, sensorHandle); in processSingleAxisData() [all …]
|
D | chre_app.c | 47 static void initDataHeader(struct chreSensorDataHeader *header, uint64_t timestamp, uint32_t sensor… in initDataHeader() argument 48 header->baseTimestamp = timestamp; in initDataHeader() 49 header->sensorHandle = sensorHandle; in initDataHeader() 50 header->readingCount = 1; in initDataHeader() 51 header->reserved[0] = header->reserved[1] = 0; in initDataHeader() 59 initDataHeader(&three.header, src->referenceTime, sensorHandle); in processTripleAxisData() 64 three.header.baseTimestamp += src->samples[i].deltaTime; in processTripleAxisData() 82 initDataHeader(&occ.header, src->referenceTime, sensorHandle); in processSingleAxisData() 87 occ.header.baseTimestamp += src->samples[i].deltaTime; in processSingleAxisData() 97 initDataHeader(&flt.header, src->referenceTime, sensorHandle); in processSingleAxisData() [all …]
|
/device/google/cuttlefish_common/host/commands/virtual_usb_manager/usbip/ |
D | messages.cpp | 41 std::ostream& operator<<(std::ostream& out, const CmdHeader& header) { in operator <<() argument 43 out << "\t\tcmd:\t" << header.command << '\n'; in operator <<() 44 out << "\t\tseq#:\t" << header.seq_num << '\n'; in operator <<() 45 out << "\t\tbus#:\t0x" << header.bus_num << '\n'; in operator <<() 46 out << "\t\tdev#:\t0x" << header.dev_num << '\n'; in operator <<() 47 out << "\t\tdir:\t" << (header.direction ? "in" : "out") << '\n'; in operator <<() 48 out << "\t\tendpt:\t" << header.endpoint << "\n"; in operator <<()
|
/device/google/crosshatch/json-c/ |
D | config.h.in | 32 /* Define to 1 if you have the <dlfcn.h> header file. */ 38 /* Define to 1 if you have the <endian.h> header file. */ 41 /* Define to 1 if you have the <fcntl.h> header file. */ 44 /* Define to 1 if you have the <inttypes.h> header file. */ 47 /* Define to 1 if you have the <limits.h> header file. */ 50 /* Define to 1 if you have the <locale.h> header file. */ 57 /* Define to 1 if you have the <memory.h> header file. */ 73 /* Define to 1 if you have the <stdarg.h> header file. */ 76 /* Define to 1 if you have the <stdint.h> header file. */ 79 /* Define to 1 if you have the <stdlib.h> header file. */ [all …]
|
/device/google/bonito/json-c/ |
D | config.h.in | 32 /* Define to 1 if you have the <dlfcn.h> header file. */ 38 /* Define to 1 if you have the <endian.h> header file. */ 41 /* Define to 1 if you have the <fcntl.h> header file. */ 44 /* Define to 1 if you have the <inttypes.h> header file. */ 47 /* Define to 1 if you have the <limits.h> header file. */ 50 /* Define to 1 if you have the <locale.h> header file. */ 57 /* Define to 1 if you have the <memory.h> header file. */ 73 /* Define to 1 if you have the <stdarg.h> header file. */ 76 /* Define to 1 if you have the <stdint.h> header file. */ 79 /* Define to 1 if you have the <stdlib.h> header file. */ [all …]
|
/device/generic/goldfish/network/netmgr/ |
D | wifi_forwarder.cpp | 218 struct pcap_pkthdr* header = nullptr; in forwardFromPcap() local 220 int result = pcap_next_ex(mMonitorPcap, &header, &data); in forwardFromPcap() 229 if (header->caplen < header->len) { in forwardFromPcap() 231 header->caplen, header->len); in forwardFromPcap() 240 if (header->caplen < sizeof(RadioTapHeader)) { in forwardFromPcap() 243 header->caplen); in forwardFromPcap() 249 if (header->caplen < radioLen + kMinimumIeee80211Size) { in forwardFromPcap() 252 header->caplen, radioLen + kMinimumIeee80211Size); in forwardFromPcap() 256 WifiForwardHeader forwardHeader(header->caplen, radioLen); in forwardFromPcap() 263 if (!WriteFully(mPipeFd, data, header->caplen)) { in forwardFromPcap()
|
/device/generic/goldfish/vibrator/ |
D | qemu.c | 256 char header[5]; in qemu_command_vformat() local 266 snprintf(header, sizeof header, "%04x", len); in qemu_command_vformat() 267 memcpy(buffer, header, 4); in qemu_command_vformat() 354 char header[5], *end; in qemu_control_query() local 373 ret = qemu_fd_read( fd, header, 4 ); in qemu_control_query() 380 header[4] = 0; in qemu_control_query() 381 len = strtol( header, &end, 16 ); in qemu_control_query() 382 if ( len < 0 || end == NULL || end != header+4 || len > answersize ) { in qemu_control_query() 384 __FUNCTION__, header); in qemu_control_query()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/SetStamp/ |
D | SetStamp.c | 274 unsigned char header[4]; in SetStamp() local 283 if (ReadFromFile (fp, 0, header, 2) != 0) { in SetStamp() 289 if (strncmp ((char *) header, "MZ", 2) != 0) { in SetStamp() 303 if (ReadFromFile (fp, offset, header, 4) != 0) { in SetStamp() 309 if (strncmp ((char *) header, "PE\0\0", 4) != 0) { in SetStamp() 415 if (ReadFromFile (fp, lvalue, header, 2) != 0) { in SetStamp() 422 if (strncmp ((char *) header, "NB", 2) == 0) { in SetStamp()
|
/device/linaro/bootloader/edk2/IntelFsp2Pkg/Tools/UserManuals/ |
D | SplitFspBinUserManual.md | 9 - Generate Intel FSP 2.0 C header file 11 - Display Intel FSP 2.0 information header for each FSP component 46 ## Generate Intel FSP 2.0 C header file 48 To generate Intel FSP 2.0 C header file, the following command can be used: 56 It will create the C header file FSP.h containing the image ID, revision, offset 59 ## Display Intel FSP 2.0 information header 69 It will print out the FSP information header for each FSP component.
|
/device/google/contexthub/util/nanotool/ |
D | apptohostevent.cpp | 112 auto header = reinterpret_cast<const struct SensorAppEventHeader *>( in IsCalibrationEventForSensor() local 114 return (header->msgId == SENSOR_APP_MSG_CALIBRATION_RESULT); in IsCalibrationEventForSensor() 123 auto header = reinterpret_cast<const struct SensorAppEventHeader *>( in IsTestEventForSensor() local 125 return (header->msgId == SENSOR_APP_MSG_TEST_RESULT); in IsTestEventForSensor()
|