/freebsd/sys/kern/ |
H A D | kern_switch.c | 274 runq_clrbit(struct runq *rq, int pri) in runq_clrbit() argument 280 rqb->rqb_bits[RQB_WORD(pri)], in runq_clrbit() 281 rqb->rqb_bits[RQB_WORD(pri)] & ~RQB_BIT(pri), in runq_clrbit() 282 RQB_BIT(pri), RQB_WORD(pri)); in runq_clrbit() 283 rqb->rqb_bits[RQB_WORD(pri)] &= ~RQB_BIT(pri); in runq_clrbit() 294 int pri; in runq_findbit() local 300 pri = RQB_FFS(rqb->rqb_bits[i]) + (i << RQB_L2BPW); in runq_findbit() 302 rqb->rqb_bits[i], i, pri); in runq_findbit() 303 return (pri); in runq_findbit() 310 runq_findbit_from(struct runq *rq, u_char pri) in runq_findbit_from() argument [all …]
|
H A D | subr_prf.c | 101 int pri; member 116 static void msglogchar(int c, int pri); 117 static void msglogstr(char *str, int pri, int filter_cr); 118 static void prf_putbuf(char *bufr, int flags, int pri); 220 tprintf(struct proc *p, int pri, const char *fmt, ...) in tprintf() argument 225 vtprintf(p, pri, fmt, ap); in tprintf() 230 vtprintf(struct proc *p, int pri, const char *fmt, va_list ap) in vtprintf() argument 238 if (pri != -1) in vtprintf() 254 pca.pri = pri; in vtprintf() 280 pca.pri = level; in _vprintf() [all …]
|
/freebsd/contrib/netbsd-tests/lib/librt/ |
H A D | t_sched.c | 105 sched_priority_set(int pri, int pol) in sched_priority_set() argument 109 sched.sched_priority = pri; in sched_priority_set() 111 ATF_REQUIRE(pri >= 0); in sched_priority_set() 125 ATF_CHECK_EQ(sched.sched_priority, pri); in sched_priority_set() 137 int pri; in ATF_TC_BODY() local 139 pri = sched_get_priority_max(SCHED_RR); in ATF_TC_BODY() 140 sched_priority_set(pri, SCHED_RR); in ATF_TC_BODY() 152 int pri; in ATF_TC_BODY() local 154 pri = sched_get_priority_min(SCHED_RR); in ATF_TC_BODY() 155 sched_priority_set(pri, SCHED_RR); in ATF_TC_BODY() [all …]
|
/freebsd/lib/libc/locale/ |
H A D | collate.c | 252 return (p->pri); in substsearch() 315 int *pri, int which, const int **state) in _collate_lookup() argument 327 *pri = *t; in _collate_lookup() 338 *pri = *sptr; in _collate_lookup() 356 ((p = p2->pri[which]) >= 0)) { in _collate_lookup() 359 *pri = p; in _collate_lookup() 367 *pri = table->char_pri_table[*t].pri[which]; in _collate_lookup() 375 *pri = match->pri.pri[which]; in _collate_lookup() 383 *pri = (*t & COLLATE_MAX_PRIORITY); in _collate_lookup() 385 *pri = table->info->undef_pri[which]; in _collate_lookup() [all …]
|
/freebsd/usr.bin/localedef/ |
H A D | collate.c | 140 int32_t pri; member 147 int32_t pri; member 280 prilist[i].pri = 0; in new_pri() 300 collpri_t *pri; in set_pri() local 302 pri = get_pri(ref); in set_pri() 314 if (pri->res != UNKNOWN) { in set_pri() 316 pri->lineno); in set_pri() 319 pri->lineno = lineno; in set_pri() 320 pri->pri = v; in set_pri() 321 pri->res = res; in set_pri() [all …]
|
/freebsd/sbin/ipf/libipf/ |
H A D | save_syslog.c | 13 int pri; member 43 int fac = -1, pri = -1; in syslog_parse() local 59 pri = pri_findname(s); in syslog_parse() 60 if (pri == -1) { in syslog_parse() 69 ctx->pri = pri; in syslog_parse() 70 if (pri == -1) in syslog_parse() 73 ctx->facpri = pri; in syslog_parse() 75 ctx->facpri = fac | pri; in syslog_parse() 97 printf(".%s", pri_toname(sys->pri)); in syslog_print() 98 } else if (sys->pri == -1) { in syslog_print() [all …]
|
H A D | facpri.c | 136 int i, pri; in pri_toname() local 138 pri = facpri & LOG_PRIMASK; in pri_toname() 139 if (pris[pri].value == pri) in pri_toname() 140 return (pris[pri].name); in pri_toname() 142 if (pri == pris[i].value) in pri_toname()
|
/freebsd/share/examples/pf/ |
H A D | queue3 | 6 altq on $ext_if priq bandwidth 10Mb queue { pri-low pri-med pri-high } 7 queue pri-low priority 0 8 queue pri-med priority 1 priq(default) 9 queue pri-high priority 2 12 queue(pri-med, pri-high) 13 pass out on $ext_if proto tcp from any to any port 80 queue pri-med 14 pass in on $ext_if proto tcp from any to any port 80 queue pri-low
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_nice.c | 49 int pri, val; in threadfunc() local 54 pri = getpriority(PRIO_PROCESS, 0); in threadfunc() 57 if (pri != val) in threadfunc() 97 int i, pri, pri2, nic; in ATF_TC_BODY() local 99 int i, pri, nic; in ATF_TC_BODY() 110 pri = getpriority(PRIO_PROCESS, 0); in ATF_TC_BODY() 114 if (nic != pri) in ATF_TC_BODY() 129 pri = getpriority(PRIO_PROCESS, 0); in ATF_TC_BODY() 136 if (pri != pri2) in ATF_TC_BODY() 138 if (nic != pri) in ATF_TC_BODY() [all …]
|
/freebsd/sys/net/altq/ |
H A D | altq_priq.c | 208 int pri; in priq_clear_interface() local 216 for (pri = 0; pri <= pif->pif_maxpri; pri++) in priq_clear_interface() 217 if ((cl = pif->pif_classes[pri]) != NULL) in priq_clear_interface() 243 int pri; in priq_purge() local 245 for (pri = 0; pri <= pif->pif_maxpri; pri++) { in priq_purge() 246 if ((cl = pif->pif_classes[pri]) != NULL && !qempty(cl->cl_q)) in priq_purge() 254 priq_class_create(struct priq_if *pif, int pri, int qlimit, int flags, int qid) in priq_class_create() argument 276 if ((cl = pif->pif_classes[pri]) != NULL) { in priq_class_create() 308 pif->pif_classes[pri] = cl; in priq_class_create() 318 cl->cl_pri = pri; in priq_class_create() [all …]
|
H A D | altq_fairq.c | 262 int pri; in fairq_clear_interface() local 265 for (pri = 0; pri <= pif->pif_maxpri; pri++) { in fairq_clear_interface() 266 if ((cl = pif->pif_classes[pri]) != NULL) in fairq_clear_interface() 293 int pri; in fairq_purge() local 295 for (pri = 0; pri <= pif->pif_maxpri; pri++) { in fairq_purge() 296 if ((cl = pif->pif_classes[pri]) != NULL && cl->cl_head) in fairq_purge() 304 fairq_class_create(struct fairq_if *pif, int pri, int qlimit, in fairq_class_create() argument 336 if ((cl = pif->pif_classes[pri]) != NULL) { in fairq_class_create() 366 pif->pif_classes[pri] = cl; in fairq_class_create() 378 cl->cl_pri = pri; in fairq_class_create() [all …]
|
/freebsd/sys/sys/ |
H A D | sleepqueue.h | 93 void sleepq_broadcast(const void *wchan, int flags, int pri, int queue); 101 bool (*matches)(struct thread *), int pri); 103 void sleepq_signal(const void *wchan, int flags, int pri, int queue); 109 int sleepq_timedwait(const void *wchan, int pri); 110 int sleepq_timedwait_sig(const void *wchan, int pri); 112 void sleepq_wait(const void *wchan, int pri); 113 int sleepq_wait_sig(const void *wchan, int pri);
|
H A D | syslog.h | 59 #define LOG_MAKEPRI(fac, pri) ((fac) | (pri)) argument 159 #define LOG_MASK(pri) (1 << (pri)) /* mask for one priority */ argument 160 #define LOG_UPTO(pri) ((1 << ((pri)+1)) - 1) /* all priorities through pri */ argument
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | vsyslog.c | 52 simple_vsyslog(int pri, const char *fmt, va_list ap) in simple_vsyslog() argument 54 syslog (pri, "%s", fmt); in simple_vsyslog() 62 vsyslog(int pri, const char *fmt, va_list ap) in vsyslog() argument 75 simple_vsyslog (pri, fmt, ap); in vsyslog() 91 simple_vsyslog (pri, fmt, ap); in vsyslog() 107 simple_vsyslog (pri, fmt, ap); in vsyslog() 110 syslog (pri, "%s", buf); in vsyslog()
|
/freebsd/usr.sbin/ppp/ |
H A D | link.c | 181 int pri; in link_Dequeue() local 184 for (bp = NULL, pri = LINK_QUEUES(l) - 1; pri >= 0; pri--) in link_Dequeue() 185 if (l->Queue[pri].len) { in link_Dequeue() 186 bp = m_dequeue(l->Queue + pri); in link_Dequeue() 188 " containing %lu more packets\n", pri, in link_Dequeue() 189 (u_long)l->Queue[pri].len); in link_Dequeue() 248 link_PushPacket(struct link *l, struct mbuf *bp, struct bundle *b, int pri, in link_PushPacket() argument 260 if(pri < 0 || (unsigned)pri >= LINK_QUEUES(l)) in link_PushPacket() 261 pri = 0; in link_PushPacket() 266 bp = (*l->layer[layer - 1]->push)(b, l, bp, pri, &proto); in link_PushPacket() [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | console.c | 86 console_kbd_register(kbd_event_func_t event_cb, void *arg, int pri) in console_kbd_register() argument 88 if (pri > console.kbd_priority) { in console_kbd_register() 91 console.kbd_priority = pri; in console_kbd_register() 96 console_ptr_register(ptr_event_func_t event_cb, void *arg, int pri) in console_ptr_register() argument 98 if (pri > console.ptr_priority) { in console_ptr_register() 101 console.ptr_priority = pri; in console_ptr_register()
|
/freebsd/lib/libcasper/services/cap_syslog/ |
H A D | cap_syslog.h | 35 void cap_syslog(cap_channel_t *chan, int pri, 49 #define cap_syslog(chan, pri, ...) syslog(pri, __VA_ARGS__) 50 #define cap_vsyslog(chan, pri, fmt, ap) vsyslog(pri, fmt, ap)
|
/freebsd/lib/libc/gen/ |
H A D | syslog.c | 124 syslog(int pri, const char *fmt, ...) in syslog() argument 129 vsyslog(pri, fmt, ap); in syslog() 134 vsyslog1(int pri, const char *fmt, va_list ap) in vsyslog1() argument 149 if (pri & ~(LOG_PRIMASK|LOG_FACMASK)) { in vsyslog1() 151 "syslog: unknown facility/priority: %x", pri); in vsyslog1() 152 pri &= LOG_PRIMASK|LOG_FACMASK; in vsyslog1() 158 if (!(LOG_MASK(LOG_PRI(pri)) & LogMask)) in vsyslog1() 162 if ((pri & LOG_FACMASK) == 0) in vsyslog1() 163 pri |= LogFacility; in vsyslog1() 173 (void)fprintf(fp, "<%d>1 ", pri); in vsyslog1() [all …]
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | proc.h | 68 size_t len, proc_t *pp, int state, pri_t pri, const char *name) in do_thread_create() argument 89 sched_prio(td, pri); in do_thread_create() 96 pp, state, pri) \ argument 97 do_thread_create(stk, stksize, proc, arg, len, pp, state, pri, name) 98 #define thread_create(stk, stksize, proc, arg, len, pp, state, pri) \ argument 99 do_thread_create(stk, stksize, proc, arg, len, pp, state, pri, #proc)
|
/freebsd/sys/riscv/include/ |
H A D | runq.h | 34 #define RQB_BIT(pri) (1ul << ((pri) & (RQB_BPW - 1))) argument 35 #define RQB_WORD(pri) ((pri) >> RQB_L2BPW) argument
|
/freebsd/contrib/tcpdump/ |
H A D | print-syslog.c | 82 uint16_t pri = 0; in syslog_print() local 99 pri = pri * 10 + (GET_U_1(pptr + msg_off) - '0'); in syslog_print() 107 facility = (pri & SYSLOG_FACILITY_MASK) >> 3; in syslog_print() 108 severity = pri & SYSLOG_SEVERITY_MASK; in syslog_print()
|
/freebsd/sys/arm64/include/ |
H A D | runq.h | 38 #define RQB_BIT(pri) (1ul << ((pri) & (RQB_BPW - 1))) argument 39 #define RQB_WORD(pri) ((pri) >> RQB_L2BPW) argument
|
/freebsd/sys/arm/include/ |
H A D | runq.h | 36 #define RQB_BIT(pri) (1 << ((pri) & (RQB_BPW - 1))) argument 37 #define RQB_WORD(pri) ((pri) >> RQB_L2BPW) argument
|
/freebsd/sys/amd64/include/ |
H A D | runq.h | 36 #define RQB_BIT(pri) (1ul << ((pri) & (RQB_BPW - 1))) argument 37 #define RQB_WORD(pri) ((pri) >> RQB_L2BPW) argument
|
/freebsd/sys/i386/include/ |
H A D | runq.h | 36 #define RQB_BIT(pri) (1 << ((pri) & (RQB_BPW - 1))) argument 37 #define RQB_WORD(pri) ((pri) >> RQB_L2BPW) argument
|