Home
last modified time | relevance | path

Searched refs:memcmp (Results 1 – 25 of 292) sorted by relevance

12345678910>>...12

/Zephyr-Core-3.6.0/tests/subsys/pm/power_states_api/src/
Dmain.c48 zassert_true(memcmp(infos, dts_infos, sizeof(dts_infos)) == 0, in ZTEST()
50 zassert_true(memcmp(states, dts_states, sizeof(dts_states)) == 0, in ZTEST()
53 zassert_false(memcmp(wrong_states, dts_states, sizeof(dts_states)) == 0, in ZTEST()
62 zassert_true(memcmp(cpu_states, dts_infos, sizeof(dts_infos)) == 0, in ZTEST()
/Zephyr-Core-3.6.0/tests/subsys/modem/modem_chat/src/
Dmain.c314 zassert_true(memcmp(buffer, "AT\r", sizeof("AT\r") - 1) == 0, in ZTEST()
328 zassert_true(memcmp(buffer, "ATE0\r\n", sizeof("ATE0\r\n") - 1) == 0, in ZTEST()
342 zassert_true(memcmp(buffer, "IMEI?\r\n", sizeof("IMEI?\r\n") - 1) == 0, in ZTEST()
354 zassert_true(memcmp(argv_buffers[1], "23412354123123", sizeof("23412354123123")) == 0, in ZTEST()
367 zassert_true(memcmp(buffer, "AT+CREG?;+CGREG?\r\n", sizeof("AT+CREG?;+CGREG?\r\n") - 1) == in ZTEST()
375 zassert_true(memcmp(argv_buffers[0], "CREG: ", sizeof("CREG: ")) == 0, "Unexpected argv"); in ZTEST()
376 zassert_true(memcmp(argv_buffers[1], "1", sizeof("1")) == 0, "Unexpected argv"); in ZTEST()
377 zassert_true(memcmp(argv_buffers[2], "2", sizeof("2")) == 0, "Unexpected argv"); in ZTEST()
383 zassert_true(memcmp(argv_buffers[0], "CGREG: ", sizeof("CGREG: ")) == 0, "Unexpected argv"); in ZTEST()
384 zassert_true(memcmp(argv_buffers[1], "10", sizeof("10")) == 0, "Unexpected argv"); in ZTEST()
[all …]
/Zephyr-Core-3.6.0/tests/subsys/modem/modem_cmux/src/
Dmain.c342 zassert_true(memcmp(buffer2, cmux_frame_data_dlci2_at_cgdcont, in ZTEST()
346 zassert_true(memcmp(&buffer2[sizeof(cmux_frame_data_dlci2_at_cgdcont)], in ZTEST()
372 zassert_true(memcmp(buffer1, cmux_frame_data_dlci1_at_at, in ZTEST()
376 zassert_true(memcmp(&buffer1[sizeof(cmux_frame_data_dlci1_at_at)], in ZTEST()
401 zassert_true(memcmp(buffer2, cmux_frame_data_dlci2_ppp_52, in ZTEST()
405 zassert_true(memcmp(&buffer2[sizeof(cmux_frame_data_dlci2_ppp_52)], in ZTEST()
457 zassert_true(memcmp(buffer1, cmux_frame_data_dlci1_at_at, in ZTEST()
461 zassert_true(memcmp(&buffer1[sizeof(cmux_frame_data_dlci1_at_at)], in ZTEST()
480 zassert_true(memcmp(buffer1, cmux_frame_control_fcoff_ack, in ZTEST()
500 zassert_true(memcmp(buffer1, cmux_frame_control_fcon_ack, in ZTEST()
[all …]
/Zephyr-Core-3.6.0/tests/benchmarks/footprints/src/
Dlibc.c26 if (memcmp(const_string, new_string, 0) != 0) { in run_libc()
29 if (memcmp(const_string, new_string, len) != 0) { in run_libc()
/Zephyr-Core-3.6.0/tests/crypto/tinycrypt/src/
Dcmac_mode.c91 if (memcmp(L, l, BUF_LEN) != 0) { in verify_gf_2_128_double()
99 if (memcmp(K1, k1, BUF_LEN) != 0) { in verify_gf_2_128_double()
107 if (memcmp(K2, k2, BUF_LEN) != 0) { in verify_gf_2_128_double()
134 if (memcmp(Tag, tag, BUF_LEN) != 0) { in verify_cmac_null_msg()
165 if (memcmp(Tag, tag, BUF_LEN) != 0) { in verify_cmac_1_block_msg()
200 if (memcmp(Tag, tag, BUF_LEN) != 0) { in verify_cmac_320_bit_msg()
238 if (memcmp(Tag, tag, BUF_LEN) != 0) { in verify_cmac_512_bit_msg()
/Zephyr-Core-3.6.0/tests/drivers/uart/uart_async_api/src/
Dtest_uart_wide.c94 zassert_not_equal(memcmp(tx_buf, rx_buf, 5), 0, in ZTEST_USER()
107 zassert_equal(memcmp(tx_buf, rx_buf, 5), 0, "Buffers not equal"); in ZTEST_USER()
108 zassert_not_equal(memcmp(tx_buf, rx_buf+5, 5), 0, "Buffers not equal"); in ZTEST_USER()
121 zassert_equal(memcmp(tx_buf, rx_buf+5, 5), 0, "Buffers not equal"); in ZTEST_USER()
Dtest_uart_async.c153 zassert_equal(memcmp(tx_buf, tdata.rx_first_buffer, tdata.recv_bytes_first_buffer), 0, in tdata_check_recv_buffers()
155 zassert_equal(memcmp(tx_buf + tdata.recv_bytes_first_buffer, tdata.rx_second_buffer, in tdata_check_recv_buffers()
177 zassert_not_equal(memcmp(tx_buf, tdata.rx_first_buffer, 5), 0, in ZTEST_USER()
384 zassert_equal(memcmp(tx_buf, chained_cpy_buf, sizeof(tx_buf)), 0, in ZTEST_USER()
450 zassert_equal(memcmp(tx_buf, read_ptr, sizeof(tx_buf)), in ZTEST_USER()
541 zassert_equal(memcmp(tx_buf, rx_buf, 5), 0, "Buffers not equal"); in ZTEST_USER()
553 zassert_not_equal(memcmp(tx_buf, test_read_abort_read_buf, 100), 0, "Buffers equal"); in ZTEST_USER()
625 zassert_equal(memcmp(tx_buf, test_rx_buf, 5), 0, "Buffers not equal"); in ZTEST_USER()
707 zassert_equal(memcmp(tx_buf, rx_buf, 100), 0, "Buffers not equal"); in ZTEST_USER()
775 zassert_equal(memcmp(chained_write_tx_bufs[0], rx_buf, 10), in ZTEST_USER()
[all …]
/Zephyr-Core-3.6.0/tests/drivers/eeprom/api/src/
Dmain.c56 rc = memcmp(wr_buf1, rd_buf, sizeof(wr_buf1)); in ZTEST_USER()
70 rc = memcmp(wr_buf2, rd_buf, sizeof(wr_buf2)); in ZTEST_USER()
95 rc = memcmp(wr_buf1, rd_buf, sizeof(wr_buf1)); in ZTEST_USER()
133 rc = memcmp(wr_buf1, rd_buf, sizeof(wr_buf1)); in ZTEST_USER()
152 rc = memcmp(wr_buf1, rd_buf, sizeof(wr_buf1)); in ZTEST_USER()
161 rc = memcmp(wr_buf1, rd_buf, sizeof(wr_buf1)); in ZTEST_USER()
/Zephyr-Core-3.6.0/tests/kernel/stack/stack/src/
Dmain.c109 zassert_false(memcmp(tmp, data1, sizeof(tmp)), in thread_entry_fn_single()
134 zassert_false(memcmp(tmp, data2, sizeof(tmp)), in thread_entry_fn_dual()
142 zassert_false(memcmp(data_isr, data2, sizeof(data_isr)), in thread_entry_fn_isr()
187 zassert_false(memcmp(tmp, data2, sizeof(tmp)), in ZTEST_USER()
216 zassert_false(memcmp(tmp, data1, sizeof(tmp)), in ZTEST_USER()
247 zassert_false(memcmp(data_isr, data1, sizeof(data_isr)), in ZTEST()
/Zephyr-Core-3.6.0/tests/drivers/spi/spi_loopback/src/
Dspi.c135 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_multiple()
144 if (memcmp(buffer2_tx, buffer2_rx, BUF2_SIZE)) { in spi_complete_multiple()
192 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_loop()
248 if (memcmp(buffer_rx, EXPECTED_NOP_RETURN_BUF, BUF_SIZE)) { in spi_null_tx_buf()
296 if (memcmp(buffer_tx, buffer_rx, 8)) { in spi_rx_half_start()
354 if (memcmp(buffer_tx + 8, buffer_rx, 8)) { in spi_rx_half_end()
425 if (memcmp(buffer_tx + 4, buffer_rx, 4)) { in spi_rx_every_4()
432 } else if (memcmp(buffer_tx + 12, buffer_rx + 4, 4)) { in spi_rx_every_4()
491 if (memcmp(buffer_tx, buffer_rx, tx_buf_size)) { in spi_rx_bigger_than_tx()
502 if (memcmp(all_zeroes_buf, buffer_rx + tx_buf_size, BUF_SIZE - tx_buf_size)) { in spi_rx_bigger_than_tx()
[all …]
Dspi_rtio.c108 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_multiple()
117 if (memcmp(buffer2_tx, buffer2_rx, BUF2_SIZE)) { in spi_complete_multiple()
154 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_loop()
197 if (memcmp(buffer_rx, EXPECTED_NOP_RETURN_BUF, BUF_SIZE)) { in spi_null_tx_buf()
240 if (memcmp(buffer_tx, buffer_rx, 8)) { in spi_rx_half_start()
295 if (memcmp(buffer_tx + 8, buffer_rx, 8)) { in spi_rx_half_end()
362 if (memcmp(buffer_tx + 4, buffer_rx, 4)) { in spi_rx_every_4()
369 } else if (memcmp(buffer_tx + 12, buffer_rx + 4, 4)) { in spi_rx_every_4()
/Zephyr-Core-3.6.0/tests/subsys/usb/bos/src/
Dtest_bos.c191 zassert_true(!memcmp(hdr, &webusb_bos_descriptor, len) || in test_usb_bos_macros()
192 !memcmp(hdr, &webusb_bos_descriptor_2, len), in test_usb_bos_macros()
213 zassert_true(!memcmp(data, &webusb_bos_descriptor, len) || in test_usb_bos()
214 !memcmp(data, &webusb_bos_descriptor_2, len), in test_usb_bos()
/Zephyr-Core-3.6.0/samples/drivers/crypto/src/
Dmain.c160 if (memcmp(encrypt.out_buf, ecb_ciphertext, sizeof(ecb_ciphertext))) { in ecb_mode()
184 if (memcmp(decrypt.out_buf, ecb_plaintext, sizeof(ecb_plaintext))) { in ecb_mode()
247 if (memcmp(encrypt.out_buf, cbc_ciphertext, sizeof(cbc_ciphertext))) { in cbc_mode()
272 if (memcmp(decrypt.out_buf, plaintext, sizeof(plaintext))) { in cbc_mode()
337 if (memcmp(encrypt.out_buf, ctr_ciphertext, sizeof(ctr_ciphertext))) { in ctr_mode()
361 if (memcmp(decrypt.out_buf, plaintext, sizeof(plaintext))) { in ctr_mode()
448 if (memcmp(encrypt.out_buf, ccm_expected, sizeof(ccm_expected))) { in ccm_mode()
473 if (memcmp(decrypt.out_buf, ccm_data, sizeof(ccm_data))) { in ccm_mode()
565 if (memcmp(encrypt.out_buf, gcm_expected, sizeof(gcm_expected))) { in gcm_mode()
590 if (memcmp(decrypt.out_buf, gcm_data, sizeof(gcm_data))) { in gcm_mode()
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/gatt/authorization/src/
Dgatt_server_test.c160 if (memcmp(&unauthorized_chrc_ctx, &zeroed_chrc_ctx, sizeof(zeroed_chrc_ctx)) != 0) { in unhandled_chrc_operation_validate()
164 if (memcmp(&authorized_chrc_ctx, &zeroed_chrc_ctx, sizeof(zeroed_chrc_ctx)) != 0) { in unhandled_chrc_operation_validate()
182 if (memcmp(&unhandled_chrc_ctx, &zeroed_chrc_ctx, sizeof(zeroed_chrc_ctx)) != 0) { in unauthorized_chrc_operation_validate()
186 if (memcmp(&authorized_chrc_ctx, &zeroed_chrc_ctx, sizeof(zeroed_chrc_ctx)) != 0) { in unauthorized_chrc_operation_validate()
204 if (memcmp(&unhandled_chrc_ctx, &zeroed_chrc_ctx, sizeof(zeroed_chrc_ctx)) != 0) { in authorized_chrc_operation_validate()
208 if (memcmp(&unauthorized_chrc_ctx, &zeroed_chrc_ctx, sizeof(zeroed_chrc_ctx)) != 0) { in authorized_chrc_operation_validate()
/Zephyr-Core-3.6.0/tests/subsys/mgmt/mcumgr/fs_mgmt_hash_supported/src/
Dmain.c121 if (memcmp(key.value, expected_types[entry].name, MIN(key.len, in ZTEST()
146 if (memcmp(key.value, "format", strlen("format")) == 0) { in ZTEST()
151 } else if (memcmp(key.value, "size", strlen("size")) == 0) { in ZTEST()
/Zephyr-Core-3.6.0/tests/subsys/dfu/mcuboot_multi/src/
Dmain.c65 zassert_true(memcmp(&expectation[2], &readout[2], in _test_request_upgrade_n()
72 zassert_true(memcmp(expectation, readout, in _test_request_upgrade_n()
103 if (memcmp(img_magic, readout, sizeof(img_magic)) != 0) { in _test_write_confirm_n()
/Zephyr-Core-3.6.0/tests/subsys/dfu/mcuboot/src/
Dmain.c84 zassert(memcmp(expectation, readout, sizeof(expectation)) == 0, in ZTEST()
96 zassert(memcmp(&expectation[2], &readout[2], sizeof(expectation) - in ZTEST()
126 if (memcmp(img_magic, readout, sizeof(img_magic)) != 0) { in ZTEST()
/Zephyr-Core-3.6.0/subsys/llext/
Dllext_export.c15 EXPORT_SYMBOL(memcmp);
/Zephyr-Core-3.6.0/subsys/mgmt/mcumgr/util/src/
Dzcbor_bulk.c41 memcmp(key.value, dptr->key.value, key.len) == 0) { in zcbor_map_decode_bulk()
96 memcmp(key, dptr->key.value, key_len) == 0) { in zcbor_map_decode_bulk_key_found()
/Zephyr-Core-3.6.0/tests/subsys/modem/modem_cmux_pair/src/
Dmain.c357 zassert_true(memcmp(buffer2, cmux_frame_data_dlci2_at_cgdcont, in ZTEST()
361 zassert_true(memcmp(&buffer2[sizeof(cmux_frame_data_dlci2_at_cgdcont)], in ZTEST()
387 zassert_true(memcmp(buffer1, cmux_frame_data_dlci1_at_at, in ZTEST()
391 zassert_true(memcmp(&buffer1[sizeof(cmux_frame_data_dlci1_at_at)], in ZTEST()
418 zassert_true(memcmp(buffer2, cmux_frame_data_dlci2_ppp_52, in ZTEST()
422 zassert_true(memcmp(&buffer2[sizeof(cmux_frame_data_dlci2_ppp_52)], in ZTEST()
453 zassert_true(memcmp(buffer2, cmux_frame_data_dlci2_ppp_52, in ZTEST()
457 zassert_true(memcmp(&buffer2[sizeof(cmux_frame_data_dlci2_ppp_52)], in ZTEST()
/Zephyr-Core-3.6.0/tests/unit/timeutil/
Dtest_gmtime.c26 zassert_true(memcmp(&tm, tp, sizeof(tm)) == 0, in ZTEST()
/Zephyr-Core-3.6.0/drivers/ieee802154/
Dieee802154_uart_pipe.c61 if (memcmp(&rx_buffer[PAN_ID_OFFSET], in received_dest_addr_matched()
63 memcmp(&rx_buffer[PAN_ID_OFFSET], in received_dest_addr_matched()
73 if (memcmp(&rx_buffer[DEST_ADDR_OFFSET], in received_dest_addr_matched()
78 memcmp(&rx_buffer[DEST_ADDR_OFFSET], in received_dest_addr_matched()
89 memcmp(&rx_buffer[DEST_ADDR_OFFSET], in received_dest_addr_matched()
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/mesh/src/
Dtest_sar.c89 ASSERT_TRUE(memcmp(net_buf_simple_pull_mem(buf, MAX_SDU_MSG_LEN), dummy_msg, in data_integrity_check()
268 ASSERT_EQUAL(0, memcmp(&rx_cfg, &test_sar_rx, sizeof(test_sar_rx))); in test_srv_cfg_store()
269 ASSERT_EQUAL(0, memcmp(&tx_cfg, &test_sar_tx, sizeof(test_sar_tx))); in test_srv_cfg_store()
285 ASSERT_EQUAL(0, memcmp(&rx_cfg, &test_sar_rx, sizeof(test_sar_rx))); in test_srv_cfg_restore()
286 ASSERT_EQUAL(0, memcmp(&tx_cfg, &test_sar_tx, sizeof(test_sar_tx))); in test_srv_cfg_restore()
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/adv/encrypted/css_sample_data/src/
Dcentral.c27 if (memcmp(sample_data->randomizer_little_endian, data->data, in data_parse_cb()
44 } else if (memcmp(decrypted_buf.data, sample_data->ad_data, decrypted_data_size)) { in data_parse_cb()
/Zephyr-Core-3.6.0/tests/net/ip-addr/src/
Dmain.c289 zassert_false(memcmp(net_ipv6_unspecified_address(), &any, sizeof(any)), in ZTEST()
301 zassert_false(tmp && memcmp(tmp, &addr6.s6_addr, in ZTEST()
308 zassert_false(tmp && !memcmp(tmp, &any, sizeof(struct in6_addr)), in ZTEST()
333 zassert_false(memcmp(out->s6_addr, &addr6_pref2.s6_addr, in ZTEST()
346 zassert_false(memcmp(out->s6_addr, &any.s6_addr, in ZTEST()
361 zassert_false(memcmp(out->s6_addr, &addr6.s6_addr, in ZTEST()
585 zassert_false(memcmp(out->s6_addr, &lla.s6_addr, in ZTEST()
595 zassert_false(memcmp(out->s6_addr, &ml_eid.s6_addr, in ZTEST()

12345678910>>...12