Home
last modified time | relevance | path

Searched full:rtp (Results 1 – 25 of 69) sorted by relevance

123

/freebsd/tools/regression/priv/
H A Dpriv_sched_rtprio.c105 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 Dthr_kern.c66 _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 Dthr_create.c65 struct rtprio rtp; in _pthread_create() local
173 param.rtp = NULL; in _pthread_create()
177 &sched_param, &rtp); in _pthread_create()
178 param.rtp = &rtp; in _pthread_create()
/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()
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 Dkern_resource.c294 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 Dkern_thr.c185 struct rtprio rtp, *rtpp; in kern_thr_new() local
192 if (param->rtp != 0) { in kern_thr_new()
193 error = copyin(param->rtp, &rtp, sizeof(struct rtprio)); in kern_thr_new()
196 rtpp = &rtp; in kern_thr_new()
206 thread_create(struct thread *td, struct rtprio *rtp, in thread_create() argument
215 if (rtp != NULL) { in thread_create()
216 switch(rtp->type) { in thread_create()
222 if (rtp->prio > RTP_PRIO_MAX) in thread_create()
226 rtp->prio = 0; in thread_create()
293 if (rtp != NULL && !(td->td_pri_class == PRI_TIMESHARE && 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/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()
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 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/lib/libsys/
H A Drtprio.267 .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 Dthr_new.278 struct rtprio *rtp;
146 .It Va rtp
196 .Fa rtp
210 .Fa rtp
/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/sys/compat/linux/
H A Dlinux_misc.c2683 linux_up_rtprio_if(struct thread *td1, struct rtprio *rtp) in linux_up_rtprio_if() argument
2688 if (rtp2.type < rtp->type || in linux_up_rtprio_if()
2689 (rtp2.type == rtp->type && in linux_up_rtprio_if()
2690 rtp2.prio < rtp->prio)) { in linux_up_rtprio_if()
2691 rtp->type = rtp2.type; in linux_up_rtprio_if()
2692 rtp->prio = rtp2.prio; in linux_up_rtprio_if()
2699 linux_rtprio2ioprio(struct rtprio *rtp) in linux_rtprio2ioprio() argument
2703 switch (rtp->type) { in linux_rtprio2ioprio()
2709 prio = rtp->prio / LINUX_PRIO_DIVIDER; in linux_rtprio2ioprio()
2713 prio = rtp->prio / LINUX_PRIO_DIVIDER; in linux_rtprio2ioprio()
[all …]
/freebsd/usr.sbin/virtual_oss/virtual_oss/
H A Dhttpd.c103 } __packed rtp; member
117 perr = "Cannot open raw RTP socket"; in voss_httpd_bind_rtp()
200 total_ip = sizeof(pkt.ip) + sizeof(pkt.udp) + sizeof(pkt.rtp) + len; in voss_httpd_send_rtp_sub()
224 pkt.rtp.header8[0] = (2 << 6); in voss_httpd_send_rtp_sub()
225 pkt.rtp.header8[1] = ((pvc->channels == 2) ? 10 : 11) | 0x80; in voss_httpd_send_rtp_sub()
227 pkt.rtp.header16[1] = htobe16(pvc->profile->http.rtp_seqnum); in voss_httpd_send_rtp_sub()
228 pkt.rtp.header32[1] = htobe32(ts); in voss_httpd_send_rtp_sub()
229 pkt.rtp.header32[2] = htobe32(0); in voss_httpd_send_rtp_sub()
233 (void *)&pkt.udp, sizeof(pkt.udp) / 2 + sizeof(pkt.rtp) / 2, in voss_httpd_send_rtp_sub()
578 fprintf(io, "rtp in voss_httpd_handle_connection()
[all...]
/freebsd/lib/libutil/
H A Dlogin_class.c490 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 Dprint-udp.c135 /* 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 Dallwinner,sun4i-a10-ts.yaml65 rtp: rtp@1c25000 {
/freebsd/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/usr.sbin/virtual_oss/virtual_bt_speaker/
H A Dbt_speaker.c450 struct rtprio rtp = {}; in main() local
470 rtp.type = RTP_PRIO_REALTIME; in main()
471 rtp.prio = atoi(optarg); in main()
472 if (rtprio(RTP_SET, getpid(), &rtp) != 0) { in main()
/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/contrib/device-tree/Bindings/input/
H A Dti,drv260x.txt14 time playback mode (RTP mode).
H A Dti,drv260x.yaml37 And the device is configured for real time playback mode (RTP mode).
/freebsd/tests/sys/kern/
H A Dunix_stream.c498 struct timespec tp1, tp2, rtp, sleep = { .tv_nsec = 100000000 }; in ATF_TC_BODY() local
510 timespecsub(&tp2, &tp1, &rtp); in ATF_TC_BODY()
511 ATF_REQUIRE(timespeccmp(&rtp, &sleep, >=)); in ATF_TC_BODY()

123