Lines Matching full:rtp
66 _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()
102 rtp->prio = 0; in _schedparam_to_rtp()
111 struct rtprio rtp; in _thr_getscheduler() local
114 ret = rtprio_thread(RTP_LOOKUP, lwpid, &rtp); in _thr_getscheduler()
117 _rtp_to_schedparam(&rtp, policy, param); in _thr_getscheduler()
124 struct rtprio rtp; in _thr_setscheduler() local
126 _schedparam_to_rtp(policy, param, &rtp); in _thr_setscheduler()
127 return (rtprio_thread(RTP_SET, lwpid, &rtp)); in _thr_setscheduler()