| /Zephyr-4.3.0/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 | 30 ssize_t bytes_read = 0; in fs_mgmt_hash_checksum_sha256() local 50 bytes_read = fs_read(file, buffer, read_size); in fs_mgmt_hash_checksum_sha256() 52 if (bytes_read < 0) { in fs_mgmt_hash_checksum_sha256() 55 } else if (bytes_read > 0) { in fs_mgmt_hash_checksum_sha256() 56 if (hash_update(&hash_ctx, buffer, bytes_read) != PSA_SUCCESS) { in fs_mgmt_hash_checksum_sha256() 60 *out_len += bytes_read; in fs_mgmt_hash_checksum_sha256() 62 } while (bytes_read > 0 && *out_len < len); in fs_mgmt_hash_checksum_sha256()
|
| D | fs_mgmt.c | 239 ssize_t bytes_read = 0; in fs_mgmt_file_download() local 350 bytes_read = fs_read(&fs_mgmt_ctxt.file, file_data, MCUMGR_GRP_FS_DL_CHUNK_SIZE); in fs_mgmt_file_download() 352 if (bytes_read < 0) { in fs_mgmt_file_download() 359 fs_mgmt_ctxt.off += bytes_read; in fs_mgmt_file_download() 364 zcbor_bstr_encode_ptr(zse, file_data, bytes_read) && in fs_mgmt_file_download()
|
| /Zephyr-4.3.0/drivers/entropy/ |
| D | entropy_mspm0_trng.c | 137 uint16_t bytes_read; in entropy_mspm0_trng_get_entropy() local 142 bytes_read = ring_buf_get(&data->entropy_pool, buffer, length); in entropy_mspm0_trng_get_entropy() 148 if (bytes_read == 0U) { in entropy_mspm0_trng_get_entropy() 154 buffer += bytes_read; in entropy_mspm0_trng_get_entropy() 155 length -= bytes_read; in entropy_mspm0_trng_get_entropy() 168 uint16_t bytes_read; in entropy_mspm0_trng_get_entropy_isr() local 175 bytes_read = ring_buf_get(&data->entropy_pool, buffer, length); in entropy_mspm0_trng_get_entropy_isr() 176 total_read = bytes_read; in entropy_mspm0_trng_get_entropy_isr() 178 if ((bytes_read == length) || ((flags & ENTROPY_BUSYWAIT) == 0U)) { in entropy_mspm0_trng_get_entropy_isr() 185 buffer += bytes_read; in entropy_mspm0_trng_get_entropy_isr() [all …]
|
| /Zephyr-4.3.0/subsys/bluetooth/services/ |
| D | dis.c | 195 static void read_udi_subval(const char *str, uint16_t val_len, char *buf, uint16_t *bytes_read, in read_udi_subval() argument 203 if (*bytes_read == len) { in read_udi_subval() 213 if (*index >= offset && *bytes_read < len) { in read_udi_subval() 214 buf[*bytes_read] = str[i]; in read_udi_subval() 216 (*bytes_read)++; in read_udi_subval() 226 uint16_t bytes_read = 0; in read_udi() local 235 bytes_read = 1U; in read_udi() 239 &bytes_read, &index, len, offset); in read_udi() 241 &bytes_read, &index, len, offset); in read_udi() 243 &bytes_read, &index, len, offset); in read_udi() [all …]
|
| /Zephyr-4.3.0/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 | 84 STATS_SECT_ENTRY32(bytes_read) /* total bytes read */ 102 STATS_NAME(flash_sim_stats, bytes_read) 224 FLASH_SIM_STATS_INCN(flash_sim_stats, bytes_read, len); in flash_sim_read()
|
| /Zephyr-4.3.0/doc/kernel/services/data_passing/ |
| D | pipes.rst | 144 size_t bytes_read = 0; 149 bytes_read = 0; 151 while (bytes_read < sizeof(*header)) { 152 …rc = k_pipe_read(&my_pipe, &buffer[bytes_read], sizeof(*header) - bytes_read, &bytes_read, K_NO_WA… 161 bytes_read += rc; 165 bytes_read = 0; 166 while (bytes_read < header->num_data_bytes) { 167 …c = k_pipe_read(&my_pipe, &buffer[sizeof(*header) + bytes_read], header->num_data_bytes - bytes_re… 176 bytes_read += rc;
|
| /Zephyr-4.3.0/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 | 280 size_t bytes_read = 0; in cmd_handler_process_iface_data() local 314 &bytes_read); in cmd_handler_process_iface_data() 315 if (ret < 0 || bytes_read == 0) { in cmd_handler_process_iface_data() 320 net_buf_add(frag, bytes_read); in cmd_handler_process_iface_data()
|
| /Zephyr-4.3.0/doc/hardware/arch/ |
| D | semihost.rst | 34 long file_len, bytes_read, fd; 45 bytes_read = semihost_read(fd, buffer, MIN(file_len, sizeof(buffer))); 46 if (bytes_read < 0) { 50 do_data_processing(buffer, bytes_read); 52 file_len -= bytes_read;
|
| /Zephyr-4.3.0/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-4.3.0/subsys/settings/src/ |
| D | settings_tfm_psa.c | 107 size_t bytes_read; in load_entries() local 124 status = SETTINGS_PSA_GET(uid, 0, read_size, data_ptr, &bytes_read); in load_entries() 129 data_ptr += bytes_read; in load_entries() 130 remaining -= bytes_read; in load_entries()
|
| /Zephyr-4.3.0/samples/net/cloud/mqtt_azure/src/ |
| D | main.c | 211 int bytes_read; in mqtt_event_handler() local 256 bytes_read = mqtt_read_publish_payload(&client_ctx, in mqtt_event_handler() 260 if (bytes_read < 0 && bytes_read != -EAGAIN) { in mqtt_event_handler() 265 data[bytes_read] = '\0'; in mqtt_event_handler() 267 len -= bytes_read; in mqtt_event_handler()
|
| /Zephyr-4.3.0/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 | 349 int bytes_read; in usart_sam_fifo_read() local 351 bytes_read = 0; in usart_sam_fifo_read() 353 while (bytes_read < size) { in usart_sam_fifo_read() 355 rx_data[bytes_read] = usart->US_RHR; in usart_sam_fifo_read() 356 bytes_read++; in usart_sam_fifo_read() 362 return bytes_read; in usart_sam_fifo_read()
|
| D | serial_test.c | 188 uint32_t bytes_read; in serial_vnd_poll_in() local 193 bytes_read = ring_buf_get(data->read_queue, c, 1); in serial_vnd_poll_in() 194 if (bytes_read == 1) { in serial_vnd_poll_in()
|
| /Zephyr-4.3.0/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-4.3.0/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-4.3.0/tests/drivers/modem/modem_cmd_handler/src/ |
| D | main.c | 79 size_t len, size_t *bytes_read) in mock_modem_iface_receive_data() argument 82 *bytes_read = 0; in mock_modem_iface_receive_data() 90 *bytes_read = response_delayed_len; in mock_modem_iface_receive_data()
|
| /Zephyr-4.3.0/include/zephyr/drivers/ |
| D | i2c.h | 583 STATS_SECT_ENTRY32(bytes_read) 590 STATS_NAME(i2c, bytes_read) 619 uint32_t bytes_read = 0U; in i2c_xfer_stats() local 626 bytes_read += msgs[i].len; in i2c_xfer_stats() 631 STATS_INCN(state->stats, bytes_read, bytes_read); in i2c_xfer_stats()
|