/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/src/ |
D | fs_mgmt_hash_checksum_crc32.c | 24 ssize_t bytes_read = 0; in fs_mgmt_hash_checksum_crc32() local 37 bytes_read = fs_read(file, buffer, read_size); in fs_mgmt_hash_checksum_crc32() 39 if (bytes_read < 0) { in fs_mgmt_hash_checksum_crc32() 42 } else if (bytes_read > 0) { in fs_mgmt_hash_checksum_crc32() 43 crc32 = crc32_ieee_update(crc32, buffer, bytes_read); in fs_mgmt_hash_checksum_crc32() 44 *out_len += bytes_read; in fs_mgmt_hash_checksum_crc32() 46 } while (bytes_read > 0 && *out_len < len); in fs_mgmt_hash_checksum_crc32()
|
D | fs_mgmt_hash_checksum_sha256.c | 40 ssize_t bytes_read = 0; in fs_mgmt_hash_checksum_sha256() local 60 bytes_read = fs_read(file, buffer, read_size); in fs_mgmt_hash_checksum_sha256() 62 if (bytes_read < 0) { in fs_mgmt_hash_checksum_sha256() 65 } else if (bytes_read > 0) { in fs_mgmt_hash_checksum_sha256() 66 if (hash_update(&hash_ctx, buffer, bytes_read) != SUCCESS_VALUE) { in fs_mgmt_hash_checksum_sha256() 70 *out_len += bytes_read; in fs_mgmt_hash_checksum_sha256() 72 } while (bytes_read > 0 && *out_len < len); in fs_mgmt_hash_checksum_sha256()
|
D | fs_mgmt.c | 209 ssize_t bytes_read = 0; in fs_mgmt_file_download() local 320 bytes_read = fs_read(&fs_mgmt_ctxt.file, file_data, MCUMGR_GRP_FS_DL_CHUNK_SIZE); in fs_mgmt_file_download() 322 if (bytes_read < 0) { in fs_mgmt_file_download() 329 fs_mgmt_ctxt.off += bytes_read; in fs_mgmt_file_download() 334 zcbor_bstr_encode_ptr(zse, file_data, bytes_read) && in fs_mgmt_file_download()
|
/Zephyr-latest/subsys/bluetooth/services/ |
D | dis.c | 169 static void read_udi_subval(const char *str, uint16_t val_len, char *buf, uint16_t *bytes_read, in read_udi_subval() argument 177 if (*bytes_read == len) { in read_udi_subval() 187 if (*index >= offset && *bytes_read < len) { in read_udi_subval() 188 buf[*bytes_read] = str[i]; in read_udi_subval() 190 (*bytes_read)++; in read_udi_subval() 200 uint16_t bytes_read = 0; in read_udi() local 209 bytes_read = 1U; in read_udi() 213 &bytes_read, &index, len, offset); in read_udi() 215 &bytes_read, &index, len, offset); in read_udi() 217 &bytes_read, &index, len, offset); in read_udi() [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_util.c | 165 for (uint32_t offs = 0, N = size, bytes_read = 0, bytes_left = N; offs < N; in z_impl_flash_copy() local 166 offs += bytes_read, bytes_left -= bytes_read) { in z_impl_flash_copy() 175 bytes_read = MIN(MAX(bytes_left, write_size), buf_size); in z_impl_flash_copy() 176 ret = flash_read(src_dev, src_offset + offs, buf, bytes_read); in z_impl_flash_copy() 183 ret = flash_write(dst_dev, dst_offset + offs, buf, bytes_read); in z_impl_flash_copy()
|
D | flash_simulator.c | 82 STATS_SECT_ENTRY32(bytes_read) /* total bytes read */ 100 STATS_NAME(flash_sim_stats, bytes_read) 206 FLASH_SIM_STATS_INCN(flash_sim_stats, bytes_read, len); in flash_sim_read()
|
/Zephyr-latest/doc/hardware/arch/ |
D | semihost.rst | 31 long file_len, bytes_read, fd; 42 bytes_read = semihost_read(fd, buffer, MIN(file_len, sizeof(buffer))); 43 if (bytes_read < 0) { 47 do_data_processing(buffer, bytes_read); 49 file_len -= bytes_read;
|
/Zephyr-latest/kernel/ |
D | pipes.c | 32 size_t *bytes_read, size_t min_xfer, 110 size_t bytes_read; in z_impl_k_pipe_flush() local 116 (void) pipe_get_internal(key, pipe, NULL, (size_t) -1, &bytes_read, 0U, in z_impl_k_pipe_flush() 134 size_t bytes_read; in z_impl_k_pipe_buffer_flush() local 142 &bytes_read, 0U, K_NO_WAIT); in z_impl_k_pipe_buffer_flush() 533 size_t *bytes_read, size_t min_xfer, in pipe_get_internal() argument 574 *bytes_read = 0; in pipe_get_internal() 663 *bytes_read = num_bytes_read; in pipe_get_internal() 691 *bytes_read = bytes_to_read - dest_desc->bytes_to_xfer; in pipe_get_internal() 700 size_t *bytes_read, size_t min_xfer, k_timeout_t timeout) in z_impl_k_pipe_get() argument [all …]
|
/Zephyr-latest/drivers/modem/ |
D | modem_iface_uart_interrupt.c | 105 uint8_t *buf, size_t size, size_t *bytes_read) in modem_iface_uart_read() argument 114 *bytes_read = 0; in modem_iface_uart_read() 119 *bytes_read = ring_buf_get(&data->rx_rb, buf, size); in modem_iface_uart_read() 121 if (data->hw_flow_control && *bytes_read == 0) { in modem_iface_uart_read()
|
D | modem_receiver.c | 166 uint8_t *buf, size_t size, size_t *bytes_read) in mdm_receiver_recv() argument 173 *bytes_read = 0; in mdm_receiver_recv() 177 *bytes_read = ring_buf_get(&ctx->rx_rb, buf, size); in mdm_receiver_recv()
|
D | modem_iface_uart_async.c | 85 uint8_t *buf, size_t size, size_t *bytes_read) in modem_iface_uart_async_read() argument 94 *bytes_read = 0; in modem_iface_uart_async_read() 100 *bytes_read = ring_buf_get(&data->rx_rb, buf, size); in modem_iface_uart_async_read()
|
D | modem_receiver.h | 63 uint8_t *buf, size_t size, size_t *bytes_read);
|
D | modem_context.h | 31 size_t *bytes_read);
|
D | modem_cmd_handler.c | 286 size_t bytes_read = 0; in cmd_handler_process_iface_data() local 320 &bytes_read); in cmd_handler_process_iface_data() 321 if (ret < 0 || bytes_read == 0) { in cmd_handler_process_iface_data() 326 net_buf_add(frag, bytes_read); in cmd_handler_process_iface_data()
|
D | wncm14a2a.c | 1021 size_t bytes_read = 0; in wncm14a2a_read_rx() local 1030 &bytes_read); in wncm14a2a_read_rx() 1031 if (ret < 0 || bytes_read == 0) { in wncm14a2a_read_rx() 1036 hexdump(uart_buffer, bytes_read); in wncm14a2a_read_rx() 1048 rx_len = net_buf_append_bytes(*buf, bytes_read, uart_buffer, in wncm14a2a_read_rx() 1052 if (rx_len < bytes_read) { in wncm14a2a_read_rx() 1054 rx_len, bytes_read); in wncm14a2a_read_rx()
|
/Zephyr-latest/samples/tfm_integration/psa_protected_storage/src/ |
D | main.c | 48 size_t bytes_read; in main() local 51 status = psa_ps_get(uid1, 0, sizeof(TEST_STRING_1), &stored_data, &bytes_read); in main()
|
/Zephyr-latest/drivers/serial/ |
D | uart_sam.c | 243 int bytes_read; in uart_sam_fifo_read() local 245 bytes_read = 0; in uart_sam_fifo_read() 247 while (bytes_read < size) { in uart_sam_fifo_read() 249 rx_data[bytes_read] = uart->UART_RHR; in uart_sam_fifo_read() 250 bytes_read++; in uart_sam_fifo_read() 256 return bytes_read; in uart_sam_fifo_read()
|
D | usart_sam.c | 335 int bytes_read; in usart_sam_fifo_read() local 337 bytes_read = 0; in usart_sam_fifo_read() 339 while (bytes_read < size) { in usart_sam_fifo_read() 341 rx_data[bytes_read] = usart->US_RHR; in usart_sam_fifo_read() 342 bytes_read++; in usart_sam_fifo_read() 348 return bytes_read; in usart_sam_fifo_read()
|
D | serial_test.c | 186 uint32_t bytes_read; in serial_vnd_poll_in() local 191 bytes_read = ring_buf_get(data->read_queue, c, 1); in serial_vnd_poll_in() 192 if (bytes_read == 1) { in serial_vnd_poll_in()
|
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/ |
D | main.c | 204 int bytes_read; in mqtt_event_handler() local 249 bytes_read = mqtt_read_publish_payload(&client_ctx, in mqtt_event_handler() 253 if (bytes_read < 0 && bytes_read != -EAGAIN) { in mqtt_event_handler() 258 data[bytes_read] = '\0'; in mqtt_event_handler() 260 len -= bytes_read; in mqtt_event_handler()
|
/Zephyr-latest/tests/kernel/pipe/pipe/src/ |
D | test_pipe.c | 908 size_t bytes_read = 0; in ZTEST_USER() local 916 res = k_pipe_get(&test_pipe, buf, sizeof(buf), &bytes_read, in ZTEST_USER() 919 zassert_equal(bytes_read, 3, "did not read all bytes available"); in ZTEST_USER() 1105 size_t bytes_read; in ZTEST() local 1123 &bytes_read, 0, K_MSEC(100)); in ZTEST() 1126 zassert_true(bytes_read == 0, in ZTEST() 1127 "k_pipe_get() unexpectedly read %zu bytes\n", bytes_read); in ZTEST() 1147 &bytes_read, 0, K_MSEC(100)); in ZTEST() 1150 zassert_true(bytes_read == 40, in ZTEST() 1151 "k_pipe_get() unexpectedly read %zu bytes\n", bytes_read); in ZTEST()
|
/Zephyr-latest/drivers/eeprom/ |
D | eeprom_simulator.c | 51 STATS_SECT_ENTRY32(bytes_read) /* total bytes read */ 61 STATS_NAME(eeprom_sim_stats, bytes_read) 121 STATS_INCN(eeprom_sim_stats, bytes_read, len); in eeprom_sim_read()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | i2c.h | 553 STATS_SECT_ENTRY32(bytes_read) 560 STATS_NAME(i2c, bytes_read) 589 uint32_t bytes_read = 0U; in i2c_xfer_stats() local 596 bytes_read += msgs[i].len; in i2c_xfer_stats() 601 STATS_INCN(state->stats, bytes_read, bytes_read); in i2c_xfer_stats()
|
/Zephyr-latest/subsys/usb/device/class/ |
D | msc.c | 766 uint32_t bytes_read = 0U; in mass_storage_bulk_out() local 772 &bytes_read); in mass_storage_bulk_out() 778 CBWDecode(bo_buf, bytes_read); in mass_storage_bulk_out() 787 memoryWrite(bo_buf, bytes_read); in mass_storage_bulk_out() 791 memoryVerify(bo_buf, bytes_read); in mass_storage_bulk_out()
|
/Zephyr-latest/doc/kernel/services/data_passing/ |
D | pipes.rst | 148 size_t bytes_read; 152 rc = k_pipe_get(&my_pipe, buffer, sizeof(buffer), &bytes_read, 155 if ((rc < 0) || (bytes_read < sizeof (*header))) { 158 } else if (header->num_data_bytes + sizeof(*header) > bytes_read) {
|