Home
last modified time | relevance | path

Searched refs:sample_data (Results 1 – 13 of 13) sorted by relevance

/Zephyr-latest/tests/bsim/bluetooth/host/adv/encrypted/css_sample_data/src/
Dperipheral.c7 extern const struct test_sample_data *sample_data;
55 uint8_t ead[sample_data->size_ead]; in set_ad_data()
57 size_t size_ad_data = sample_data->size_ad_data; in set_ad_data()
60 if (size_ead != sample_data->size_ead) { in set_ad_data()
62 LOG_ERR("Size of sample_ead: %zu", sample_data->size_ead); in set_ad_data()
68 err = bt_test_ead_encrypt(sample_data->session_key, sample_data->iv, in set_ad_data()
69 sample_data->randomizer_little_endian, sample_data->ad_data, in set_ad_data()
73 } else if (memcmp(ead, sample_data->ead, sample_data->size_ead) != 0) { in set_ad_data()
75 LOG_HEXDUMP_ERR(sample_data->ead, sample_data->size_ead, in set_ad_data()
Dcentral.c7 extern const struct test_sample_data *sample_data;
15 uint8_t decrypted_payload[sample_data->size_ad_data]; in data_parse_cb()
19 if (decrypted_data_size != sample_data->size_ad_data) { in data_parse_cb()
21 LOG_ERR("Size of sample data: %d", sample_data->size_ad_data); in data_parse_cb()
27 if (memcmp(sample_data->randomizer_little_endian, data->data, in data_parse_cb()
32 bt_hex(sample_data->randomizer_little_endian, in data_parse_cb()
40 err = bt_ead_decrypt(sample_data->session_key, sample_data->iv, data->data, in data_parse_cb()
44 } else if (memcmp(decrypted_buf.data, sample_data->ad_data, decrypted_data_size)) { in data_parse_cb()
47 LOG_HEXDUMP_ERR(sample_data->ad_data, sample_data->size_ad_data, in data_parse_cb()
Dcommon.c16 const struct test_sample_data *sample_data; variable
38 sample_data = sample_data_set[data_set - 1]; in test_args_parse()
/Zephyr-latest/tests/drivers/uart/uart_emul/src/
Dbus.c24 uint8_t sample_data[SAMPLE_DATA_SIZE]; member
43 fixture.sample_data[i] = i; in uart_emul_setup()
96 uart_poll_out(fixture->dev, fixture->sample_data[i]); in ZTEST_F()
101 zassert_mem_equal(tx_content, fixture->sample_data, SAMPLE_DATA_SIZE); in ZTEST_F()
112 uart_emul_put_rx_data(fixture->dev, fixture->sample_data, SAMPLE_DATA_SIZE); in ZTEST_F()
118 zassert_mem_equal(fixture->rx_content, fixture->sample_data, SAMPLE_DATA_SIZE); in ZTEST_F()
138 uart_emul_put_rx_data(fixture->dev, fixture->sample_data, SAMPLE_DATA_SIZE); in ZTEST_F()
141 uart_emul_put_rx_data(fixture->dev, fixture->sample_data, SAMPLE_DATA_SIZE); in ZTEST_F()
153 sample_data_it = sizeof(fixture->sample_data) - fixture->tx_remaining; in uart_emul_isr_handle_tx_ready()
154 ret = uart_fifo_fill(fixture->dev, &fixture->sample_data[sample_data_it], in uart_emul_isr_handle_tx_ready()
[all …]
Ddevice.c31 uint8_t sample_data[SAMPLE_DATA_SIZE]; member
49 fixture.sample_data[i] = i; in uart_emul_device_setup()
125 sample_data_it = sizeof(fixture->sample_data) - fixture->tx_remaining; in uart_emul_device_isr_handle_tx_ready()
126 ret = uart_fifo_fill(fixture->dev, &fixture->sample_data[sample_data_it], in uart_emul_device_isr_handle_tx_ready()
188 zassert_mem_equal(fixture->rx_content, fixture->sample_data, SAMPLE_DATA_SIZE); in ZTEST_F()
208 zassert_equal(evt->data.tx.len, sizeof(fixture->sample_data)); in uart_emul_callback()
209 zassert_equal(evt->data.tx.buf, fixture->sample_data); in uart_emul_callback()
212 zassert_equal(evt->data.rx.len, sizeof(fixture->sample_data)); in uart_emul_callback()
213 zassert_mem_equal(&evt->data.rx.buf[evt->data.rx.offset], fixture->sample_data, in uart_emul_callback()
214 sizeof(fixture->sample_data)); in uart_emul_callback()
[all …]
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v2/src/
Dmsgq.c11 struct sample_data { struct
29 struct sample_data sample; in send_msg_thread() argument
30 struct sample_data data[Q_LEN] = { { 0 } }; in send_msg_thread()
90 struct sample_data recv_data; in message_recv()
107 sizeof(struct sample_data), in message_recv()
145 static char __aligned(4) sample_mem[sizeof(struct sample_data) * Q_LEN];
152 .mq_size = sizeof(struct sample_data) * Q_LEN,
158 struct sample_data sample; in ZTEST()
161 message_id = osMessageQueueNew(Q_LEN, sizeof(struct sample_data), in ZTEST()
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v1/src/
Dmailq.c11 struct sample_data { struct
28 osMailQDef(mail, Q_LEN, struct sample_data); argument
34 struct sample_data *tx_ptr; in send_thread()
35 struct sample_data zeroblock; in send_thread()
39 memset(&zeroblock, 0, sizeof(struct sample_data)); in send_thread()
98 zassert_equal(memcmp(tx_ptr, &zeroblock, sizeof(struct sample_data)), 0, in send_thread()
111 struct sample_data *rx_ptr; in mail_recv()
/Zephyr-latest/samples/net/sockets/echo_client/src/
Dcommon.h45 struct sample_data { struct
65 struct sample_data ipv4; argument
66 struct sample_data ipv6;
Dudp.c39 static int send_udp_data(struct sample_data *data);
139 static int send_udp_data(struct sample_data *data) in send_udp_data()
159 static int compare_udp_data(struct sample_data *data, const char *buf, uint32_t received) in compare_udp_data()
178 struct sample_data *data = (ctrl == conf.ipv4.udp.ctrl) ? &conf.ipv4 : &conf.ipv6; in wait_reply()
193 static int start_udp_proto(struct sample_data *data, sa_family_t family, in start_udp_proto()
254 static int process_udp_proto(struct sample_data *data) in process_udp_proto()
Dtcp.c50 static int send_tcp_data(struct sample_data *data) in send_tcp_data()
75 static int compare_tcp_data(struct sample_data *data, const char *buf, uint32_t received) in compare_tcp_data()
90 static int start_tcp_proto(struct sample_data *data, sa_family_t family, in start_tcp_proto()
183 static int process_tcp_proto(struct sample_data *data) in process_tcp_proto()
/Zephyr-latest/drivers/sensor/adi/adxl362/
Dadxl362.c554 struct adxl362_sample_data *sample_data) in adxl362_rtio_fetch() argument
567 sample_data->is_fifo = 0; in adxl362_rtio_fetch()
570 sample_data->acc_x = sys_le16_to_cpu(buf[0]); in adxl362_rtio_fetch()
571 sample_data->acc_y = sys_le16_to_cpu(buf[1]); in adxl362_rtio_fetch()
572 sample_data->acc_z = sys_le16_to_cpu(buf[2]); in adxl362_rtio_fetch()
573 sample_data->temp = sys_le16_to_cpu(buf[3]); in adxl362_rtio_fetch()
574 sample_data->selected_range = data->selected_range; in adxl362_rtio_fetch()
Dadxl362.h318 struct adxl362_sample_data *sample_data);
/Zephyr-latest/doc/_extensions/zephyr/domain/
D__init__.py740 sample_id: sample_data
741 for sample_id, sample_data in self.data["code-samples"].items()
742 if sample_data["docname"] != docname