/Zephyr-Core-3.5.0/tests/bluetooth/mesh/blob_io_flash/src/ |
D | main.c | 53 struct bt_mesh_blob_chunk chunk = { 0 }; in ZTEST() local 94 chunk.data = chunk_data; in ZTEST() 121 chunk.size = chunk_size(&block, chunk_idx); in ZTEST() 122 chunk.offset = CHUNK_SIZE * chunk_idx; in ZTEST() 124 err = blob_flash_stream.io.rd(&blob_flash_stream.io, &xfer, &block, &chunk); in ZTEST() 126 err, block.offset + chunk.offset, chunk.size); in ZTEST() 128 zassert_mem_equal(&chunk_data, &test_data[tests_data_offset], chunk.size, in ZTEST() 132 remaining -= chunk.size; in ZTEST() 133 tests_data_offset += chunk.size; in ZTEST() 142 chunk.offset++; in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/scripts/build/ |
D | file2hex.py | 49 def make_hex(chunk): argument 50 hexdata = codecs.encode(chunk, 'hex').decode("utf-8") 68 for chunk in iter(lambda: content.read(8), b''): 69 make_hex(chunk) 74 for chunk in iter(lambda: fp.read(8), b''): 75 make_hex(chunk) 78 for chunk in iter(lambda: fp.read(min(8, remainder)), b''): 79 make_hex(chunk) 80 remainder = remainder - len(chunk)
|
D | uf2conv.py | 121 chunk = file_content[ptr:ptr + 256] 128 while len(chunk) < 256: 129 chunk += b"\x00" 130 block = hd + chunk + datapadding + struct.pack(b"<I", UF2_MAGIC_END)
|
/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/ |
D | blob_io_flash.c | 98 const struct bt_mesh_blob_chunk *chunk) in rd_chunk() argument 103 flash->offset + block->offset + chunk->offset, in rd_chunk() 104 chunk->data, chunk->size); in rd_chunk() 110 const struct bt_mesh_blob_chunk *chunk) in wr_chunk() argument 115 off_t area_offset = flash->offset + block->offset + chunk->offset; in wr_chunk() 122 memcpy(&buf[i], chunk->data, chunk->size); in wr_chunk() 123 i += chunk->size; in wr_chunk()
|
D | blob_srv.c | 130 static void buf_chunk_index_add(struct net_buf_simple *buf, uint16_t chunk) in buf_chunk_index_add() argument 133 if (chunk < 0x80) { in buf_chunk_index_add() 134 net_buf_simple_add_u8(buf, chunk); in buf_chunk_index_add() 135 } else if (chunk < 0x8000) { in buf_chunk_index_add() 136 net_buf_simple_add_u8(buf, 0xc0 | chunk >> 6); in buf_chunk_index_add() 137 net_buf_simple_add_u8(buf, 0x80 | (chunk & BIT_MASK(6))); in buf_chunk_index_add() 139 net_buf_simple_add_u8(buf, 0xe0 | chunk >> 12); in buf_chunk_index_add() 140 net_buf_simple_add_u8(buf, 0x80 | ((chunk >> 6) & BIT_MASK(6))); in buf_chunk_index_add() 141 net_buf_simple_add_u8(buf, 0x80 | (chunk & BIT_MASK(6))); in buf_chunk_index_add() 685 struct bt_mesh_blob_chunk chunk; in handle_chunk() local [all …]
|
D | blob_cli.c | 678 struct bt_mesh_blob_chunk chunk; in chunk_tx() local 684 chunk.size = chunk_size(cli->xfer, &cli->block, cli->chunk_idx); in chunk_tx() 685 chunk.offset = cli->xfer->chunk_size * cli->chunk_idx; in chunk_tx() 686 chunk.data = net_buf_simple_add(&buf, chunk.size); in chunk_tx() 688 err = cli->io->rd(cli->io, cli->xfer, &cli->block, &chunk); in chunk_tx()
|
/Zephyr-Core-3.5.0/doc/kernel/memory_management/ |
D | heap.rst | 64 chunks. The first chunk of every allocation or unused block is 65 prefixed by a chunk header that stores the length of the chunk, the 66 length of the next lower ("left") chunk in physical memory, a bit 67 indicating whether the chunk is in use, and chunk-indexed link 68 pointers to the previous and next chunk in a "free list" to which 149 A thread can dynamically allocate a chunk of heap memory by calling 150 :c:func:`k_malloc`. The address of the allocated chunk is 152 chunk of heap memory cannot be found ``NULL`` is returned. 154 When the thread is finished with a chunk of heap memory it can release 155 the chunk back to the system heap by calling :c:func:`k_free`. [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/mesh/ |
D | blob.h | 228 const struct bt_mesh_blob_chunk *chunk); 253 const struct bt_mesh_blob_chunk *chunk);
|
/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/shell/ |
D | blob.c | 38 const struct bt_mesh_blob_chunk *chunk) in blob_chunk_wr() argument 42 for (i = 0; i < chunk->size; ++i) { in blob_chunk_wr() 43 blob_rx_sum += chunk->data[i]; in blob_chunk_wr() 44 if (chunk->data[i] != in blob_chunk_wr() 45 blob_data[(i + chunk->offset) % sizeof(blob_data)]) { in blob_chunk_wr() 56 const struct bt_mesh_blob_chunk *chunk) in blob_chunk_rd() argument 58 for (int i = 0; i < chunk->size; ++i) { in blob_chunk_rd() 59 chunk->data[i] = in blob_chunk_rd() 60 blob_data[(i + chunk->offset) % sizeof(blob_data)]; in blob_chunk_rd()
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/grp/fs_mgmt/ |
D | Kconfig | 45 size/offset within CBOR frame with file chunk. 51 size/offset within CBOR frame with file chunk. 61 CBOR frame containing chunk of downloaded file. 69 bool "Setting custom size of download file chunk" 71 By default file chunk, that will be read off storage and fit into 75 allowed for such chunk. 81 int "Maximum chunk size for file downloads" 85 Sets the MAXIMUM size of chunk which will be rounded down to
|
/Zephyr-Core-3.5.0/doc/connectivity/bluetooth/api/mesh/ |
D | blob_flash.rst | 27 The BLOB Flash Writer copies chunk data into a buffer to accommodate chunks that are unaligned with 29 the chunk is unaligned.
|
D | blob_cli.rst | 108 callback, and the resulting capabilities can be used to determine the block and chunk sizes required 117 block size in logarithmic representation and the chunk size. The BLOB ID is application defined, but
|
D | blob_srv.rst | 20 and chunk only once. The BLOB Transfer Server also ensures that any missing chunks are resent by the
|
/Zephyr-Core-3.5.0/lib/os/ |
D | Kconfig.heap | 21 smallest chunk level (the one that might not fit the 57 Heaps using reduced-size chunk headers can accommodate so called 60 Heaps using full-size chunk headers can have a total size up to 72 On 64-bit systems the "big" chunk header size conveniently provides 73 the needed alignment on returned memory allocations. Small chunk
|
/Zephyr-Core-3.5.0/subsys/usb/device/ |
D | usb_device.c | 244 uint32_t chunk = usb_dev.data_buf_residue; in usb_data_to_host() local 248 usb_dev.data_buf_residue, &chunk); in usb_data_to_host() 249 usb_dev.data_buf += chunk; in usb_data_to_host() 250 usb_dev.data_buf_residue -= chunk; in usb_data_to_host() 257 if (!usb_dev.data_buf_residue && chunk && in usb_data_to_host() 284 uint32_t chunk = 0U; in usb_handle_control_transfer() local 354 usb_dev.data_buf, 0, &chunk) < 0) { in usb_handle_control_transfer() 363 usb_dev.data_buf_residue, &chunk) < 0) { in usb_handle_control_transfer() 370 usb_dev.data_buf += chunk; in usb_handle_control_transfer() 371 usb_dev.data_buf_residue -= chunk; in usb_handle_control_transfer()
|
/Zephyr-Core-3.5.0/subsys/shell/modules/ |
D | devmem_service.c | 29 static char chunk[2]; variable 213 chunk[chunk_element] = *recv; in bypass_cb() 218 byte = (uint8_t)strtoul(chunk, NULL, 16); in bypass_cb()
|
/Zephyr-Core-3.5.0/scripts/west_commands/runners/ |
D | canopen_program.py | 284 chunk = infile.read(PROGRAM_DOWNLOAD_CHUNK_SIZE) 285 if not chunk: 287 outfile.write(chunk) 288 progress.next(n=len(chunk))
|
/Zephyr-Core-3.5.0/tests/boards/espressif_esp32/cache_coex/ |
D | README.rst | 10 a common cache. It does so by allocating a big PSRAM memory chunk and repeatedly filling that region
|
/Zephyr-Core-3.5.0/subsys/mgmt/hawkbit/ |
D | hawkbit.c | 473 struct hawkbit_dep_res_chunk *chunk; in hawkbit_parse_deployment() local 491 chunk = &res->deployment.chunks[0]; in hawkbit_parse_deployment() 492 if (strcmp("bApp", chunk->part)) { in hawkbit_parse_deployment() 493 LOG_ERR("Only part 'bApp' is supported; got %s", chunk->part); in hawkbit_parse_deployment() 497 num_artifacts = chunk->num_artifacts; in hawkbit_parse_deployment() 503 artifact = &chunk->artifacts[0]; in hawkbit_parse_deployment()
|
/Zephyr-Core-3.5.0/tests/lib/heap/src/ |
D | main.c | 128 size_t chunk = ROUND_DOWN(addr - 1, 8); in testalloc() local 129 size_t hdr = addr - chunk; in testalloc()
|
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/mesh/src/ |
D | test_blob.c | 77 const struct bt_mesh_blob_chunk *chunk) in blob_chunk_wr() argument 79 partial_block += chunk->size; in blob_chunk_wr() 103 const struct bt_mesh_blob_chunk *chunk) in blob_chunk_rd() argument 105 memset(chunk->data, 0, chunk->size); in blob_chunk_rd()
|
D | test_dfu.c | 99 const struct bt_mesh_blob_chunk *chunk) in dummy_blob_chunk_wr() argument 107 const struct bt_mesh_blob_chunk *chunk) in dummy_blob_chunk_rd() argument 109 memset(chunk->data, 0, chunk->size); in dummy_blob_chunk_rd()
|
/Zephyr-Core-3.5.0/drivers/spi/ |
D | Kconfig.nrfx | 64 using SPIM peripheral, so that the driver can copy there a chunk of
|
/Zephyr-Core-3.5.0/doc/services/device_mgmt/smp_groups/ |
D | smp_group_8.rst | 36 Request does not carry size of requested chunk, the size is specified 144 | "data" | chunk of data read from file; it is CBOR encoded stream of bytes with | 164 The protocol supports stateless upload where each requests carries different chunk 226 | "data" | chunk of data to write to the file; |
|
D | smp_group_1.rst | 260 The image upload request is sent for each chunk of image that is uploaded, until 298 | "off" | offset of image chunk the request carries. | 319 There is no field representing size of chunk that is carried as "data" because
|