Home
last modified time | relevance | path

Searched refs:rtp (Results 1 – 25 of 37) sorted by relevance

12

/freebsd/tools/regression/priv/
H A Dpriv_sched_rtprio.c105 struct rtprio rtp; in priv_sched_rtprio_curproc_normal() local
109 rtp.prio = 0; in priv_sched_rtprio_curproc_normal()
128 struct rtprio rtp; in priv_sched_rtprio_curproc_idle() local
132 rtp.prio = 0; in priv_sched_rtprio_curproc_idle()
155 rtp.prio = 0; in priv_sched_rtprio_curproc_realtime()
178 rtp.prio = 0; in priv_sched_rtprio_myproc_normal()
201 rtp.prio = 0; in priv_sched_rtprio_myproc_idle()
224 rtp.prio = 0; in priv_sched_rtprio_myproc_realtime()
247 rtp.prio = 0; in priv_sched_rtprio_aproc_normal()
270 rtp.prio = 0; in priv_sched_rtprio_aproc_idle()
[all …]
/freebsd/lib/libthr/thread/
H A Dthr_kern.c69 switch(rtp->type) { in _rtp_to_schedparam()
88 struct rtprio *rtp) in _schedparam_to_rtp() argument
92 rtp->type = RTP_PRIO_REALTIME; in _schedparam_to_rtp()
96 rtp->type = RTP_PRIO_FIFO; in _schedparam_to_rtp()
101 rtp->type = RTP_PRIO_NORMAL; in _schedparam_to_rtp()
102 rtp->prio = 0; in _schedparam_to_rtp()
111 struct rtprio rtp; in _thr_getscheduler() local
114 ret = rtprio_thread(RTP_LOOKUP, lwpid, &rtp); in _thr_getscheduler()
117 _rtp_to_schedparam(&rtp, policy, param); in _thr_getscheduler()
124 struct rtprio rtp; in _thr_setscheduler() local
[all …]
H A Dthr_create.c59 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()
H A Dthr_private.h844 int _rtp_to_schedparam(const struct rtprio *rtp, int *policy,
847 struct rtprio *rtp) __hidden;
/freebsd/usr.sbin/rtprio/
H A Drtprio.c54 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()
95 rtp.type = RTP_PRIO_NORMAL; in main()
96 rtp.prio = 0; in main()
102 rtp.prio = parseint(argv[1], "priority"); in main()
[all …]
/freebsd/sys/kern/
H A Dksched.c108 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()
149 if (PRI_MIN_TIMESHARE < rtp.prio) in ksched_getparam()
173 struct rtprio rtp; in ksched_setscheduler() local
185 rtp_to_pri(&rtp, td); in ksched_setscheduler()
193 rtp.type = RTP_PRIO_NORMAL; in ksched_setscheduler()
[all …]
H A Dkern_resource.c292 struct rtprio *rtp; member
299 struct rtprio rtp; in sys_rtprio_thread() local
305 cierror = copyin(uap->rtp, &rtp, sizeof(struct rtprio)); in sys_rtprio_thread()
324 pri_to_rtp(td1, &rtp); in sys_rtprio_thread()
326 return (copyout(&rtp, uap->rtp, sizeof(struct rtprio))); in sys_rtprio_thread()
373 struct rtprio *rtp; member
381 struct rtprio rtp; in sys_rtprio() local
386 cierror = copyin(uap->rtp, &rtp, sizeof(struct rtprio)); in sys_rtprio()
412 pri_to_rtp(td, &rtp); in sys_rtprio()
423 rtp.type = rtp2.type; in sys_rtprio()
[all …]
H A Dkern_thr.c178 struct rtprio rtp, *rtpp; in kern_thr_new() local
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, in thread_create() argument
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->prio = 0; in thread_create()
276 rtp->type == RTP_PRIO_NORMAL)) in thread_create()
[all …]
H A Dkern_poll.c555 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/sys/compat/linuxkpi/common/include/linux/
H A Dsched.h225 struct rtprio rtp; in sched_set_fifo() local
227 rtp.prio = (RTP_PRIO_MIN + RTP_PRIO_MAX) / 2; in sched_set_fifo()
228 rtp.type = RTP_PRIO_FIFO; in sched_set_fifo()
229 rtp_to_pri(&rtp, t->task_thread); in sched_set_fifo()
235 struct rtprio rtp; in sched_set_fifo_low() local
237 rtp.prio = RTP_PRIO_MAX; /* lowest priority */ in sched_set_fifo_low()
238 rtp.type = RTP_PRIO_FIFO; in sched_set_fifo_low()
239 rtp_to_pri(&rtp, t->task_thread); in sched_set_fifo_low()
/freebsd/tools/test/stress2/misc/
H A Dmlockall2.sh125 struct rtprio rtp;
135 rtp.type = RTP_PRIO_REALTIME;
136 rtp.prio = 0;
137 if (rtprio(RTP_SET, 0, &rtp) == -1)
/freebsd/lib/libutil/
H A Dlogin_class.c489 struct rtprio rtp; in setclasspriority() local
491 rtp.type = RTP_PRIO_IDLE; in setclasspriority()
493 rtp.prio = p > RTP_PRIO_MAX ? RTP_PRIO_MAX : p; in setclasspriority()
494 rc = rtprio(RTP_SET, 0, &rtp); in setclasspriority()
496 struct rtprio rtp; in setclasspriority() local
498 rtp.type = RTP_PRIO_REALTIME; in setclasspriority()
500 rtp.prio = p < RTP_PRIO_MIN ? RTP_PRIO_MIN : p; in setclasspriority()
501 rc = rtprio(RTP_SET, 0, &rtp); in setclasspriority()
/freebsd/sys/compat/linux/
H A Dlinux_misc.c2713 if (rtp2.type < rtp->type || 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()
2728 switch (rtp->type) { in linux_rtprio2ioprio()
2755 rtp->prio = RTP_PRIO_MIN; in linux_ioprio2rtprio()
2756 rtp->type = RTP_PRIO_IDLE; in linux_ioprio2rtprio()
2777 struct rtprio rtp; in linux_ioprio_get() local
2786 rtp.type = RTP_PRIO_IDLE; in linux_ioprio_get()
2787 rtp.prio = RTP_PRIO_MAX; in linux_ioprio_get()
2807 pri_to_rtp(td1, &rtp); in linux_ioprio_get()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/mfd/
H A Dallwinner,sun4i-a10-ts.yaml65 rtp: rtp@1c25000 {
/freebsd/sys/dev/isp/
H A Disp_pci.c199 int rtp; member
480 pcs->rgd = pcs->rtp = 0; in isp_pci_attach()
528 pcs->rtp = SYS_RES_MEMORY; in isp_pci_attach()
530 pcs->regs = bus_alloc_resource_any(dev, pcs->rtp, &pcs->rgd, in isp_pci_attach()
541 pcs->rtp = SYS_RES_MEMORY; in isp_pci_attach()
543 pcs->regs = bus_alloc_resource_any(dev, pcs->rtp, &pcs->rgd, in isp_pci_attach()
546 pcs->rtp = SYS_RES_IOPORT; in isp_pci_attach()
548 pcs->regs = bus_alloc_resource_any(dev, pcs->rtp, in isp_pci_attach()
558 (pcs->rtp == SYS_RES_IOPORT)? "I/O" : "Memory"); in isp_pci_attach()
650 (void) bus_release_resource(dev, pcs->rtp, pcs->rgd, pcs->regs); in isp_pci_attach()
[all …]
/freebsd/contrib/nvi/ex/
H A Dex_cscope.c463 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 Dex_tag.c709 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 Dwatchdogd.c120 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/sys/
H A Dthr.h57 struct rtprio *rtp; /* Real-time scheduling priority */ member
/freebsd/sys/contrib/device-tree/src/arm/allwinner/
H A Dsun5i-a13.dtsi55 thermal-sensors = <&rtp>;
H A Dsun4i-a10.dtsi133 thermal-sensors = <&rtp>;
943 rtp: rtp@1c25000 { label
H A Dsun5i-gr8-evb.dts287 &rtp {
H A Dsun5i.dtsi655 rtp: rtp@1c25000 { label
/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_types.c745 const void *ltp, *rtp; in ctf_type_compat() local
761 (rtp = ctf_lookup_by_id(&rfp, rtype)) == NULL || in ctf_type_compat()
762 strcmp(ctf_type_rname(lfp, ltp), ctf_type_rname(rfp, rtp)) != 0) in ctf_type_compat()
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32.h319 uint32_t rtp; member

12