| /freebsd-12.1/tools/regression/priv/ |
| H A D | priv_sched_rtprio.c | 107 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 D | thr_kern.c | 76 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 D | thr_create.c | 62 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 D | thr_private.h | 838 int _rtp_to_schedparam(const struct rtprio *rtp, int *policy, 841 struct rtprio *rtp) __hidden;
|
| /freebsd-12.1/usr.sbin/rtprio/ |
| H A D | rtprio.c | 57 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 D | ksched.c | 110 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 D | kern_resource.c | 284 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 D | kern_thr.c | 178 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 D | kern_poll.c | 547 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 D | tsb.c | 118 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 D | login_class.c | 432 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 D | atombios_dp.c | 602 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 D | ex_cscope.c | 462 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 D | ex_tag.c | 712 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 D | watchdogd.c | 122 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 D | thr.h | 59 struct rtprio *rtp; /* Real-time scheduling priority */ member
|
| /freebsd-12.1/sys/dev/isp/ |
| H A D | isp_pci.c | 324 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 D | ctf_types.c | 600 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 D | sun5i-a13.dtsi | 55 thermal-sensors = <&rtp>;
|
| H A D | sun4i-a10.dtsi | 134 thermal-sensors = <&rtp>; 899 rtp: rtp@1c25000 { label
|
| H A D | sun5i.dtsi | 631 rtp: rtp@1c25000 { label
|
| H A D | sun5i-gr8-evb.dts | 287 &rtp {
|
| H A D | sun6i-a31.dtsi | 172 thermal-sensors = <&rtp>; 795 rtp: rtp@1c25000 { label
|
| /freebsd-12.1/sys/compat/freebsd32/ |
| H A D | freebsd32.h | 276 uint32_t rtp; member
|
| /freebsd-12.1/tests/sys/audit/ |
| H A D | process-control.c | 1280 struct rtprio rtp; in ATF_TC_BODY() local 1285 ATF_REQUIRE_EQ(0, rtprio(RTP_LOOKUP, 0, &rtp)); in ATF_TC_BODY()
|