| /netbsd-src/sys/kern/ |
| H A D | bufq_readprio.c | 111 struct bufq_prio *prio = bufq_private(bufq); in bufq_prio_put() local 121 TAILQ_INSERT_TAIL(&prio->bq_read, bp, b_actq); in bufq_prio_put() 125 bq = TAILQ_FIRST(&prio->bq_write); in bufq_prio_put() 131 TAILQ_INSERT_TAIL(&prio->bq_write, bp, b_actq); in bufq_prio_put() 132 prio->bq_write_next = bp; in bufq_prio_put() 139 if (buf_inorder(prio->bq_write_next, bp, sortby)) in bufq_prio_put() 140 bq = prio->bq_write_next; in bufq_prio_put() 152 TAILQ_INSERT_TAIL(&prio->bq_write, bp, b_actq); in bufq_prio_put() 158 struct bufq_prio *prio = bufq_private(bufq); in bufq_prio_get() local 164 if (prio->bq_next == NULL) { in bufq_prio_get() [all …]
|
| H A D | kern_turnstile.c | 212 pri_t prio; in turnstile_lendpri() local 222 prio = lwp_eprio(l); in turnstile_lendpri() 266 prio = lwp_eprio(l); in turnstile_lendpri() 273 if (prio <= lwp_eprio(owner)) { in turnstile_lendpri() 287 ts->ts_eprio = prio; in turnstile_lendpri() 289 lwp_lendpri(owner, prio); in turnstile_lendpri() 290 } else if (prio > ts->ts_eprio) { in turnstile_lendpri() 291 ts->ts_eprio = prio; in turnstile_lendpri() 292 lwp_lendpri(owner, prio); in turnstile_lendpri() 318 pri_t prio; in turnstile_unlendpri() local [all …]
|
| H A D | sched_m2.c | 184 sched_nice(struct proc *p, int prio) in sched_nice() argument 191 p->p_nice = prio; in sched_nice() 192 n = (prio - NZERO) >> 2; in sched_nice() 248 pri_t prio; in sched_pstats_hook() local 260 prio = l->l_priority; in sched_pstats_hook() 261 if (batch && prio != 0) in sched_pstats_hook() 262 prio--; in sched_pstats_hook() 267 prio = high_pri[prio]; in sched_pstats_hook() 269 if (prio != l->l_priority) in sched_pstats_hook() 270 lwp_changepri(l, prio); in sched_pstats_hook() [all …]
|
| /netbsd-src/usr.bin/renice/ |
| H A D | renice.c | 67 int prio, errs = 0, incr = 0; in main() local 79 if (getnum("priority", *argv, &prio)) in main() 117 errs += donice(which, who, prio, incr); in main() 145 donice(int which, id_t who, int prio, int incr) in donice() argument 156 prio = oldprio + prio; in donice() 158 if (prio > PRIO_MAX) in donice() 159 prio = PRIO_MAX; in donice() 160 if (prio < PRIO_MIN) in donice() 161 prio = PRIO_MIN; in donice() 163 if (setpriority(which, who, prio) == -1) { in donice() [all …]
|
| /netbsd-src/external/bsd/mdocml/dist/ |
| H A D | tag.c | 42 int prio; member 136 tag_put(const char *s, int prio, size_t line) in tag_put() argument 160 prio = INT_MAX; in tag_put() 185 if (prio == 0) { in tag_put() 186 if (entry->prio == 0) in tag_put() 187 entry->prio = -1; in tag_put() 193 if (entry->prio > 0 && entry->prio < prio) in tag_put() 198 if (entry->prio < 1 || entry->prio > prio) in tag_put() 210 entry->prio = prio; in tag_put() 235 if (stream != NULL && entry->prio >= 0) in tag_write()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/ |
| H A D | i915_scheduler.c | 134 i915_sched_lookup_priolist(struct intel_engine_cs *engine, int prio) in i915_sched_lookup_priolist() argument 146 idx = I915_PRIORITY_COUNT - (prio & I915_PRIORITY_MASK) - 1; in i915_sched_lookup_priolist() 147 prio >>= I915_USER_PRIORITY_SHIFT; in i915_sched_lookup_priolist() 149 prio = I915_PRIORITY_NORMAL; in i915_sched_lookup_priolist() 157 p = rb_tree_find_node(&execlists->queue.rb_root.rbr_tree, &prio); in i915_sched_lookup_priolist() 167 if (prio > p->priority) { in i915_sched_lookup_priolist() 169 } else if (prio < p->priority) { in i915_sched_lookup_priolist() 178 if (prio == I915_PRIORITY_NORMAL) { in i915_sched_lookup_priolist() 184 prio = I915_PRIORITY_NORMAL; /* recurses just once */ in i915_sched_lookup_priolist() 199 p->priority = prio; in i915_sched_lookup_priolist() [all …]
|
| /netbsd-src/sys/arch/arc/arc/ |
| H A D | interrupt.c | 74 int prio) in arc_set_intr() argument 77 if (prio >= ARC_NINTPRI) in arc_set_intr() 80 if (cpu_int_tab[prio].int_mask != 0 && in arc_set_intr() 81 (cpu_int_tab[prio].int_mask != mask || in arc_set_intr() 82 cpu_int_tab[prio].int_hand != int_hand)) { in arc_set_intr() 86 cpu_int_tab[prio].int_hand = int_hand; in arc_set_intr() 87 cpu_int_tab[prio].int_mask = mask; in arc_set_intr()
|
| H A D | c_nec_jazz.c | 112 uint32_t (*int_hand)(uint32_t, struct clockframe *), int prio) in c_nec_jazz_set_intr() argument 115 arc_set_intr(mask, int_hand, prio); in c_nec_jazz_set_intr()
|
| /netbsd-src/sys/netinet/ |
| H A D | ip_encap.c | 200 int prio, matchprio; in encap4_lookup() local 241 prio = (*ep->func)(m, off, proto, ep->arg); in encap4_lookup() 244 prio = pack.mine.sin_len + pack.yours.sin_len; in encap4_lookup() 247 if (prio <= 0) { in encap4_lookup() 253 if (prio > matchprio) { in encap4_lookup() 261 matchprio = prio; in encap4_lookup() 282 prio = (*ep->func)(m, off, proto, ep->arg); in encap4_lookup() 296 if (prio <= 0) { in encap4_lookup() 301 if (prio > matchprio) { in encap4_lookup() 309 matchprio = prio; in encap4_lookup() [all …]
|
| /netbsd-src/lib/libc/gen/ |
| H A D | nice.c | 58 int prio; in __weak_alias() local 61 prio = getpriority(PRIO_PROCESS, 0); in __weak_alias() 62 if (prio == -1 && errno) in __weak_alias() 64 if (setpriority(PRIO_PROCESS, 0, prio + incr) == -1) { in __weak_alias()
|
| /netbsd-src/sys/compat/linux/common/ |
| H A D | linux_sched.c | 364 int prio = linux_params->sched_priority; in sched_native2linux() 369 if (prio != 0) { 374 if (prio < LINUX_SCHED_RTPRIO_MIN || in linux_sys_sched_setparam() 375 prio > LINUX_SCHED_RTPRIO_MAX) { in linux_sys_sched_setparam() 379 (prio - LINUX_SCHED_RTPRIO_MIN) in linux_sys_sched_setparam() 418 int prio = native_params->sched_priority; in linux_sys_sched_getparam() 420 KASSERT(prio >= SCHED_PRI_MIN); in linux_sys_sched_getparam() 421 KASSERT(prio <= SCHED_PRI_MAX); in linux_sys_sched_getparam() 427 __func__, native_policy, prio); in linux_sys_sched_getparam() 433 (prio in linux_sys_sched_getparam() 289 int prio = linux_params->sched_priority; sched_linux2native() local 343 int prio = native_params->sched_priority; sched_native2linux() local [all...] |
| /netbsd-src/external/bsd/tcpdump/dist/tests/ |
| H A D | forces2vv.out | 44 AlwaysACK(0x3), prio=7, EMReserved(0x0), 59 NoACK(0x0), prio=7, EMReserved(0x0), 74 AlwaysACK(0x3), prio=0, execute-all-or-none(0x1), 89 NoACK(0x0), prio=1, EMReserved(0x0), 104 AlwaysACK(0x3), prio=0, EMReserved(0x0), 119 NoACK(0x0), prio=1, EMReserved(0x0), 158 AlwaysACK(0x3), prio=0, EMReserved(0x0), 173 NoACK(0x0), prio=1, EMReserved(0x0), 188 AlwaysACK(0x3), prio=7, execute-all-or-none(0x1), 203 NoACK(0x0), prio=7, execute-all-or-none(0x1), [all …]
|
| H A D | forces2vvv.out | 44 AlwaysACK(0x3), prio=7, EMReserved(0x0), 59 NoACK(0x0), prio=7, EMReserved(0x0), 74 AlwaysACK(0x3), prio=0, EMReserved(0x0), 89 NoACK(0x0), prio=1, EMReserved(0x0), 128 AlwaysACK(0x3), prio=0, EMReserved(0x0), 143 NoACK(0x0), prio=1, EMReserved(0x0), 158 AlwaysACK(0x3), prio=0, EMReserved(0x0), 179 NoACK(0x0), prio=1, EMReserved(0x0), 212 AlwaysACK(0x3), prio=0, EMReserved(0x0), 225 NoACK(0x0), prio=1, EMReserved(0x0), [all …]
|
| H A D | forces3vvv.out | 44 AlwaysACK(0x3), prio=7, EMReserved(0x0), 59 NoACK(0x0), prio=7, execute-all-or-none(0x1), 76 AlwaysACK(0x3), prio=7, execute-all-or-none(0x1), 94 NoACK(0x0), prio=7, execute-all-or-none(0x1), 124 AlwaysACK(0x3), prio=7, execute-all-or-none(0x1), 142 NoACK(0x0), prio=7, execute-all-or-none(0x1), 175 AlwaysACK(0x3), prio=7, execute-all-or-none(0x1), 209 NoACK(0x0), prio=7, execute-all-or-none(0x1), 235 AlwaysACK(0x3), prio=7, execute-all-or-none(0x1), 269 NoACK(0x0), prio=7, execute-all-or-none(0x1), [all …]
|
| /netbsd-src/external/bsd/top/dist/machine/ |
| H A D | m_svr4.c | 673 int prio; in setpriority() local 682 prio = niceval; in setpriority() 683 if (prio > PRIO_MAX) in setpriority() 684 prio = PRIO_MAX; in setpriority() 685 else if (prio < PRIO_MIN) in setpriority() 686 prio = PRIO_MIN; in setpriority() 690 tsparms->ts_uprilim = tsparms->ts_upri = -(scale * prio) / 20; in setpriority()
|
| /netbsd-src/sys/rump/librump/rumpkern/ |
| H A D | ltsleep.c | 121 tsleep(wchan_t ident, pri_t prio, const char *wmesg, int timo) in tsleep() argument 141 mtsleep(wchan_t ident, pri_t prio, const char *wmesg, int timo, kmutex_t *lock) in mtsleep() argument 148 if ((prio & PNORELOCK) == 0) in mtsleep()
|
| /netbsd-src/external/bsd/top/dist/ |
| H A D | commands.c | 476 int prio; in renice_procs() local 491 procnum = scanint(str, &prio); in renice_procs() 496 prio = -prio; in renice_procs() 501 if (procnum == -1 || prio < PRIO_MIN || prio > PRIO_MAX) in renice_procs() 529 else if (setpriority(PRIO_PROCESS, procnum, prio) == -1) in renice_procs()
|
| /netbsd-src/sys/arch/arm/imx/ |
| H A D | imx23_icoll.c | 137 uint8_t prio; in imx23_intr_dispatch() local 151 prio = ICOLL_GET_PRIO(icoll_sc, irq); in imx23_intr_dispatch() 163 ICOLL_WRITE(icoll_sc, HW_ICOLL_LEVELACK, (1<<prio)); in imx23_intr_dispatch() 180 ICOLL_WRITE(icoll_sc, HW_ICOLL_LEVELACK, (1<<prio)); in imx23_intr_dispatch()
|
| /netbsd-src/sys/ufs/chfs/ |
| H A D | chfs_write.c | 46 struct chfs_inode *ip, int prio) in chfs_write_flash_vnode() argument 87 if (prio == ALLOC_GC) { in chfs_write_flash_vnode() 94 if (prio == ALLOC_NORMAL) in chfs_write_flash_vnode() 159 ino_t ino, int prio) in chfs_write_flash_dirent() argument 206 if (prio == ALLOC_GC) { in chfs_write_flash_dirent() 213 if (prio == ALLOC_NORMAL) in chfs_write_flash_dirent() 265 if (prio != ALLOC_DELETION) { in chfs_write_flash_dirent()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/gem/selftests/ |
| H A D | i915_gem_object_blt.c | 216 unsigned int prio; in igt_fill_blt_thread() local 226 prio = i915_prandom_u32_max_state(I915_PRIORITY_MAX, prng); in igt_fill_blt_thread() 227 ctx->sched.priority = I915_USER_PRIORITY(prio); in igt_fill_blt_thread() 325 unsigned int prio; in igt_copy_blt_thread() local 335 prio = i915_prandom_u32_max_state(I915_PRIORITY_MAX, prng); in igt_copy_blt_thread() 336 ctx->sched.priority = I915_USER_PRIORITY(prio); in igt_copy_blt_thread()
|
| /netbsd-src/sys/arch/macppc/macppc/ |
| H A D | pic_ohare.c | 225 uint16_t prio; in ohare_get_irq() local 252 prio = ohare->priority_masks[bit]; in ohare_get_irq() 255 prio |= ohare->priority_masks[bit]; in ohare_get_irq() 263 lvl = 31 - __builtin_clz(prio); in ohare_get_irq()
|
| /netbsd-src/external/bsd/wpa/dist/src/rsn_supp/ |
| H A D | preauth.h | 24 int prio, int preauth); 62 int prio, int preauth) in pmksa_candidate_add() argument
|
| /netbsd-src/usr.bin/su/ |
| H A D | su_pam.c | 105 int asme, ch, asthem, fastlogin, prio, gohome; in main() local 170 prio = getpriority(PRIO_PROCESS, 0); in main() 172 prio = 0; in main() 173 if (prio > -2) in main() 535 (void)setpriority(PRIO_PROCESS, 0, prio); in main()
|
| H A D | su.c | 111 int asme, ch, asthem, fastlogin, prio, gohome; in main() local 176 prio = getpriority(PRIO_PROCESS, 0); in main() 178 prio = 0; in main() 179 if (prio > -2) in main() 437 (void)setpriority(PRIO_PROCESS, 0, prio); in main()
|
| /netbsd-src/external/bsd/pkg_install/dist/lib/ |
| H A D | pkgdb.c | 337 pkgdb_set_dir(const char *dir, int prio) in pkgdb_set_dir() argument 340 if (prio < pkgdb_dir_prio) in pkgdb_set_dir() 343 pkgdb_dir_prio = prio; in pkgdb_set_dir()
|