Home
last modified time | relevance | path

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

12

/freebsd-12.1/tools/regression/priv/
H A Dpriv_sched_rtprio.c107 struct rtprio rtp; in priv_sched_rtprio_curproc_normal() local
111 rtp.prio = 0; in priv_sched_rtprio_curproc_normal()
130 struct rtprio rtp; in priv_sched_rtprio_curproc_idle() local
134 rtp.prio = 0; in priv_sched_rtprio_curproc_idle()
157 rtp.prio = 0; in priv_sched_rtprio_curproc_realtime()
180 rtp.prio = 0; in priv_sched_rtprio_myproc_normal()
203 rtp.prio = 0; in priv_sched_rtprio_myproc_idle()
226 rtp.prio = 0; in priv_sched_rtprio_myproc_realtime()
249 rtp.prio = 0; in priv_sched_rtprio_aproc_normal()
272 rtp.prio = 0; in priv_sched_rtprio_aproc_idle()
[all …]
/freebsd-12.1/lib/libthr/thread/
H A Dthr_kern.c76 switch(rtp->type) { in _rtp_to_schedparam()
95 struct rtprio *rtp) in _schedparam_to_rtp() argument
99 rtp->type = RTP_PRIO_REALTIME; in _schedparam_to_rtp()
103 rtp->type = RTP_PRIO_FIFO; in _schedparam_to_rtp()
108 rtp->type = RTP_PRIO_NORMAL; in _schedparam_to_rtp()
109 rtp->prio = 0; in _schedparam_to_rtp()
118 struct rtprio rtp; in _thr_getscheduler() local
121 ret = rtprio_thread(RTP_LOOKUP, lwpid, &rtp); in _thr_getscheduler()
124 _rtp_to_schedparam(&rtp, policy, param); in _thr_getscheduler()
131 struct rtprio rtp; in _thr_setscheduler() local
[all …]
H A Dthr_create.c62 struct rtprio rtp; in _pthread_create() local
171 param.rtp = NULL; in _pthread_create()
175 &sched_param, &rtp); in _pthread_create()
176 param.rtp = &rtp; in _pthread_create()
H A Dthr_private.h838 int _rtp_to_schedparam(const struct rtprio *rtp, int *policy,
841 struct rtprio *rtp) __hidden;
/freebsd-12.1/usr.sbin/rtprio/
H A Drtprio.c57 struct rtprio rtp; in main() local
64 rtp.type = RTP_PRIO_REALTIME; in main()
66 rtp.type = RTP_PRIO_IDLE; in main()
76 if (rtprio(RTP_LOOKUP, proc, &rtp) != 0) in main()
78 switch (rtp.type) { in main()
81 warnx("realtime priority %d", rtp.prio); in main()
87 warnx("idle priority %d", rtp.prio); in main()
98 rtp.type = RTP_PRIO_NORMAL; in main()
99 rtp.prio = 0; in main()
105 rtp.prio = parseint(argv[1], "priority"); in main()
[all …]
/freebsd-12.1/sys/kern/
H A Dksched.c110 struct rtprio rtp; in getscheduler() local
114 pri_to_rtp(td, &rtp); in getscheduler()
115 switch (rtp.type) { in getscheduler()
145 struct rtprio rtp; in ksched_getparam() local
147 pri_to_rtp(td, &rtp); in ksched_getparam()
148 if (RTP_PRIO_IS_REALTIME(rtp.type)) in ksched_getparam()
151 if (PRI_MIN_TIMESHARE < rtp.prio) in ksched_getparam()
175 struct rtprio rtp; in ksched_setscheduler() local
187 rtp_to_pri(&rtp, td); in ksched_setscheduler()
195 rtp.type = RTP_PRIO_NORMAL; in ksched_setscheduler()
[all …]
H A Dkern_resource.c284 struct rtprio *rtp; member
291 struct rtprio rtp; in sys_rtprio_thread() local
297 cierror = copyin(uap->rtp, &rtp, sizeof(struct rtprio)); in sys_rtprio_thread()
317 pri_to_rtp(td1, &rtp); in sys_rtprio_thread()
319 return (copyout(&rtp, uap->rtp, sizeof(struct rtprio))); in sys_rtprio_thread()
366 struct rtprio *rtp; member
374 struct rtprio rtp; in sys_rtprio() local
379 cierror = copyin(uap->rtp, &rtp, sizeof(struct rtprio)); in sys_rtprio()
405 pri_to_rtp(td, &rtp); in sys_rtprio()
416 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()
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()
275 if (rtp != NULL) { in thread_create()
277 rtp->type == RTP_PRIO_NORMAL)) { in thread_create()
[all …]
H A Dkern_poll.c547 struct rtprio rtp; in poll_idle() local
549 rtp.prio = RTP_PRIO_MAX; /* lowest priority */ in poll_idle()
550 rtp.type = RTP_PRIO_IDLE; in poll_idle()
552 rtp_to_pri(&rtp, td); in poll_idle()
/freebsd-12.1/sys/sparc64/sparc64/
H A Dtsb.c118 struct tte *rtp; in tsb_tte_enter() local
150 rtp = NULL; in tsb_tte_enter()
161 else if (rtp == NULL) in tsb_tte_enter()
162 rtp = &bucket[i]; in tsb_tte_enter()
167 tp = rtp; in tsb_tte_enter()
/freebsd-12.1/lib/libutil/
H A Dlogin_class.c432 struct rtprio rtp; in setusercontext() local
452 rtp.type = RTP_PRIO_IDLE; in setusercontext()
454 rtp.prio = p > RTP_PRIO_MAX ? RTP_PRIO_MAX : p; in setusercontext()
455 if (rtprio(RTP_SET, 0, &rtp)) in setusercontext()
460 rtp.type = RTP_PRIO_REALTIME; in setusercontext()
462 rtp.prio = p < RTP_PRIO_MIN ? RTP_PRIO_MIN : p; in setusercontext()
463 if (rtprio(RTP_SET, 0, &rtp)) in setusercontext()
/freebsd-12.1/sys/dev/drm2/radeon/
H A Datombios_dp.c602 int rtp = 0; in radeon_dp_set_tp() local
608 rtp = ATOM_ENCODER_CMD_DP_LINK_TRAINING_PATTERN1; in radeon_dp_set_tp()
611 rtp = ATOM_ENCODER_CMD_DP_LINK_TRAINING_PATTERN2; in radeon_dp_set_tp()
614 rtp = ATOM_ENCODER_CMD_DP_LINK_TRAINING_PATTERN3; in radeon_dp_set_tp()
617 atombios_dig_encoder_setup(dp_info->encoder, rtp, 0); in radeon_dp_set_tp()
621 rtp = 0; in radeon_dp_set_tp()
624 rtp = 1; in radeon_dp_set_tp()
628 dp_info->dp_clock, dp_info->enc_id, rtp); in radeon_dp_set_tp()
/freebsd-12.1/contrib/nvi/ex/
H A Dex_cscope.c462 TAG *rtp; in cscope_find() local
482 rtp = NULL; in cscope_find()
490 CALLOC_GOTO(sp, rtp, TAG *, 1, sizeof(TAG)); in cscope_find()
491 TAILQ_INSERT_HEAD(rtqp->tagq, rtp, q); in cscope_find()
492 rtqp->current = rtp; in cscope_find()
532 nomatch: if (rtp != NULL) in cscope_find()
533 free(rtp); in cscope_find()
593 if (rtp != NULL) in cscope_find()
594 free(rtp); in cscope_find()
H A Dex_tag.c712 TAG *rtp; in tagq_push() local
726 rtp = NULL; in tagq_push()
734 CALLOC_GOTO(sp, rtp, TAG *, 1, sizeof(TAG)); in tagq_push()
735 TAILQ_INSERT_HEAD(rtqp->tagq, rtp, q); in tagq_push()
736 rtqp->current = rtp; in tagq_push()
807 if (rtp != NULL) in tagq_push()
808 free(rtp); in tagq_push()
/freebsd-12.1/usr.sbin/watchdogd/
H A Dwatchdogd.c122 struct rtprio rtp; in main() local
135 rtp.type = RTP_PRIO_REALTIME; in main()
136 rtp.prio = 0; in main()
137 if (rtprio(RTP_SET, 0, &rtp) == -1) in main()
/freebsd-12.1/sys/sys/
H A Dthr.h59 struct rtprio *rtp; /* Real-time scheduling priority */ member
/freebsd-12.1/sys/dev/isp/
H A Disp_pci.c324 int rtp; member
659 pcs->rgd = pcs->rtp = 0; in isp_pci_attach()
794 pcs->rtp = SYS_RES_MEMORY; in isp_pci_attach()
796 pcs->regs = bus_alloc_resource_any(dev, pcs->rtp, &pcs->rgd, in isp_pci_attach()
807 pcs->rtp = SYS_RES_MEMORY; in isp_pci_attach()
809 pcs->regs = bus_alloc_resource_any(dev, pcs->rtp, &pcs->rgd, in isp_pci_attach()
812 pcs->rtp = SYS_RES_IOPORT; in isp_pci_attach()
814 pcs->regs = bus_alloc_resource_any(dev, pcs->rtp, in isp_pci_attach()
824 (pcs->rtp == SYS_RES_IOPORT)? "I/O" : "Memory"); in isp_pci_attach()
943 (void) bus_release_resource(dev, pcs->rtp, pcs->rgd, pcs->regs); in isp_pci_attach()
[all …]
/freebsd-12.1/cddl/contrib/opensolaris/common/ctf/
H A Dctf_types.c600 const ctf_type_t *ltp, *rtp; in ctf_type_compat() local
616 (rtp = ctf_lookup_by_id(&rfp, rtype)) == NULL || in ctf_type_compat()
618 ctf_strptr(rfp, rtp->ctt_name)) != 0) in ctf_type_compat()
/freebsd-12.1/sys/gnu/dts/arm/
H A Dsun5i-a13.dtsi55 thermal-sensors = <&rtp>;
H A Dsun4i-a10.dtsi134 thermal-sensors = <&rtp>;
899 rtp: rtp@1c25000 { label
H A Dsun5i.dtsi631 rtp: rtp@1c25000 { label
H A Dsun5i-gr8-evb.dts287 &rtp {
H A Dsun6i-a31.dtsi172 thermal-sensors = <&rtp>;
795 rtp: rtp@1c25000 { label
/freebsd-12.1/sys/compat/freebsd32/
H A Dfreebsd32.h276 uint32_t rtp; member
/freebsd-12.1/tests/sys/audit/
H A Dprocess-control.c1280 struct rtprio rtp; in ATF_TC_BODY() local
1285 ATF_REQUIRE_EQ(0, rtprio(RTP_LOOKUP, 0, &rtp)); in ATF_TC_BODY()

12