Home
last modified time | relevance | path

Searched refs:prio (Results 1 – 25 of 89) sorted by relevance

1234

/f-stack/freebsd/netpfil/ipfw/
H A Ddn_sched_prio.c90 int prio = q->fs->fs.par[0]; in prio_enqueue() local
95 si->q_array[prio] = q; in prio_enqueue()
97 q = si->q_array[prio]; in prio_enqueue()
121 int prio; in prio_dequeue() local
126 prio = ffs(si->bitmap) - 1; in prio_dequeue()
129 q = si->q_array[prio]; in prio_dequeue()
137 si->q_array[prio] = NULL; in prio_dequeue()
166 int prio = q->fs->fs.par[0]; in prio_new_queue() local
180 si->q_array[prio] = q; in prio_new_queue()
200 int prio = q->fs->fs.par[0]; in prio_free_queue() local
[all …]
/f-stack/freebsd/sys/
H A Dblockcount.h45 int prio);
81 int prio) in _blockcount_wait() argument
83 KASSERT((prio & ~PRIMASK) == 0, ("%s: invalid prio %x", __func__, prio)); in _blockcount_wait()
85 while (_blockcount_sleep(bc, lo, wmesg, prio) == EAGAIN) in _blockcount_wait()
89 #define blockcount_sleep(bc, lo, wmesg, prio) \ argument
90 _blockcount_sleep((bc), (struct lock_object *)(lo), (wmesg), (prio))
91 #define blockcount_wait(bc, lo, wmesg, prio) \ argument
92 _blockcount_wait((bc), (struct lock_object *)(lo), (wmesg), (prio))
H A Dlockmgr.h73 const char *wmesg, int prio, int timo, const char *file, int line);
90 void lockinit(struct lock *lk, int prio, const char *wmesg, int timo,
104 int prio, int timo, const char *file, int line) in _lockmgr_args() argument
108 NULL, wmesg, prio, timo, file, line)); in _lockmgr_args()
113 const char *wmesg, int prio, int timo, const char *file, int line) in _lockmgr_args_rw() argument
117 NULL, wmesg, prio, timo, file, line)); in _lockmgr_args_rw()
127 #define lockmgr_args(lk, flags, ilk, wmesg, prio, timo) \ argument
128 _lockmgr_args((lk), (flags), (ilk), (wmesg), (prio), (timo), \
130 #define lockmgr_args_rw(lk, flags, ilk, wmesg, prio, timo) \ argument
131 _lockmgr_args_rw((lk), (flags), (ilk), (wmesg), (prio), (timo), \
H A Dsched.h97 void sched_lend_prio(struct thread *td, u_char prio);
101 void sched_prio(struct thread *td, u_char prio);
102 void sched_sleep(struct thread *td, int prio);
105 void sched_unlend_prio(struct thread *td, u_char prio);
106 void sched_user_prio(struct thread *td, u_char prio);
H A Depoch.h108 #define NET_GROUPTASK_INIT(gtask, prio, func, ctx) \ argument
109 GTASK_INIT(&(gtask)->gt_task, TASK_NETWORK, (prio), (func), (ctx))
H A Drtprio.h77 u_short prio; member
/f-stack/freebsd/kern/
H A Dksched.c149 param->sched_priority = rtpprio_to_p4prio(rtp.prio); in ksched_getparam()
151 if (PRI_MIN_TIMESHARE < rtp.prio) in ksched_getparam()
159 param->sched_priority = tsprio_to_p4prio(rtp.prio); in ksched_getparam()
184 rtp.prio = p4prio_to_rtpprio(param->sched_priority); in ksched_setscheduler()
196 rtp.prio = p4prio_to_tsprio(param->sched_priority); in ksched_setscheduler()
226 ksched_get_priority_max(struct ksched *ksched, int policy, int *prio) in ksched_get_priority_max() argument
234 *prio = P1B_PRIO_MAX; in ksched_get_priority_max()
237 *prio = PRI_MAX_TIMESHARE - PRI_MIN_TIMESHARE; in ksched_get_priority_max()
247 ksched_get_priority_min(struct ksched *ksched, int policy, int *prio) in ksched_get_priority_min() argument
255 *prio = P1B_PRIO_MIN; in ksched_get_priority_min()
[all …]
H A Dsched_4bsd.c847 if (td->td_priority == prio) in sched_priority()
849 td->td_priority = prio; in sched_priority()
865 sched_priority(td, prio); in sched_lend_prio()
886 if (prio >= base_pri) { in sched_unlend_prio()
890 sched_lend_prio(td, prio); in sched_unlend_prio()
899 td->td_base_pri = prio; in sched_prio()
910 sched_priority(td, prio); in sched_prio()
925 td->td_base_user_pri = prio; in sched_user_prio()
928 td->td_user_pri = prio; in sched_user_prio()
936 td->td_lend_user_pri = prio; in sched_lend_user_prio()
[all …]
H A Dkern_synch.c412 int prio) in _blockcount_sleep() argument
423 catch = (prio & PCATCH) != 0; in _blockcount_sleep()
424 drop = (prio & PDROP) != 0; in _blockcount_sleep()
425 prio &= PRIMASK; in _blockcount_sleep()
459 ret = sleepq_wait_sig(wchan, prio); in _blockcount_sleep()
461 sleepq_wait(wchan, prio); in _blockcount_sleep()
657 kern_yield(int prio) in kern_yield() argument
664 if (prio == PRI_USER) in kern_yield()
665 prio = td->td_user_pri; in kern_yield()
666 if (prio >= 0) in kern_yield()
[all …]
H A Dkern_resource.c177 int prio; member
199 error = donice(td, curp, prio); in kern_setpriority()
207 error = donice(td, p, prio); in kern_setpriority()
230 error = donice(td, p, prio); in kern_setpriority()
247 error = donice(td, p, prio); in kern_setpriority()
421 rtp.prio = RTP_PRIO_MAX; in sys_rtprio()
426 rtp2.prio < rtp.prio)) { in sys_rtprio()
428 rtp.prio = rtp2.prio; in sys_rtprio()
481 if (rtp->prio > RTP_PRIO_MAX) in rtp_to_pri()
491 if (rtp->prio > RTP_PRIO_MAX) in rtp_to_pri()
[all …]
H A Dp1003_1b.c305 int error, prio;
307 error = ksched_get_priority_max(ksched, uap->policy, &prio);
308 td->td_retval[0] = prio;
316 int error, prio;
318 error = ksched_get_priority_min(ksched, uap->policy, &prio);
319 td->td_retval[0] = prio;
H A Dsched_ule.c1768 if (td->td_priority == prio) in sched_thread_priority()
1778 td->td_priority = prio; in sched_thread_priority()
1789 td->td_priority = prio; in sched_thread_priority()
1790 if (prio < tdq->tdq_lowpri) in sched_thread_priority()
1791 tdq->tdq_lowpri = prio; in sched_thread_priority()
1796 td->td_priority = prio; in sched_thread_priority()
1829 if (prio >= base_pri) { in sched_unlend_prio()
1833 sched_lend_prio(td, prio); in sched_unlend_prio()
1845 td->td_base_pri = prio; in sched_prio()
1876 td->td_user_pri = prio; in sched_user_prio()
[all …]
/f-stack/freebsd/arm/arm/
H A Dplatform.c91 int prio, best_prio; in platform_probe_and_attach() local
118 prio = PLATFORM_PROBE(plat_obj); in platform_probe_and_attach()
121 if (prio > 0) in platform_probe_and_attach()
134 if (plat_def_impl == NULL || prio > best_prio) { in platform_probe_and_attach()
135 best_prio = prio; in platform_probe_and_attach()
/f-stack/freebsd/netinet/
H A Dsctp_ss_functions.c407 strq->ss_params.prio.priority = 0; in sctp_ss_prio_clear()
410 strq->ss_params.prio.next_spoke.tqe_next = NULL; in sctp_ss_prio_clear()
431 strq->ss_params.prio.next_spoke.tqe_next = NULL; in sctp_ss_prio_init_stream()
432 strq->ss_params.prio.next_spoke.tqe_prev = NULL; in sctp_ss_prio_init_stream()
434 strq->ss_params.prio.priority = with_strq->ss_params.prio.priority; in sctp_ss_prio_init_stream()
436 strq->ss_params.prio.priority = 0; in sctp_ss_prio_init_stream()
459 while (strqt != NULL && strqt->ss_params.prio.priority < strq->ss_params.prio.priority) { in sctp_ss_prio_add()
492 ss_params.prio.next_spoke); in sctp_ss_prio_remove()
528 strqn->ss_params.prio.priority == strqt->ss_params.prio.priority) { in sctp_ss_prio_select()
567 *value = strq->ss_params.prio.priority; in sctp_ss_prio_get_value()
[all …]
/f-stack/dpdk/drivers/net/octeontx2/
H A Dotx2_flow_utils.c684 if (dir < 0 && prio_idx != prio && in flow_validate_and_shift_prio_ent()
691 } else if ((dir > 0) && (prio_idx != prio) && in flow_validate_and_shift_prio_ent()
723 *prio = NPC_MCAM_HIGHER_PRIO; in flow_find_ref_entry()
731 *prio = NPC_MCAM_LOWER_PRIO; in flow_find_ref_entry()
736 *prio = NPC_MCAM_ANY_PRIO; in flow_find_ref_entry()
751 int rc, prio; in flow_fill_entry_cache() local
764 req->priority = prio; in flow_fill_entry_cache()
778 rsp->count, prio); in flow_fill_entry_cache()
781 if (prio != NPC_MCAM_ANY_PRIO) { in flow_fill_entry_cache()
783 prio); in flow_fill_entry_cache()
[all …]
/f-stack/freebsd/contrib/octeon-sdk/
H A Dcvmx-srio.h119 uint64_t prio : 2; /**< The sRIO prio (priority) field in the member
177 uint64_t prio : 2;
316 uint64_t prio : 2; /**< The sRIO prio (priority) field for all member
368 uint64_t prio : 2;
/f-stack/freebsd/contrib/dpdk_rte_lpm/
H A Drte_common.h126 #define RTE_PRIO(prio) \ argument
127 RTE_PRIORITY_ ## prio
139 #define RTE_INIT_PRIO(func, prio) \ argument
140 static void __attribute__((constructor(RTE_PRIO(prio)), used)) func(void)
164 #define RTE_FINI_PRIO(func, prio) \ argument
165 static void __attribute__((destructor(RTE_PRIO(prio)), used)) func(void)
/f-stack/dpdk/lib/librte_eal/include/
H A Drte_common.h165 #define RTE_PRIO(prio) \ argument
166 RTE_PRIORITY_ ## prio
178 #define RTE_INIT_PRIO(func, prio) \ argument
179 static void __attribute__((constructor(RTE_PRIO(prio)), used)) func(void)
203 #define RTE_FINI_PRIO(func, prio) \ argument
204 static void __attribute__((destructor(RTE_PRIO(prio)), used)) func(void)
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_taskq.c358 int mflag, prio; in taskq_dispatch() local
369 prio = !!(flags & TQ_FRONT); in taskq_dispatch()
380 TASK_INIT(&task->tqent_task, prio, taskq_run, task); in taskq_dispatch()
397 int prio; in taskq_dispatch_ent() local
403 prio = !!(flags & TQ_FRONT); in taskq_dispatch_ent()
410 TASK_INIT(&task->tqent_task, prio, taskq_run_ent, task); in taskq_dispatch_ent()
/f-stack/dpdk/drivers/net/qede/base/
H A Decore_dcbx.c24 #define ECORE_DCBX_PRIO2TC(prio_tc_tbl, prio) \ argument
25 ((u32)(prio_tc_tbl >> ((7 - prio) * 4)) & 0x7)
133 bool enable, u8 prio, u8 tc, in ecore_dcbx_set_params() argument
139 p_data->arr[type].priority = prio; in ecore_dcbx_set_params()
141 p_data->arr[type].dscp_val = ecore_dcbx_get_dscp_value(p_hwfn, prio); in ecore_dcbx_set_params()
162 ecore_wr(p_hwfn, p_ptt, DORQ_REG_PF_PCP, prio << 1); in ecore_dcbx_set_params()
170 bool enable, u8 prio, u8 tc, in ecore_dcbx_update_app_info() argument
186 prio, tc, type, personality); in ecore_dcbx_update_app_info()
487 ecore_dcbx_get_app_priority(pri_map, &entry->prio); in ecore_dcbx_get_app_data()
1025 if (p_params->pfc.prio[i]) in ecore_dcbx_set_pfc_data()
[all …]
H A Decore_dcbx_api.h75 u8 prio[ECORE_MAX_PFC_PRIORITIES]; member
90 u8 prio; member
/f-stack/tools/compat/include/sys/
H A Depoch.h108 #define NET_GROUPTASK_INIT(gtask, prio, func, ctx) \ argument
109 GTASK_INIT(&(gtask)->gt_task, TASK_NETWORK, (prio), (func), (ctx))
/f-stack/dpdk/drivers/net/ipn3ke/
H A Dipn3ke_representor.c2225 unsigned int i, count, prio; in ipn3ke_rpst_xstats_get() local
2305 for (prio = 0; prio < IPN3KE_RPST_PRIO_XSTATS_CNT; prio++) { in ipn3ke_rpst_xstats_get()
2309 (sizeof(uint64_t) * prio)); in ipn3ke_rpst_xstats_get()
2317 for (prio = 0; prio < IPN3KE_RPST_PRIO_XSTATS_CNT; prio++) { in ipn3ke_rpst_xstats_get()
2321 (sizeof(uint64_t) * prio)); in ipn3ke_rpst_xstats_get()
2337 unsigned int i, prio; in ipn3ke_rpst_xstats_get_names() local
2364 for (prio = 0; prio < 8; prio++) { in ipn3ke_rpst_xstats_get_names()
2368 prio, in ipn3ke_rpst_xstats_get_names()
2376 for (prio = 0; prio < 8; prio++) { in ipn3ke_rpst_xstats_get_names()
2380 prio, in ipn3ke_rpst_xstats_get_names()
/f-stack/freebsd/mips/broadcom/
H A Dbcm_machdep.c276 int error, prio, result; in bcm_erom_probe_and_attach() local
279 prio = 0; in bcm_erom_probe_and_attach()
312 if (*erom_cls == NULL || result > prio) { in bcm_erom_probe_and_attach()
313 prio = result; in bcm_erom_probe_and_attach()
/f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/
H A Dsysmacros.h101 #define PRIO_TO_NICE(prio) ((prio) - MAX_RT_PRIO - 20) argument

1234