Home
last modified time | relevance | path

Searched refs:user_data_size (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/lib/net_buf/
Dbuf.c65 size_t struct_size = ROUND_UP(sizeof(struct net_buf) + pool->user_data_size, in net_buf_id()
75 size_t struct_size = ROUND_UP(sizeof(struct net_buf) + pool->user_data_size, in pool_get_uninit()
83 buf->user_data_size = pool->user_data_size; in pool_get_uninit()
341 memset(buf->user_data, 0, buf->user_data_size); in net_buf_alloc_len_debug()
550 __ASSERT(buf->user_data_size == clone->user_data_size, "Unexpected user data size"); in net_buf_clone()
552 memcpy(clone->user_data, buf->user_data, clone->user_data_size); in net_buf_clone()
566 if (dst->user_data_size < src->user_data_size) { in net_buf_user_data_copy()
570 memcpy(dst->user_data, src->user_data, src->user_data_size); in net_buf_user_data_copy()
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/userdata/src/
Dmain_l2cap_userdata.c211 for (int i = 0; i < buf->user_data_size; i++) { in print_user_data()
251 (void)memset(buf->user_data, FILL, buf->user_data_size); in test_central_main()
/Zephyr-latest/tests/lib/net_buf/buf/src/
Dmain.c803 zassert_equal(USER_DATA_FIXED, fixed_pool.user_data_size, in ZTEST()
805 zassert_equal(USER_DATA_FIXED, buf->user_data_size, in ZTEST()
814 zassert_equal(USER_DATA_HEAP, bufs_pool.user_data_size, in ZTEST()
816 zassert_equal(USER_DATA_HEAP, buf->user_data_size, in ZTEST()
825 zassert_equal(USER_DATA_VAR, var_pool.user_data_size, in ZTEST()
827 zassert_equal(USER_DATA_VAR, buf->user_data_size, in ZTEST()
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/
Dsmp.c85 req_nb->user_data_size); in smp_alloc_rsp()
/Zephyr-latest/include/zephyr/
Dnet_buf.h1023 uint8_t user_data_size; member
1092 uint8_t user_data_size; member
1126 .user_data_size = _ud_size, \
/Zephyr-latest/doc/services/net_buf/
Dindex.rst25 NET_BUF_POOL_DEFINE(pool_name, buf_count, buf_size, user_data_size, NULL);
/Zephyr-latest/subsys/bluetooth/host/classic/
Dl2cap_br.c315 if (buf->user_data_size < sizeof(struct closure)) { in bt_l2cap_br_send_cb()
317 buf->user_data_size, in bt_l2cap_br_send_cb()
/Zephyr-latest/subsys/bluetooth/host/
Dl2cap.c737 if (pdu->user_data_size < sizeof(struct closure)) { in bt_l2cap_send_pdu()
739 pdu->user_data_size, in bt_l2cap_send_pdu()
Diso.c807 if (buf->user_data_size < CONFIG_BT_CONN_TX_USER_DATA_SIZE) { in conn_iso_send()
808 LOG_ERR("not enough room in user_data %d < %d pool %u", buf->user_data_size, in conn_iso_send()
Dconn.c975 memset(buf->user_data, 0, buf->user_data_size); in acl_get_and_clear_cb()