Home
last modified time | relevance | path

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

12

/freebsd-14.2/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-14.2/lib/libthr/thread/
H A Dthr_kern.c70 switch(rtp->type) { in _rtp_to_schedparam()
89 struct rtprio *rtp) in _schedparam_to_rtp() argument
93 rtp->type = RTP_PRIO_REALTIME; in _schedparam_to_rtp()
97 rtp->type = RTP_PRIO_FIFO; in _schedparam_to_rtp()
102 rtp->type = RTP_PRIO_NORMAL; in _schedparam_to_rtp()
103 rtp->prio = 0; in _schedparam_to_rtp()
112 struct rtprio rtp; in _thr_getscheduler() local
115 ret = rtprio_thread(RTP_LOOKUP, lwpid, &rtp); in _thr_getscheduler()
118 _rtp_to_schedparam(&rtp, policy, param); in _thr_getscheduler()
125 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-14.2/usr.sbin/rtprio/
H A Drtprio.c55 struct rtprio rtp; in main() local
62 rtp.type = RTP_PRIO_REALTIME; in main()
64 rtp.type = RTP_PRIO_IDLE; in main()
74 if (rtprio(RTP_LOOKUP, proc, &rtp) != 0) in main()
76 switch (rtp.type) { in main()
79 warnx("realtime priority %d", rtp.prio); in main()
85 warnx("idle priority %d", rtp.prio); in main()
96 rtp.type = RTP_PRIO_NORMAL; in main()
97 rtp.prio = 0; in main()
103 rtp.prio = parseint(argv[1], "priority"); in main()
[all …]
/freebsd-14.2/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.c297 struct rtprio *rtp; member
304 struct rtprio rtp; in sys_rtprio_thread() local
310 cierror = copyin(uap->rtp, &rtp, sizeof(struct rtprio)); in sys_rtprio_thread()
329 pri_to_rtp(td1, &rtp); in sys_rtprio_thread()
331 return (copyout(&rtp, uap->rtp, sizeof(struct rtprio))); in sys_rtprio_thread()
378 struct rtprio *rtp; member
386 struct rtprio rtp; in sys_rtprio() local
391 cierror = copyin(uap->rtp, &rtp, sizeof(struct rtprio)); in sys_rtprio()
417 pri_to_rtp(td, &rtp); in sys_rtprio()
428 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-14.2/sys/compat/linuxkpi/common/include/linux/
H A Dsched.h226 struct rtprio rtp; in sched_set_fifo() local
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() local
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()
/freebsd-14.2/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-14.2/lib/libutil/
H A Dlogin_class.c491 struct rtprio rtp; in setclasspriority() local
493 rtp.type = RTP_PRIO_IDLE; in setclasspriority()
495 rtp.prio = p > RTP_PRIO_MAX ? RTP_PRIO_MAX : p; in setclasspriority()
496 rc = rtprio(RTP_SET, 0, &rtp); in setclasspriority()
498 struct rtprio rtp; in setclasspriority() local
500 rtp.type = RTP_PRIO_REALTIME; in setclasspriority()
502 rtp.prio = p < RTP_PRIO_MIN ? RTP_PRIO_MIN : p; in setclasspriority()
503 rc = rtprio(RTP_SET, 0, &rtp); in setclasspriority()
/freebsd-14.2/sys/compat/linux/
H A Dlinux_misc.c2687 if (rtp2.type < rtp->type || in linux_up_rtprio_if()
2690 rtp->type = rtp2.type; in linux_up_rtprio_if()
2691 rtp->prio = rtp2.prio; in linux_up_rtprio_if()
2702 switch (rtp->type) { in linux_rtprio2ioprio()
2729 rtp->prio = RTP_PRIO_MIN; in linux_ioprio2rtprio()
2730 rtp->type = RTP_PRIO_IDLE; in linux_ioprio2rtprio()
2751 struct rtprio rtp; in linux_ioprio_get() local
2760 rtp.type = RTP_PRIO_IDLE; in linux_ioprio_get()
2761 rtp.prio = RTP_PRIO_MAX; in linux_ioprio_get()
2781 pri_to_rtp(td1, &rtp); in linux_ioprio_get()
[all …]
/freebsd-14.2/sys/contrib/device-tree/Bindings/mfd/
H A Dallwinner,sun4i-a10-ts.yaml65 rtp: rtp@1c25000 {
/freebsd-14.2/sys/dev/isp/
H A Disp_pci.c199 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-14.2/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-14.2/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-14.2/sys/sys/
H A Dthr.h57 struct rtprio *rtp; /* Real-time scheduling priority */ member
/freebsd-14.2/sys/contrib/device-tree/src/arm/
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.dtsi646 rtp: rtp@1c25000 { label
/freebsd-14.2/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-14.2/sys/compat/freebsd32/
H A Dfreebsd32.h319 uint32_t rtp; member

12