/btstack/platform/windows/ |
H A D | btstack_uart_block_windows.c | 124 DWORD bytes_read; in btstack_uart_windows_receive_engine() local 128 &bytes_read, // amount read in btstack_uart_windows_receive_engine() 133 if (bytes_read != read_bytes_len){ in btstack_uart_windows_receive_engine() 134 …indows_receive_block: requested read %u but %u were read", (int) read_bytes_len, (int) bytes_read); in btstack_uart_windows_receive_engine() 199 DWORD bytes_read; in btstack_uart_windows_process_read() local 200 BOOL ok = GetOverlappedResult(serial_port_handle, &overlapped_read, &bytes_read, FALSE); in btstack_uart_windows_process_read() 214 if (bytes_read != read_bytes_len){ in btstack_uart_windows_process_read() 215 …g("read: requested read %u but %u were read, try again", (int) read_bytes_len, (int) bytes_read); in btstack_uart_windows_process_read() 216 read_bytes_data += bytes_read; in btstack_uart_windows_process_read() 217 read_bytes_len -= (uint16_t) bytes_read; in btstack_uart_windows_process_read()
|
H A D | btstack_tlv_windows.c | 211 DWORD bytes_read; in btstack_tlv_windows_read_db() local 212 ok = ReadFile(self->file, entry, sizeof(entry), &bytes_read, NULL); in btstack_tlv_windows_read_db() 213 if ( ok && (bytes_read == 0)) { in btstack_tlv_windows_read_db() 219 if ( (ok == false) || (bytes_read != sizeof(entry))) { in btstack_tlv_windows_read_db()
|
/btstack/test/lc3/ |
H A D | lc3_decoder.c | 99 int bytes_read = __read(fd, read_buffer, min_header_size); in main() local 100 if (bytes_read != min_header_size) return -10; in main() 191 int bytes_read = __read(fd, read_buffer, 2); in main() local 192 if (2 != bytes_read) { in main() 205 int bytes_read = __read(fd, read_buffer, bytes_per_frame); in main() local 206 if (bytes_per_frame != bytes_read) { in main()
|
/btstack/platform/posix/ |
H A D | wav_util.c | 236 int bytes_read = 0; in wav_reader_read_int8() local 241 bytes_read += (uint16_t) fread(buf, 1, sizeof(buf), wav_reader_file);; in wav_reader_read_int8() 245 bytes_read += (uint16_t) fread(buf, 1, sizeof(buf), wav_reader_file);; in wav_reader_read_int8() 249 if (bytes_read == num_samples * wav_reader_bytes_per_sample) { in wav_reader_read_int8() 261 int bytes_read = 0; in wav_reader_read_int16() local 264 bytes_read += (uint16_t) fread(buf, 1, sizeof(buf), wav_reader_file);; in wav_reader_read_int16() 267 if (bytes_read == num_samples * wav_reader_bytes_per_sample) { in wav_reader_read_int16()
|
H A D | btstack_uart_posix.c | 140 …ssize_t bytes_read = read(ds->source.fd, btstack_uart_block_read_bytes_data, btstack_uart_block_re… in btstack_uart_block_posix_process_read() local 146 if (bytes_read == 0){ in btstack_uart_block_posix_process_read() 150 if (bytes_read < 0) { in btstack_uart_block_posix_process_read() 155 btstack_uart_block_read_bytes_len -= bytes_read; in btstack_uart_block_posix_process_read() 156 btstack_uart_block_read_bytes_data += bytes_read; in btstack_uart_block_posix_process_read() 512 …ssize_t bytes_read = read(ds->source.fd, btstack_uart_slip_receive_buffer, SLIP_RECEIVE_BUFFER_SIZ… in btstack_uart_slip_posix_process_read() local 514 log_debug("requested %u bytes, got %d", SLIP_RECEIVE_BUFFER_SIZE, (int) bytes_read); in btstack_uart_slip_posix_process_read() 519 if (bytes_read < 0) return; in btstack_uart_slip_posix_process_read() 522 btstack_uart_slip_receive_len = (uint16_t ) bytes_read; in btstack_uart_slip_posix_process_read()
|
H A D | btstack_sco_transport_posix_i2s_test_bridge.c | 138 ssize_t bytes_read = read(ds->source.fd, &sco_rx_buffer[sco_rx_bytes_read], bytes_to_read); in posix_i2s_test_bridge_process_read() local 139 if (bytes_read == 0){ in posix_i2s_test_bridge_process_read() 143 if (bytes_read < 0) { in posix_i2s_test_bridge_process_read() 147 sco_rx_bytes_read += bytes_read; in posix_i2s_test_bridge_process_read()
|
H A D | btstack_run_loop_posix.c | 268 ssize_t bytes_read = read(ds->source.fd, buffer, 1); in btstack_run_loop_posix_poll_data_sources_handler() local 269 UNUSED(bytes_read); in btstack_run_loop_posix_poll_data_sources_handler() 284 ssize_t bytes_read = read(ds->source.fd, buffer, 1); in btstack_run_loop_posix_process_callbacks_handler() local 285 UNUSED(bytes_read); in btstack_run_loop_posix_process_callbacks_handler()
|
/btstack/test/hfp/ |
H A D | sco_demo_util.c | 221 uint32_t bytes_read = 0; in playback_callback() local 222 …er_read(&audio_output_ring_buffer, (uint8_t *) buffer, num_samples * BYTES_PER_FRAME, &bytes_read); in playback_callback() 223 num_samples -= bytes_read / BYTES_PER_FRAME; in playback_callback() 224 buffer += bytes_read / BYTES_PER_FRAME; in playback_callback() 540 uint32_t bytes_read; in sco_demo_send() local 541 …ad(&audio_input_ring_buffer, (uint8_t*) sample_buffer, num_samples * BYTES_PER_FRAME, &bytes_read); in sco_demo_send() 582 uint32_t bytes_read = 0; in sco_demo_send() local 583 … btstack_ring_buffer_read(&audio_input_ring_buffer, sample_data, bytes_to_copy, &bytes_read); in sco_demo_send() 588 for (i=0;i<bytes_read;i+=2){ in sco_demo_send() 594 bytes_to_copy -= bytes_read; in sco_demo_send() [all …]
|
H A D | pklg_cvsd_test.c | 104 int bytes_read; in process_file() local 107 bytes_read = __read(fd, header, sizeof(header)); in process_file() 108 if (0 >= bytes_read) break; in process_file() 134 bytes_read = __read(fd, packet, size); in process_file()
|
/btstack/chipset/nxp/ |
H A D | btstack_chipset_nxp.c | 148 size_t bytes_read = fread(buffer, 1, bytes_to_read, nxp_firmware_file); in nxp_read_firmware() local 149 return bytes_read; in nxp_read_firmware() 240 uint16_t bytes_read = nxp_read_firmware(nxp_fw_request_len, nxp_output_buffer); in nxp_send_chunk_v1() local 241 if (bytes_read < nxp_fw_request_len){ in nxp_send_chunk_v1() 242 printf("only %u of %u bytes available, abort.\n", bytes_read, nxp_fw_request_len); in nxp_send_chunk_v1() 272 uint16_t bytes_read = nxp_read_firmware(nxp_fw_request_len, nxp_output_buffer); in nxp_send_chunk_v3() local 273 if (bytes_read < nxp_fw_request_len){ in nxp_send_chunk_v3() 274 printf("only %u of %u bytes available, abort.\n", bytes_read, nxp_fw_request_len); in nxp_send_chunk_v3()
|
/btstack/platform/daemon/binding/java/src/com/bluekitchen/btstack/ |
H A D | SocketConnectionTCP.java | 70 int bytes_read = Util.readExactly(in, inHeader, 0, 6); in receivePacket() local 71 if (bytes_read != 6) return null; in receivePacket() 77 bytes_read = Util.readExactly(in, inPayload, 0, len); in receivePacket() 78 if (bytes_read != len) return null; in receivePacket()
|
/btstack/platform/daemon/binding/java/android/com/bluekitchen/btstack/ |
H A D | SocketConnectionUnix.java | 69 int bytes_read = Util.readExactly(in, inHeader, 0, 6); in receivePacket() local 70 if (bytes_read != 6) return null; in receivePacket() 76 bytes_read = Util.readExactly(in, inPayload, 0, len); in receivePacket() 77 if (bytes_read != len) return null; in receivePacket()
|
/btstack/example/ |
H A D | sco_demo_util.c | 251 uint32_t bytes_read = 0; in audio_playback_callback() local 252 …er_read(&audio_output_ring_buffer, (uint8_t *) buffer, num_samples * BYTES_PER_FRAME, &bytes_read); in audio_playback_callback() 253 num_samples -= bytes_read / BYTES_PER_FRAME; in audio_playback_callback() 254 buffer += bytes_read / BYTES_PER_FRAME; in audio_playback_callback() 370 uint32_t bytes_read = 0; in sco_demo_cvsd_fill_payload() local 371 … btstack_ring_buffer_read(&audio_input_ring_buffer, payload_buffer, bytes_to_copy, &bytes_read); in sco_demo_cvsd_fill_payload() 382 bytes_to_copy -= bytes_read; in sco_demo_cvsd_fill_payload() 383 pos += bytes_read; in sco_demo_cvsd_fill_payload() 414 uint32_t bytes_read; in sco_demo_codec_fill_payload() local 415 …ad(&audio_input_ring_buffer, (uint8_t*) sample_buffer, num_samples * BYTES_PER_FRAME, &bytes_read); in sco_demo_codec_fill_payload()
|
/btstack/platform/daemon/src/ |
H A D | socket_connection.c | 132 uint16_t bytes_read; member 179 connection->bytes_read = 0; in socket_connection_init_statemachine() 264 …int bytes_read = recv(socket_fd, (char*) &conn->buffer[conn->bytes_read], conn->bytes_to_read, fla… in socket_connection_hci_process() local 266 int bytes_read = read(socket_fd, &conn->buffer[conn->bytes_read], conn->bytes_to_read); in socket_connection_hci_process() local 269 log_debug("socket_connection_hci_process fd %x, bytes read %d", socket_fd, bytes_read); in socket_connection_hci_process() 270 if (bytes_read <= 0){ in socket_connection_hci_process() 279 conn->bytes_read += bytes_read; in socket_connection_hci_process() 280 conn->bytes_to_read -= bytes_read; in socket_connection_hci_process()
|
/btstack/tool/ |
H A D | dump_h4.py | 21 bytes_read = f.read(13) 22 if bytes_read: 23 return struct.unpack(">IIIB", bytes_read)
|
H A D | dump_pklg.py | 21 bytes_read = f.read(13) 22 if bytes_read: 23 return struct.unpack(">IIIB", bytes_read)
|
H A D | dump_keys.py | 33 bytes_read = f.read(13) 34 if bytes_read: 35 return struct.unpack(">IIIB", bytes_read)
|
/btstack/test/sbc/ |
H A D | pklg_msbc_test.c | 122 int bytes_read; in process_file() local 125 bytes_read = __read(fd, header, sizeof(header)); in process_file() 126 if (0 >= bytes_read) break; in process_file() 146 bytes_read = __read(fd, packet, size); in process_file()
|
/btstack/chipset/bcm/ |
H A D | btstack_chipset_bcm.c | 149 size_t bytes_read = fread(hci_cmd_buffer, 1, 3, hcd_file); in chipset_next_command() local 150 if (bytes_read < 3){ in chipset_next_command() 165 bytes_read = fread(&hci_cmd_buffer[3], 1, param_len, hcd_file); in chipset_next_command() 167 if (bytes_read < param_len){ in chipset_next_command()
|
/btstack/test/mesh/ |
H A D | btstack_uart_posix_pty.c | 129 ssize_t bytes_read = read(ds->source.fd, read_bytes_data, read_bytes_len); in btstack_uart_posix_process_read() local 135 if (bytes_read < 0) return; in btstack_uart_posix_process_read() 137 read_bytes_len -= bytes_read; in btstack_uart_posix_process_read() 138 read_bytes_data += bytes_read; in btstack_uart_posix_process_read()
|
/btstack/port/esp32/components/btstack/ |
H A D | btstack_audio_esp32_v4.c | 438 size_t bytes_read; in btstack_audio_esp32_source_process_buffer() local 444 i2s_read(BTSTACK_AUDIO_I2S_NUM, buffer, data_len, &bytes_read, 0); in btstack_audio_esp32_source_process_buffer() 447 if (bytes_read == 0){ in btstack_audio_esp32_source_process_buffer() 450 } else if (bytes_read < data_len){ in btstack_audio_esp32_source_process_buffer() 451 ESP_LOGE(LOG_TAG, "i2s_read: only %u of %u!!!\n", (int) bytes_read, data_len); in btstack_audio_esp32_source_process_buffer()
|
/btstack/port/mtk/ |
H A D | hci_transport_h4_mtk.c | 131 …ssize_t bytes_read = mtk_bt_read(hci_transport_h4->ds->source.fd, &hci_packet_in[0], sizeof(hci_pa… in h4_process() local 133 if (bytes_read == 0) return; in h4_process() 137 while (pos < bytes_read) { in h4_process()
|
/btstack/port/freebsd-netgraph/ |
H A D | hci_transport_netgraph.c | 152 …int bytes_read = NgRecvData(ds->source.fd, (u_char *) hci_packet, HCI_INCOMING_PACKET_BUFFER_SIZE… in hci_transport_netgraph_process_read() local 154 if (bytes_read < 0){ in hci_transport_netgraph_process_read() 155 log_error("Read failed %d", (int) bytes_read); in hci_transport_netgraph_process_read() 203 uint16_t packet_len = bytes_read-1u; in hci_transport_netgraph_process_read()
|
/btstack/port/stm32-l073rz-nucleo-em9304/port/ |
H A D | port.c | 274 uint32_t bytes_read; in hal_spi_em9304_transfer_rx_data() local 275 …ring_buffer_read(&hal_uart_dma_rx_ring_buffer, hal_uart_dma_rx_buffer, bytes_to_copy, &bytes_read); in hal_spi_em9304_transfer_rx_data() 276 hal_uart_dma_rx_buffer += bytes_read; in hal_spi_em9304_transfer_rx_data() 277 hal_uart_dma_rx_len -= bytes_read; in hal_spi_em9304_transfer_rx_data()
|
/btstack/port/mtk/LEScan/src/com/bluekitchen/btstack/ |
H A D | SocketConnectionUnix.java | 69 int bytes_read = Util.readExactly(in, inHeader, 0, 6); in receivePacket() local 70 if (bytes_read != 6) return null; in receivePacket()
|