/Zephyr-latest/tests/unit/winstream/ |
D | main.c | 25 uint32_t seq = 0; in ZTEST() local 29 uint32_t bytes = sys_winstream_read(ws, &seq, &c, 1); in ZTEST() 32 zassert_true(seq == 1, ""); in ZTEST() 36 bytes = sys_winstream_read(ws, &seq, &c, 1); in ZTEST() 38 zassert_true(seq == 1, ""); in ZTEST() 42 zassert_true(ws->seq == 1 + strlen(msg), ""); in ZTEST() 52 bytes = sys_winstream_read(ws, &seq, readback, sizeof(readback)); in ZTEST() 53 zassert_true(seq == ws->seq, ""); in ZTEST() 57 uint32_t seq0 = seq; in ZTEST() 59 bytes = sys_winstream_read(ws, &seq, readback, sizeof(readback)); in ZTEST() [all …]
|
/Zephyr-latest/lib/utils/ |
D | winstream.c | 44 uint32_t start = ws->start, end = ws->end, seq = ws->seq; in sys_winstream_write() local 59 if (seq != 0) { in sys_winstream_write() 81 ws->seq += len0; /* seq represents dropped bytes too! */ in sys_winstream_write() 86 uint32_t *seq, char *buf, uint32_t buflen) in sys_winstream_read() argument 88 uint32_t seq0 = *seq, start, end, wseq, len, behind, copy, suffix; in sys_winstream_read() 91 start = ws->start; end = ws->end; wseq = ws->seq; in sys_winstream_read() 95 if (*seq == wseq || start == end) { in sys_winstream_read() 96 *seq = wseq; in sys_winstream_read() 104 behind = wseq - *seq; in sys_winstream_read() 106 *seq = wseq; in sys_winstream_read() [all …]
|
/Zephyr-latest/tests/bluetooth/mesh/rpl/src/ |
D | main.c | 37 uint32_t seq; member 39 { .name = "bt/mesh/RPL/1", .src = 0x1, .old_iv = false, .seq = 10, }, 40 { .name = "bt/mesh/RPL/17", .src = 0x17, .old_iv = true, .seq = 32, }, 41 { .name = "bt/mesh/RPL/7c", .src = 0x7c, .old_iv = false, .seq = 20, }, 42 { .name = "bt/mesh/RPL/2c", .src = 0x2c, .old_iv = true, .seq = 5, }, 43 { .name = "bt/mesh/RPL/5a", .src = 0x5a, .old_iv = true, .seq = 12, }, 57 .seq = test_vector[i].seq, in prepare_rpl_and_start_reset() 79 .seq = test_vector[i].seq, in prepare_rpl_and_start_reset() 104 .seq = test_vector[i].seq in check_entries_from_test_vector() 126 .seq = i, in check_empty_entries() [all …]
|
/Zephyr-latest/tests/subsys/zbus/hlp_priority_boost/src/ |
D | main.c | 24 int seq; member 54 printk("%s level: %d\n", name, msg.seq); in consumer_sub_thread() 79 printk("%s level: %d\n", name, msg.seq); in consumer_msg_sub_thread() 92 static struct msg_testing_01 msg = {.seq = 0}; 137 ++msg.seq; in ZTEST() 144 ++msg.seq; in ZTEST() 149 ++msg.seq; in ZTEST() 160 ++msg.seq; in ZTEST() 170 ++msg.seq; in ZTEST() 174 ++msg.seq; in ZTEST()
|
/Zephyr-latest/drivers/adc/ |
D | adc_max32.c | 105 static int start_read(const struct device *dev, const struct adc_sequence *seq) in start_read() argument 108 uint32_t num_of_sample_channels = POPCOUNT(seq->channels); in start_read() 112 if (seq->resolution != data->resolution) { in start_read() 113 LOG_ERR("Unsupported resolution (%d)", seq->resolution); in start_read() 116 if (seq->channels == 0) { in start_read() 119 if ((data->channels & seq->channels) != seq->channels) { in start_read() 123 ret = Wrap_MXC_ADC_AverageConfig(seq->oversampling); in start_read() 128 if (seq->options) { in start_read() 129 num_of_sample += seq->options->extra_samplings; in start_read() 131 if (seq->buffer_size < (num_of_sample * num_of_sample_channels)) { /* Buffer size control */ in start_read() [all …]
|
D | adc_tla202x.c | 232 static int tla202x_start_read(const struct device *dev, const struct adc_sequence *seq) in tla202x_start_read() argument 237 const size_t num_extra_samples = seq->options ? seq->options->extra_samplings : 0; in tla202x_start_read() 238 const size_t num_samples = (1 + num_extra_samples) * POPCOUNT(seq->channels); in tla202x_start_read() 240 if (find_msb_set(seq->channels) > config->channel_count) { in tla202x_start_read() 241 LOG_ERR("Selected channel(s) not supported: %x", seq->channels); in tla202x_start_read() 245 if (seq->resolution != ADC_RESOLUTION) { in tla202x_start_read() 246 LOG_ERR("Selected resolution not supported: %d", seq->resolution); in tla202x_start_read() 250 if (seq->oversampling) { in tla202x_start_read() 255 if (seq->calibrate) { in tla202x_start_read() 260 if (!seq->buffer) { in tla202x_start_read() [all …]
|
D | adc_esp32.c | 245 static int adc_esp32_fill_digi_pattern(const struct device *dev, const struct adc_sequence *seq, in adc_esp32_fill_digi_pattern() argument 254 uint32_t channel_mask = 1, channels_copy = seq->channels; in adc_esp32_fill_digi_pattern() 271 adc_digi_pattern_config->bit_width = seq->resolution; in adc_esp32_fill_digi_pattern() 385 static int adc_esp32_read(const struct device *dev, const struct adc_sequence *seq) in adc_esp32_read() argument 392 uint8_t channel_id = find_lsb_set(seq->channels) - 1; in adc_esp32_read() 394 if (seq->buffer_size < 2) { in adc_esp32_read() 395 LOG_ERR("Sequence buffer space too low '%d'", seq->buffer_size); in adc_esp32_read() 400 if (seq->channels > BIT(channel_id)) { in adc_esp32_read() 406 if (seq->options) { in adc_esp32_read() 407 if (seq->options->extra_samplings) { in adc_esp32_read() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | rpl.c | 33 uint32_t seq:24, member 96 rpl->seq = rx->seq; in bt_mesh_rpl_update() 151 rpl->seq < rx->seq) { in bt_mesh_rpl_check() 308 entry->seq = rpl.seq; in rpl_set() 311 LOG_DBG("RPL entry for 0x%04x: Seq 0x%06x old_iv %u", entry->src, entry->seq, in rpl_set() 329 LOG_DBG("src 0x%04x seq 0x%06x old_iv %u", entry->src, entry->seq, entry->old_iv); in store_rpl() 331 rpl.seq = entry->seq; in store_rpl()
|
D | net.c | 85 seq : 17; member 154 msg_cache[i].seq == (SEQ(pdu->data) & BIT_MASK(17))) { in msg_cache_match() 161 msg_cache[i].seq == (SEQ(pdu->data) & BIT_MASK(17))) { in msg_cache_match() 173 msg_cache[msg_cache_next].seq = rx->seq; in msg_cache_add() 191 (bt_mesh.seq % CONFIG_BT_MESH_SEQ_STORE_RATE)) { in bt_mesh_net_seq_store() 313 bt_mesh.seq = 0U; in bt_mesh_net_iv_update() 346 bt_mesh.seq = 0U; in bt_mesh_net_iv_update() 381 uint32_t seq = bt_mesh.seq++; in bt_mesh_next_seq() local 388 bt_mesh.seq > IV_UPDATE_SEQ_LIMIT && in bt_mesh_next_seq() 394 return seq; in bt_mesh_next_seq() [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_gecko.c | 93 I2C_TransferSeq_TypeDef seq; in i2c_gecko_transfer() local 103 seq.addr = addr << 1; in i2c_gecko_transfer() 106 seq.buf[0].data = msgs->buf; in i2c_gecko_transfer() 107 seq.buf[0].len = msgs->len; in i2c_gecko_transfer() 110 seq.flags = I2C_FLAG_READ; in i2c_gecko_transfer() 112 seq.flags = I2C_FLAG_WRITE; in i2c_gecko_transfer() 118 seq.flags = I2C_FLAG_WRITE_READ; in i2c_gecko_transfer() 120 seq.flags = I2C_FLAG_WRITE_WRITE; in i2c_gecko_transfer() 122 seq.buf[1].data = msgs->buf; in i2c_gecko_transfer() 123 seq.buf[1].len = msgs->len; in i2c_gecko_transfer() [all …]
|
/Zephyr-latest/subsys/net/ip/ |
D | tp.c | 291 struct tp_seq *seq = k_calloc(1, sizeof(struct tp_seq)); in tp_seq_track() local 293 seq->file = file; in tp_seq_track() 294 seq->line = line; in tp_seq_track() 295 seq->func = func; in tp_seq_track() 297 seq->kind = kind; in tp_seq_track() 299 seq->req = req; in tp_seq_track() 300 seq->old_value = *pvalue; in tp_seq_track() 303 seq->of = __builtin_uadd_overflow(seq->old_value, seq->req, in tp_seq_track() 304 &seq->value); in tp_seq_track() 306 seq->value += req; in tp_seq_track() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | op_agg.c | 59 SHELL_CMD_ARG(seq-start, NULL, "<ElemAddr>", cmd_seq_start, 2, 0), 60 SHELL_CMD_ARG(seq-send, NULL, NULL, cmd_seq_send, 1, 0), 61 SHELL_CMD_ARG(seq-abort, NULL, NULL, cmd_seq_abort, 1, 0),
|
/Zephyr-latest/samples/shields/lmp90100_evb/rtd/src/ |
D | main.c | 47 struct adc_sequence seq = { in main() local 63 err = adc_sequence_init_dt(&ch_cfg, &seq); in main() 70 err = adc_read_dt(&ch_cfg, &seq); in main()
|
/Zephyr-latest/tests/net/tcp/src/ |
D | main.c | 78 static uint32_t seq; variable 295 th->th_seq = htonl(seq); in tester_prepare_tcp_pkt() 539 seq = 0U; in handle_client_test() 553 seq++; in handle_client_test() 604 seq = ack = 0; in ZTEST() 666 seq = ack = 0; in ZTEST() 722 seq++; in handle_server_test() 735 seq++; in handle_server_test() 742 seq++; in handle_server_test() 835 seq = ack = 0; in ZTEST() [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | winstream.h | 29 uint32_t seq; /* Mod-2^32 index of 'end' since stream init */ member 93 uint32_t *seq, char *buf, uint32_t buflen);
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_op_agg.c | 60 uint8_t seq = net_buf_simple_pull_u8(buf); in get_handler() local 68 net_buf_simple_add_u8(&msg, seq); in get_handler() 84 uint8_t seq = net_buf_simple_pull_u8(buf); in status_handler() local 87 cli_rcvd_array[status_rcvd_count - 1] = seq; in status_handler() 97 uint8_t seq) in dummy_vnd_mod_get() argument 104 net_buf_simple_add_u8(&msg, seq); in dummy_vnd_mod_get() 109 if (seq >= TEST_SEND_ITR - 1) { in dummy_vnd_mod_get()
|
D | test_iv_index.c | 102 bt_mesh.seq = 100; in test_ivu_normal() 112 ASSERT_EQUAL(0, bt_mesh.seq); in test_ivu_normal() 117 bt_mesh.seq = 100; in test_ivu_normal() 125 ASSERT_EQUAL(100, bt_mesh.seq); in test_ivu_normal()
|
D | test_replay_cache.c | 134 uint32_t seq = bt_mesh.seq; in test_tx_immediate_replay_attack() local 152 bt_mesh.seq = seq; in test_tx_immediate_replay_attack() 380 .seq = 0, in test_rx_rpl_frag() 454 .seq = 0, in test_rx_reboot_after_defrag()
|
/Zephyr-latest/samples/net/dsa/src/ |
D | main.h | 84 uint16_t seq; \ 104 ret = FN_RECV(iface, &data, &seq, \ 110 seq, 0, origin_port, CMD_ACK, \
|
/Zephyr-latest/samples/kernel/metairq_dispatch/src/ |
D | main.c | 68 m.target, m.seq); in metairq_fn() 117 if (IS_ENABLED(CONFIG_QEMU_TARGET) && m->seq == 0) { in record_latencies() 125 if (m->seq >= MAX_EVENTS) { in record_latencies() 144 if (m->seq == MAX_EVENTS - 1) { in record_latencies() 216 m.seq, id, m.metairq_latency, in thread_fn()
|
D | msgdev.c | 60 m.seq = msg_seq++; in dev_timer_expired() 71 if (m.seq < MAX_EVENTS) { in dev_timer_expired()
|
D | msgdev.h | 46 uint32_t seq; member
|
/Zephyr-latest/drivers/input/ |
D | input_adc_keys.c | 44 struct adc_sequence seq; member 55 data->seq.buffer = &sample_raw; in adc_keys_read() 56 data->seq.buffer_size = sizeof(sample_raw); in adc_keys_read() 58 ret = adc_read(cfg->channel.dev, &data->seq); in adc_keys_read() 173 ret = adc_sequence_init_dt(&cfg->channel, &data->seq); in adc_keys_init()
|
/Zephyr-latest/tests/bsim/bluetooth/host/misc/conn_stress/scripts/ |
D | _conn_stress.sh | 39 for device in `seq 1 $nr_of_units`; do 54 for i in `seq -w 0 $nr_of_units`; do
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_nrfx.c | 46 nrf_pwm_sequence_t seq; member 70 return (uint16_t *)config->seq.values.p_raw; in seq_values_ptr_get() 190 sys_cache_data_flush_range(seq_values_ptr_get(dev), config->seq.length); in pwm_nrfx_set_cycles() 251 nrfx_pwm_simple_playback(&config->pwm, &config->seq, 1, in pwm_nrfx_set_cycles() 388 .seq.values.p_raw = pwm_##idx##_seq_values, \ 389 .seq.length = NRF_PWM_CHANNEL_COUNT, \
|