/kernel/linux/linux-5.10/lib/ |
D | parman.c | 44 int (*item_add)(struct parman *parman, struct parman_prio *prio, 46 void (*item_remove)(struct parman *parman, struct parman_prio *prio, 87 static bool parman_prio_used(struct parman_prio *prio) in parman_prio_used() argument 90 return !list_empty(&prio->item_list); in parman_prio_used() 93 static struct parman_item *parman_prio_first_item(struct parman_prio *prio) in parman_prio_first_item() argument 95 return list_first_entry(&prio->item_list, in parman_prio_first_item() 99 static unsigned long parman_prio_first_index(struct parman_prio *prio) in parman_prio_first_index() argument 101 return parman_prio_first_item(prio)->index; in parman_prio_first_index() 104 static struct parman_item *parman_prio_last_item(struct parman_prio *prio) in parman_prio_last_item() argument 106 return list_last_entry(&prio->item_list, in parman_prio_last_item() [all …]
|
D | plist.c | 88 if (node->prio < iter->prio) { in plist_add() 98 if (!prev || prev->prio != node->prio) in plist_add() 159 if (node->prio != iter->prio) in plist_requeue() 165 if (node->prio != iter->prio) { in plist_requeue() 198 if (node_pos->prio == prio_pos->prio) { in plist_test_check() 203 BUG_ON(prio_pos->prio > node_pos->prio); in plist_test_check() 217 BUG_ON(node->prio == plist_next(node)->prio); in plist_test_requeue() 235 test_node[i].prio = r % 99; in plist_test()
|
D | test_parman.c | 73 struct test_parman_prio *prio; member 153 struct test_parman_prio *prio = &test_parman->prios[i]; in test_parman_priority_gen() local 155 if (prio->priority == 0) in test_parman_priority_gen() 157 if (prio->priority == priority) in test_parman_priority_gen() 168 struct test_parman_prio *prio = &test_parman->prios[i]; in test_parman_prios_init() local 171 prio->priority = test_parman_priority_gen(test_parman); in test_parman_prios_init() 172 parman_prio_init(test_parman->parman, &prio->parman_prio, in test_parman_prios_init() 173 prio->priority); in test_parman_prios_init() 182 struct test_parman_prio *prio = &test_parman->prios[i]; in test_parman_prios_fini() local 184 parman_prio_fini(&prio->parman_prio); in test_parman_prios_fini() [all …]
|
/kernel/linux/linux-5.10/net/sched/ |
D | sch_skbprio.c | 42 int prio; in calc_new_high_prio() local 44 for (prio = q->highest_prio - 1; prio >= q->lowest_prio; prio--) { in calc_new_high_prio() 45 if (!skb_queue_empty(&q->qdiscs[prio])) in calc_new_high_prio() 46 return prio; in calc_new_high_prio() 55 int prio; in calc_new_low_prio() local 57 for (prio = q->lowest_prio + 1; prio <= q->highest_prio; prio++) { in calc_new_low_prio() 58 if (!skb_queue_empty(&q->qdiscs[prio])) in calc_new_low_prio() 59 return prio; in calc_new_low_prio() 76 u16 prio, lp; in skbprio_enqueue() local 79 prio = min(skb->priority, max_priority); in skbprio_enqueue() [all …]
|
D | sch_prio.c | 100 int prio; in prio_peek() local 102 for (prio = 0; prio < q->bands; prio++) { in prio_peek() 103 struct Qdisc *qdisc = q->queues[prio]; in prio_peek() 114 int prio; in prio_dequeue() local 116 for (prio = 0; prio < q->bands; prio++) { in prio_dequeue() 117 struct Qdisc *qdisc = q->queues[prio]; in prio_dequeue() 133 int prio; in prio_reset() local 136 for (prio = 0; prio < q->bands; prio++) in prio_reset() 137 qdisc_reset(q->queues[prio]); in prio_reset() 169 int prio; in prio_destroy() local [all …]
|
D | sch_htb.c | 100 u32 prio; /* these two are used only by leaves... */ member 275 struct htb_class *cl, int prio) in htb_add_to_id_tree() argument 282 c = rb_entry(parent, struct htb_class, node[prio]); in htb_add_to_id_tree() 289 rb_link_node(&cl->node[prio], parent, p); in htb_add_to_id_tree() 290 rb_insert_color(&cl->node[prio], root); in htb_add_to_id_tree() 348 int prio = ffz(~mask); in htb_add_class_to_row() local 349 mask &= ~(1 << prio); in htb_add_class_to_row() 350 htb_add_to_id_tree(&q->hlevel[cl->level].hprio[prio].row, cl, prio); in htb_add_class_to_row() 379 int prio = ffz(~mask); in htb_remove_class_from_row() local 380 struct htb_prio *hprio = &hlevel->hprio[prio]; in htb_remove_class_from_row() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/sysdev/ |
D | ipic.c | 35 .prio = IPIC_SIPRR_C, 42 .prio = IPIC_SIPRR_C, 49 .prio = IPIC_SIPRR_C, 56 .prio = IPIC_SIPRR_C, 63 .prio = IPIC_SIPRR_C, 70 .prio = IPIC_SIPRR_C, 77 .prio = IPIC_SIPRR_C, 84 .prio = IPIC_SIPRR_C, 91 .prio = IPIC_SIPRR_D, 98 .prio = IPIC_SIPRR_D, [all …]
|
/kernel/linux/linux-5.10/net/sctp/ |
D | stream_sched_prio.c | 29 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_new_head() argument 40 p->prio = prio; in sctp_sched_prio_new_head() 46 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_get_head() argument 55 if (p->prio == prio) in sctp_sched_prio_get_head() 57 if (p->prio > prio) in sctp_sched_prio_get_head() 72 if (p->prio == prio) in sctp_sched_prio_get_head() 77 return sctp_sched_prio_new_head(stream, prio, gfp); in sctp_sched_prio_get_head() 120 struct sctp_stream_priorities *prio, *prio_head; in sctp_sched_prio_sched() local 140 list_for_each_entry(prio, &stream->prio_list, prio_sched) { in sctp_sched_prio_sched() 141 if (prio->prio > prio_head->prio) { in sctp_sched_prio_sched() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | fs_chains.c | 76 u32 prio; member 80 struct prio { struct 103 .head_offset = offsetof(struct prio, node), argument 104 .key_offset = offsetof(struct prio, key), 105 .key_len = sizeof_field(struct prio, key), 220 u32 chain, u32 prio, u32 level) in mlx5_chains_create_table() argument 250 (chain == 0 && prio == 1 && level == 0)) { in mlx5_chains_create_table() 252 ft_attr.prio = prio - 1; in mlx5_chains_create_table() 258 ft_attr.prio = ns_to_chains_fs_prio(chains->ns); in mlx5_chains_create_table() 275 (int)PTR_ERR(ft), chain, prio, level, sz); in mlx5_chains_create_table() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
D | qos_defprio.sh | 37 local prio=$1; shift 38 local app="app=$prio,1,0" 42 APP[$prio]=$app 48 local prio=$1; shift 49 local app=${APP[$prio]} 53 unset APP[$prio] 59 local prio 142 local prio 144 for prio in {0..7}; do 145 __test_defprio $prio $prio
|
D | qos_dscp_bridge.sh | 68 local prio 70 for prio in {0..7}; do 71 echo app=$prio,5,$((base + prio)) 139 local prio=$1; shift 144 local dscp_10=$(((prio + 10) << 2)) 145 local dscp_20=$(((prio + 20) << 2)) 164 if ((key == prio+10 || key == prio+20)); then 175 log_test "DSCP rewrite: $dscp_10-(prio $prio)-$dscp_20" 180 local prio 182 for prio in {0..7}; do [all …]
|
D | qos_dscp_router.sh | 100 local prio 102 for prio in {0..7}; do 103 echo app=$prio,5,$((base + prio)) 172 local prio=$1; shift 178 local prio2=$($reprio $prio) # ICMP Request egress prio 181 local dscp=$((prio << 2)) # ICMP Request ingress DSCP 226 local prio 231 for prio in {0..7}; do 232 dscp_ping_test v$h1 192.0.2.1 192.0.2.18 $prio $reprio $h1 $h2
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_dcb.c | 72 int prio; in mlxsw_sp_port_headroom_ets_set() local 76 for (prio = 0; prio < IEEE_8021QAZ_MAX_TCS; prio++) in mlxsw_sp_port_headroom_ets_set() 77 hdroom.prios.prio[prio].ets_buf_idx = ets->prio_tc[prio]; in mlxsw_sp_port_headroom_ets_set() 171 int prio; in mlxsw_sp_dcbnl_app_validate() local 188 prio = fls(dcb_ieee_getapp_mask(dev, app)); in mlxsw_sp_dcbnl_app_validate() 189 if (prio--) { in mlxsw_sp_dcbnl_app_validate() 190 if (prio < app->priority) in mlxsw_sp_dcbnl_app_validate() 192 app->priority, app->protocol, prio); in mlxsw_sp_dcbnl_app_validate() 193 else if (prio > app->priority) in mlxsw_sp_dcbnl_app_validate() 195 app->priority, app->protocol, prio); in mlxsw_sp_dcbnl_app_validate() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
D | skbedit_priority.sh | 66 prio bands 8 priomap 7 6 5 4 3 2 1 0 116 local prio=$1; shift 122 flower action skbedit priority $prio 138 log_test "$locus skbedit priority $prio -> classid $classid" 145 local prio 147 for prio in {0..7}; do 149 $prio 10:$((8 - prio)) 155 local prio 157 for prio in {0..7}; do 159 $prio 10:$((8 - prio))
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | test_cgrp2_sock.c | 30 static int prog_load(__u32 idx, __u32 mark, __u32 prio) in prog_load() argument 69 BPF_MOV64_IMM(BPF_REG_3, prio), in prog_load() 86 if (prio) in prog_load() 108 if (prio) { in prog_load() 154 unsigned int prio = 0; in get_priority() local 155 socklen_t optlen = sizeof(prio); in get_priority() 158 rc = getsockopt(sd, SOL_SOCKET, SO_PRIORITY, &prio, &optlen); in get_priority() 162 return prio; in get_priority() 167 unsigned int mark, prio; in show_sockopts() local 181 prio = get_priority(sd); in show_sockopts() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/ |
D | tdc_batch.py | 65 prio = "prio 1" variable 66 if args.prio: 67 prio = "" variable 73 def format_add_filter(device, prio, handle, skip, src_mac, dst_mac, argument 77 device, prio, handle, skip, src_mac, dst_mac, share_action)) 80 def format_rep_filter(device, prio, handle, skip, src_mac, dst_mac, argument 84 device, prio, handle, skip, src_mac, dst_mac, share_action)) 87 def format_del_filter(device, prio, handle, skip, src_mac, dst_mac, argument 90 "flower".format(device, prio, handle)) 106 cmd = formatter(device, prio, handle_start + index, skip, src_mac,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
D | i915_scheduler.c | 72 i915_sched_lookup_priolist(struct intel_engine_cs *engine, int prio) in i915_sched_lookup_priolist() argument 84 idx = I915_PRIORITY_COUNT - (prio & I915_PRIORITY_MASK) - 1; in i915_sched_lookup_priolist() 85 prio >>= I915_USER_PRIORITY_SHIFT; in i915_sched_lookup_priolist() 87 prio = I915_PRIORITY_NORMAL; in i915_sched_lookup_priolist() 96 if (prio > p->priority) { in i915_sched_lookup_priolist() 98 } else if (prio < p->priority) { in i915_sched_lookup_priolist() 106 if (prio == I915_PRIORITY_NORMAL) { in i915_sched_lookup_priolist() 112 prio = I915_PRIORITY_NORMAL; /* recurses just once */ in i915_sched_lookup_priolist() 127 p->priority = prio; in i915_sched_lookup_priolist() 180 static inline bool need_preempt(int prio, int active) in need_preempt() argument [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/sysdev/xive/ |
D | spapr.c | 197 unsigned long prio, in plpar_int_set_source_config() argument 204 flags, lisn, target, prio, sw_irq); in plpar_int_set_source_config() 209 target, prio, sw_irq); in plpar_int_set_source_config() 214 lisn, target, prio, rc); in plpar_int_set_source_config() 224 unsigned long *prio, in plpar_int_get_source_config() argument 234 target, prio, sw_irq); in plpar_int_get_source_config() 244 *prio = retbuf[1]; in plpar_int_get_source_config() 434 static int xive_spapr_configure_irq(u32 hw_irq, u32 target, u8 prio, u32 sw_irq) in xive_spapr_configure_irq() argument 439 prio, sw_irq); in xive_spapr_configure_irq() 444 static int xive_spapr_get_irq_config(u32 hw_irq, u32 *target, u8 *prio, in xive_spapr_get_irq_config() argument [all …]
|
D | native.c | 102 int xive_native_configure_irq(u32 hw_irq, u32 target, u8 prio, u32 sw_irq) in xive_native_configure_irq() argument 107 rc = opal_xive_set_irq_config(hw_irq, target, prio, sw_irq); in xive_native_configure_irq() 116 static int xive_native_get_irq_config(u32 hw_irq, u32 *target, u8 *prio, in xive_native_get_irq_config() argument 123 rc = opal_xive_get_irq_config(hw_irq, &vp, prio, &lirq); in xive_native_get_irq_config() 132 int xive_native_configure_queue(u32 vp_id, struct xive_q *q, u8 prio, in xive_native_configure_queue() argument 153 rc = opal_xive_get_queue_info(vp_id, prio, NULL, NULL, in xive_native_configure_queue() 158 pr_err("Error %lld getting queue info prio %d\n", rc, prio); in xive_native_configure_queue() 175 rc = opal_xive_set_queue_info(vp_id, prio, qpage_phys, order, flags); in xive_native_configure_queue() 181 pr_err("Error %lld setting queue for prio %d\n", rc, prio); in xive_native_configure_queue() 196 static void __xive_native_disable_queue(u32 vp_id, struct xive_q *q, u8 prio) in __xive_native_disable_queue() argument [all …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | eas_sched.h | 14 __field(int, prio) 27 __entry->prio = task->prio; 38 __entry->comm, __entry->pid, __entry->prio, 54 __field(unsigned int, prio) 64 __entry->prio = task->prio; 72 __entry->comm, __entry->pid, __entry->prio,
|
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | book3s_xive_template.c | 119 u8 prio = 0xff; in GLUE() local 131 prio = ffs(pending) - 1; in GLUE() 134 if (prio >= xc->cppr || prio > 7) { in GLUE() 136 prio = xc->mfrr; in GLUE() 143 q = &xc->queues[prio]; in GLUE() 176 if (hirq == XICS_IPI || (prio == 0 && !qpage)) { in GLUE() 197 pending &= ~(1 << prio); in GLUE() 219 if (prio >= xc->mfrr && xc->mfrr < xc->cppr) { in GLUE() 220 prio = xc->mfrr; in GLUE() 257 xc->cppr = prio; in GLUE() [all …]
|
D | book3s_xive.c | 175 int kvmppc_xive_attach_escalation(struct kvm_vcpu *vcpu, u8 prio, in kvmppc_xive_attach_escalation() argument 179 struct xive_q *q = &xc->queues[prio]; in kvmppc_xive_attach_escalation() 184 if (xc->esc_virq[prio]) in kvmppc_xive_attach_escalation() 188 xc->esc_virq[prio] = irq_create_mapping(NULL, q->esc_irq); in kvmppc_xive_attach_escalation() 189 if (!xc->esc_virq[prio]) { in kvmppc_xive_attach_escalation() 191 prio, xc->server_num); in kvmppc_xive_attach_escalation() 200 vcpu->kvm->arch.lpid, xc->server_num, prio); in kvmppc_xive_attach_escalation() 203 prio, xc->server_num); in kvmppc_xive_attach_escalation() 208 pr_devel("Escalation %s irq %d (prio %d)\n", name, xc->esc_virq[prio], prio); in kvmppc_xive_attach_escalation() 210 rc = request_irq(xc->esc_virq[prio], xive_esc_irq, in kvmppc_xive_attach_escalation() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fs_core.c | 145 int prio; member 384 unsigned int prio) in find_prio() argument 389 if (iter_prio->prio == prio) in find_prio() 481 struct fs_prio *prio; in del_sw_flow_table() local 487 fs_get_obj(prio, ft->node.parent); in del_sw_flow_table() 488 prio->num_ft--; in del_sw_flow_table() 825 static struct mlx5_flow_table *find_closest_ft(struct fs_prio *prio, bool reverse) in find_closest_ft() argument 831 parent = prio->node.parent; in find_closest_ft() 832 curr_node = &prio->node; in find_closest_ft() 842 static struct mlx5_flow_table *find_next_chained_ft(struct fs_prio *prio) in find_next_chained_ft() argument [all …]
|
/kernel/linux/linux-5.10/kernel/sched/rtg/ |
D | frame_rtg.c | 31 ret = ((task->prio < MAX_RT_PRIO) && in is_rtg_rt_task() 274 struct task_struct *task, int prio) in do_update_frame_task_prio() argument 278 bool is_rt_task = (prio != NOT_RT_PRIO); in do_update_frame_task_prio() 296 sp.sched_priority = MAX_USER_RT_PRIO - 1 - prio; in do_update_frame_task_prio() 367 static void update_frame_task_prio(struct frame_info *frame_info, int prio) in update_frame_task_prio() argument 378 do_update_frame_task_prio(frame_info, thread, prio); in update_frame_task_prio() 382 void set_frame_prio(struct frame_info *frame_info, int prio) in set_frame_prio() argument 388 if (frame_info->prio == prio) in set_frame_prio() 391 update_frame_task_prio(frame_info, prio); in set_frame_prio() 392 frame_info->prio = prio; in set_frame_prio() [all …]
|
/kernel/linux/linux-5.10/arch/c6x/kernel/ |
D | irq.c | 34 unsigned int prio = data->hwirq; in mask_core_irq() local 37 and_creg(IER, ~(1 << prio)); in mask_core_irq() 43 unsigned int prio = data->hwirq; in unmask_core_irq() local 46 or_creg(IER, 1 << prio); in unmask_core_irq() 58 asmlinkage void c6x_do_IRQ(unsigned int prio, struct pt_regs *regs) in c6x_do_IRQ() argument 64 generic_handle_irq(prio_to_virq[prio]); in c6x_do_IRQ()
|