| /components/lwp/terminal/freebsd/ |
| A D | tty.c | 111 error = ttyinq_setsize(&tp->t_inq, tp, bs); in tty_watermarks() 120 error = ttyoutq_setsize(&tp->t_outq, tp, bs); in tty_watermarks() 204 if (tty_gone(tp) || !tty_opened(tp)) in ttydev_enter() 218 if (tty_opened(tp) || tp->t_flags & TF_OPENCLOSE) in ttydev_leave() 279 error = tty_wait(tp, &tp->t_dcdwait); in ttydev_open() 320 tp->t_termios = tp->t_termios_init_out; in ttydev_open() 325 tp->t_termios = tp->t_termios_init_in; in ttydev_open() 327 ttydevsw_param(tp, &tp->t_termios); in ttydev_open() 350 error = tty_wait(tp, &tp->t_dcdwait); in ttydev_open() 450 if (!tty_is_ctty(tp, p) || pg == tp->t_pgrp) in tty_wait_background() [all …]
|
| A D | tty_ttydisc.c | 176 error = tty_wait(tp, &tp->t_inwait); in ttydisc_read_canonical() 232 error = tty_wait(tp, &tp->t_inwait); in ttydisc_read_raw_no_timer() 283 error = tty_timedwait(tp, &tp->t_inwait, hz); in ttydisc_read_raw_read_timer() 332 error = tty_wait(tp, &tp->t_inwait); in ttydisc_read_raw_interbyte_timer() 441 tp->t_column = tp->t_writepos = 0; in ttydisc_write_oproc() 456 tp->t_column = tp->t_writepos = 0; in ttydisc_write_oproc() 557 tp->t_writepos = tp->t_column; in ttydisc_write() 570 tp->t_writepos = tp->t_column; in ttydisc_write() 595 error = tty_wait(tp, &tp->t_outwait); in ttydisc_write() 770 struct lwp_tty *tp = data->tp; in ttydisc_recalc_charlength() local [all …]
|
| A D | tty_pts.c | 95 tty_lock(tp); in ptsdev_read() 158 tty_unlock(tp); in ptsdev_read() 232 tty_unlock(tp); in ptsdev_write() 369 tty_lock(tp); in ptsdev_ioctl() 371 tty_unlock(tp); in ptsdev_ioctl() 385 tty_lock(tp); in ptsdev_poll() 426 tty_unlock(tp); in ptsdev_poll() 507 tty_lock(tp); in ptsdev_kqfilter() 524 tty_unlock(tp); in ptsdev_kqfilter() 570 tty_lock(tp); in ptsdev_close() [all …]
|
| A D | tty_compat.c | 60 if (tp->t_session && tp->t_session == pgrp->session) in _is_already_binding() 135 if (tty_gone(tp)) in lwp_tty_bg_stop() 151 tty_unlock(tp); in lwp_tty_set_ctrl_proc() 153 tty_lock(tp); in lwp_tty_set_ctrl_proc() 173 tp->t_session->ctty = tp; in lwp_tty_set_ctrl_proc() 199 tty_unlock(tp); in lwp_tty_assign_foreground() 203 tty_lock(tp); in lwp_tty_assign_foreground() 221 tty_lock(tp); in lwp_tty_assign_foreground() 235 tp->t_pgrp = pg; in lwp_tty_assign_foreground() 243 tp->t_pgrp ? tp->t_pgrp->pgid : -1); in lwp_tty_assign_foreground() [all …]
|
| A D | tty_outq.c | 102 int ttyoutq_setsize(struct ttyoutq *to, struct lwp_tty *tp, size_t size) in ttyoutq_setsize() argument 120 tty_unlock(tp); in ttyoutq_setsize() 122 tty_lock(tp); in ttyoutq_setsize() 124 if (tty_gone(tp)) in ttyoutq_setsize() 216 int ttyoutq_read_uio(struct ttyoutq *to, struct lwp_tty *tp, struct uio *uio) in ttyoutq_read_uio() argument 263 tty_unlock(tp); in ttyoutq_read_uio() 265 tty_lock(tp); in ttyoutq_read_uio() 282 tty_unlock(tp); in ttyoutq_read_uio() 284 tty_lock(tp); in ttyoutq_read_uio()
|
| A D | tty_inq.c | 124 int ttyinq_setsize(struct ttyinq *ti, struct lwp_tty *tp, size_t size) in ttyinq_setsize() argument 142 tty_unlock(tp); in ttyinq_setsize() 144 tty_lock(tp); in ttyinq_setsize() 146 if (tty_gone(tp)) in ttyinq_setsize() 173 int ttyinq_read_uio(struct ttyinq *ti, struct lwp_tty *tp, struct uio *uio, in ttyinq_read_uio() argument 241 tty_unlock(tp); in ttyinq_read_uio() 243 tty_lock(tp); in ttyinq_read_uio() 260 tty_unlock(tp); in ttyinq_read_uio() 262 tty_lock(tp); in ttyinq_read_uio() 267 if (tty_gone(tp)) in ttyinq_read_uio()
|
| /components/lwp/terminal/ |
| A D | terminal.h | 207 #define tty_getlock(tp) ((tp)->t_mtx) argument 236 #define tty_gone(tp) ((tp)->t_flags & TF_GONE) argument 237 #define tty_softc(tp) ((tp)->t_devswsoftc) argument 302 return (tp->t_devsw->tsw_open(tp)); in ttydevsw_open() 310 tp->t_devsw->tsw_close(tp); in ttydevsw_close() 322 tp->t_devsw->tsw_outwakeup(tp); in ttydevsw_outwakeup() 334 tp->t_devsw->tsw_inwakeup(tp); in ttydevsw_inwakeup() 359 return (tp->t_devsw->tsw_param(tp, t)); in ttydevsw_param() 382 tp->t_devsw->tsw_pktnotify(tp, event); in ttydevsw_pktnotify() 389 tp->t_devsw->tsw_free(tty_softc(tp)); in ttydevsw_free() [all …]
|
| A D | tty_device.c | 49 lwp_tty_t tp; in tty_fops_open() local 78 lwp_tty_t tp; in tty_fops_close() local 107 lwp_tty_t tp; in tty_fops_ioctl() local 361 lwp_tty_t tp; in lwp_tty_create_ext() local 369 if (!tp) in lwp_tty_create_ext() 400 tp->t_mtx = &tp->t_mtxobj; in lwp_tty_create_ext() 405 knlist_init_mtx(&tp->t_inpoll.si_note, tp->t_mtx); in lwp_tty_create_ext() 406 knlist_init_mtx(&tp->t_outpoll.si_note, tp->t_mtx); in lwp_tty_create_ext() 409 return tp; in lwp_tty_create_ext() 442 if (tp->t_mtx == &tp->t_mtxobj) in lwp_tty_delete() [all …]
|
| A D | bsd_ttydisc.h | 57 void ttydisc_open(struct lwp_tty *tp); 58 void ttydisc_close(struct lwp_tty *tp); 61 void ttydisc_optimize(struct lwp_tty *tp); 64 void ttydisc_modem(struct lwp_tty *tp, int open); 65 #define ttydisc_can_bypass(tp) ((tp)->t_flags & TF_BYPASS) argument 66 int ttydisc_rint(struct lwp_tty *tp, char c, int flags); 69 void ttydisc_rint_done(struct lwp_tty *tp); 70 size_t ttydisc_rint_poll(struct lwp_tty *tp); 71 size_t ttydisc_getc(struct lwp_tty *tp, void *buf, size_t len); 72 int ttydisc_getc_uio(struct lwp_tty *tp, struct uio *uio); [all …]
|
| A D | tty_internal.h | 33 int tty_wait(struct lwp_tty *tp, struct rt_condvar *cv); 34 int tty_wait_background(struct lwp_tty *tp, struct rt_thread *td, int sig); 35 int tty_timedwait(struct lwp_tty *tp, struct rt_condvar *cv, rt_tick_t timeout); 36 void tty_wakeup(struct lwp_tty *tp, int flags); 38 void tty_info(struct lwp_tty *tp); 47 int lwp_tty_set_ctrl_proc(lwp_tty_t tp, rt_thread_t td); 48 int lwp_tty_assign_foreground(lwp_tty_t tp, rt_thread_t td, int pgid); 49 int lwp_tty_bg_stop(struct lwp_tty *tp, struct rt_condvar *cv); 60 rt_inline int tty_is_ctty(struct lwp_tty *tp, struct rt_lwp *p) in tty_is_ctty() argument 62 tty_assert_locked(tp); in tty_is_ctty() [all …]
|
| A D | tty_ptmx.c | 59 lwp_tty_t tp; in ptm_fops_close() local 65 tp = rt_container_of(device, struct lwp_tty, parent); in ptm_fops_close() 66 rc = bsd_ptsdev_methods.fo_close(tp, rt_thread_self()); in ptm_fops_close() 84 struct lwp_tty *tp; in ptm_fops_read() local 90 tp = rt_container_of(device, struct lwp_tty, parent); in ptm_fops_read() 125 struct lwp_tty *tp; in ptm_fops_write() local 163 lwp_tty_t tp; in ptm_fops_ioctl() local 179 pts_set_lock(tp, is_lock); in ptm_fops_ioctl() 185 int is_lock = pts_is_locked(tp); in ptm_fops_ioctl() 193 int pktmode = pts_get_pktmode(tp); in ptm_fops_ioctl() [all …]
|
| A D | tty_ctty.c | 27 lwp_tty_t tp; in ctty_readlink() local 41 tp = sess->ctty; in ctty_readlink() 42 if (tp) in ctty_readlink() 44 tty_lock(tp); in ctty_readlink() 46 if (lwp->pgrp == pgrp && pgrp->session == sess && sess->ctty == tp) in ctty_readlink() 48 rt_strncpy(buf, tp->parent.parent.name, len); in ctty_readlink() 52 tty_unlock(tp); in ctty_readlink()
|
| A D | bsd_porting.h | 156 #define ttyhook_hashook(tp, hook) \ argument 157 ((tp)->t_hook != NULL && (tp)->t_hook->th_##hook != NULL) 159 #define ttyhook_hashook(tp, hook) (RT_FALSE) argument 217 typedef int d_poll_t(struct lwp_tty *tp, rt_pollreq_t *req, 221 typedef int d_kqfilter_t(struct lwp_tty *tp, struct knote *kn); 233 typedef void d_purge_t(struct lwp_tty *tp); 335 rt_inline int constty_clear(struct lwp_tty *tp) in constty_clear() argument 341 rt_inline int constty_set(struct lwp_tty *tp) in constty_set() argument 667 typedef int fo_rdwr_t(struct lwp_tty *tp, struct uio *uio, 670 typedef int fo_truncate_t(struct lwp_tty *tp, off_t length, [all …]
|
| A D | bsd_ttyqueue.h | 85 int ttyinq_setsize(struct ttyinq *ti, struct lwp_tty *tp, size_t len); 87 int ttyinq_read_uio(struct ttyinq *ti, struct lwp_tty *tp, struct uio *uio, 147 int ttyoutq_setsize(struct ttyoutq *to, struct lwp_tty *tp, size_t len); 150 int ttyoutq_read_uio(struct ttyoutq *to, struct lwp_tty *tp, struct uio *uio);
|
| /components/drivers/usb/cherryusb/class/vendor/net/ |
| A D | usbh_rtl8152.c | 1449 switch (tp->version) { in rtl8152_nic_reset() 1514 rtl8152_nic_reset(tp); in rtl_disable() 1521 switch (tp->version) { in rtl_rx_vlan_en() 1574 switch (tp->version) { in r8153_teredo_off() 1619 r8153_teredo_off(tp); in r8152b_exit_oob() 1688 rtl_disable(tp); in r8152b_enter_oob() 1749 rtl_tally_reset(tp); in r8152b_init() 1788 rtl_set_eee_plus(tp); in rtl8152_enable() 1796 rtl_disable(tp); in rtl8152_disable() 1803 r8152b_exit_oob(tp); in rtl8152_up() [all …]
|
| A D | usbh_rtl8152.h | 35 void (*init)(struct usbh_rtl8152 *tp); 36 int (*enable)(struct usbh_rtl8152 *tp); 37 void (*disable)(struct usbh_rtl8152 *tp); 38 void (*up)(struct usbh_rtl8152 *tp); 39 void (*down)(struct usbh_rtl8152 *tp); 40 void (*unload)(struct usbh_rtl8152 *tp); 41 bool (*in_nway)(struct usbh_rtl8152 *tp); 42 void (*hw_phy_cfg)(struct usbh_rtl8152 *tp); 43 void (*autosuspend_en)(struct usbh_rtl8152 *tp, bool enable); 44 void (*change_mtu)(struct usbh_rtl8152 *tp);
|
| /components/drivers/serial/ |
| A D | serial_tty.c | 119 lwp_tty_t tp; in _serial_ty_bypass() local 120 tp = (lwp_tty_t)data; in _serial_ty_bypass() 122 tty_lock(tp); in _serial_ty_bypass() 125 tty_unlock(tp); in _serial_ty_bypass() 155 …tp->t_termios_init_in.__c_ispeed = tp->t_termios_init_in.__c_ospeed = cfgetospeed(&tp->t_termios_i… in _serial_tty_set_speed() 266 if (!tty_opened(tp)) in serial_tty_param() 345 lwp_tty_t tp; in rt_hw_serial_unregister_tty() local 355 tty_lock(tp); in rt_hw_serial_unregister_tty() 357 tty_rel_gone(tp); in rt_hw_serial_unregister_tty() 362 lwp_tty_delete(tp); in rt_hw_serial_unregister_tty() [all …]
|
| /components/libc/compilers/common/ |
| A D | cstdlib.c | 78 char *tp = tmp; in ltoa() local 104 while (v || tp == tmp) in ltoa() 109 *tp++ = (char)(i + '0'); in ltoa() 111 *tp++ = (char)(i + 'a' - 10); in ltoa() 118 while (tp > tmp) in ltoa() 119 *sp++ = *--tp; in ltoa() 151 char *tp = tmp; in ultoa() local 166 while (v || tp == tmp) in ultoa() 171 *tp++ = (char)(i + '0'); in ultoa() 178 while (tp > tmp) in ultoa() [all …]
|
| A D | ctime.c | 630 if (tp == RT_NULL) in clock_gettime() 648 return rt_ktime_boottime_get_ns(tp); in clock_gettime() 655 tp->tv_sec = 0; in clock_gettime() 656 tp->tv_nsec = 0; in clock_gettime() 722 if (tp == RT_NULL) in clock_settime() 728 if (tp->tv_sec < 0 || tp->tv_nsec < 0 || tp->tv_nsec >= NANOSECOND_PER_SECOND) in clock_settime() 763 struct timespec tp = {0}; in rt_timespec_to_tick() local 771 clock_gettime(CLOCK_REALTIME, &tp); in rt_timespec_to_tick() 773 if ((time->tv_nsec - tp.tv_nsec) < 0) in rt_timespec_to_tick() 780 nsecond = time->tv_nsec - tp.tv_nsec; in rt_timespec_to_tick() [all …]
|
| /components/lwp/ |
| A D | lwp_jobctrl.c | 48 lwp_tty_t tp; in lwp_jobctrl_on_exit() local 62 tp = session->ctty; in lwp_jobctrl_on_exit() 66 if (tp) in lwp_jobctrl_on_exit() 68 tty_lock(tp); in lwp_jobctrl_on_exit() 69 if (tp->t_session == session) in lwp_jobctrl_on_exit() 70 lwp_tty_signal_pgrp(tp, SIGHUP); in lwp_jobctrl_on_exit() 71 tty_unlock(tp); in lwp_jobctrl_on_exit()
|
| /components/libc/cplusplus/cpp11/gcc/ |
| A D | utils.cpp | 24 timespec tp; in now() local 25 clock_gettime(CLOCK_REALTIME, &tp); in now() 27 return time_point(duration(std::chrono::seconds(tp.tv_sec)) in now() 28 + std::chrono::nanoseconds(tp.tv_nsec)); in now()
|
| /components/lwp/arch/risc-v/rv64/ |
| A D | lwp_gcc.S | 192 LOAD tp, FRAME_OFF_TP(s3) 226 mv a0, tp 233 mv tp, a0 310 STORE tp, 4 * REGBYTES(sp)
|
| /components/libc/posix/pthreads/ |
| A D | sched.h | 34 int sched_rr_get_interval(pid_t pid, struct timespec *tp);
|
| A D | sched.c | 44 int sched_rr_get_interval(pid_t pid, struct timespec *tp) in sched_rr_get_interval() argument
|
| /components/libc/compilers/common/include/sys/ |
| A D | time.h | 205 int clock_gettime (clockid_t clockid, struct timespec *tp); 206 int clock_settime (clockid_t clockid, const struct timespec *tp);
|