/third_party/ltp/testcases/kernel/syscalls/ioprio/ |
D | ioprio_set01.c | 23 int class = orig_class, prio = orig_prio; in run() local 27 prio = prio + 1; in run() 28 if (!prio_in_range(prio)) { in run() 29 tst_res(TCONF, "ioprio increase out of range (%d)", prio); in run() 34 IOPRIO_PRIO_VALUE(class, prio))); in run() 38 ioprio_check_setting(class, prio, 1); in run() 42 prio = prio - 2; in run() 43 if (!prio_in_range(prio)) { in run() 44 tst_res(TCONF, "ioprio decrease out of range (%d)", prio); in run() 49 IOPRIO_PRIO_VALUE(class, prio))); in run() [all …]
|
D | ioprio_set02.c | 20 int class, prio; in run() local 27 for (prio = 0; prio < IOPRIO_PRIO_NUM; prio++) { in run() 29 IOPRIO_PRIO_VALUE(class, prio))); in run() 31 tst_res(TFAIL | TTERRNO, "ioprio_set IOPRIO_CLASS_BE prio %d failed", prio); in run() 43 for (prio = 0; prio < IOPRIO_PRIO_NUM; prio++) { in run() 45 IOPRIO_PRIO_VALUE(class, prio))); in run() 47 tst_res(TFAIL | TTERRNO, "ioprio_set IOPRIO_CLASS_IDLE prio %d failed", prio); in run()
|
D | ioprio.h | 31 static inline int prio_in_range(int prio) in prio_in_range() argument 33 if ((prio < 0) || (prio >= IOPRIO_PRIO_NUM)) in prio_in_range() 46 static inline void ioprio_check_setting(int class, int prio, int report) in ioprio_check_setting() argument 65 else if (newprio != prio) in ioprio_check_setting() 68 prio, newprio); in ioprio_check_setting()
|
D | ioprio_get01.c | 19 int prio, class; in run() local 30 prio = IOPRIO_PRIO_LEVEL(TST_RET); in run() 32 if (!prio_in_range(prio)) { in run() 33 tst_res(TFAIL, "ioprio out of range (%d)", prio); in run() 43 to_class_str[class], prio); in run()
|
/third_party/musl/src/unistd/ |
D | nice.c | 9 int prio = inc; in nice() local 13 prio += getpriority(PRIO_PROCESS, 0); in nice() 14 if (prio > NZERO-1) prio = NZERO-1; in nice() 15 if (prio < -NZERO) prio = -NZERO; in nice() 16 if (setpriority(PRIO_PROCESS, 0, prio)) { in nice() 21 return prio; in nice()
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/ |
D | stress.c | 93 int prio; member 120 if (sp.sched_priority != td[i].prio) { in threaded() 196 td[0].prio = sched_get_priority_min(SCHED_FIFO); in main() 198 if (td[0].prio == -1) { in main() 202 td[1].prio = sched_get_priority_max(SCHED_FIFO); in main() 204 if (td[1].prio == -1) { in main() 208 td[2].prio = sched_get_priority_min(SCHED_RR); in main() 210 if (td[2].prio == -1) { in main() 214 td[3].prio = sched_get_priority_max(SCHED_RR); in main() 216 if (td[3].prio == -1) { in main() [all …]
|
/third_party/mesa3d/include/android_stub/log/ |
D | log_main.h | 82 #define android_writeLog(prio, tag, text) __android_log_write(prio, tag, text) argument 84 #define android_printLog(prio, tag, ...) \ argument 85 __android_log_print(prio, tag, __VA_ARGS__) 87 #define android_vprintLog(prio, cond, tag, ...) \ argument 88 __android_log_vprint(prio, tag, __VA_ARGS__) 363 int __android_log_is_loggable(int prio, const char* tag, int default_prio); 364 int __android_log_is_loggable_len(int prio, const char* tag, size_t len, int default_prio); 367 #define android_testLog(prio, tag) \ argument 368 (__android_log_is_loggable_len(prio, tag, (tag) ? strlen(tag) : 0, ANDROID_LOG_DEBUG) != 0) 370 #define android_testLog(prio, tag) \ argument [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mq_timedsend/ |
D | mq_timedsend01.c | 44 .prio = MQ_PRIO_MAX - 1, 81 .prio = MQ_PRIO_MAX, 166 unsigned int prio; in do_test() local 183 if (tv->mqt_send(*tc->fd, smsg, tc->len, tc->prio, NULL) < 0) { in do_test() 199 TEST(tv->mqt_send(*tc->fd, msg_ptr, tc->len, tc->prio, abs_timeout)); in do_test() 218 TEST(tv->mqt_receive(*tc->fd, rmsg, len, &prio, tst_ts_get(tc->rq))); in do_test() 244 if (tc->prio != prio) { in do_test() 246 prio, tc->prio); in do_test() 260 TST_RET, prio, len); in do_test()
|
/third_party/mesa3d/include/android_stub/android/ |
D | log.h | 98 int __android_log_write(int prio, const char* tag, const char* text); 105 int __android_log_print(int prio, const char* tag, const char* fmt, ...) 112 int __android_log_vprint(int prio, const char* tag, const char* fmt, va_list ap) 170 int __android_log_buf_write(int bufID, int prio, const char* tag, const char* text); 180 int __android_log_buf_print(int bufID, int prio, const char* tag, const char* fmt, ...) 318 int __android_log_is_loggable(int prio, const char* tag, int default_prio) __INTRODUCED_IN(30); 338 int __android_log_is_loggable_len(int prio, const char* tag, size_t len, int default_prio)
|
/third_party/ltp/testcases/realtime/doc/ |
D | AUTOMATED_RUN | 22 In dir func/prio-preempt, user runs ./run_auto.sh prf1 24 $SCRIPTS_DIR/run_c_files.sh $profile prio-preempt 27 func/prio-preempt prio-preempt -c 2 -j 28 func/prio-preempt prio-preempt -c 1 30 and run the following commands from the func/prio-preempt dir: 31 prio-preempt -c 2 -j 32 prio-preempt -c 1
|
/third_party/ltp/testcases/kernel/syscalls/mq_timedreceive/ |
D | mq_timedreceive01.c | 48 .prio = MQ_PRIO_MAX - 1, 153 unsigned int prio; in do_test() local 169 if (tv->mqt_send(*tc->fd, smsg, tc->len, tc->prio, NULL) < 0) { in do_test() 183 TEST(tv->mqt_receive(*tc->fd, rmsg, len, &prio, abs_timeout)); in do_test() 208 if (tc->prio != prio) { in do_test() 210 prio, tc->prio); in do_test() 224 TST_RET, prio, len); in do_test()
|
/third_party/ltp/testcases/realtime/testcases/realtime/doc/ |
D | AUTOMATED_RUN | 22 In dir func/prio-preempt, user runs ./run_auto.sh prf1 24 $SCRIPTS_DIR/run_c_files.sh $profile prio-preempt 27 func/prio-preempt prio-preempt -c 2 -j 28 func/prio-preempt prio-preempt -c 1 30 and run the following commands from the func/prio-preempt dir: 31 prio-preempt -c 2 -j 32 prio-preempt -c 1
|
/third_party/libdrm/freedreno/msm/ |
D | msm_pipe.c | 99 static int open_submitqueue(struct fd_pipe *pipe, uint32_t prio) in open_submitqueue() argument 103 .prio = prio, in open_submitqueue() 115 req.prio = MIN2(req.prio, MAX2(nr_rings, 1) - 1); in open_submitqueue() 169 enum fd_pipe_id id, uint32_t prio) in msm_pipe_new() argument 204 if (open_submitqueue(pipe, prio)) in msm_pipe_new()
|
/third_party/ltp/testcases/kernel/syscalls/setpriority/ |
D | setpriority02.c | 39 int prio; member 62 TEST(setpriority(tc->which, tc->who, tc->prio)); in setpriority_test() 67 "returned %ld", tc->which, tc->who, tc->prio, desc, in setpriority_test() 75 tc->which, tc->who, tc->prio, desc, in setpriority_test() 82 tc->which, tc->who, tc->prio, desc); in setpriority_test()
|
/third_party/ltp/testcases/realtime/func/periodic_cpu_load/ |
D | periodic_cpu_load_single.c | 54 static int prio; variable 183 prio = atoi(v); in parse_args() 198 prio = DEFAULT_PRIO; in main() 209 if (!period || !prio | !calc_loops) { in main() 214 set_priority(prio); in main() 220 printf("priority: %d\n", prio); in main()
|
/third_party/mesa3d/src/freedreno/drm/virtio/ |
D | virtio_pipe.c | 146 open_submitqueue(struct fd_pipe *pipe, uint32_t prio) in open_submitqueue() argument 152 .prio = prio, in open_submitqueue() 159 req.prio = MIN2(req.prio, MAX2(nr_rings, 1) - 1); in open_submitqueue() 168 virtio_pipe->ring_idx = req.prio + 1; in open_submitqueue() 226 virtio_pipe_new(struct fd_device *dev, enum fd_pipe_id id, uint32_t prio) in virtio_pipe_new() argument 269 if (open_submitqueue(pipe, prio)) in virtio_pipe_new()
|
/third_party/musl/src/mq/ |
D | mq_timedreceive.c | 8 ssize_t mq_timedreceive(mqd_t mqd, char *restrict msg, size_t len, unsigned *restrict prio, const s… in mq_timedreceive() argument 15 r = __syscall_cp(SYS_mq_timedreceive_time64, mqd, msg, len, prio, in mq_timedreceive() 19 return syscall_cp(SYS_mq_timedreceive, mqd, msg, len, prio, in mq_timedreceive() 22 return syscall_cp(SYS_mq_timedreceive, mqd, msg, len, prio, at); in mq_timedreceive()
|
D | mq_timedsend.c | 8 int mq_timedsend(mqd_t mqd, const char *msg, size_t len, unsigned prio, const struct timespec *at) in mq_timedsend() argument 15 r = __syscall_cp(SYS_mq_timedsend_time64, mqd, msg, len, prio, in mq_timedsend() 19 return syscall_cp(SYS_mq_timedsend, mqd, msg, len, prio, in mq_timedsend() 22 return syscall_cp(SYS_mq_timedsend, mqd, msg, len, prio, at); in mq_timedsend()
|
/third_party/ltp/testcases/realtime/lib/ |
D | librttest.c | 288 int create_thread(void *(*func) (void *), void *arg, int prio, int policy) in create_thread() argument 304 thread->priority = prio; in create_thread() 309 param.sched_priority = prio; in create_thread() 330 int create_fifo_thread(void *(*func) (void *), void *arg, int prio) in create_fifo_thread() argument 332 return create_thread(func, arg, prio, SCHED_FIFO); in create_fifo_thread() 335 int create_rr_thread(void *(*func) (void *), void *arg, int prio) in create_rr_thread() argument 337 return create_thread(func, arg, prio, SCHED_RR); in create_rr_thread() 345 int set_thread_priority(pthread_t pthread, int prio) in set_thread_priority() argument 348 sched_param.sched_priority = prio; in set_thread_priority() 351 policy = (prio > 0) ? SCHED_FIFO : SCHED_OTHER; in set_thread_priority() [all …]
|
/third_party/ffmpeg/libavutil/ |
D | tx.c | 287 .prio = FF_TX_PRIO_MAX, 336 static void print_cd_info(const FFTXCodelet *cd, int prio, int print_prio) in print_cd_info() argument 370 av_bprintf(&bp, ", prio: %i", prio); in print_cd_info() 382 print_cd_info(cd, cd->prio, 0); in print_tx_structure() 391 int prio; member 396 return FFDIFFSIGN(b->prio, a->prio); in cmp_matches() 543 cd_matches[nb_cd_matches].prio = cd->prio; in ff_tx_init_subtx() 549 cd_matches[nb_cd_matches].prio -= slow_penalties[i][1]; in ff_tx_init_subtx() 554 cd_matches[nb_cd_matches].prio += 64; in ff_tx_init_subtx() 558 cd_matches[nb_cd_matches].prio += 64; in ff_tx_init_subtx() [all …]
|
/third_party/ltp/testcases/realtime/profiles/ |
D | default | 34 func/prio-preempt prio-preempt -c 1 51 func/hrtimer-prio hrtimer-prio 58 func/prio-wake prio-wake
|
/third_party/mesa3d/src/freedreno/drm/msm/ |
D | msm_pipe.c | 156 open_submitqueue(struct fd_pipe *pipe, uint32_t prio) in open_submitqueue() argument 160 .prio = prio, in open_submitqueue() 172 req.prio = MIN2(req.prio, MAX2(nr_rings, 1) - 1); in open_submitqueue() 237 msm_pipe_new(struct fd_device *dev, enum fd_pipe_id id, uint32_t prio) in msm_pipe_new() argument 280 if (open_submitqueue(pipe, prio)) in msm_pipe_new()
|
/third_party/ltp/testcases/realtime/include/ |
D | librttest.h | 232 int create_thread(void*(*func)(void*), void *arg, int prio, int policy); 240 int create_fifo_thread(void*(*func)(void*), void *arg, int prio); 248 int create_rr_thread(void*(*func)(void*), void *arg, int prio); 258 int set_thread_priority(pthread_t pthread, int prio); 264 int set_priority(int prio);
|
/third_party/pulseaudio/src/pulsecore/ |
D | rtpoll.h | 72 pa_rtpoll_item *pa_rtpoll_item_new(pa_rtpoll *p, pa_rtpoll_priority_t prio, unsigned n_fds); 96 pa_rtpoll_item *pa_rtpoll_item_new_fdsem(pa_rtpoll *p, pa_rtpoll_priority_t prio, pa_fdsem *s); 97 pa_rtpoll_item *pa_rtpoll_item_new_asyncmsgq_read(pa_rtpoll *p, pa_rtpoll_priority_t prio, pa_async… 98 pa_rtpoll_item *pa_rtpoll_item_new_asyncmsgq_write(pa_rtpoll *p, pa_rtpoll_priority_t prio, pa_asyn…
|
/third_party/ltp/testcases/realtime/func/prio-wake/ |
D | prio-wake.c | 172 int prio; in main() local 205 prio = sched_get_priority_min(SCHED_FIFO); in main() 208 prio++; in main() 209 create_fifo_thread(worker_thread, (void *)(intptr_t) i, prio); in main() 213 create_fifo_thread(master_thread, (void *)(intptr_t) i, ++prio); in main()
|