Lines Matching full:nb
63 static struct net_buf *nb; variable
146 nb = smp_dummy_get_outgoing(); in ZTEST()
150 zassert_equal(sizeof(response_old), nb->len, "Expected received data length mismatch"); in ZTEST()
151 zassert_mem_equal(response_old, nb->data, nb->len, "Expected received data mismatch"); in ZTEST()
154 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
158 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST()
233 nb = smp_dummy_get_outgoing(); in ZTEST()
237 zassert_equal(sizeof(response_current), nb->len, "Expected received data length mismatch"); in ZTEST()
238 zassert_mem_equal(response_current, nb->data, nb->len, "Expected received data mismatch"); in ZTEST()
241 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
245 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST()
319 nb = smp_dummy_get_outgoing(); in ZTEST()
323 zassert_equal(sizeof(response_new), nb->len, "Expected received data length mismatch"); in ZTEST()
324 zassert_mem_equal(response_new, nb->data, nb->len, "Expected received data mismatch"); in ZTEST()
327 smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr)); in ZTEST()
331 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST()
358 if (nb != NULL) { in cleanup_test()
359 net_buf_unref(nb); in cleanup_test()
360 nb = NULL; in cleanup_test()