Home
last modified time | relevance | path

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

12345678910>>...14

/Zephyr-latest/tests/subsys/pm/power_states_api/src/
Dmain.c58 zassert_true(memcmp(infos, dts_infos, ARRAY_SIZE(dts_infos)) == 0, in ZTEST()
60 zassert_true(memcmp(states, dts_states, ARRAY_SIZE(dts_states)) == 0, in ZTEST()
63 zassert_false(memcmp(wrong_states, dts_states, ARRAY_SIZE(dts_states)) == 0, in ZTEST()
72 zassert_true(memcmp(cpu_states, dts_infos, ARRAY_SIZE(dts_infos)) == 0, in ZTEST()
/Zephyr-latest/tests/posix/c_lib_ext/src/
Dgetentropy.c51 zassert_true(memcmp(buf1, zero, sizeof(zero)) != 0); in ZTEST()
52 zassert_true(memcmp(buf2, zero, sizeof(zero)) != 0); in ZTEST()
53 zassert_true(memcmp(buf1, buf2, sizeof(buf1)) != 0); in ZTEST()
/Zephyr-latest/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()
133 if (memcmp(Tag, tag, BUF_LEN) != 0) { in verify_cmac_null_msg()
163 if (memcmp(Tag, tag, BUF_LEN) != 0) { in verify_cmac_1_block_msg()
197 if (memcmp(Tag, tag, BUF_LEN) != 0) { in verify_cmac_320_bit_msg()
234 if (memcmp(Tag, tag, BUF_LEN) != 0) { in verify_cmac_512_bit_msg()
/Zephyr-latest/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-latest/tests/subsys/modem/modem_chat/src/
Dmain.c327 zassert_true(memcmp(buffer, "AT\r", sizeof("AT\r") - 1) == 0, in ZTEST()
341 zassert_true(memcmp(buffer, "ATE0\r\n", sizeof("ATE0\r\n") - 1) == 0, in ZTEST()
355 zassert_true(memcmp(buffer, "IMEI?\r\n", sizeof("IMEI?\r\n") - 1) == 0, in ZTEST()
367 zassert_true(memcmp(argv_buffers[1], "23412354123123", sizeof("23412354123123")) == 0, in ZTEST()
380 zassert_true(memcmp(buffer, "AT+CREG?;+CGREG?\r\n", sizeof("AT+CREG?;+CGREG?\r\n") - 1) == in ZTEST()
388 zassert_true(memcmp(argv_buffers[0], "CREG: ", sizeof("CREG: ")) == 0, "Unexpected argv"); in ZTEST()
389 zassert_true(memcmp(argv_buffers[1], "1", sizeof("1")) == 0, "Unexpected argv"); in ZTEST()
390 zassert_true(memcmp(argv_buffers[2], "2", sizeof("2")) == 0, "Unexpected argv"); in ZTEST()
396 zassert_true(memcmp(argv_buffers[0], "CGREG: ", sizeof("CGREG: ")) == 0, "Unexpected argv"); in ZTEST()
397 zassert_true(memcmp(argv_buffers[1], "10", sizeof("10")) == 0, "Unexpected argv"); in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/modem/modem_cmux/src/
Dmain.c350 zassert_true(memcmp(buffer2, cmux_frame_data_dlci2_at_cgdcont, in ZTEST()
354 zassert_true(memcmp(&buffer2[sizeof(cmux_frame_data_dlci2_at_cgdcont)], in ZTEST()
380 zassert_true(memcmp(buffer1, cmux_frame_data_dlci1_at_at, in ZTEST()
384 zassert_true(memcmp(&buffer1[sizeof(cmux_frame_data_dlci1_at_at)], in ZTEST()
409 zassert_true(memcmp(buffer2, cmux_frame_data_dlci2_ppp_52, in ZTEST()
413 zassert_true(memcmp(&buffer2[sizeof(cmux_frame_data_dlci2_ppp_52)], in ZTEST()
465 zassert_true(memcmp(buffer1, cmux_frame_data_dlci1_at_at, in ZTEST()
469 zassert_true(memcmp(&buffer1[sizeof(cmux_frame_data_dlci1_at_at)], in ZTEST()
488 zassert_true(memcmp(buffer1, cmux_frame_control_fcoff_ack, in ZTEST()
508 zassert_true(memcmp(buffer1, cmux_frame_control_fcon_ack, in ZTEST()
[all …]
/Zephyr-latest/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.c184 zassert_equal(memcmp(tx_buf, tdata.rx_first_buffer, tdata.recv_bytes_first_buffer), 0, in tdata_check_recv_buffers()
186 zassert_equal(memcmp(tx_buf + tdata.recv_bytes_first_buffer, tdata.rx_second_buffer, in tdata_check_recv_buffers()
208 zassert_not_equal(memcmp(tx_buf, tdata.rx_first_buffer, 5), 0, in ZTEST_USER()
433 zassert_equal(memcmp(tx_buf, chained_cpy_buf, sizeof(tx_buf)), 0, in ZTEST_USER()
509 zassert_equal(memcmp(tx_buf, read_ptr, sizeof(tx_buf)), in ZTEST_USER()
612 zassert_equal(memcmp(tx_buf, rx_buf, 5), 0, "Buffers not equal"); in ZTEST_USER()
624 zassert_not_equal(memcmp(tx_buf, test_read_abort_read_buf, 100), 0, "Buffers equal"); in ZTEST_USER()
706 zassert_equal(memcmp(tx_buf, test_rx_buf, 5), 0, "Buffers not equal"); in ZTEST_USER()
795 zassert_equal(memcmp(tx_buf, rx_buf, 100), 0, "Buffers not equal"); in ZTEST_USER()
875 zassert_equal(memcmp(chained_write_tx_bufs[0], rx_buf, 10), in ZTEST_USER()
[all …]
/Zephyr-latest/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-latest/tests/drivers/spi/spi_loopback/src/
Dspi.c140 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_multiple()
149 if (memcmp(buffer2_tx, buffer2_rx, BUF2_SIZE)) { in spi_complete_multiple()
197 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_loop()
253 if (memcmp(buffer_rx, EXPECTED_NOP_RETURN_BUF, BUF_SIZE)) { in spi_null_tx_buf()
301 if (memcmp(buffer_tx, buffer_rx, 8)) { in spi_rx_half_start()
359 if (memcmp(buffer_tx + 8, buffer_rx, 8)) { in spi_rx_half_end()
430 if (memcmp(buffer_tx + 4, buffer_rx, 4)) { in spi_rx_every_4()
437 } else if (memcmp(buffer_tx + 12, buffer_rx + 4, 4)) { in spi_rx_every_4()
501 if (memcmp(buffer_tx, buffer_rx, tx_buf_size)) { in spi_rx_bigger_than_tx()
512 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-latest/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-latest/tests/subsys/usb/bos/src/
Dtest_bos.c193 zassert_true(!memcmp(hdr, &webusb_bos_descriptor, len) || in test_usb_bos_macros()
194 !memcmp(hdr, &webusb_bos_descriptor_2, len), in test_usb_bos_macros()
215 zassert_true(!memcmp(data, &webusb_bos_descriptor, len) || in test_usb_bos()
216 !memcmp(data, &webusb_bos_descriptor_2, len), in test_usb_bos()
/Zephyr-latest/samples/drivers/crypto/src/
Dmain.c162 if (memcmp(encrypt.out_buf, ecb_ciphertext, sizeof(ecb_ciphertext))) { in ecb_mode()
186 if (memcmp(decrypt.out_buf, ecb_plaintext, sizeof(ecb_plaintext))) { in ecb_mode()
249 if (memcmp(encrypt.out_buf, cbc_ciphertext, sizeof(cbc_ciphertext))) { in cbc_mode()
274 if (memcmp(decrypt.out_buf, plaintext, sizeof(plaintext))) { in cbc_mode()
339 if (memcmp(encrypt.out_buf, ctr_ciphertext, sizeof(ctr_ciphertext))) { in ctr_mode()
363 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()
560 if (memcmp(encrypt.out_buf, gcm_expected, sizeof(gcm_expected))) { in gcm_mode()
585 if (memcmp(decrypt.out_buf, gcm_data, sizeof(gcm_data))) { in gcm_mode()
/Zephyr-latest/samples/drivers/spi_flash/src/
Dmain.c81 if (memcmp(erased, buf, len) != 0) { in single_sector_test()
104 if (memcmp(expected, buf, len) == 0) { in single_sector_test()
157 if (memcmp(erased, buf, len) != 0) { in multi_sector_test()
186 if (memcmp(expected, buf, len) == 0) { in multi_sector_test()
/Zephyr-latest/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-latest/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-latest/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-latest/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-latest/subsys/llext/
Dllext_export.c15 EXPORT_SYMBOL(memcmp);
/Zephyr-latest/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-latest/tests/unit/timeutil/
Dtest_gmtime.c26 zassert_true(memcmp(&tm, tp, sizeof(tm)) == 0, in ZTEST()
/Zephyr-latest/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-latest/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-latest/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()

12345678910>>...14