| /drivers/flash/ |
| A 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()
|
| A 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()
|
| /drivers/modem/ |
| A 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()
|
| A 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()
|
| A 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()
|
| A D | modem_receiver.h | 63 uint8_t *buf, size_t size, size_t *bytes_read);
|
| A D | modem_context.h | 31 size_t *bytes_read);
|
| A 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()
|
| A 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()
|
| A D | hl7800.c | 4481 size_t bytes_read, total_read; in hl7800_read_rx() local 4485 bytes_read = 0, total_read = 0; in hl7800_read_rx() 4490 sizeof(uart_buffer), &bytes_read); in hl7800_read_rx() 4491 if (ret < 0 || bytes_read == 0) { in hl7800_read_rx() 4498 bytes_read, "HL7800 RX"); in hl7800_read_rx() 4511 net_buf_append_bytes(*buf, bytes_read, uart_buffer, in hl7800_read_rx() 4514 if (rx_len < bytes_read) { in hl7800_read_rx() 4516 bytes_read); in hl7800_read_rx() 4518 total_read += bytes_read; in hl7800_read_rx()
|
| /drivers/serial/ |
| A 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()
|
| A 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()
|
| A 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()
|
| /drivers/eeprom/ |
| A 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()
|
| /drivers/bluetooth/hci/ |
| A D | hci_da1469x.c | 99 int bytes_read = rx.hdr_len - rx.remaining; in h4_read_hdr() local 102 ret = cmac_mbox_read(rx.hdr + bytes_read, rx.remaining); in h4_read_hdr()
|
| A D | h4.c | 113 int bytes_read = h4->rx.hdr_len - h4->rx.remaining; in h4_read_hdr() local 116 ret = uart_fifo_read(cfg->uart, h4->rx.hdr + bytes_read, h4->rx.remaining); in h4_read_hdr()
|