Lines Matching refs:rtp

2685 linux_up_rtprio_if(struct thread *td1, struct rtprio *rtp)  in linux_up_rtprio_if()  argument
2690 if (rtp2.type < rtp->type || in linux_up_rtprio_if()
2691 (rtp2.type == rtp->type && in linux_up_rtprio_if()
2692 rtp2.prio < rtp->prio)) { in linux_up_rtprio_if()
2693 rtp->type = rtp2.type; in linux_up_rtprio_if()
2694 rtp->prio = rtp2.prio; in linux_up_rtprio_if()
2701 linux_rtprio2ioprio(struct rtprio *rtp) in linux_rtprio2ioprio() argument
2705 switch (rtp->type) { in linux_rtprio2ioprio()
2711 prio = rtp->prio / LINUX_PRIO_DIVIDER; in linux_rtprio2ioprio()
2715 prio = rtp->prio / LINUX_PRIO_DIVIDER; in linux_rtprio2ioprio()
2727 linux_ioprio2rtprio(int ioprio, struct rtprio *rtp) in linux_ioprio2rtprio() argument
2732 rtp->prio = RTP_PRIO_MIN; in linux_ioprio2rtprio()
2733 rtp->type = RTP_PRIO_IDLE; in linux_ioprio2rtprio()
2736 rtp->prio = LINUX_IOPRIO_PRIO_DATA(ioprio) * LINUX_PRIO_DIVIDER; in linux_ioprio2rtprio()
2737 rtp->type = RTP_PRIO_NORMAL; in linux_ioprio2rtprio()
2740 rtp->prio = LINUX_IOPRIO_PRIO_DATA(ioprio) * LINUX_PRIO_DIVIDER; in linux_ioprio2rtprio()
2741 rtp->type = RTP_PRIO_REALTIME; in linux_ioprio2rtprio()
2754 struct rtprio rtp; in linux_ioprio_get() local
2763 rtp.type = RTP_PRIO_IDLE; in linux_ioprio_get()
2764 rtp.prio = RTP_PRIO_MAX; in linux_ioprio_get()
2784 pri_to_rtp(td1, &rtp); in linux_ioprio_get()
2787 linux_up_rtprio_if(td1, &rtp); in linux_ioprio_get()
2812 linux_up_rtprio_if(td1, &rtp); in linux_ioprio_get()
2830 linux_up_rtprio_if(td1, &rtp); in linux_ioprio_get()
2844 td->td_retval[0] = linux_rtprio2ioprio(&rtp); in linux_ioprio_get()
2855 struct rtprio rtp; in linux_ioprio_set() local
2860 if ((error = linux_ioprio2rtprio(args->ioprio, &rtp)) != 0) in linux_ioprio_set()
2863 if (RTP_PRIO_BASE(rtp.type) == RTP_PRIO_REALTIME && in linux_ioprio_set()
2888 error = rtp_to_pri(&rtp, td1); in linux_ioprio_set()
2891 if ((error = rtp_to_pri(&rtp, td1)) != 0) in linux_ioprio_set()
2916 if ((error = rtp_to_pri(&rtp, td1)) != 0) in linux_ioprio_set()
2936 if ((error = rtp_to_pri(&rtp, td1)) != 0) in linux_ioprio_set()