Lines Matching refs:r
87 let r: Result<usize, TtyError> = self.core.input(buf, false); in input() localVariable
88 if r.is_ok() { in input()
89 return Ok(r.unwrap()); in input()
92 let r = r.unwrap_err(); in input() localVariable
93 match r { in input()
159 let r: Result<usize, TtyError> = self.core.read_stdin(&mut buf[0..len], true); in read_at() localVariable
160 if r.is_ok() { in read_at()
161 return Ok(r.unwrap()); in read_at()
164 match r.unwrap_err() { in read_at()
194 let r: Result<usize, TtyError> = if data.flags.contains(TtyFileFlag::STDOUT) { in write_at() localVariable
202 if r.is_ok() { in write_at()
204 return Ok(r.unwrap()); in write_at()
207 let r: TtyError = r.unwrap_err(); in write_at() localVariable
242 let r: Result<usize, TtyError> = self.core.output(&mut buf[0..511], false); in sync() localVariable
244 match r { in sync()
282 let r = tty_init(); in rs_tty_init() localVariable
283 if r.is_ok() { in rs_tty_init()
286 return r.unwrap_err().to_posix_errno(); in rs_tty_init()
313 let r = devfs_register(&tty.name(), tty); in tty_init() localVariable
314 if r.is_err() { in tty_init()