Lines Matching refs:bytes_read
436 s32 bytes_read) in output_console_line() argument
443 for (i = 0; i < bytes_read; i++) { in output_console_line()
471 if (line != &console_buffer[bytes_read]) { in output_console_line()
472 console_buffer[bytes_read] = '\0'; in output_console_line()
481 s32 bytes_read, tries, total_read; in check_console() local
497 bytes_read = in check_console()
500 if (bytes_read > 0) { in check_console()
501 total_read += bytes_read; in check_console()
506 console_buffer, bytes_read); in check_console()
508 } else if (bytes_read < 0) { in check_console()
510 console_num, bytes_read); in check_console()
514 } while ((bytes_read > 0) && (tries < 16)); in check_console()
579 s32 bytes_read, tries, total_read; in octeon_get_uboot_version() local
609 bytes_read = in octeon_get_uboot_version()
614 if (bytes_read > 0) { in octeon_get_uboot_version()
615 buf[bytes_read] = '\0'; in octeon_get_uboot_version()
617 total_read += bytes_read; in octeon_get_uboot_version()
620 } else if (bytes_read < 0) { in octeon_get_uboot_version()
622 console_num, bytes_read); in octeon_get_uboot_version()
626 } while ((bytes_read > 0) && (tries < 16)); in octeon_get_uboot_version()