Home
last modified time | relevance | path

Searched refs:priority (Results 1 – 25 of 369) sorted by relevance

12345678910>>...15

/openbsd-src/regress/lib/libssl/pqueue/
H A Dpq_test.c78 item->priority[0], item->priority[1], in pqueue_print()
79 item->priority[2], item->priority[3], in pqueue_print()
80 item->priority[4], item->priority[5], in pqueue_print()
81 item->priority[6], item->priority[7]); in pqueue_print()
103 fprintf(stderr, "found %p\n", item->priority); in main()
106 fprintf(stderr, "found %p\n", item->priority); in main()
109 fprintf(stderr, "found %p\n", item ? item->priority: 0); in main()
/openbsd-src/regress/sbin/route/
H A DMakefile79 ${RCMD} add -priority 16 10.8.1/24 192.0.2.1
80 ${RCMD} add -priority 17 10.8.1/24 192.0.2.2
81 ${RCMD} add -priority 18 10.8.1/24 192.0.2.3
89 ${RCMD} add -mpath -priority 16 10.8.1/24 192.0.2.2
90 ${RCMD} add -mpath -priority 17 10.8.1/24 192.0.2.2
91 ${RCMD} add -mpath -priority 18 10.8.1/24 192.0.2.2
92 ! ${RCMD} add -mpath -priority 17 10.8.1/24 192.0.2.2
100 ${RCMD} add -priority 16 10.8.1/24 192.0.2.1
101 ${RCMD} add -priority 17 10.8.1/24 192.0.2.2
102 ${RCMD} add -priority 18 10.8.1/24 192.0.2.3
[all …]
/openbsd-src/sys/dev/pci/drm/amd/amdgpu/
H A Damdgpu_sched.c37 int32_t priority) in amdgpu_sched_process_priority_override() argument
61 amdgpu_ctx_priority_override(ctx, priority); in amdgpu_sched_process_priority_override()
72 int32_t priority) in amdgpu_sched_context_priority_override() argument
98 amdgpu_ctx_priority_override(ctx, priority); in amdgpu_sched_context_priority_override()
124 if (!amdgpu_ctx_priority_is_valid(args->in.priority)) { in amdgpu_sched_ioctl()
125 WARN(1, "Invalid context priority %d\n", args->in.priority); in amdgpu_sched_ioctl()
133 args->in.priority); in amdgpu_sched_ioctl()
139 args->in.priority); in amdgpu_sched_ioctl()
H A Damdgpu_ctx.c58 /* UNSET priority is not valid and we don't carry that in amdgpu_ctx_priority_is_valid()
71 pr_warn_once("AMD-->DRM context priority value UNSET-->NORMAL"); in amdgpu_ctx_to_drm_sched_prio()
89 /* This should not happen as we sanitized userspace provided priority in amdgpu_ctx_to_drm_sched_prio()
93 WARN(1, "Invalid context priority %d\n", ctx_prio); in amdgpu_ctx_to_drm_sched_prio()
100 int32_t priority) in amdgpu_ctx_priority_permit() argument
103 if (priority <= AMDGPU_CTX_PRIORITY_NORMAL) in amdgpu_ctx_priority_permit()
319 static int amdgpu_ctx_init(struct amdgpu_ctx_mgr *mgr, int32_t priority, in amdgpu_ctx_init() argument
326 r = amdgpu_ctx_priority_permit(filp, priority); in amdgpu_ctx_init()
339 ctx->init_priority = priority; in amdgpu_ctx_init()
475 int32_t priority, in amdgpu_ctx_alloc() argument
669 int32_t priority; amdgpu_ctx_ioctl() local
807 amdgpu_ctx_set_entity_priority(struct amdgpu_ctx * ctx,struct amdgpu_ctx_entity * aentity,int hw_ip,int32_t priority) amdgpu_ctx_set_entity_priority() argument
830 amdgpu_ctx_priority_override(struct amdgpu_ctx * ctx,int32_t priority) amdgpu_ctx_priority_override() argument
[all...]
/openbsd-src/sys/kern/
H A Dkern_synch.c95 * lower the priority briefly to allow interrupts, then return.
96 * The priority to be used (safepri) is machine-dependent, thus this
98 * This priority will typically be 0, or the lowest priority
107 * runnable with the specified priority. Sleeps at most timo/hz seconds
116 tsleep(const volatile void *ident, int priority, const char *wmesg, int timo) in tsleep() argument
122 KASSERT((priority & ~(PRIMASK | PCATCH)) == 0); in tsleep()
123 KASSERT(ident != &nowake || ISSET(priority, PCATCH) || timo != 0); in tsleep()
153 sleep_setup(ident, priority, wmesg); in tsleep()
158 tsleep_nsec(const volatile void *ident, int priority, cons argument
205 msleep(const volatile void * ident,struct mutex * mtx,int priority,const char * wmesg,int timo) msleep() argument
258 msleep_nsec(const volatile void * ident,struct mutex * mtx,int priority,const char * wmesg,uint64_t nsecs) msleep_nsec() argument
285 rwsleep(const volatile void * ident,struct rwlock * rwl,int priority,const char * wmesg,int timo) rwsleep() argument
309 rwsleep_nsec(const volatile void * ident,struct rwlock * rwl,int priority,const char * wmesg,uint64_t nsecs) rwsleep_nsec() argument
[all...]
/openbsd-src/sys/dev/pci/drm/i915/gt/
H A Dintel_engine_heartbeat.c41 if (rq && rq->sched.attr.priority >= I915_PRIORITY_BARRIER && in next_heartbeat()
111 rq->sched.attr.priority); in show_heartbeat()
137 struct i915_sched_attr attr = { .priority = I915_PRIORITY_MIN }; in heartbeat()
184 rq->sched.attr.priority < I915_PRIORITY_BARRIER) { in heartbeat()
191 attr.priority = 0; in heartbeat()
192 if (rq->sched.attr.priority >= attr.priority) in heartbeat()
193 attr.priority = I915_PRIORITY_HEARTBEAT; in heartbeat()
194 if (rq->sched.attr.priority >= attr.priority) in heartbeat()
195 attr.priority = I915_PRIORITY_BARRIER; in heartbeat()
276 struct i915_sched_attr attr = { .priority = I915_PRIORITY_BARRIER }; in __intel_engine_pulse()
[all …]
/openbsd-src/regress/usr.sbin/snmpd/
H A Dagentx.c1287 uint8_t timeout = 0, priority = 127, range_subid = 0, reserved = 0; in agentx_register_notopen() local
1292 message_add(&msg, &priority, sizeof(priority)); in agentx_register_notopen()
1316 uint8_t timeout = 0, priority = 127, range_subid = 0, reserved = 0; in agentx_register_invalid_sessionid() local
1324 message_add(&msg, &priority, sizeof(priority)); in agentx_register_invalid_sessionid()
1348 uint8_t timeout = 0, priority = 127, range_subid = 0, reserved = 0; in agentx_register_default() local
1356 message_add(&msg, &priority, sizeof(priority)); in agentx_register_default()
1380 uint8_t timeout = 0, priority = 127, range_subid = 0, reserved = 0; in agentx_register_context() local
1389 message_add(&msg, &priority, sizeof(priority)); in agentx_register_context()
1413 uint8_t timeout = 0, priority = 127, range_subid = 0, reserved = 0; in agentx_register_invalid_version() local
1421 message_add(&msg, &priority, sizeof(priority)); in agentx_register_invalid_version()
[all …]
/openbsd-src/lib/libssl/
H A Dpqueue.c78 memcpy(item->priority, prio64be, sizeof(item->priority)); in pitem_new()
118 int cmp = memcmp(next->priority, item->priority, in pqueue_insert()
119 sizeof(item->priority)); in pqueue_insert()
162 if (memcmp(next->priority, prio64be, in pqueue_find()
163 sizeof(next->priority)) == 0) in pqueue_find()
/openbsd-src/gnu/usr.sbin/mkhybrid/src/
H A Dname.c58 int priority = 32767; in FDECL3() local
131 priority = 1; in FDECL3()
143 priority = 1; in FDECL3()
361 priority = prio1; in FDECL3()
391 sresult->priority = priority; in FDECL3()
/openbsd-src/lib/libcrypto/bio/
H A Dbss_log.c83 static void xsyslog(BIO* bp, int priority, const char* string);
128 int priority, i; in slg_write() local
164 priority = mapping[i].log_level; in slg_write()
167 xsyslog(b, priority, pp); in slg_write()
205 xsyslog(BIO *bp, int priority, const char *string) in xsyslog() argument
207 syslog(priority, "%s", string); in xsyslog()
/openbsd-src/gnu/gcc/gcc/config/i386/
H A Dnwld.c36 nwld_named_section_asm_out_constructor (rtx symbol, int priority) in nwld_named_section_asm_out_constructor() argument
48 MAX_INIT_PRIORITY - priority); in nwld_named_section_asm_out_constructor()
57 nwld_named_section_asm_out_destructor (rtx symbol, int priority) in nwld_named_section_asm_out_destructor() argument
68 MAX_INIT_PRIORITY - priority); in nwld_named_section_asm_out_destructor()
/openbsd-src/gnu/usr.bin/perl/cpan/Sys-Syslog/
H A DSyslog.xs113 syslog_xs(priority, message)
115 int priority
118 syslog(priority, "%s", message);
155 syslog_xs(priority, message)
157 int priority
H A DSyslog.pm379 my ($priority, $mask, @args) = @_;
392 croak "syslog: expecting argument \$priority" unless defined $priority;
395 if ($priority =~ /^\d+$/) {
396 $numpri = LOG_PRI($priority);
397 $numfac = LOG_FAC($priority) << 3;
400 elsif ($priority =~ /^\w+/) {
402 @words = split /\W+/, $priority, 2;
430 croak "syslog: invalid level/facility: $priority"
/openbsd-src/sys/dev/pci/drm/i915/
H A Di915_scheduler.c54 GEM_BUG_ON(p->priority > last_prio); in assert_priolists()
55 last_prio = p->priority; in assert_priolists()
73 /* most positive priority is scheduled first, equal priorities fifo */ in i915_sched_lookup_priolist()
79 if (prio > p->priority) { in i915_sched_lookup_priolist()
81 } else if (prio < p->priority) { in i915_sched_lookup_priolist()
97 /* Convert an allocation failure to a priority bump */ in i915_sched_lookup_priolist()
114 p->priority = prio; in i915_sched_lookup_priolist()
166 const int prio = max(attr->priority, node->attr.priority); in __i915_schedule()
220 if (prio > READ_ONCE(p->signaler->attr.priority)) in __i915_schedule()
[all...]
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dgthr-posix.h178 __gthread_objc_thread_set_priority (int priority) in __gthread_objc_thread_set_priority() argument
198 if (priority > priority_max) in __gthread_objc_thread_set_priority()
199 priority = priority_max; in __gthread_objc_thread_set_priority()
200 else if (priority < priority_min) in __gthread_objc_thread_set_priority()
201 priority = priority_min; in __gthread_objc_thread_set_priority()
202 params.sched_priority = priority; in __gthread_objc_thread_set_priority()
/openbsd-src/gnu/gcc/gcc/
H A Dgthr-nks.h112 __gthread_objc_thread_set_priority (int priority) in __gthread_objc_thread_set_priority() argument
114 if (NXThreadSetPriority (NXThreadGetId (), priority) == 0) in __gthread_objc_thread_set_priority()
123 int priority; in __gthread_objc_thread_get_priority() local
125 if (NXThreadGetPriority (NXThreadGetId (), &priority) == 0) in __gthread_objc_thread_get_priority()
126 return priority; in __gthread_objc_thread_get_priority()
H A Dgthr-posix95.h259 __gthread_objc_thread_set_priority (int priority) in __gthread_objc_thread_set_priority() argument
280 if (priority > priority_max) in __gthread_objc_thread_set_priority()
281 priority = priority_max; in __gthread_objc_thread_set_priority()
282 else if (priority < priority_min) in __gthread_objc_thread_set_priority()
283 priority = priority_min; in __gthread_objc_thread_set_priority()
284 params.sched_priority = priority; in __gthread_objc_thread_set_priority()
/openbsd-src/gnu/usr.bin/binutils/gdb/osf-share/
H A Dcma_sched.h105 #define cma__sched_prio_rt(tcb) ((tcb)->sched.priority)
106 #define cma__sched_prio_idle(tcb) ((tcb)->sched.priority)
110 * ((tcb)->sched.priority + cma__c_prio_o_al - cma__c_prio_o_bg) \
140 * (tcb)->sched.priority * cma__g_init_frac_sum) << 1) \
141 / ((tcb)->sched.cpu_time * (tcb)->sched.priority * cma__g_init_frac_sum \
/openbsd-src/sys/dev/pci/drm/scheduler/
H A Dsched_entity.c41 * @priority: priority of the entity
50 * For changing @priority later on at runtime see
60 enum drm_sched_priority priority, in drm_sched_entity_init() argument
73 entity->priority = priority; in drm_sched_entity_init()
79 entity->rq = &sched_list[0]->sched_rq[entity->priority]; in drm_sched_entity_init()
383 * drm_sched_entity_set_priority - Sets priority of the entity
386 * @priority: scheduler priority
389 drm_sched_entity_set_priority(struct drm_sched_entity * entity,enum drm_sched_priority priority) global() argument
[all...]
/openbsd-src/usr.bin/dig/lib/dns/rdata/generic/
H A Duri_256.c25 unsigned short priority, weight; in totext_uri() local
38 priority = uint16_fromregion(&region); in totext_uri()
40 snprintf(buf, sizeof(buf), "%u ", priority); in totext_uri()
/openbsd-src/sbin/swapctl/
H A Dswapctl.c333 long priority; in do_fstab() local
362 priority = atol(s); in do_fstab()
364 priority = pri; in do_fstab()
437 if (swapctl(SWAP_ON, spec, (int)priority) == -1) { in do_fstab()
443 __progname, fp->fs_spec, (int)priority); in do_fstab()
/openbsd-src/usr.sbin/bgpd/
H A Dkroute.c69 uint8_t priority; member
84 uint8_t priority; member
467 kf->priority = RTP_MINE; in kr_change()
501 kf->priority)) == NULL) { in kr4_change()
541 kf->priority)) == NULL) { in kr6_change()
598 kf->priority)) == NULL) { in krVPN4_change()
654 kf->priority)) == NULL) { in krVPN6_change()
690 kf->priority = RTP_MINE; in kr_flush()
926 kf->priority = kr_priority(kf); in kr_show_route()
938 kf->priority in kr_show_route()
[all...]
/openbsd-src/sys/dev/pci/drm/ttm/
H A Dttm_resource.c81 return &bulk->pos[res->mem_type][res->bo->priority]; in ttm_lru_bulk_move_pos()
165 list_move_tail(&res->lru, &man->lru[bo->priority]); in ttm_resource_move_to_lru_tail()
198 list_add_tail(&res->lru, &man->lru[bo->priority]); in ttm_resource_init()
507 for (cursor->priority = 0; cursor->priority < TTM_MAX_BO_PRIORITY; in ttm_resource_manager_first()
508 ++cursor->priority) in ttm_resource_manager_first()
509 list_for_each_entry(res, &man->lru[cursor->priority], lru) in ttm_resource_manager_first()
531 list_for_each_entry_continue(res, &man->lru[cursor->priority], lru) in ttm_resource_manager_next()
534 for (++cursor->priority; cursor->priority < TTM_MAX_BO_PRIORITY; in ttm_resource_manager_next()
535 ++cursor->priority) in ttm_resource_manager_next()
536 list_for_each_entry(res, &man->lru[cursor->priority], lru) in ttm_resource_manager_next()
/openbsd-src/sys/dev/pci/drm/radeon/
H A Dradeon_cs.c60 struct list_head *item, unsigned priority) in radeon_cs_buckets_add() argument
67 list_add_tail(item, &b->bucket[min(priority, RADEON_CS_MAX_PRIORITY)]); in radeon_cs_buckets_add()
107 unsigned priority; in radeon_cs_parser_relocs() local
124 priority = (r->flags & RADEON_RELOC_PRIO_MASK) * 2 in radeon_cs_parser_relocs()
145 priority = RADEON_CS_MAX_PRIORITY; in radeon_cs_parser_relocs()
189 priority); in radeon_cs_parser_relocs()
212 static int radeon_cs_get_ring(struct radeon_cs_parser *p, u32 ring, s32 priority) in radeon_cs_get_ring() argument
214 p->priority = priority; in radeon_cs_get_ring()
225 if (p->priority > 0) in radeon_cs_get_ring()
234 if (p->priority > 0) in radeon_cs_get_ring()
[all …]
/openbsd-src/usr.sbin/ospf6d/
H A Dhello.c70 LSA_24_SETHI(hello.opts, iface->priority); in send_hello()
173 nbr->priority = LSA_24_GETHI(ntohl(hello.opts)); in recv_hello()
207 nbr->priority = LSA_24_GETHI(ntohl(hello.opts)); in recv_hello()
211 if (nbr->priority != LSA_24_GETHI(ntohl(hello.opts))) { in recv_hello()
212 nbr->priority = LSA_24_GETHI(ntohl(hello.opts)); in recv_hello()

12345678910>>...15