Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 84) sorted by relevance

1234

/device/generic/goldfish/wifi/wifi_hal/
Dnetlinkmessage.cpp40 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 …]
Dnetlink.cpp203 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()
Dnetlinkmessage.h40 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()
/device/generic/goldfish/dhcp/common/
Dsocket.cpp136 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/generic/goldfish/qemud/
Dqemud.cpp31 char header[5]; in qemud_channel_send() local
39 snprintf(header, sizeof(header), "%04x", size); in qemud_channel_send()
40 if (qemu_pipe_write_fully(pipe, header, 4)) { in qemud_channel_send()
52 char header[5]; in qemud_channel_recv() local
55 if (qemu_pipe_read_fully(pipe, header, 4)) { in qemud_channel_recv()
58 header[4] = 0; in qemud_channel_recv()
60 if (sscanf(header, "%04x", &size) != 1) { in qemud_channel_recv()
/device/generic/goldfish-opengl/system/codecs/omx/plugin/
DSimpleGoldfishOMXComponent.cpp224 OMX_BUFFERHEADERTYPE **header, in useBuffer() argument
230 return useBufferCallerLockedAlready(header, portIndex, appPrivate, size, ptr); in useBuffer()
234 OMX_BUFFERHEADERTYPE **header, in useBufferCallerLockedAlready() argument
249 *header = new OMX_BUFFERHEADERTYPE; in useBufferCallerLockedAlready()
250 (*header)->nSize = sizeof(OMX_BUFFERHEADERTYPE); in useBufferCallerLockedAlready()
251 (*header)->nVersion.s.nVersionMajor = 1; in useBufferCallerLockedAlready()
252 (*header)->nVersion.s.nVersionMinor = 0; in useBufferCallerLockedAlready()
253 (*header)->nVersion.s.nRevision = 0; in useBufferCallerLockedAlready()
254 (*header)->nVersion.s.nStep = 0; in useBufferCallerLockedAlready()
255 (*header)->pBuffer = ptr; in useBufferCallerLockedAlready()
[all …]
/device/google/contexthub/firmware/app/chre/common/
Dchre10_app.c47 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 …]
Dchre_app.c47 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/crosshatch/json-c/
Dconfig.h.in32 /* 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/
Dconfig.h.in32 /* 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/coral/json-c/
Dconfig.h.in32 /* 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/cuttlefish/host/commands/assemble_cvd/
Dboot_image_unpacker.cc60 boot_img_hdr_v3 header; in FromImages() local
61 auto bytes_read = boot_img->Read(&header, sizeof(header)); in FromImages()
62 if (bytes_read != sizeof(header)) { in FromImages()
82 cmdline << reinterpret_cast<char*>(&header.cmdline[0]); in FromImages()
94 ((header.kernel_size + page_size - 1) / page_size) * page_size; in FromImages()
100 boot_img, cmdline.str(), header.kernel_size, kernel_offset, in FromImages()
101 header.ramdisk_size, ramdisk_offset, vendor_boot_img, in FromImages()
Dimage_aggregator.cc101 GptHeader header; member
198 ComponentDisk* header = disk.add_component_disks(); in MakeCompositeDiskSpec() local
199 header->set_file_path(header_file); in MakeCompositeDiskSpec()
200 header->set_offset(0); in MakeCompositeDiskSpec()
230 .header = { in Beginning()
243 uuid_generate(gpt.header.disk_guid); in Beginning()
265 gpt.header.partition_entries_crc32 = in Beginning()
268 gpt.header.header_crc32 = in Beginning()
269 crc32(0, (std::uint8_t*) &gpt.header, sizeof(GptHeader)); in Beginning()
279 gpt.footer = head.header; in End()
[all …]
/device/generic/goldfish/network/netmgr/
Dwifi_forwarder.cpp214 struct pcap_pkthdr* header = nullptr; in forwardFromPcap() local
216 int result = pcap_next_ex(mMonitorPcap, &header, &data); in forwardFromPcap()
225 if (header->caplen < header->len) { in forwardFromPcap()
227 header->caplen, header->len); in forwardFromPcap()
236 if (header->caplen < sizeof(RadioTapHeader)) { in forwardFromPcap()
239 header->caplen); in forwardFromPcap()
245 if (header->caplen < radioLen + kMinimumIeee80211Size) { in forwardFromPcap()
248 header->caplen, radioLen + kMinimumIeee80211Size); in forwardFromPcap()
252 WifiForwardHeader forwardHeader(header->caplen, radioLen); in forwardFromPcap()
259 if (qemu_pipe_write_fully(mPipeFd, data, header->caplen)) { in forwardFromPcap()
/device/generic/goldfish/tools/
Dmk_qemu_ramdisk.py20 header = struct.unpack("QIIQI", f2buffer[:28]) variable
21 if header[1] != 3:
26 vendorramimg = f2buffer[offset:offset+header[4]];
28 print header
/device/google/cuttlefish/guest/commands/vtpm_manager/
Dmain.cpp55 auto header = reinterpret_cast<tpm_message_header*>(message.data()); in ReadResponseLoop() local
56 auto host_rc = betoh32(header->ordinal); in ReadResponseLoop()
95 auto header = reinterpret_cast<tpm_message_header*>(message.data()); in SendCommandLoop() local
97 << TpmCommandName(betoh32(header->ordinal)); in SendCommandLoop()
98 if (header->ordinal == htobe32(TPM2_CC_SET_LOCALITY)) { // "Driver command" in SendCommandLoop()
99 locality = *reinterpret_cast<unsigned char*>(header + 1); in SendCommandLoop()
100 header->ordinal = htobe32(locality); in SendCommandLoop()
101 header->length = htobe32(sizeof(tpm_message_header)); in SendCommandLoop()
/device/google/coral/
Dinit.qcom.usb.sh199 mkdir control/header/h
200 ln -s control/header/h control/class/fs/
201 ln -s control/header/h control/class/ss
238 mkdir streaming/header/h
239 ln -s streaming/uncompressed/u streaming/header/h
240 ln -s streaming/mjpeg/m streaming/header/h
241 ln -s streaming/h264/h streaming/header/h
242 ln -s streaming/header/h streaming/class/fs/
243 ln -s streaming/header/h streaming/class/hs/
244 ln -s streaming/header/h streaming/class/ss/
/device/google/contexthub/util/nanotool/
Dapptohostevent.cpp112 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()
/device/google/contexthub/firmware/os/algos/calibration/nano_calibration/
Dnano_calibration.cc118 const auto &header = event_data->header; in HandleSensorSamples() local
120 sample.timestamp_nanos = header.baseTimestamp; in HandleSensorSamples()
121 for (size_t i = 0; i < header.readingCount; i++) { in HandleSensorSamples()
134 event_data->header.readingCount > 0) { in HandleTemperatureSamples()
135 const auto header = event_data->header; in HandleTemperatureSamples() local
140 sample.timestamp_nanos = header.baseTimestamp; in HandleTemperatureSamples()
143 for (size_t i = 0; i < header.readingCount; i++) { in HandleTemperatureSamples()
148 accum_temperature_celsius / header.readingCount; in HandleTemperatureSamples()
/device/google/cuttlefish/common/libs/net/
Dnetlink_request_test.cpp86 nlmsghdr* header = static_cast<nlmsghdr*>(arg.RequestData()); variable
87 if (arg.RequestLength() < sizeof(header)) {
92 if (header->nlmsg_len != length) {
94 << header->nlmsg_len << " vs " << length;
98 if (header->nlmsg_type != type) {
100 << header->nlmsg_type << " vs " << type;
104 if (header->nlmsg_flags != flags) {
106 << header->nlmsg_flags << " vs " << flags;
110 if (header->nlmsg_seq != seq) {
112 << header->nlmsg_seq << " vs " << seq;
/device/google/cuttlefish/host/commands/secure_env/
Din_process_tpm.cpp108 auto header = reinterpret_cast<tpm_message_header*>(request.data()); in Receive() local
110 << TpmCommandName(be32toh(header->ordinal)); in Receive()
121 header = reinterpret_cast<tpm_message_header*>(response); in Receive()
122 auto rc = be32toh(header->ordinal); in Receive()
/device/generic/goldfish/network/wifi_forwarder/
Dremote_connection.cpp256 WifiForwardHeader header(FrameType::Data, in sendFrame() local
267 iov[0].iov_base = &header; in sendFrame()
268 iov[0].iov_len = sizeof(header); in sendFrame()
299 if (qemu_pipe_write_fully(mPipeFd, &header, sizeof(header))) { in sendFrame()
317 WifiForwardHeader header(FrameType::Ack, in ackFrame() local
326 if (qemu_pipe_write_fully(mPipeFd, &header, sizeof(header))) { in ackFrame()
/device/google/crosshatch/powerstats/
Dservice.cpp97 .header = "RPM Mode:aosd", in main()
104 .header = "RPM Mode:cxsd", in main()
132 .header = "OFF", in main()
140 .header = "ACTIVE", in main()
148 .header = "SUSPEND", in main()
/device/google/contexthub/contexthubhal/
DNanohubHidlAdapter.cpp401 const struct nano_app_binary_t header = { in loadNanoApp() local
411 const uint8_t *headerBytes = reinterpret_cast<const uint8_t *>(&header); in loadNanoApp()
416 headerBytes + sizeof(header)); in loadNanoApp()
535 … const struct nano_app_binary_t *header = static_cast<const struct nano_app_binary_t *>(buf); in readApp() local
536 appBinary->appId = header->app_id.id; in readApp()
537 appBinary->appVersion = header->app_version; in readApp()
538 appBinary->flags = header->flags; in readApp()
539 appBinary->targetChreApiMajorVersion = header->target_chre_api_major_version; in readApp()
540 appBinary->targetChreApiMinorVersion = header->target_chre_api_minor_version; in readApp()
/device/google/bonito/sdm710/original-kernel-headers/media/
Dcam_sensor.h281 struct i2c_rdwr_header header; member
302 struct i2c_rdwr_header header; member
313 struct i2c_rdwr_header header; member
324 struct i2c_rdwr_header header; member

1234