Home
last modified time | relevance | path

Searched refs:buf_count (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/lib/os/
Dprintk.c72 unsigned int buf_count; member
78 k_str_out(ctx->buf, ctx->buf_count); in buf_flush()
79 ctx->buf_count = 0U; in buf_flush()
86 ctx->buf[ctx->buf_count] = c; in buf_char_out()
87 ++ctx->buf_count; in buf_char_out()
88 if (ctx->buf_count == CONFIG_PRINTK_BUFFER_SIZE) { in buf_char_out()
123 if (ctx.buf_count) { in vprintk()
/Zephyr-latest/subsys/net/lib/shell/
Dmem.c82 PR("%p\t%d\t%ld\tEDATA (%s)\n", pool, pool->buf_count, in context_info()
85 PR("%p\t%d\tEDATA\n", pool, pool->buf_count); in context_info()
131 PR("%p\t%d\t%ld\t%d\tRX DATA (%s)\n", rx_data, rx_data->buf_count, in cmd_net_mem()
134 PR("%p\t%d\t%ld\t%d\tTX DATA (%s)\n", tx_data, tx_data->buf_count, in cmd_net_mem()
141 PR("%p\t%d\tRX DATA\n", rx_data, rx_data->buf_count); in cmd_net_mem()
142 PR("%p\t%d\tTX DATA\n", tx_data, tx_data->buf_count); in cmd_net_mem()
/Zephyr-latest/tests/lib/net_buf/buf/src/
Dmain.c108 struct net_buf *bufs[bufs_pool.buf_count]; in ZTEST()
112 for (i = 0; i < bufs_pool.buf_count; i++) { in ZTEST()
136 for (i = 0; i < bufs_pool.buf_count - 1; i++) { in ZTEST()
148 zassert_equal(destroy_called, bufs_pool.buf_count, in ZTEST()
167 zassert_equal(destroy_called, bufs_pool.buf_count, in test_3_thread()
187 for (i = 0; i < bufs_pool.buf_count - 1; i++) { in ZTEST()
212 struct net_buf *frags[bufs_pool.buf_count - 1]; in ZTEST()
226 for (i = 0; i < bufs_pool.buf_count - 2; i++) { in ZTEST()
245 zassert_equal(i, bufs_pool.buf_count - 1, "Incorrect fragment count"); in ZTEST()
270 zassert_equal(1 + i + removed, bufs_pool.buf_count, in ZTEST()
[all …]
/Zephyr-latest/tests/net/net_pkt/src/
Dmain.c1185 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count - bufs_to_allocate, in ZTEST()
1190 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count - bufs_to_allocate, in ZTEST()
1194 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count - bufs_to_allocate, in ZTEST()
1198 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count, in ZTEST()
1222 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count in test_net_pkt_shallow_clone_append_buf()
1238 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count in test_net_pkt_shallow_clone_append_buf()
1252 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count in test_net_pkt_shallow_clone_append_buf()
1261 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count, in test_net_pkt_shallow_clone_append_buf()
1267 tx_data->buf_count - bufs_frag, "Leak detected"); in test_net_pkt_shallow_clone_append_buf()
1275 zassert_equal(atomic_get(&tx_data->avail_count), tx_data->buf_count, in test_net_pkt_shallow_clone_append_buf()
/Zephyr-latest/drivers/usb_c/tcpc/
Dps8xxx.c219 int buf_count; in ps8xxx_tcpc_get_rx_pending_msg() local
263 buf_count = 5; in ps8xxx_tcpc_get_rx_pending_msg()
266 buf_count = 4; in ps8xxx_tcpc_get_rx_pending_msg()
269 buf_count = 3; in ps8xxx_tcpc_get_rx_pending_msg()
272 ret = i2c_transfer(cfg->bus.bus, buf, buf_count, cfg->bus.addr); in ps8xxx_tcpc_get_rx_pending_msg()
/Zephyr-latest/lib/net_buf/
Dbuf.c77 size_t byte_offset = (pool->buf_count - uninit_count) * struct_size; in pool_get_uninit()
257 if (pool->uninit_count < pool->buf_count) { in net_buf_alloc_len_debug()
342 pool->buf_count - atomic_get(&pool->avail_count)); in net_buf_alloc_len_debug()
454 __ASSERT_NO_MSG(atomic_get(&pool->avail_count) <= pool->buf_count); in net_buf_unref_debug()
/Zephyr-latest/doc/services/net_buf/
Dindex.rst25 NET_BUF_POOL_DEFINE(pool_name, buf_count, buf_size, user_data_size, NULL);
/Zephyr-latest/include/zephyr/
Dnet_buf.h1086 const uint16_t buf_count; member
1128 .buf_count = _count, \
/Zephyr-latest/doc/services/device_mgmt/smp_groups/
Dsmp_group_0.rst680 (str)"buf_count" : (uint)
714 | "buf_count" | Number of SMP buffers supported. |