Lines Matching refs:rtp
2708 linux_up_rtprio_if(struct thread *td1, struct rtprio *rtp)
2713 if (rtp2.type < rtp->type ||
2714 (rtp2.type == rtp->type &&
2715 rtp2.prio < rtp->prio)) {
2716 rtp->type = rtp2.type;
2717 rtp->prio = rtp2.prio;
2724 linux_rtprio2ioprio(struct rtprio *rtp)
2728 switch (rtp->type) {
2734 prio = rtp->prio / LINUX_PRIO_DIVIDER;
2738 prio = rtp->prio / LINUX_PRIO_DIVIDER;
2750 linux_ioprio2rtprio(int ioprio, struct rtprio *rtp)
2755 rtp->prio = RTP_PRIO_MIN;
2756 rtp->type = RTP_PRIO_IDLE;
2759 rtp->prio = LINUX_IOPRIO_PRIO_DATA(ioprio) * LINUX_PRIO_DIVIDER;
2760 rtp->type = RTP_PRIO_NORMAL;
2763 rtp->prio = LINUX_IOPRIO_PRIO_DATA(ioprio) * LINUX_PRIO_DIVIDER;
2764 rtp->type = RTP_PRIO_REALTIME;
2777 struct rtprio rtp;
2786 rtp.type = RTP_PRIO_IDLE;
2787 rtp.prio = RTP_PRIO_MAX;
2807 pri_to_rtp(td1, &rtp);
2810 linux_up_rtprio_if(td1, &rtp);
2835 linux_up_rtprio_if(td1, &rtp);
2853 linux_up_rtprio_if(td1, &rtp);
2867 td->td_retval[0] = linux_rtprio2ioprio(&rtp);
2878 struct rtprio rtp;
2883 if ((error = linux_ioprio2rtprio(args->ioprio, &rtp)) != 0)
2886 if (RTP_PRIO_BASE(rtp.type) == RTP_PRIO_REALTIME &&
2911 error = rtp_to_pri(&rtp, td1);
2914 if ((error = rtp_to_pri(&rtp, td1)) != 0)
2939 if ((error = rtp_to_pri(&rtp, td1)) != 0)
2959 if ((error = rtp_to_pri(&rtp, td1)) != 0)