/Zephyr-latest/subsys/net/lib/shell/ |
D | pkt.c | 85 size_t len; in get_net_pkt() local 92 len = hex2bin(ptr_str, strlen(ptr_str), buf, sizeof(buf)); in get_net_pkt() 93 if (!len) { in get_net_pkt() 97 for (i = len - 1; i >= 0; i--) { in get_net_pkt() 98 ptr |= buf[i] << 8 * (len - 1 - i); in get_net_pkt() 117 buf->len, net_buf_max_len(buf), buf->size); in net_pkt_buffer_info() 142 shell_hexdump(sh, buf->data, buf->len); in net_pkt_buffer_hexdump()
|
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/gatt/ |
D | service_d_2.c | 55 void *buf, uint16_t len, uint16_t offset) in read_value_v11__128_bit_uuid() argument 59 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_value_v11__128_bit_uuid() 77 uint16_t len, uint16_t offset) in read_value_v12() argument 81 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_value_v12()
|
D | service_d_3.c | 55 uint16_t len, uint16_t offset) in read_value_v12() argument 59 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_value_v12() 77 void *buf, uint16_t len, uint16_t offset) in read_value_v11__128_bit_uuid() argument 81 return bt_gatt_attr_read(conn, attr, buf, len, offset, value, in read_value_v11__128_bit_uuid()
|
/Zephyr-latest/drivers/eeprom/ |
D | eeprom_tmp116.c | 30 const void *data, size_t len) in eeprom_tmp116_write() argument 34 return tmp116_eeprom_write(config->parent, offset, data, len); in eeprom_tmp116_write() 38 size_t len) in eeprom_tmp116_read() argument 42 return tmp116_eeprom_read(config->parent, offset, data, len); in eeprom_tmp116_read()
|
/Zephyr-latest/lib/os/ |
D | cbprintf_packaged.c | 233 int cbvprintf_package(void *packaged, size_t len, uint32_t flags, in cbvprintf_package() argument 306 buf += len % CBPRINTF_PACKAGE_ALIGNMENT; in cbvprintf_package() 320 len = CBPRINTF_PACKAGE_ALIGNMENT - (len % CBPRINTF_PACKAGE_ALIGNMENT); in cbvprintf_package() 327 if ((buf0 != NULL) && (BUF_OFFSET + sizeof(char *)) > len) { in cbvprintf_package() 361 if (buf0 != NULL && BUF_OFFSET + size > len) { in cbvprintf_package() 436 if ((BUF_OFFSET + size) > len) { in cbvprintf_package() 583 if (BUF_OFFSET + size > len) { in cbvprintf_package() 609 if ((buf0 != NULL) && (BUF_OFFSET + size) > len) { in cbvprintf_package() 664 len += 1; in cbvprintf_package() 670 len += 2; in cbvprintf_package() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | large_comp_data_srv.c | 54 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in handle_large_comp_data_get() 55 bt_hex(buf->data, buf->len)); in handle_large_comp_data_get() 76 net_buf_simple_add_le16(&rsp, temp_buf.len); in handle_large_comp_data_get() 77 if (offset > temp_buf.len) { in handle_large_comp_data_get() 84 (msg_space < (temp_buf.len - offset)) ? msg_space : temp_buf.len - offset); in handle_large_comp_data_get() 116 ctx->net_idx, ctx->app_idx, ctx->addr, buf->len, in handle_models_metadata_get() 117 bt_hex(buf->data, buf->len)); in handle_models_metadata_get()
|
D | settings.c | 68 ssize_t len; in bt_mesh_settings_set() local 70 len = read_cb(cb_arg, out, read_len); in bt_mesh_settings_set() 71 if (len < 0) { in bt_mesh_settings_set() 72 LOG_ERR("Failed to read value (err %zd)", len); in bt_mesh_settings_set() 73 return len; in bt_mesh_settings_set() 76 LOG_HEXDUMP_DBG(out, len, "val"); in bt_mesh_settings_set() 78 if (len != read_len) { in bt_mesh_settings_set() 79 LOG_ERR("Unexpected value length (%zd != %zu)", len, read_len); in bt_mesh_settings_set()
|
/Zephyr-latest/tests/bsim/bluetooth/host/l2cap/split/tester/src/ |
D | main.c | 143 LOG_HEXDUMP_ERR(buf->data, buf->len, "HCI META EVT"); in handle_meta_event() 224 __ASSERT_NO_MSG(buf->len == hdr->len); in handle_l2cap() 225 LOG_DBG("Packet for CID %u len %u", cid, buf->len); in handle_l2cap() 226 LOG_HEXDUMP_DBG(buf->data, buf->len, "l2cap"); in handle_l2cap() 243 uint16_t len, handle; in handle_acl() local 247 len = sys_le16_to_cpu(hdr->len); in handle_acl() 256 LOG_DBG("ACL: conn %d len %d flags %d", handle, len, flags); in handle_acl() 257 LOG_HEXDUMP_DBG(buf->data, buf->len, "HCI ACL"); in handle_acl() 264 LOG_HEXDUMP_DBG(buf->data, buf->len, "HCI RX"); in recv() 285 LOG_HEXDUMP_ERR(buf->data, buf->len, "HCI EVT"); in recv() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | flash.h | 130 size_t len); 140 const void *data, size_t len); 200 void *data, size_t len); 246 size_t len); 250 size_t len) in z_impl_flash_read() argument 255 return api->read(dev, offset, data, len); in z_impl_flash_read() 278 size_t len); 281 const void *data, size_t len) in z_impl_flash_write() argument 287 rc = api->write(dev, offset, data, len); in z_impl_flash_write() 512 void *data, size_t len); [all …]
|
/Zephyr-latest/scripts/build/ |
D | uf2conv.py | 43 numblocks = len(buf) // 512 109 if len(families_found) > 1 and familyid == 0x0: 115 outp = "const unsigned long bindata_len = %d;\n" % len(file_content) 117 for i in range(len(file_content)): 127 while len(datapadding) < 512 - 256 - 32 - 4: 129 numblocks = (len(file_content) + 255) // 256 140 while len(chunk) < 256: 143 assert len(block) == 512 161 while len(hd) < 512 - 4: 177 while i < len(line) - 1: [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | audio.c | 48 const uint8_t len = ltv[i]; in bt_audio_data_parse() local 51 if (i + len > size || len < sizeof(data.type)) { in bt_audio_data_parse() 52 LOG_DBG("Invalid len %u at i = %zu", len, i); in bt_audio_data_parse() 60 data.data_len = len - sizeof(data.type); in bt_audio_data_parse() 205 void *buf, uint16_t len, uint16_t offset) in bt_audio_read_chrc() argument 222 return user_data->read(conn, attr, buf, len, offset); in bt_audio_read_chrc() 226 const void *buf, uint16_t len, uint16_t offset, uint8_t flags) in bt_audio_write_chrc() argument 243 return user_data->write(conn, attr, buf, len, offset, flags); in bt_audio_write_chrc()
|
/Zephyr-latest/subsys/net/ip/ |
D | tcp_internal.h | 300 int net_tcp_queue(struct net_context *context, const void *data, size_t len, 304 size_t len, const struct msghdr *msg) in net_tcp_queue() argument 308 ARG_UNUSED(len); in net_tcp_queue() 377 const void *value, size_t len); 381 const void *value, size_t len) in net_tcp_set_option() argument 386 ARG_UNUSED(len); in net_tcp_set_option() 403 void *value, size_t *len); 407 void *value, size_t *len) in net_tcp_get_option() argument 412 ARG_UNUSED(len); in net_tcp_get_option()
|
/Zephyr-latest/soc/mediatek/mt8xxx/ |
D | gen_img.py | 78 end = off + len(dat) 79 if end > len(buf): 80 buf.extend(b'\x00' * (end - len(buf))) 83 for i in range(len(dat)): 93 of.write(struct.pack("<III", FILE_MAGIC, len(sram), boot_vector))
|
/Zephyr-latest/tests/subsys/settings/file/src/ |
D | settings_test_compress_file.c | 89 uint32_t len; in file_str_cmp() local 103 len = entry.size; in file_str_cmp() 104 buf = (char *)k_malloc(len + 1); in file_str_cmp() 107 rc = fsutil_read_file(fname, 0, len, buf, &rlen); in file_str_cmp() 112 if (memcmp(buf, string, len)) { in file_str_cmp()
|
/Zephyr-latest/include/zephyr/llext/ |
D | buf_loader.h | 33 size_t len; member 39 int llext_buf_read(struct llext_loader *ldr, void *buf, size_t len); 61 .len = (_buf_len), \
|
/Zephyr-latest/arch/arm64/core/ |
D | elf.c | 301 int len; /* bit length of immediate value */ in imm_reloc_handler() local 314 len = 12; in imm_reloc_handler() 319 len = 11; in imm_reloc_handler() 323 len = 10; in imm_reloc_handler() 328 len = 9; in imm_reloc_handler() 333 len = 8; in imm_reloc_handler() 341 len = 19; in imm_reloc_handler() 348 len = 21; in imm_reloc_handler() 355 len = 14; in imm_reloc_handler() 363 len = 21; in imm_reloc_handler() [all …]
|
/Zephyr-latest/subsys/usb/device/class/ |
D | bluetooth.c | 163 buf->data, buf->len, in hci_tx_thread() 169 buf->data, buf->len, in hci_tx_thread() 204 uint16_t len = 0; in hci_pkt_get_len() local 213 len = cmd_hdr->param_len + hdr_len; in hci_pkt_get_len() 221 len = sys_le16_to_cpu(acl_hdr->len) + hdr_len; in hci_pkt_get_len() 229 len = bt_iso_hdr_len(sys_le16_to_cpu(iso_hdr->len)) + hdr_len; in hci_pkt_get_len() 237 return (size < hdr_len) ? 0 : len; in hci_pkt_get_len() 295 LOG_DBG("len %u, chunk %u", buf->len, size); in acl_read_cb() 298 if (buf != NULL && pkt_len == buf->len) { in acl_read_cb() 416 int32_t *len, uint8_t **data) in bluetooth_class_handler() argument [all …]
|
/Zephyr-latest/soc/nxp/imx/imx8/adsp/ |
D | linker.ld | 34 len = MEM_RESET_TEXT_SIZE 37 len = MEM_RESET_LIT_SIZE 40 len = MEM_VECBASE_LIT_SIZE 43 len = MEM_VECT_LIT_SIZE 46 len = MEM_VECT_TEXT_SIZE 49 len = MEM_VECT_LIT_SIZE 52 len = MEM_VECT_TEXT_SIZE 55 len = MEM_VECT_LIT_SIZE 58 len = MEM_VECT_TEXT_SIZE 61 len = MEM_VECT_LIT_SIZE [all …]
|
/Zephyr-latest/soc/nxp/imx/imx8m/adsp/ |
D | linker.ld | 34 len = MEM_RESET_TEXT_SIZE 37 len = MEM_RESET_LIT_SIZE 40 len = MEM_VECBASE_LIT_SIZE 43 len = MEM_VECT_LIT_SIZE 46 len = MEM_VECT_TEXT_SIZE 49 len = MEM_VECT_LIT_SIZE 52 len = MEM_VECT_TEXT_SIZE 55 len = MEM_VECT_LIT_SIZE 58 len = MEM_VECT_TEXT_SIZE 61 len = MEM_VECT_LIT_SIZE [all …]
|
/Zephyr-latest/soc/nxp/imx/imx8ulp/adsp/ |
D | linker.ld | 34 len = MEM_RESET_TEXT_SIZE 37 len = MEM_RESET_LIT_SIZE 40 len = MEM_VECBASE_LIT_SIZE 43 len = MEM_VECT_LIT_SIZE 46 len = MEM_VECT_TEXT_SIZE 49 len = MEM_VECT_LIT_SIZE 52 len = MEM_VECT_TEXT_SIZE 55 len = MEM_VECT_LIT_SIZE 58 len = MEM_VECT_TEXT_SIZE 61 len = MEM_VECT_LIT_SIZE [all …]
|
/Zephyr-latest/soc/nxp/imx/imx8x/adsp/ |
D | linker.ld | 34 len = MEM_RESET_TEXT_SIZE 37 len = MEM_RESET_LIT_SIZE 40 len = MEM_VECBASE_LIT_SIZE 43 len = MEM_VECT_LIT_SIZE 46 len = MEM_VECT_TEXT_SIZE 49 len = MEM_VECT_LIT_SIZE 52 len = MEM_VECT_TEXT_SIZE 55 len = MEM_VECT_LIT_SIZE 58 len = MEM_VECT_TEXT_SIZE 61 len = MEM_VECT_LIT_SIZE [all …]
|
/Zephyr-latest/drivers/entropy/ |
D | entropy_neorv32_trng.c | 60 static int neorv32_trng_get_entropy(const struct device *dev, uint8_t *buffer, uint16_t len) in neorv32_trng_get_entropy() argument 64 while (len > 0) { in neorv32_trng_get_entropy() 69 len--; in neorv32_trng_get_entropy() 77 uint16_t len, uint32_t flags) in neorv32_trng_get_entropy_isr() argument 93 err = neorv32_trng_get_entropy(dev, buffer, len); in neorv32_trng_get_entropy_isr() 98 return len; in neorv32_trng_get_entropy_isr()
|
/Zephyr-latest/subsys/net/lib/wifi_credentials/ |
D | wifi_credentials_backend_settings.c | 32 static int zephyr_settings_backend_load_val_cb(const char *key, size_t len, in zephyr_settings_backend_load_val_cb() argument 43 if (len != arg->buf_len) { in zephyr_settings_backend_load_val_cb() 51 if (length_read < len) { in zephyr_settings_backend_load_val_cb() 62 static int zephyr_settings_backend_load_key_cb(const char *key, size_t len, in zephyr_settings_backend_load_key_cb() argument 80 if (len < sizeof(struct wifi_credentials_header)) { in zephyr_settings_backend_load_key_cb() 89 if (length_read < len) { in zephyr_settings_backend_load_key_cb()
|
/Zephyr-latest/tests/bluetooth/host/data/bt_data_parse/src/ |
D | main.c | 136 size_t len; member 145 zassert_true(ud->len-- > 0); in bt_data_parse_func_custom_fake() 150 zassert_true(ud->len-- > 0); in bt_data_parse_func_custom_fake() 155 zassert_true(ud->len >= data->data_len); in bt_data_parse_func_custom_fake() 158 ud->len -= data->data_len; in bt_data_parse_func_custom_fake() 183 .len = ARRAY_SIZE(data), in ZTEST()
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | buf_util.h | 57 static inline int buf_read(uint8_t *dst, uint16_t len, uint8_t *src, uint16_t src_len, in buf_read() argument 64 if (*offset + len > src_len) { in buf_read() 70 memcpy(dst, src + *offset, len); in buf_read() 73 *offset += len; in buf_read() 77 static inline int buf_skip(uint16_t len, uint8_t *src, uint16_t src_len, uint16_t *offset) in buf_skip() argument 79 return buf_read(NULL, len, src, src_len, offset); in buf_skip()
|