Lines Matching refs:bytes_to_read
147 static uint16_t nxp_read_firmware(uint16_t bytes_to_read, uint8_t * buffer) { in nxp_read_firmware() argument
148 size_t bytes_read = fread(buffer, 1, bytes_to_read, nxp_firmware_file); in nxp_read_firmware()
163 static uint16_t nxp_read_firmware(uint16_t bytes_to_read, uint8_t * buffer){ in nxp_read_firmware() argument
168 memcpy(buffer, &nxp_fw_data[nxp_fw_offset], bytes_to_read); in nxp_read_firmware()
170 return bytes_to_read; in nxp_read_firmware()
310 static void nxp_start_read(uint16_t bytes_to_read){ in nxp_start_read() argument
311 nxp_input_bytes_requested = bytes_to_read; in nxp_start_read()
312 nxp_uart_driver->receive_block(&nxp_input_buffer[nxp_input_pos], bytes_to_read); in nxp_start_read()
316 uint16_t bytes_to_read; in nxp_read_uart_handler() local
323 bytes_to_read = 4; in nxp_read_uart_handler()
327 bytes_to_read = 9; in nxp_read_uart_handler()
331 bytes_to_read = 1; in nxp_read_uart_handler()
356 bytes_to_read = 1; in nxp_read_uart_handler()
361 nxp_start_read(bytes_to_read); in nxp_read_uart_handler()