/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/simulator/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 22 * struct ec_params_add - Parameters to the add command. 34 * struct ec_response_add - Response to the add command. 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() [all …]
|
/Zephyr-latest/tests/lib/acpi/unit/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 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() [all …]
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_hpack.c | 5 * SPDX-License-Identifier: Apache-2.0 46 [HTTP_SERVER_HPACK_ACCEPT_CHARSET] = { "accept-charset", NULL }, 47 [HTTP_SERVER_HPACK_ACCEPT_ENCODING] = { "accept-encoding", "gzip, deflate" }, 48 [HTTP_SERVER_HPACK_ACCEPT_LANGUAGE] = { "accept-language", NULL }, 49 [HTTP_SERVER_HPACK_ACCEPT_RANGES] = { "accept-ranges", NULL }, 51 [HTTP_SERVER_HPACK_ACCESS_CONTROL_ALLOW_ORIGIN] = { "access-control-allow-origin", NULL }, 55 [HTTP_SERVER_HPACK_CACHE_CONTROL] = { "cache-control", NULL }, 56 [HTTP_SERVER_HPACK_CONTENT_DISPOSITION] = { "content-disposition", NULL }, 57 [HTTP_SERVER_HPACK_CONTENT_ENCODING] = { "content-encoding", NULL }, 58 [HTTP_SERVER_HPACK_CONTENT_LANGUAGE] = { "content-language", NULL }, [all …]
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | dns_pack.h | 4 * SPDX-License-Identifier: Apache-2.0 17 /* 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. 62 * - cname_offset 63 * - query_offset 64 * - answer_offset: 85 .response_type = -EINVAL} [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 111 struct smp_hdr *header; in ZTEST() local 141 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST() 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() [all …]
|
/Zephyr-latest/include/zephyr/drivers/sip_svc/ |
D | sip_svc_agilex_mailbox.h | 2 * Copyright (c) 2022-2023, Intel Corporation. 4 * SPDX-License-Identifier: Apache-2.0 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 [all …]
|
D | sip_svc_proto.h | 4 * SPDX-License-Identifier: Apache-2.0 27 /** @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 [all …]
|
/Zephyr-latest/subsys/net/lib/wifi_credentials/ |
D | wifi_credentials_shell.c | 4 * SPDX-License-Identifier: Apache-2.0 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() [all …]
|
D | wifi_credentials.c | 4 * SPDX-License-Identifier: Apache-2.0 27 * @return index if entry is found, -1 otherwise 41 return -1; in lookup_idx() 58 * @return index if empty slot is found, -1 otherwise 68 return -1; in lookup_unused_idx() 90 memcpy(ssid_cache[idx], buf->ssid, buf->ssid_len); in wifi_credentials_cache_ssid() 91 ssid_cache_lengths[idx] = buf->ssid_len; in wifi_credentials_cache_ssid() 112 return -EINVAL; in wifi_credentials_get_by_ssid_personal_struct() 117 return -EINVAL; in wifi_credentials_get_by_ssid_personal_struct() 123 if (idx == -1) { in wifi_credentials_get_by_ssid_personal_struct() [all …]
|
/Zephyr-latest/drivers/fpga/ |
D | fpga_zynqmp.c | 2 * Copyright (c) 2021-2022 Antmicro <www.antmicro.com> 4 * SPDX-License-Identifier: Apache-2.0 36 struct zynqmp_fpga_data *data = dev->data; in update_part_name() 110 snprintf(data->FPGA_info, sizeof(data->FPGA_info), "unknown"); in update_part_name() 112 snprintf(data->FPGA_info, sizeof(data->FPGA_info), "Part name: ZU%d", zu_number); in update_part_name() 119 * 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() [all …]
|
/Zephyr-latest/subsys/mgmt/hawkbit/ |
D | hawkbit_firmware.c | 4 * SPDX-License-Identifier: Apache-2.0 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/subsys/mgmt/mcumgr/enum_mgmt/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 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() 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() [all …]
|
/Zephyr-latest/drivers/sensor/ |
D | default_rtio_sensor.c | 5 * SPDX-License-Identifier: Apache-2.0 18 * Ensure that the size of the generic header aligns with the sensor channel specifier . If it 27 const struct sensor_read_config *cfg = iodev_sqe->sqe.iodev->data; in sensor_iodev_submit() 28 const struct device *dev = cfg->sensor; in sensor_iodev_submit() 29 const struct sensor_driver_api *api = dev->api; in sensor_iodev_submit() 31 if (api->submit != NULL) { in sensor_iodev_submit() 32 api->submit(dev, iodev_sqe); in sensor_iodev_submit() 33 } else if (!cfg->is_streaming) { in sensor_iodev_submit() 36 rtio_iodev_sqe_err(iodev_sqe, -ENOTSUP); in sensor_iodev_submit() 64 * @brief Compute the required header size [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | udp.h | 8 * SPDX-License-Identifier: Apache-2.0 37 * @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. [all …]
|
/Zephyr-latest/subsys/mgmt/updatehub/ |
D | updatehub_firmware.c | 2 * Copyright (c) 2018-2023 O.S.Systems 4 * SPDX-License-Identifier: Apache-2.0 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() 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/drivers/sensor/memsic/mmc56x3/ |
D | mmc56x3_decoder.c | 3 * SPDX-License-Identifier: Apache-2.0 13 int32_t ret = -ENOTSUP; in mmc56x3_decoder_get_frame_count() 22 *frame_count = edata->has_temp ? 1 : 0; in mmc56x3_decoder_get_frame_count() 25 *frame_count = edata->has_magn_x ? 1 : 0; in mmc56x3_decoder_get_frame_count() 28 *frame_count = edata->has_magn_y ? 1 : 0; in mmc56x3_decoder_get_frame_count() 31 *frame_count = edata->has_magn_z ? 1 : 0; in mmc56x3_decoder_get_frame_count() 35 ((edata->has_magn_x && edata->has_magn_y && edata->has_magn_z) ? 1 : 0); in mmc56x3_decoder_get_frame_count() 63 return -ENOTSUP; in mmc56x3_decoder_get_size_info() 71 const struct mmc56x3_data *data = &edata->data; in mmc56x3_decoder_decode() 79 if (edata->has_temp) { in mmc56x3_decoder_decode() [all …]
|
/Zephyr-latest/dts/bindings/gpio/ |
D | particle-gen3-header.yaml | 2 # SPDX-License-Identifier: Apache-2.0 11 * 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, 24 - 3V3 26 - GND 27 19 ADC0 LiPo+ - 28 18 ADC1 ENABLE - 29 17 ADC2 VBUS - [all …]
|
D | panasonic,reduced-arduino-header.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Panasonic's reduced Arduino header. 9 AREF - 10 GND - 11 - N/C D13 19 12 - IOREF D12 18 13 - RESET D11 17 14 - 3V3 D10 16 15 - 5V D9 NC 16 - GND D8 NC [all …]
|
D | adafruit-feather-header.yaml | 2 # SPDX-License-Identifier: Apache-2.0 9 Proceeding counter-clockwise: 10 * A 16-pin header. 12 pins on this header are exposed 12 * A 12-pin header. 9 pins on this header are exposed 19 - RESET 20 - 3V3 21 - 3V3 22 - GND 23 0 A0 - VBAT 24 1 A1 - EN [all …]
|
D | arduino-header-r3.yaml | 3 # SPDX-License-Identifier: Apache-2.0 11 Proceeding counter-clockwise: 12 * An 8-pin Power Supply header. No pins on this header are exposed 14 * A 6-pin Analog Input header. This has analog input signals 16 * An 8-pin header (opposite Analog Input). This has digital input 18 * A 10-pin header (opposite Power Supply). This has six additional 29 AREF - 30 GND - 31 - N/C D13 19 32 - IOREF D12 18 [all …]
|
/Zephyr-latest/modules/thrift/src/thrift/ |
D | config.h | 4 * SPDX-License-Identifier: Apache-2.0 15 /* 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. */ [all …]
|
/Zephyr-latest/subsys/net/ip/ |
D | 6lo.h | 10 * SPDX-License-Identifier: Apache-2.0 25 * @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 84 * @details This will do a dry-run on uncompressing the headers. [all …]
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | port.c | 4 * SPDX-License-Identifier: Apache-2.0 44 char str_port_id[] = "FF:FF:FF:FF:FF:FF:FF:FF-FFFF"; 48 uint8_t *pid = port_id->clk_id.id; in port_id_str() 50 snprintk(str_port_id, sizeof(str_port_id), "%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X-%04X", in port_id_str() 59 port_id->port_number); in port_id_str() 92 ((uint64_t)NSEC_PER_SEC * factor) >> -log_seconds : in port_timer_set_timeout() 106 timeout = ((uint64_t)NSEC_PER_SEC * min_factor) >> -log_seconds; in port_timer_set_timeout_random() 107 random_ns = (uint64_t)NSEC_PER_SEC >> -log_seconds; in port_timer_set_timeout_random() 131 port_timer_set_timeout(&port->timers.sync, in port_synchronize() 132 port->port_ds.announce_receipt_timeout, in port_synchronize() [all …]
|
/Zephyr-latest/subsys/secure_storage/ |
D | CMakeLists.txt | 1 # SPDX-License-Identifier: Apache-2.0 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}
|
/Zephyr-latest/include/zephyr/llext/ |
D | elf.h | 5 * SPDX-License-Identifier: Apache-2.0 62 * 1 byte OS ABI (0 None, 1 HP-UX, 2 NetBSD, 3 Linux) 69 * @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 */ [all …]
|