Home
last modified time | relevance | path

Searched full:header (Results 1 – 25 of 1713) sorted by relevance

12345678910>>...69

/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/simulator/src/
Dmain.c48 struct ec_host_cmd_request_header header; member
59 struct ec_host_cmd_response_header header; member
68 host_to_dut->header.checksum = 0; in update_host_to_dut_checksum()
73 i < sizeof(host_to_dut->header) + host_to_dut->header.data_len; in update_host_to_dut_checksum()
77 host_to_dut->header.checksum = (uint8_t)(-checksum); in update_host_to_dut_checksum()
82 const uint16_t buf_size = sizeof(expected_dut_to_host->header) + in update_dut_to_host_checksum()
83 expected_dut_to_host->header.data_len; in update_dut_to_host_checksum()
85 expected_dut_to_host->header.checksum = 0; in update_dut_to_host_checksum()
93 expected_dut_to_host->header.checksum = (uint8_t)(-checksum); in update_dut_to_host_checksum()
116 return sizeof(expected_dut_to_host->header) + in expected_tx_size()
[all …]
/Zephyr-latest/tests/lib/acpi/unit/src/
Dmain.c21 ACPI_TABLE_DMAR header; member
25 ACPI_DMAR_HARDWARE_UNIT header; member
28 ACPI_DMAR_DEVICE_SCOPE header; member
33 ACPI_DMAR_DEVICE_SCOPE header; member
40 ACPI_DMAR_HARDWARE_UNIT header; member
43 ACPI_DMAR_DEVICE_SCOPE header; member
48 ACPI_DMAR_DEVICE_SCOPE header; member
58 dmar->header.Header.Length = sizeof(struct DMAR); in dmar_initialize()
60 dmar->unit0.header.Header.Length = sizeof(dmar->unit0); in dmar_initialize()
61 dmar->unit0.ds0.header.Length = sizeof(dmar->unit0.ds0); in dmar_initialize()
[all …]
/Zephyr-latest/subsys/net/lib/wifi_credentials/
Dwifi_credentials_shell.c43 ssid_len, wifi_security_txt(creds.header.type)); in print_network_info()
45 if (creds.header.type == WIFI_SECURITY_TYPE_PSK || in print_network_info()
46 creds.header.type == WIFI_SECURITY_TYPE_PSK_SHA256 || in print_network_info()
47 creds.header.type == WIFI_SECURITY_TYPE_SAE || in print_network_info()
48 creds.header.type == WIFI_SECURITY_TYPE_WPA_PSK) { in print_network_info()
54 if (creds.header.flags & WIFI_CREDENTIALS_FLAG_BSSID) { in print_network_info()
56 creds.header.bssid[0], creds.header.bssid[1], creds.header.bssid[2], in print_network_info()
57 creds.header.bssid[3], creds.header.bssid[4], creds.header.bssid[5]); in print_network_info()
60 if (creds.header.flags & WIFI_CREDENTIALS_FLAG_2_4GHz) { in print_network_info()
64 if (creds.header.flags & WIFI_CREDENTIALS_FLAG_5GHz) { in print_network_info()
[all …]
Dwifi_credentials.c135 if (buf->header.type != WIFI_SECURITY_TYPE_NONE && in wifi_credentials_get_by_ssid_personal_struct()
136 buf->header.type != WIFI_SECURITY_TYPE_PSK && in wifi_credentials_get_by_ssid_personal_struct()
137 buf->header.type != WIFI_SECURITY_TYPE_PSK_SHA256 && in wifi_credentials_get_by_ssid_personal_struct()
138 buf->header.type != WIFI_SECURITY_TYPE_SAE && in wifi_credentials_get_by_ssid_personal_struct()
139 buf->header.type != WIFI_SECURITY_TYPE_WPA_PSK) { in wifi_credentials_get_by_ssid_personal_struct()
161 if (creds->header.ssid_len > WIFI_SSID_MAX_LEN || creds->header.ssid_len == 0) { in wifi_credentials_set_personal_struct()
168 idx = lookup_idx(creds->header.ssid, creds->header.ssid_len); in wifi_credentials_set_personal_struct()
184 wifi_credentials_cache_ssid(idx, &creds->header); in wifi_credentials_set_personal_struct()
199 struct wifi_credentials_header *header; in wifi_credentials_set_personal() local
221 header = (struct wifi_credentials_header *)buf; in wifi_credentials_set_personal()
[all …]
/Zephyr-latest/include/zephyr/drivers/sip_svc/
Dsip_svc_agilex_mailbox.h24 #define SIP_SVC_MB_HEADER_GET_CLIENT_ID(header) \ argument
25 ((header) >> SIP_SVP_MB_HEADER_CLIENT_ID_OFFSET & \
28 #define SIP_SVC_MB_HEADER_GET_TRANS_ID(header) \ argument
29 ((header) >> SIP_SVP_MB_HEADER_TRANS_ID_OFFSET & \
32 #define SIP_SVC_MB_HEADER_SET_TRANS_ID(header, id) \ argument
33 (header) &= ~(SIP_SVP_MB_HEADER_TRANS_ID_MASK << \
35 (header) |= (((id) & SIP_SVP_MB_HEADER_TRANS_ID_MASK) << \
38 #define SIP_SVC_MB_HEADER_GET_LENGTH(header) \ argument
39 ((header) >> SIP_SVP_MB_HEADER_LENGTH_OFFSET & \
Dsip_svc_proto.h27 /** @brief Header format
47 #define SIP_SVC_PROTO_HEADER_GET_CODE(header) \ argument
48 (((header) >> SIP_SVC_PROTO_HEADER_CODE_OFFSET) & SIP_SVC_PROTO_HEADER_CODE_MASK)
50 #define SIP_SVC_PROTO_HEADER_GET_TRANS_ID(header) \ argument
51 (((header) >> SIP_SVC_PROTO_HEADER_TRANS_ID_OFFSET) & SIP_SVC_PROTO_HEADER_TRANS_ID_MASK)
53 #define SIP_SVC_PROTO_HEADER_SET_TRANS_ID(header, trans_id) \ argument
54 (header) &= ~(SIP_SVC_PROTO_HEADER_TRANS_ID_MASK << SIP_SVC_PROTO_HEADER_TRANS_ID_OFFSET); \
55 (header) |= (((trans_id)&SIP_SVC_PROTO_HEADER_TRANS_ID_MASK) \
58 /** @brief Arm SiP services command code in request header
74 /** @brief Error code in response header
[all …]
/Zephyr-latest/subsys/net/lib/http/
Dhttp_hpack.c104 static int http_hpack_find_index(struct http_hpack_header_buf *header, in http_hpack_find_index() argument
115 strlen(entry->name) == header->name_len && in http_hpack_find_index()
116 memcmp(entry->name, header->name, header->name_len) == 0) { in http_hpack_find_index()
118 strlen(entry->value) == header->value_len && in http_hpack_find_index()
119 memcmp(entry->value, header->value, header->value_len) == 0) { in http_hpack_find_index()
212 struct http_hpack_header_buf *header) in hpack_huffman_decode() argument
214 uint8_t *buf = header->buf + header->datalen; in hpack_huffman_decode()
215 size_t buflen = sizeof(header->buf) - header->datalen; in hpack_huffman_decode()
226 header->name = buf; in hpack_huffman_decode()
227 header->name_len = ret; in hpack_huffman_decode()
[all …]
/Zephyr-latest/subsys/net/lib/dns/
Ddns_pack.h17 /* See RFC 1035, 4.1.1 Header section format
18 * DNS Message Header is always 12 bytes
44 /* RFC 1035 '4.1.1. Header section format' defines the following flags:
50 /* These two defines represent the 3rd and 4th bytes of the DNS msg header.
51 * See RFC 1035, 4.1.1. Header section format.
183 /** It returns the ID field in the DNS msg header */
184 static inline int dns_header_id(uint8_t *header) in dns_header_id() argument
186 return htons(UNALIGNED_GET((uint16_t *)(header))); in dns_header_id()
193 static inline int dns_unpack_header_id(uint8_t *header) in dns_unpack_header_id() argument
195 return ntohs(UNALIGNED_GET((uint16_t *)(header))); in dns_unpack_header_id()
[all …]
/Zephyr-latest/drivers/fpga/
Dfpga_zynqmp.c119 * by its header and extracting information from this header.
120 * The bitstream header has 5 sections starting with the letters a,b,c...
127 unsigned char *header = (unsigned char *)image_ptr; in parse_header() local
129 uint32_t length = XLNX_BITSTREAM_SECTION_LENGTH(header); in parse_header()
132 header += 0x4U + length; in parse_header()
134 if (*header++ != 'a') { in parse_header()
139 length = XLNX_BITSTREAM_SECTION_LENGTH(header); in parse_header()
141 header += 0x2U; in parse_header()
143 LOG_DBG("Design name = %s", header); in parse_header()
145 header += length; in parse_header()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/
Dmain.c111 struct smp_hdr *header; in ZTEST() local
142 header = (struct smp_hdr *)nb->data; in ZTEST()
143 zassert_equal(header->nh_len, sys_cpu_to_be16(TEST_RESPONSE_OK_DATA_LENGTH), in ZTEST()
144 "SMP header length mismatch"); in ZTEST()
145 zassert_equal(header->nh_flags, 0, "SMP header flags mismatch"); in ZTEST()
146 zassert_equal(header->nh_op, MGMT_OP_WRITE_RSP, "SMP header operation mismatch"); in ZTEST()
147 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_SETTINGS), in ZTEST()
148 "SMP header group mismatch"); in ZTEST()
149 zassert_equal(header->nh_seq, 1, "SMP header sequence number mismatch"); in ZTEST()
150 zassert_equal(header->nh_id, SETTINGS_MGMT_ID_COMMIT, "SMP header command ID mismatch"); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/net/
Dudp.h37 * @brief Get UDP packet header data from net_pkt.
39 * @details The values in the returned header are in network byte order.
40 * Note that you must access the UDP header values by the returned pointer,
41 * the hdr parameter is just a placeholder for the header data and it might
42 * not contain anything if the header fits properly in the first fragment of
46 * @param hdr Where to place the header if it does not fit in first fragment
47 * of the network packet. This might not be populated if UDP header fits in
50 * @return Return pointer to header or NULL if something went wrong.
51 * Always use the returned pointer to access the UDP header.
65 * @brief Set UDP packet header data in net_pkt.
[all …]
/Zephyr-latest/modules/thrift/src/thrift/
Dconfig.h15 /* Define to 1 if you have the <arpa/inet.h> header file. */
24 /* Define to 1 if you have the <fcntl.h> header file. */
36 /* Define to 1 if you have the <inttypes.h> header file. */
39 /* Define to 1 if you have the <limits.h> header file. */
48 /* Define to 1 if you have the <memory.h> header file. */
57 /* Define to 1 if you have the <netdb.h> header file. */
60 /* Define to 1 if you have the <netinet/in.h> header file. */
63 /* Define to 1 if you have the <poll.h> header file. */
66 /* Define to 1 if you have the <pthread.h> header file. */
75 /* Define to 1 if you have the <sched.h> header file. */
[all …]
/Zephyr-latest/subsys/mgmt/hawkbit/
Dhawkbit_firmware.c13 struct mcuboot_img_header header; in hawkbit_get_firmware_version() local
15 if (boot_read_bank_header(FIXED_PARTITION_ID(slot0_partition), &header, in hawkbit_get_firmware_version()
16 sizeof(header)) != 0) { in hawkbit_get_firmware_version()
20 if (header.mcuboot_version != 1) { in hawkbit_get_firmware_version()
24 snprintk(version, version_len, "%d.%d.%d", header.h.v1.sem_ver.major, in hawkbit_get_firmware_version()
25 header.h.v1.sem_ver.minor, header.h.v1.sem_ver.revision); in hawkbit_get_firmware_version()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/enum_mgmt/src/
Dmain.c114 struct smp_hdr *header; in ZTEST() local
150 header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
152 zassert_equal(header->nh_flags, 0, "SMP header flags mismatch"); in ZTEST()
153 zassert_equal(header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST()
154 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_ENUM), in ZTEST()
155 "SMP header group mismatch"); in ZTEST()
156 zassert_equal(header->nh_seq, 1, "SMP header sequence number mismatch"); in ZTEST()
157 zassert_equal(header->nh_id, ENUM_MGMT_ID_COUNT, "SMP header command ID mismatch"); in ZTEST()
158 zassert_equal(header->nh_version, 1, "SMP header version mismatch"); in ZTEST()
213 struct smp_hdr *header; in ZTEST() local
[all …]
/Zephyr-latest/drivers/sensor/
Ddefault_rtio_sensor.c18 * Ensure that the size of the generic header aligns with the sensor channel specifier . If it
64 * @brief Compute the required header size
66 * This function takes into account alignment of the q31 values that will follow the header.
69 * @return The number of bytes needed for this sample frame's header
90 * @brief Checks if the header already contains a given channel
92 * @param[in] header The header to scan
94 * @param[in] num_channels The number of valid channels in the header so far
97 static inline int check_header_contains_channel(const struct sensor_data_generic_header *header, in check_header_contains_channel() argument
103 if (sensor_chan_spec_eq(header->channels[i], chan_spec)) { in check_header_contains_channel()
143 struct sensor_data_generic_header *header = (struct sensor_data_generic_header *)buf; in sensor_submit_fallback_sync() local
[all …]
/Zephyr-latest/subsys/mgmt/updatehub/
Dupdatehub_firmware.c19 struct mcuboot_img_header header; in updatehub_get_firmware_version() local
21 if (boot_read_bank_header(partition_id, &header, in updatehub_get_firmware_version()
27 if (header.mcuboot_version != 1) { in updatehub_get_firmware_version()
28 LOG_DBG("MCUboot header version not supported!"); in updatehub_get_firmware_version()
33 header.h.v1.sem_ver.major, in updatehub_get_firmware_version()
34 header.h.v1.sem_ver.minor, in updatehub_get_firmware_version()
35 header.h.v1.sem_ver.revision); in updatehub_get_firmware_version()
/Zephyr-latest/dts/bindings/gpio/
Dparticle-gen3-header.yaml11 * A 12-pin header on the right. 9 pins on this header are exposed
13 * A 16-pin header. 13 pins on this header are exposed by this
17 0 through 8 correspond to the pins on the 12-pin header, starting
19 16-pin header, skipping the bottom pin then assigning 9 through 19,
41 compatible: "particle-gen3-header"
Dpanasonic,reduced-arduino-header.yaml5 Panasonic's reduced Arduino header.
27 Panasonic's reduced Arduino header is based on the Arduino UNO layout
34 1. Power Supply header exactly, like on Arduino UNO layout.
36 2. Analog Input header, like on Arduino UNO layout, but A4 and A5 are
39 3. 8-pin header (opposite Analog Input). Digital input signals, like on
43 4. 10-pin header (opposite Power Supply). Digital input signals, like on
47 compatible: "panasonic,reduced-arduino-header"
Dadafruit-feather-header.yaml10 * A 16-pin header. 12 pins on this header are exposed
12 * A 12-pin header. 9 pins on this header are exposed
37 compatible: "adafruit-feather-header"
/Zephyr-latest/drivers/sensor/memsic/mmc56x3/
Dmmc56x3_decoder.c82 out->header.base_timestamp_ns = edata->header.timestamp; in mmc56x3_decoder_decode()
83 out->header.reading_count = 1; in mmc56x3_decoder_decode()
95 out->header.base_timestamp_ns = edata->header.timestamp; in mmc56x3_decoder_decode()
96 out->header.reading_count = 1; in mmc56x3_decoder_decode()
107 out->header.base_timestamp_ns = edata->header.timestamp; in mmc56x3_decoder_decode()
108 out->header.reading_count = 1; in mmc56x3_decoder_decode()
119 out->header.base_timestamp_ns = edata->header.timestamp; in mmc56x3_decoder_decode()
120 out->header.reading_count = 1; in mmc56x3_decoder_decode()
131 out_3->header.base_timestamp_ns = edata->header.timestamp; in mmc56x3_decoder_decode()
132 out_3->header.reading_count = 1; in mmc56x3_decoder_decode()
/Zephyr-latest/subsys/net/ip/
D6lo.h25 * @details After this IPv6 packet and next header(if UDP), headers
26 * are compressed as per RFC 6282. After header compression data
30 * @param iphc true for IPHC compression, false for IPv6 dispatch header
32 * @return header size difference on success (>= 0), negative errno otherwise
49 * @details After this IPv6 packet and next header(if UDP), headers
50 * are uncompressed as per RFC 6282. After header uncompression data
72 * will be used in IPv6 header compression and uncompression.
82 * @brief Return the header size difference after uncompression
89 * @return header difference or INT_MAX in case of error.
/Zephyr-latest/include/zephyr/llext/
Delf.h69 * @brief ELF Header(32-bit)
82 /** Program header table offset */
84 /** Section header table offset */
88 /** ELF header size */
90 /** Program header count */
92 /** Program header count */
94 /** Section header size */
96 /** Section header count */
98 /** Section header containing section header string table */
103 * @brief ELF Header(64-bit)
[all …]
/Zephyr-latest/subsys/secure_storage/
DCMakeLists.txt14 function(make_available header)
15 if (NOT header STREQUAL "common.h")
18 if ((header MATCHES "^its") AND NOT (header STREQUAL "its/common.h"))
21 configure_file(include/internal/zephyr/secure_storage/${header}
22 ${CMAKE_BINARY_DIR}/zephyr/include/generated/zephyr/secure_storage/${header}
/Zephyr-latest/tests/subsys/mgmt/mcumgr/img_mgmt_slot_info/src/
Dmain.c204 struct smp_hdr *header; in ZTEST() local
241 header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
243 zassert_equal(header->nh_flags, 0, "SMP header flags mismatch"); in ZTEST()
244 zassert_equal(header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST()
245 zassert_equal(header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_IMAGE), in ZTEST()
246 "SMP header group mismatch"); in ZTEST()
247 zassert_equal(header->nh_seq, 1, "SMP header sequence number mismatch"); in ZTEST()
248 zassert_equal(header->nh_id, IMG_MGMT_ID_SLOT_INFO, "SMP header command ID mismatch"); in ZTEST()
249 zassert_equal(header->nh_version, 1, "SMP header version mismatch"); in ZTEST()
331 struct smp_hdr *header; in ZTEST() local
[all …]
/Zephyr-latest/include/zephyr/sys/
Dmpsc_packet.h18 * @brief Multi producer, single consumer packet header
19 * @defgroup mpsc_packet MPSC (Multi producer, single consumer) packet header
27 /** @brief Header that must be added to the first word in each packet.
30 * not be used. Fields must be added at the top of the packet header structure.
36 /** @brief Generic packet header. */
48 /** @brief Generic packet header. */

12345678910>>...69