Lines Matching refs:rtp
66 _rtp_to_schedparam(const struct rtprio *rtp, int *policy,
69 switch(rtp->type) {
72 param->sched_priority = RTP_PRIO_MAX - rtp->prio;
76 param->sched_priority = RTP_PRIO_MAX - rtp->prio;
88 struct rtprio *rtp)
92 rtp->type = RTP_PRIO_REALTIME;
93 rtp->prio = RTP_PRIO_MAX - param->sched_priority;
96 rtp->type = RTP_PRIO_FIFO;
97 rtp->prio = RTP_PRIO_MAX - param->sched_priority;
101 rtp->type = RTP_PRIO_NORMAL;
102 rtp->prio = 0;
111 struct rtprio rtp;
114 ret = rtprio_thread(RTP_LOOKUP, lwpid, &rtp);
117 _rtp_to_schedparam(&rtp, policy, param);
124 struct rtprio rtp;
126 _schedparam_to_rtp(policy, param, &rtp);
127 return (rtprio_thread(RTP_SET, lwpid, &rtp));