Lines Matching refs:clone
413 struct net_buf *buf, *clone; in ZTEST() local
421 clone = net_buf_clone(buf, K_NO_WAIT); in ZTEST()
422 zassert_not_null(clone, "Failed to get clone buffer"); in ZTEST()
423 zassert_equal(buf->data, clone->data, "Incorrect clone data pointer"); in ZTEST()
426 net_buf_unref(clone); in ZTEST()
433 struct net_buf *buf, *clone; in ZTEST() local
443 clone = net_buf_clone(buf, K_NO_WAIT); in ZTEST()
444 zassert_not_null(clone, "Failed to get clone buffer"); in ZTEST()
445 zassert_not_equal(buf->data, clone->data, in ZTEST()
447 zassert_mem_equal(clone->data, data, sizeof(data)); in ZTEST()
450 net_buf_unref(clone); in ZTEST()
458 struct net_buf *buf, *clone; in ZTEST() local
463 clone = net_buf_clone(buf, K_NO_WAIT); in ZTEST()
464 zassert_not_null(clone, "Failed to clone zero sized buffer"); in ZTEST()
471 struct net_buf *original, *clone; in ZTEST() local
480 clone = net_buf_clone(original, K_NO_WAIT); in ZTEST()
481 zassert_not_null(clone, "Failed to get clone buffer"); in ZTEST()
482 clone_user_data = net_buf_user_data(clone); in ZTEST()
486 net_buf_unref(clone); in ZTEST()