Home
last modified time | relevance | path

Searched refs:buf_len (Results 1 – 25 of 126) sorted by relevance

123456

/Zephyr-latest/tests/bsim/bluetooth/host/att/read_fill_buf/server/
Dmain.c19 void *buf, uint16_t buf_len, uint16_t offset) in read_mtu_validation_chrc() argument
21 LOG_INF("buf_len %u", buf_len); in read_mtu_validation_chrc()
24 memset(buf, 0, buf_len); in read_mtu_validation_chrc()
27 sys_put_le16(buf_len, buf); in read_mtu_validation_chrc()
29 return buf_len; in read_mtu_validation_chrc()
/Zephyr-latest/subsys/net/lib/wifi_credentials/
Dwifi_credentials_backend_none.c11 int wifi_credentials_store_entry(size_t idx, const void *buf, size_t buf_len) in wifi_credentials_store_entry() argument
15 ARG_UNUSED(buf_len); in wifi_credentials_store_entry()
27 int wifi_credentials_load_entry(size_t idx, void *buf, size_t buf_len) in wifi_credentials_load_entry() argument
31 ARG_UNUSED(buf_len); in wifi_credentials_load_entry()
Dwifi_credentials_backend_settings.c26 size_t buf_len; member
43 if (len != arg->buf_len) { in zephyr_settings_backend_load_val_cb()
48 size_t length_read = read_cb(cb_arg, arg->buf, arg->buf_len); in zephyr_settings_backend_load_val_cb()
113 int wifi_credentials_store_entry(size_t idx, const void *buf, size_t buf_len) in wifi_credentials_store_entry() argument
125 return settings_save_one(settings_name_buf, buf, buf_len); in wifi_credentials_store_entry()
143 int wifi_credentials_load_entry(size_t idx, void *buf, size_t buf_len) in wifi_credentials_load_entry() argument
147 .buf_len = buf_len, in wifi_credentials_load_entry()
Dwifi_credentials_backend_psa.c43 int wifi_credentials_store_entry(size_t idx, const void *buf, size_t buf_len) in wifi_credentials_store_entry() argument
54 psa_set_key_bits(&key_attributes, buf_len * 8); in wifi_credentials_store_entry()
56 ret = psa_import_key(&key_attributes, buf, buf_len, &key_id); in wifi_credentials_store_entry()
80 int wifi_credentials_load_entry(size_t idx, void *buf, size_t buf_len) in wifi_credentials_load_entry() argument
86 ret = psa_export_key(key_id, buf, buf_len, &length_read); in wifi_credentials_load_entry()
92 if (buf_len != length_read) { in wifi_credentials_load_entry()
Dwifi_credentials_internal.h35 int wifi_credentials_store_entry(size_t idx, const void *buf, size_t buf_len);
53 int wifi_credentials_load_entry(size_t idx, void *buf, size_t buf_len);
/Zephyr-latest/modules/openthread/platform/
Dshell.c45 size_t buf_len = OT_SHELL_BUFFER_SIZE; in ot_cmd() local
55 buf_len -= arg_len + 1; in ot_cmd()
56 if (buf_len) { in ot_cmd()
62 arg_len = snprintk(buf_ptr, buf_len, "%s", argv[i]); in ot_cmd()
64 if (arg_len >= buf_len) { in ot_cmd()
72 buf_len -= arg_len; in ot_cmd()
/Zephyr-latest/tests/bluetooth/host/crypto/bt_rand/src/
Dmain.c44 size_t buf_len = 16; in ZTEST() local
51 err = bt_rand(buf, buf_len); in ZTEST()
73 size_t buf_len = 16; in ZTEST() local
79 err = bt_rand(buf, buf_len); in ZTEST()
81 expect_single_call_psa_generate_random(buf, buf_len); in ZTEST()
Dtest_suite_invalid_inputs.c68 size_t buf_len = 16; in ZTEST() local
75 err = bt_rand(buf, buf_len); in ZTEST()
97 size_t buf_len = 16; in ZTEST() local
103 err = bt_rand(buf, buf_len); in ZTEST()
105 expect_single_call_psa_generate_random(buf, buf_len); in ZTEST()
/Zephyr-latest/samples/subsys/rtio/sensor_batch_processing/
DREADME.rst44 D: sensor@0: buf_len = 16, buf = 0x8056430
45 D: sensor@0: buf_len = 16, buf = 0x8056440
46 D: sensor@0: buf_len = 16, buf = 0x8056450
47 D: sensor@0: buf_len = 16, buf = 0x8056460
65 D: sensor@0: buf_len = 16, buf = 0x8056470
66 D: sensor@0: buf_len = 16, buf = 0x8056480
67 D: sensor@0: buf_len = 16, buf = 0x8056490
70 D: sensor@0: buf_len = 16, buf = 0x8056430
71 D: sensor@0: buf_len = 16, buf = 0x8056440
72 D: sensor@0: buf_len = 16, buf = 0x8056450
[all …]
/Zephyr-latest/samples/subsys/rtio/sensor_batch_processing/src/
Dvnd_sensor.c30 uint32_t buf_len) in vnd_sensor_iodev_read() argument
37 LOG_DBG("%s: buf_len = %d, buf = %p", dev->name, buf_len, buf); in vnd_sensor_iodev_read()
43 if (buf_len < config->sample_size) { in vnd_sensor_iodev_read()
48 for (int i = 0; i < MIN(config->sample_size, buf_len); i++) { in vnd_sensor_iodev_read()
60 uint32_t buf_len; in vnd_sensor_iodev_execute() local
65 &buf_len); in vnd_sensor_iodev_execute()
69 result = vnd_sensor_iodev_read(dev, buf, buf_len); in vnd_sensor_iodev_execute()
/Zephyr-latest/tests/net/conn_mgr_conn/src/
Dmain.c628 size_t buf_len = 0; in ZTEST() local
637 buf_len = sizeof(buf); in ZTEST()
638 zassert_equal(conn_mgr_if_get_opt(ifa1, TEST_CONN_OPT_X, &buf, &buf_len), in ZTEST()
640 printk("%d, %d", buf_len, strlen(buf) + 1); in ZTEST()
641 zassert_equal(buf_len, strlen(buf) + 1, "conn_mgr_if_get_opt should return valid optlen"); in ZTEST()
647 buf_len = sizeof(buf); in ZTEST()
648 zassert_equal(conn_mgr_if_get_opt(ifa1, TEST_CONN_OPT_Y, &buf, &buf_len), in ZTEST()
650 zassert_equal(buf_len, 1, "conn_mgr_if_get_opt should yield nothing for ifa1->Y"); in ZTEST()
655 buf_len = sizeof(buf); in ZTEST()
656 zassert_equal(conn_mgr_if_get_opt(ifa2, TEST_CONN_OPT_X, &buf, &buf_len), in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/logging/log_immediate/src/
Dlog_immediate_test.c41 int buf_len = 8*id + 8; in thread_func() local
42 uint8_t *buf = alloca(buf_len); in thread_func()
46 LOG_HEXDUMP_INF(buf, buf_len, "data:"); in thread_func()
/Zephyr-latest/subsys/storage/stream/
Dstream_flash.c216 (buf_empty_bytes = ctx->buf_len - ctx->buf_bytes)) { in stream_flash_buffered_write()
220 ctx->buf_bytes = ctx->buf_len; in stream_flash_buffered_write()
250 size_t buf_len; member
259 if (ctx->buf_len > info->size) { in find_flash_total_size()
271 uint8_t *buf, size_t buf_len, size_t offset, size_t size, in stream_flash_init() argument
289 .buf_len = buf_len, in stream_flash_init()
296 if (buf_len % ctx->write_block_size) { in stream_flash_init()
318 ctx->buf_len = buf_len; in stream_flash_init()
/Zephyr-latest/include/zephyr/rtio/
Drtio.h310 uint32_t buf_len; /**< Length of buffer */ member
316 uint32_t buf_len; /**< Length of buffer */ member
322 uint8_t buf_len; /**< Length of tiny buffer */ member
334 uint32_t buf_len; /**< Length of tx and rx buffers */ member
585 sqe->rx.buf_len = len; in rtio_sqe_prep_read()
625 sqe->tx.buf_len = len; in rtio_sqe_prep_write()
653 sqe->tiny_tx.buf_len = tiny_write_len; in rtio_sqe_prep_tiny_write()
707 uint32_t buf_len, in rtio_sqe_prep_transceive() argument
714 sqe->txrx.buf_len = buf_len; in rtio_sqe_prep_transceive()
767 size_t max_sz, uint8_t **buf, uint32_t *buf_len) in rtio_block_pool_alloc() argument
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_nrfx_twim_common.c74 size_t buf_len, uint16_t i2c_addr) in i2c_nrfx_twim_msg_transfer() argument
81 .primary_length = buf_len, in i2c_nrfx_twim_msg_transfer()
86 if (buf_len > config->max_transfer_size) { in i2c_nrfx_twim_msg_transfer()
89 buf_len, config->max_transfer_size); in i2c_nrfx_twim_msg_transfer()
Di2c_nrfx_twim_rtio.c29 size_t buf_len, uint16_t i2c_addr) in i2c_nrfx_twim_rtio_msg_start() argument
35 ret = i2c_nrfx_twim_msg_transfer(dev, flags, buf, buf_len, i2c_addr); in i2c_nrfx_twim_rtio_msg_start()
53 sqe->rx.buf, sqe->rx.buf_len, dt_spec->addr); in i2c_nrfx_twim_rtio_start()
56 sqe->tiny_tx.buf, sqe->tiny_tx.buf_len, in i2c_nrfx_twim_rtio_start()
62 if (sqe->tx.buf_len > config->common.msg_buf_size) { in i2c_nrfx_twim_rtio_start()
70 sqe->tx.buf_len, config->common.msg_buf_size, dev->name); in i2c_nrfx_twim_rtio_start()
73 memcpy(config->common.msg_buf, sqe->tx.buf, sqe->tx.buf_len); in i2c_nrfx_twim_rtio_start()
77 sqe->tx.buf, sqe->tx.buf_len, dt_spec->addr); in i2c_nrfx_twim_rtio_start()
/Zephyr-latest/subsys/rtio/
Drtio_handlers.c32 valid_sqe &= K_SYSCALL_MEMORY(sqe->tx.buf, sqe->tx.buf_len, false); in rtio_vrfy_sqe()
36 valid_sqe &= K_SYSCALL_MEMORY(sqe->rx.buf, sqe->rx.buf_len, true); in rtio_vrfy_sqe()
42 valid_sqe &= K_SYSCALL_MEMORY(sqe->txrx.tx_buf, sqe->txrx.buf_len, true); in rtio_vrfy_sqe()
43 valid_sqe &= K_SYSCALL_MEMORY(sqe->txrx.rx_buf, sqe->txrx.buf_len, true); in rtio_vrfy_sqe()
/Zephyr-latest/doc/hardware/peripherals/sensor/
Dmultiple_temp_polling.c38 uint32_t buf_len; in main() local
61 rc = rtio_cqe_get_mempool_buffer(&temp_ctx, cqe, &buf, &buf_len); in main()
89 rtio_release_buffer(&temp_ctx, buf, buf_len); in main()
Daccel_stream.c38 uint32_t buf_len; in main() local
54 rc = rtio_cqe_get_mempool_buffer(&accel_ctx, cqe, &buf, &buf_len); in main()
100 rtio_release_buffer(&accel_ctx, buf, buf_len); in main()
/Zephyr-latest/subsys/usb/device/class/netusb/
Dfunction_rndis.h71 uint32_t buf_len; member
125 uint32_t buf_len; member
134 uint32_t buf_len; member
177 uint32_t buf_len; member
/Zephyr-latest/tests/bsim/bluetooth/host/att/long_read/
Dmain.c40 void *buf, uint16_t buf_len, uint16_t offset) in read_mtu_validation_chrc() argument
44 LOG_INF("Server side buf_len %u", buf_len); in read_mtu_validation_chrc()
54 read_len = buf_len; in read_mtu_validation_chrc()
66 __ASSERT(buf_len < (BT_ATT_MAX_ATTRIBUTE_LEN / 2), in read_mtu_validation_chrc()
/Zephyr-latest/subsys/debug/gdbstub/
Dgdbstub.c229 static int gdb_get_packet(uint8_t *buf, size_t buf_len, size_t *len) in gdb_get_packet() argument
253 if (*len < (buf_len - 1)) { in gdb_get_packet()
283 if (*len >= (buf_len - 1)) { in gdb_get_packet()
291 static inline int gdb_mem_read_unaligned(uint8_t *buf, size_t buf_len, in gdb_mem_read_unaligned() argument
300 count += gdb_bin2hex(&data, 1, buf + count, buf_len - count); in gdb_mem_read_unaligned()
307 static inline int gdb_mem_read_aligned(uint8_t *buf, size_t buf_len, in gdb_mem_read_aligned() argument
351 buf + count, buf_len - count); in gdb_mem_read_aligned()
382 static int gdb_mem_read(uint8_t *buf, size_t buf_len, in gdb_mem_read() argument
392 if ((len * 2) > buf_len) { in gdb_mem_read()
403 ret = gdb_mem_read_aligned(buf, buf_len, in gdb_mem_read()
[all …]
/Zephyr-latest/include/zephyr/storage/
Dstream_flash.h58 size_t buf_len; /* Length of write buffer */ member
93 uint8_t *buf, size_t buf_len, size_t offset, size_t size,
/Zephyr-latest/include/zephyr/drivers/serial/
Duart_async_rx.h47 uint8_t buf_len; member
81 return async_rx->buf_len; in uart_async_rx_get_buf_len()
/Zephyr-latest/drivers/serial/
Duart_async_rx.c20 p += idx * (rx_data->buf_len + sizeof(struct uart_async_rx_buf)); in get_buf()
50 __ASSERT_NO_MSG(rx_buf->wr_idx <= rx_data->buf_len); in uart_async_rx_on_rdy()
144 rx_data->buf_len = (config->length / config->buf_cnt) - UART_ASYNC_RX_BUF_OVERHEAD; in uart_async_rx_init()
146 if (rx_data->buf_len >= BIT(7)) { in uart_async_rx_init()

123456