Lines Matching refs:core

53         to.core().port().unwrap().receive_buf(buf, &[], nr)  in write()
68 let mut ctrl = to.core().contorl_info_irqsave(); in flush_buffer()
71 to.core().read_wq().wakeup_all(); in flush_buffer()
77 let core = tty.core(); in ioctl() localVariable
78 if core.driver().tty_driver_sub_type() != TtyDriverSubType::PtyMaster { in ioctl()
84 return PtyCommon::pty_set_lock(core, VirtAddr::new(arg)); in ioctl()
87 return PtyCommon::pty_get_lock(core, VirtAddr::new(arg)); in ioctl()
90 return PtyCommon::pty_set_packet_mode(core, VirtAddr::new(arg)); in ioctl()
93 return PtyCommon::pty_get_packet_mode(core, VirtAddr::new(arg)); in ioctl()
97 UserBufferWriter::new(arg as *mut u32, core::mem::size_of::<u32>(), true)?; in ioctl()
99 return user_writer.copy_one_to_user(&(core.index() as u32), 0); in ioctl()
108 let core = tty.core(); in set_termios() localVariable
109 if core.driver().tty_driver_sub_type() != TtyDriverSubType::PtySlave { in set_termios()
113 let core = tty.core(); in set_termios() localVariable
114 if let Some(link) = core.link() { in set_termios()
115 let link = link.core(); in set_termios()
117 let curr_termios = *core.termios(); in set_termios()
130 let mut ctrl = core.contorl_info_irqsave(); in set_termios()
151 let mut termois = core.termios_write(); in set_termios()
161 fn start(&self, core: &TtyCoreData) -> Result<(), SystemError> { in start()
162 if core.driver().tty_driver_sub_type() != TtyDriverSubType::PtySlave { in start()
166 let link = core.checked_link()?; in start()
168 let mut ctrl = core.contorl_info_irqsave(); in start()
172 link.core() in start()
179 fn stop(&self, core: &TtyCoreData) -> Result<(), SystemError> { in stop()
180 if core.driver().tty_driver_sub_type() != TtyDriverSubType::PtySlave { in stop()
184 let link = core.checked_link()?; in stop()
186 let mut ctrl = core.contorl_info_irqsave(); in stop()
190 link.core() in stop()
218 let driver = tty.core().driver(); in close()
220 if tty.core().driver().tty_driver_sub_type() == TtyDriverSubType::PtySlave { in close()
221 driver.ttys().remove(&tty.core().index()); in close()
224 let _ = pts_root_inode.unlink(&tty.core().index().to_string()); in close()
235 let core = tty.core(); in resize() localVariable
236 if *core.window_size() == winsize { in resize()
242 *core.window_size_write() = winsize; in resize()
243 *core.link().unwrap().core().window_size_write() = winsize; in resize()
274 let core = tty.core(); in ptmx_open() localVariable
275 core.flags_write().insert(TtyFlag::PTY_LOCK); in ptmx_open()
283 ptm_driver().driver_funcs().open(core)?; in ptmx_open()