Lines Matching refs:bytes_read
435 s32 bytes_read) in output_console_line() argument
442 for (i = 0; i < bytes_read; i++) { in output_console_line()
470 if (line != &console_buffer[bytes_read]) { in output_console_line()
471 console_buffer[bytes_read] = '\0'; in output_console_line()
480 s32 bytes_read, tries, total_read; in check_console() local
496 bytes_read = in check_console()
499 if (bytes_read > 0) { in check_console()
500 total_read += bytes_read; in check_console()
505 console_buffer, bytes_read); in check_console()
507 } else if (bytes_read < 0) { in check_console()
509 console_num, bytes_read); in check_console()
513 } while ((bytes_read > 0) && (tries < 16)); in check_console()
578 s32 bytes_read, tries, total_read; in octeon_get_uboot_version() local
608 bytes_read = in octeon_get_uboot_version()
613 if (bytes_read > 0) { in octeon_get_uboot_version()
614 buf[bytes_read] = '\0'; in octeon_get_uboot_version()
616 total_read += bytes_read; in octeon_get_uboot_version()
619 } else if (bytes_read < 0) { in octeon_get_uboot_version()
621 console_num, bytes_read); in octeon_get_uboot_version()
625 } while ((bytes_read > 0) && (tries < 16)); in octeon_get_uboot_version()