/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/simulator/src/ |
D | main.c | 48 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/subsys/net/lib/wifi_credentials/ |
D | wifi_credentials_shell.c | 43 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 …]
|
D | wifi_credentials.c | 135 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/drivers/fpga/ |
D | fpga_zynqmp.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() 147 if (*header++ != 'b') { in parse_header() 152 length = XLNX_BITSTREAM_SECTION_LENGTH(header); in parse_header() [all …]
|
/Zephyr-latest/include/zephyr/drivers/sip_svc/ |
D | sip_svc_agilex_mailbox.h | 24 #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 & \
|
D | sip_svc_proto.h | 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) \ 134 uint32_t header; member 178 uint32_t header; member
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | dns_pack.h | 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() 199 static inline int dns_header_qr(uint8_t *header) in dns_header_qr() argument 201 return ((*(header + 2)) & 0x80) ? 1 : 0; in dns_header_qr() 205 static inline int dns_header_opcode(uint8_t *header) in dns_header_opcode() argument 207 return ((*(header + 2)) & 0x70) >> 1; in dns_header_opcode() 211 static inline int dns_header_aa(uint8_t *header) in dns_header_aa() argument 213 return ((*(header + 2)) & 0x04) ? 1 : 0; in dns_header_aa() [all …]
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_hpack.c | 104 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/mgmt/hawkbit/ |
D | hawkbit_firmware.c | 13 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/lib/acpi/unit/src/ |
D | main.c | 21 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/drivers/sensor/ |
D | default_rtio_sensor.c | 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 145 header->timestamp_ns = timestamp_ns; in sensor_submit_fallback_sync() 146 header->num_channels = num_output_samples; in sensor_submit_fallback_sync() 147 header->shift = 0; in sensor_submit_fallback_sync() 160 header->channels[sample_idx++] = (struct sensor_chan_spec) { in sensor_submit_fallback_sync() 164 header->channels[sample_idx++] = (struct sensor_chan_spec) { in sensor_submit_fallback_sync() 168 header->channels[sample_idx++] = (struct sensor_chan_spec) { in sensor_submit_fallback_sync() 173 header->channels[sample_idx++] = (struct sensor_chan_spec) { in sensor_submit_fallback_sync() [all …]
|
/Zephyr-latest/subsys/mgmt/updatehub/ |
D | updatehub_firmware.c | 19 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() 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/drivers/sensor/memsic/mmc56x3/ |
D | mmc56x3_decoder.c | 82 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/tests/subsys/mgmt/mcumgr/enum_mgmt/src/ |
D | main.c | 114 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() 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 251 header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST() [all …]
|
/Zephyr-latest/samples/subsys/modbus/tcp_gateway/src/ |
D | main.c | 48 uint8_t header[MODBUS_MBAP_AND_FC_LENGTH]; in modbus_tcp_reply() local 50 modbus_raw_put_header(adu, header); in modbus_tcp_reply() 51 if (send(client, header, sizeof(header), 0) < 0) { in modbus_tcp_reply() 64 uint8_t header[MODBUS_MBAP_AND_FC_LENGTH]; in modbus_tcp_connection() local 68 rc = recv(client, header, sizeof(header), MSG_WAITALL); in modbus_tcp_connection() 73 LOG_HEXDUMP_DBG(header, sizeof(header), "h:>"); in modbus_tcp_connection() 74 modbus_raw_get_header(&tmp_adu, header); in modbus_tcp_connection()
|
/Zephyr-latest/subsys/usb/usb_c/ |
D | usbc_pe_snk_states.c | 153 union pd_header header; in pe_snk_wait_for_capabilities_run() local 160 header = prl_rx->emsg.header; in pe_snk_wait_for_capabilities_run() 161 if (received_data_message(dev, header, PD_DATA_SOURCE_CAP)) { in pe_snk_wait_for_capabilities_run() 194 union pd_header header; in pe_snk_evaluate_capability_entry() local 203 header = prl_rx->emsg.header; in pe_snk_evaluate_capability_entry() 209 prl_set_rev(dev, PD_PACKET_SOP, MIN(PD_REV30, header.specification_revision)); in pe_snk_evaluate_capability_entry() 248 union pd_header header; in pe_snk_select_capability_run() local 266 header = prl_rx->emsg.header; in pe_snk_select_capability_run() 286 if (received_control_message(dev, header, PD_CTRL_ACCEPT)) { in pe_snk_select_capability_run() 290 } else if (received_control_message(dev, header, PD_CTRL_REJECT) || in pe_snk_select_capability_run() [all …]
|
/Zephyr-latest/subsys/retention/ |
D | blinfo_mcuboot.c | 27 struct shared_data_tlv_header header; in blinfo_lookup() local 32 rc = retention_read(bootloader_info_dev, 0, (void *)&header, sizeof(header)); in blinfo_lookup() 41 while (offset < header.tlv_tot_len) { in blinfo_lookup() 129 struct shared_data_tlv_header header; in blinfo_init() local 131 rc = retention_read(bootloader_info_dev, 0, (void *)&header, sizeof(header)); in blinfo_init() 133 if (rc == 0 && header.tlv_magic != SHARED_DATA_TLV_INFO_MAGIC) { in blinfo_init() 136 SHARED_DATA_TLV_INFO_MAGIC, header.tlv_magic); in blinfo_init()
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_decoder.c | 193 edata->header.is_fifo = false; in icm42688_encode() 194 edata->header.accel_fs = data->cfg.accel_fs; in icm42688_encode() 195 edata->header.gyro_fs = data->cfg.gyro_fs; in icm42688_encode() 196 edata->header.timestamp = k_ticks_to_ns_floor64(k_uptime_ticks()); in icm42688_encode() 362 ((struct sensor_data_header *)data_out)->base_timestamp_ns = edata->header.timestamp; in icm42688_fifo_decode() 409 icm42688_get_shift(SENSOR_CHAN_ACCEL_XYZ, edata->header.accel_fs, in icm42688_fifo_decode() 410 edata->header.gyro_fs, &data->shift); in icm42688_fifo_decode() 413 rc = icm42688_read_imu_from_packet(buffer, true, edata->header.accel_fs, 0, in icm42688_fifo_decode() 415 rc |= icm42688_read_imu_from_packet(buffer, true, edata->header.accel_fs, 1, in icm42688_fifo_decode() 417 rc |= icm42688_read_imu_from_packet(buffer, true, edata->header.accel_fs, 2, in icm42688_fifo_decode() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | sensor_data_types.h | 53 struct sensor_data_header header; member 72 (data_).header.base_timestamp_ns + (data_).readings[(readings_offset_)].timestamp_delta, \ 82 struct sensor_data_header header; member 103 (data_).header.base_timestamp_ns + (data_).readings[(readings_offset_)].timestamp_delta, \ 113 struct sensor_data_header header; member 122 (data_).header.base_timestamp_ns + (data_).readings[(readings_offset_)].timestamp_delta 125 struct sensor_data_header header; member 153 (data_).header.base_timestamp_ns + (data_).readings[(readings_offset_)].timestamp_delta, \ 161 struct sensor_data_header header; member 177 (data_).header.base_timestamp_ns + (data_).readings[(readings_offset_)].timestamp_delta, \ [all …]
|
/Zephyr-latest/subsys/modbus/ |
D | modbus_raw.c | 79 void modbus_raw_put_header(const struct modbus_adu *adu, uint8_t *header) in modbus_raw_put_header() argument 83 sys_put_be16(adu->trans_id, &header[0]); in modbus_raw_put_header() 84 sys_put_be16(adu->proto_id, &header[2]); in modbus_raw_put_header() 85 sys_put_be16(length + MODBUS_ADU_LENGTH_DEVIATION, &header[4]); in modbus_raw_put_header() 86 header[6] = adu->unit_id; in modbus_raw_put_header() 87 header[7] = adu->fc; in modbus_raw_put_header() 90 void modbus_raw_get_header(struct modbus_adu *adu, const uint8_t *header) in modbus_raw_get_header() argument 92 adu->trans_id = sys_get_be16(&header[0]); in modbus_raw_get_header() 93 adu->proto_id = sys_get_be16(&header[2]); in modbus_raw_get_header() 94 adu->length = MIN(sys_get_be16(&header[4]), CONFIG_MODBUS_BUFFER_SIZE); in modbus_raw_get_header() [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/ |
D | main.c | 111 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() 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() 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() 151 zassert_equal(header->nh_version, 1, "SMP header version mismatch"); in ZTEST() 196 header = (struct smp_hdr *)nb->data; in ZTEST() [all …]
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | port.c | 165 msg->header.src_port_id.port_number = ntohs(msg->header.src_port_id.port_number); in port_delay_req_timestamp_cb() 167 if (!ptp_port_id_eq(&port->port_ds.id, &msg->header.src_port_id) || in port_delay_req_timestamp_cb() 178 if (req->header.sequence_id != msg->header.sequence_id) { in port_delay_req_timestamp_cb() 196 ntohs(msg->header.sequence_id)); in port_delay_req_timestamp_cb() 213 msg->header.src_port_id.port_number = ntohs(msg->header.src_port_id.port_number); in port_sync_timestamp_cb() 215 if (ptp_port_id_eq(&port->port_ds.id, &msg->header.src_port_id) && in port_sync_timestamp_cb() 226 resp->header.type_major_sdo_id = PTP_MSG_FOLLOW_UP; in port_sync_timestamp_cb() 227 resp->header.version = PTP_VERSION; in port_sync_timestamp_cb() 228 resp->header.msg_length = sizeof(struct ptp_follow_up_msg); in port_sync_timestamp_cb() 229 resp->header.domain_number = dds->domain; in port_sync_timestamp_cb() [all …]
|
D | msg.c | 76 static int msg_header_post_recv(struct ptp_header *header) in msg_header_post_recv() argument 78 if ((header->version & 0xF) != PTP_MAJOR_VERSION) { in msg_header_post_recv() 83 header->msg_length = ntohs(header->msg_length); in msg_header_post_recv() 84 header->correction = ntohll(header->correction); in msg_header_post_recv() 85 header->sequence_id = ntohs(header->sequence_id); in msg_header_post_recv() 87 msg_port_id_post_recv(&header->src_port_id); in msg_header_post_recv() 92 static void msg_header_pre_send(struct ptp_header *header) in msg_header_pre_send() argument 94 header->msg_length = htons(header->msg_length); in msg_header_pre_send() 95 header->correction = htonll(header->correction); in msg_header_pre_send() 96 header->sequence_id = htons(header->sequence_id); in msg_header_pre_send() [all …]
|
/Zephyr-latest/tests/lib/gui/lvgl/src/ |
D | img.c | 124 .header.w = 96, 125 .header.h = 96, 127 .header.cf = LV_COLOR_FORMAT_I1,
|
/Zephyr-latest/subsys/secure_storage/ |
D | CMakeLists.txt | 14 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}
|