Lines Matching refs:nb

38 static struct net_buf *nb;  variable
79 if (nb != NULL) { in cleanup_test()
80 net_buf_unref(nb); in cleanup_test()
81 nb = NULL; in cleanup_test()
137 nb = smp_dummy_get_outgoing(); in ZTEST()
141 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST()
142 header = (struct smp_hdr *)nb->data; in ZTEST()
152 zassert_mem_equal(&nb->data[(TEST_RESPONSE_OK_LENGTH - TEST_RESPONSE_OK_DATA_LENGTH)], in ZTEST()
191 nb = smp_dummy_get_outgoing(); in ZTEST()
195 zassert_equal(nb->len, TEST_RESPONSE_ERROR_LENGTH, "SMP response mismatch"); in ZTEST()
196 header = (struct smp_hdr *)nb->data; in ZTEST()
206 zassert_mem_equal(&nb->data[(TEST_RESPONSE_ERROR_LENGTH - in ZTEST()
267 nb = smp_dummy_get_outgoing(); in ZTEST()
271 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST()
272 header = (struct smp_hdr *)nb->data; in ZTEST()
282 zassert_mem_equal(&nb->data[(TEST_RESPONSE_OK_LENGTH - TEST_RESPONSE_OK_DATA_LENGTH)], in ZTEST()
321 nb = smp_dummy_get_outgoing(); in ZTEST()
325 zassert_equal(nb->len, TEST_RESPONSE_ERROR_LENGTH, "SMP response mismatch"); in ZTEST()
326 header = (struct smp_hdr *)nb->data; in ZTEST()
336 zassert_mem_equal(&nb->data[(TEST_RESPONSE_ERROR_LENGTH - in ZTEST()
408 nb = smp_dummy_get_outgoing(); in ZTEST()
412 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST()
413 header = (struct smp_hdr *)nb->data; in ZTEST()
424 zassert_mem_equal(&nb->data[(TEST_RESPONSE_OK_LENGTH - TEST_RESPONSE_OK_DATA_LENGTH)], in ZTEST()
469 nb = smp_dummy_get_outgoing(); in ZTEST()
473 zassert_true(nb->len > TEST_RESPONSE_READ_LENGTH, "SMP response mismatch"); in ZTEST()
475 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
490 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST()
573 nb = smp_dummy_get_outgoing(); in ZTEST()
577 zassert_true(nb->len > TEST_RESPONSE_READ_LENGTH, "SMP response mismatch"); in ZTEST()
579 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
593 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST()
667 nb = smp_dummy_get_outgoing(); in ZTEST()
671 zassert_equal(nb->len, TEST_RESPONSE_ERROR_LENGTH, "SMP response mismatch"); in ZTEST()
672 header = (struct smp_hdr *)nb->data; in ZTEST()
683 zassert_mem_equal(&nb->data[(TEST_RESPONSE_ERROR_LENGTH - in ZTEST()
728 nb = smp_dummy_get_outgoing(); in ZTEST()
732 zassert_true(nb->len > TEST_RESPONSE_READ_LENGTH, "SMP response mismatch"); in ZTEST()
734 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
748 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST()
798 nb = smp_dummy_get_outgoing(); in ZTEST()
802 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST()
803 header = (struct smp_hdr *)nb->data; in ZTEST()
814 zassert_mem_equal(&nb->data[(TEST_RESPONSE_OK_LENGTH - TEST_RESPONSE_OK_DATA_LENGTH)], in ZTEST()
858 nb = smp_dummy_get_outgoing(); in ZTEST()
862 zassert_true(nb->len > TEST_RESPONSE_READ_LENGTH, "SMP response mismatch"); in ZTEST()
864 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
878 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST()
953 nb = smp_dummy_get_outgoing(); in ZTEST()
957 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST()
958 header = (struct smp_hdr *)nb->data; in ZTEST()
969 zassert_mem_equal(&nb->data[(TEST_RESPONSE_OK_LENGTH - TEST_RESPONSE_OK_DATA_LENGTH)], in ZTEST()
1011 nb = smp_dummy_get_outgoing(); in ZTEST()
1015 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST()
1017 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
1071 nb = smp_dummy_get_outgoing(); in ZTEST()
1075 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST()
1076 header = (struct smp_hdr *)nb->data; in ZTEST()
1087 zassert_mem_equal(&nb->data[(TEST_RESPONSE_OK_LENGTH - TEST_RESPONSE_OK_DATA_LENGTH)], in ZTEST()
1130 nb = smp_dummy_get_outgoing(); in ZTEST()
1134 zassert_true(nb->len > TEST_RESPONSE_READ_LENGTH, "SMP response mismatch"); in ZTEST()
1136 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
1150 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST()
1197 nb = smp_dummy_get_outgoing(); in ZTEST()
1201 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST()
1203 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
1257 nb = smp_dummy_get_outgoing(); in ZTEST()
1261 zassert_true(nb->len > TEST_RESPONSE_READ_LENGTH, "SMP response mismatch"); in ZTEST()
1263 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
1277 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST()
1325 nb = smp_dummy_get_outgoing(); in ZTEST()
1329 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST()
1331 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
1385 nb = smp_dummy_get_outgoing(); in ZTEST()
1389 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST()
1390 header = (struct smp_hdr *)nb->data; in ZTEST()
1401 zassert_mem_equal(&nb->data[(TEST_RESPONSE_OK_LENGTH - TEST_RESPONSE_OK_DATA_LENGTH)], in ZTEST()
1443 nb = smp_dummy_get_outgoing(); in ZTEST()
1447 zassert_equal(nb->len, TEST_RESPONSE_OK_LENGTH, "SMP response mismatch"); in ZTEST()
1449 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
1502 nb = smp_dummy_get_outgoing(); in ZTEST()
1506 zassert_true(nb->len > TEST_RESPONSE_READ_LENGTH, "SMP response mismatch"); in ZTEST()
1508 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
1522 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST()