/freebsd/tools/regression/priv/ |
H A D | priv_sched_rtprio.c | 105 struct rtprio rtp; in priv_sched_rtprio_curproc_normal() local 108 rtp.type = RTP_PRIO_NORMAL; in priv_sched_rtprio_curproc_normal() 109 rtp.prio = 0; in priv_sched_rtprio_curproc_normal() 110 error = rtprio(RTP_SET, 0, &rtp); in priv_sched_rtprio_curproc_normal() 128 struct rtprio rtp; in priv_sched_rtprio_curproc_idle() local 131 rtp.type = RTP_PRIO_IDLE; in priv_sched_rtprio_curproc_idle() 132 rtp.prio = 0; in priv_sched_rtprio_curproc_idle() 133 error = rtprio(RTP_SET, 0, &rtp); in priv_sched_rtprio_curproc_idle() 151 struct rtprio rtp; in priv_sched_rtprio_curproc_realtime() local 154 rtp.type = RTP_PRIO_REALTIME; in priv_sched_rtprio_curproc_realtime() [all …]
|
/freebsd/lib/libthr/thread/ |
H A D | thr_kern.c | 66 _rtp_to_schedparam(const struct rtprio *rtp, int *policy, in _rtp_to_schedparam() argument 69 switch(rtp->type) { in _rtp_to_schedparam() 72 param->sched_priority = RTP_PRIO_MAX - rtp->prio; in _rtp_to_schedparam() 76 param->sched_priority = RTP_PRIO_MAX - rtp->prio; in _rtp_to_schedparam() 88 struct rtprio *rtp) in _schedparam_to_rtp() argument 92 rtp->type = RTP_PRIO_REALTIME; in _schedparam_to_rtp() 93 rtp->prio = RTP_PRIO_MAX - param->sched_priority; in _schedparam_to_rtp() 96 rtp->type = RTP_PRIO_FIFO; in _schedparam_to_rtp() 97 rtp->prio = RTP_PRIO_MAX - param->sched_priority; in _schedparam_to_rtp() 101 rtp->type = RTP_PRIO_NORMAL; in _schedparam_to_rtp() [all …]
|
H A D | thr_create.c | 59 struct rtprio rtp; in _pthread_create() local 167 param.rtp = NULL; in _pthread_create() 171 &sched_param, &rtp); in _pthread_create() 172 param.rtp = &rtp; in _pthread_create()
|
/freebsd/sys/kern/ |
H A D | ksched.c | 108 struct rtprio rtp; in getscheduler() local 112 pri_to_rtp(td, &rtp); in getscheduler() 113 switch (rtp.type) { in getscheduler() 143 struct rtprio rtp; in ksched_getparam() local 145 pri_to_rtp(td, &rtp); in ksched_getparam() 146 if (RTP_PRIO_IS_REALTIME(rtp.type)) in ksched_getparam() 147 param->sched_priority = rtpprio_to_p4prio(rtp.prio); in ksched_getparam() 149 if (PRI_MIN_TIMESHARE < rtp.prio) in ksched_getparam() 157 param->sched_priority = tsprio_to_p4prio(rtp.prio); in ksched_getparam() 173 struct rtprio rtp; in ksched_setscheduler() local [all …]
|
H A D | kern_resource.c | 294 struct rtprio *rtp; member 301 struct rtprio rtp; in sys_rtprio_thread() local 307 cierror = copyin(uap->rtp, &rtp, sizeof(struct rtprio)); in sys_rtprio_thread() 326 pri_to_rtp(td1, &rtp); in sys_rtprio_thread() 328 return (copyout(&rtp, uap->rtp, sizeof(struct rtprio))); in sys_rtprio_thread() 351 if (RTP_PRIO_BASE(rtp.type) == RTP_PRIO_REALTIME && in sys_rtprio_thread() 354 if (RTP_PRIO_BASE(rtp.type) == RTP_PRIO_IDLE && in sys_rtprio_thread() 358 error = rtp_to_pri(&rtp, td1); in sys_rtprio_thread() 375 struct rtprio *rtp; member 383 struct rtprio rtp; in sys_rtprio() local [all …]
|
H A D | kern_thr.c | 178 struct rtprio rtp, *rtpp; in kern_thr_new() 182 if (param->rtp != 0) { in kern_thr_new() 183 error = copyin(param->rtp, &rtp, sizeof(struct rtprio)); in kern_thr_new() 186 rtpp = &rtp; in kern_thr_new() 192 thread_create(struct thread *td, struct rtprio *rtp, 201 if (rtp != NULL) { in thread_create() 202 switch(rtp->type) { in thread_create() 208 if (rtp->prio > RTP_PRIO_MAX) in thread_create() 212 rtp in thread_create() 179 struct rtprio rtp, *rtpp; kern_thr_new() local 193 thread_create(struct thread * td,struct rtprio * rtp,int (* initialize_thread)(struct thread *,void *),void * thunk) thread_create() argument [all...] |
H A D | kern_poll.c | 555 struct rtprio rtp; in poll_idle() local 557 rtp.prio = RTP_PRIO_MAX; /* lowest priority */ in poll_idle() 558 rtp.type = RTP_PRIO_IDLE; in poll_idle() 560 rtp_to_pri(&rtp, td); in poll_idle()
|
/freebsd/usr.sbin/rtprio/ |
H A D | rtprio.c | 54 struct rtprio rtp; in main() local 61 rtp.type = RTP_PRIO_REALTIME; in main() 63 rtp.type = RTP_PRIO_IDLE; in main() 73 if (rtprio(RTP_LOOKUP, proc, &rtp) != 0) in main() 75 switch (rtp.type) { in main() 78 warnx("realtime priority %d", rtp.prio); in main() 84 warnx("idle priority %d", rtp.prio); in main() 87 errx(1, "invalid priority type %d", rtp.type); in main() 95 rtp.type = RTP_PRIO_NORMAL; in main() 96 rtp.prio = 0; in main() [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | sched.h | 226 struct rtprio rtp; in sched_set_fifo() 228 rtp.prio = (RTP_PRIO_MIN + RTP_PRIO_MAX) / 2; in sched_set_fifo() 229 rtp.type = RTP_PRIO_FIFO; in sched_set_fifo() 230 rtp_to_pri(&rtp, t->task_thread); in sched_set_fifo() 236 struct rtprio rtp; in sched_set_fifo_low() 238 rtp.prio = RTP_PRIO_MAX; /* lowest priority */ in sched_set_fifo_low() 239 rtp.type = RTP_PRIO_FIFO; in sched_set_fifo_low() 240 rtp_to_pri(&rtp, t->task_thread); in sched_set_fifo_low() 225 struct rtprio rtp; sched_set_fifo() local 235 struct rtprio rtp; sched_set_fifo_low() local
|
H A D | sched.h | 226 struct rtprio rtp; in sched_set_fifo() 228 rtp.prio = (RTP_PRIO_MIN + RTP_PRIO_MAX) / 2; in sched_set_fifo() 229 rtp.type = RTP_PRIO_FIFO; in sched_set_fifo() 230 rtp_to_pri(&rtp, t->task_thread); in sched_set_fifo() 236 struct rtprio rtp; in sched_set_fifo_low() 238 rtp.prio = RTP_PRIO_MAX; /* lowest priority */ in sched_set_fifo_low() 239 rtp.type = RTP_PRIO_FIFO; in sched_set_fifo_low() 240 rtp_to_pri(&rtp, t->task_thread); in sched_set_fifo_low() 227 struct rtprio rtp; sched_set_fifo() local 237 struct rtprio rtp; sched_set_fifo_low() local
|
H A D | sched.h | 226 struct rtprio rtp; in sched_set_fifo() 228 rtp.prio = (RTP_PRIO_MIN + RTP_PRIO_MAX) / 2; in sched_set_fifo() 229 rtp.type = RTP_PRIO_FIFO; in sched_set_fifo() 230 rtp_to_pri(&rtp, t->task_thread); in sched_set_fifo() 236 struct rtprio rtp; in sched_set_fifo_low() 238 rtp.prio = RTP_PRIO_MAX; /* lowest priority */ in sched_set_fifo_low() 239 rtp.type = RTP_PRIO_FIFO; in sched_set_fifo_low() 240 rtp_to_pri(&rtp, t->task_thread); in sched_set_fifo_low() 225 struct rtprio rtp; sched_set_fifo() local 235 struct rtprio rtp; sched_set_fifo_low() local
|
/freebsd/lib/libsys/ |
H A D | rtprio.2 | 67 .Fn rtprio "int function" "pid_t pid" "struct rtprio *rtp" 69 .Fn rtprio_thread "int function" "lwpid_t lwpid" "struct rtprio *rtp" 114 .Fa *rtp 158 The rtp pointer passed to
|
H A D | thr_new.2 | 78 struct rtprio *rtp; 137 .It Va rtp 187 .Fa rtp 201 .Fa rtp
|
/freebsd/tools/test/stress2/misc/ |
H A D | mlockall2.sh | 125 struct rtprio rtp; 135 rtp.type = RTP_PRIO_REALTIME; 136 rtp.prio = 0; 137 if (rtprio(RTP_SET, 0, &rtp) == -1)
|
/freebsd/sys/compat/linux/ |
H A D | linux_misc.c | 2708 linux_up_rtprio_if(struct thread *td1, struct rtprio *rtp) in linux_up_rtprio_if() argument 2713 if (rtp2.type < rtp->type || in linux_up_rtprio_if() 2714 (rtp2.type == rtp->type && in linux_up_rtprio_if() 2715 rtp2.prio < rtp->prio)) { in linux_up_rtprio_if() 2716 rtp->type = rtp2.type; in linux_up_rtprio_if() 2717 rtp->prio = rtp2.prio; in linux_up_rtprio_if() 2724 linux_rtprio2ioprio(struct rtprio *rtp) in linux_rtprio2ioprio() argument 2728 switch (rtp->type) { in linux_rtprio2ioprio() 2734 prio = rtp->prio / LINUX_PRIO_DIVIDER; in linux_rtprio2ioprio() 2738 prio = rtp->prio / LINUX_PRIO_DIVIDER; in linux_rtprio2ioprio() [all …]
|
/freebsd/lib/libutil/ |
H A D | login_class.c | 490 struct rtprio rtp; in setclasspriority() local 492 rtp.type = RTP_PRIO_IDLE; in setclasspriority() 494 rtp.prio = p > RTP_PRIO_MAX ? RTP_PRIO_MAX : p; in setclasspriority() 495 rc = rtprio(RTP_SET, 0, &rtp); in setclasspriority() 497 struct rtprio rtp; in setclasspriority() local 499 rtp.type = RTP_PRIO_REALTIME; in setclasspriority() 501 rtp.prio = p < RTP_PRIO_MIN ? RTP_PRIO_MIN : p; in setclasspriority() 502 rc = rtprio(RTP_SET, 0, &rtp); in setclasspriority()
|
/freebsd/contrib/tcpdump/ |
H A D | print-udp.c | 135 /* rtp v1 or v2 */ in rtp_print() 141 ndo->ndo_protocol = "rtp"; in rtp_print() 143 ND_PRINT("udp/rtp, length %u < 8", len); in rtp_print() 155 /* rtp v1 - draft-ietf-avt-rtp-04 */ in rtp_print() 161 /* rtp v2 - RFC 3550 */ in rtp_print() 163 ND_PRINT("udp/rtp, length %u < 12", dlen + 8); in rtp_print() 170 ptype = "rtp"; in rtp_print() 215 /* rtp v2 control (rtcp) */ in rtcp_print()
|
/freebsd/sys/contrib/device-tree/Bindings/mfd/ |
H A D | allwinner,sun4i-a10-ts.yaml | 65 rtp: rtp@1c25000 {
|
/freebsd/sys/dev/isp/ |
H A D | isp_pci.c | 199 int rtp; member 489 pcs->rgd = pcs->rtp = 0; in isp_pci_attach() 537 pcs->rtp = SYS_RES_MEMORY; in isp_pci_attach() 539 pcs->regs = bus_alloc_resource_any(dev, pcs->rtp, &pcs->rgd, in isp_pci_attach() 550 pcs->rtp = SYS_RES_MEMORY; in isp_pci_attach() 552 pcs->regs = bus_alloc_resource_any(dev, pcs->rtp, &pcs->rgd, in isp_pci_attach() 555 pcs->rtp = SYS_RES_IOPORT; in isp_pci_attach() 557 pcs->regs = bus_alloc_resource_any(dev, pcs->rtp, in isp_pci_attach() 567 (pcs->rtp == SYS_RES_IOPORT)? "I/O" : "Memory"); in isp_pci_attach() 659 (void) bus_release_resource(dev, pcs->rtp, pcs->rgd, pcs->regs); in isp_pci_attach() [all …]
|
/freebsd/contrib/nvi/ex/ |
H A D | ex_cscope.c | 463 TAG *rtp; in cscope_find() local 483 rtp = NULL; in cscope_find() 491 CALLOC_GOTO(sp, rtp, 1, sizeof(TAG)); in cscope_find() 492 TAILQ_INSERT_HEAD(rtqp->tagq, rtp, q); in cscope_find() 493 rtqp->current = rtp; in cscope_find() 533 nomatch: free(rtp); in cscope_find() 591 free(rtp); in cscope_find()
|
H A D | ex_tag.c | 709 TAG *rtp; in tagq_push() local 723 rtp = NULL; in tagq_push() 731 CALLOC_GOTO(sp, rtp, 1, sizeof(TAG)); in tagq_push() 732 TAILQ_INSERT_HEAD(rtqp->tagq, rtp, q); in tagq_push() 733 rtqp->current = rtp; in tagq_push() 803 free(rtp); in tagq_push()
|
/freebsd/usr.sbin/watchdogd/ |
H A D | watchdogd.c | 120 struct rtprio rtp; in main() local 133 rtp.type = RTP_PRIO_REALTIME; in main() 134 rtp.prio = 0; in main() 135 if (rtprio(RTP_SET, 0, &rtp) == -1) in main()
|
/freebsd/sys/contrib/device-tree/Bindings/input/ |
H A D | ti,drv260x.txt | 14 time playback mode (RTP mode).
|
H A D | ti,drv260x.yaml | 37 And the device is configured for real time playback mode (RTP mode).
|
/freebsd/sys/sys/ |
H A D | thr.h | 57 struct rtprio *rtp; /* Real-time scheduling priority */ member
|