/linux-6.1.9/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 89 return !list_empty(&prio->item_list); in parman_prio_used() 92 static struct parman_item *parman_prio_first_item(struct parman_prio *prio) in parman_prio_first_item() argument 94 return list_first_entry(&prio->item_list, in parman_prio_first_item() 98 static unsigned long parman_prio_first_index(struct parman_prio *prio) in parman_prio_first_index() argument 100 return parman_prio_first_item(prio)->index; in parman_prio_first_index() 103 static struct parman_item *parman_prio_last_item(struct parman_prio *prio) in parman_prio_last_item() argument 105 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 …]
|
/linux-6.1.9/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() 167 int prio; in prio_destroy() local [all …]
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_dcbnl.c | 12 u8 tx_queues = pfvf->hw.tx_queues, prio; in otx2_check_pfc_config() local 15 for (prio = 0; prio < NIX_PF_PFC_PRIO_MAX; prio++) { in otx2_check_pfc_config() 16 if ((pfc_en & (1 << prio)) && in otx2_check_pfc_config() 17 prio > tx_queues - 1) { in otx2_check_pfc_config() 20 tx_queues, prio + 1); in otx2_check_pfc_config() 31 int prio, lvl, err; in otx2_pfc_txschq_config() local 34 for (prio = 0; prio < NIX_PF_PFC_PRIO_MAX; prio++) { in otx2_pfc_txschq_config() 35 pfc_bit_set = pfc_en & (1 << prio); in otx2_pfc_txschq_config() 40 if (!pfc_bit_set || !pfvf->pfc_alloc_status[prio]) in otx2_pfc_txschq_config() 45 err = otx2_txschq_config(pfvf, lvl, prio, true); in otx2_pfc_txschq_config() [all …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/arch/powerpc/sysdev/ |
D | ipic.c | 36 .prio = IPIC_SIPRR_C, 43 .prio = IPIC_SIPRR_C, 50 .prio = IPIC_SIPRR_C, 57 .prio = IPIC_SIPRR_C, 64 .prio = IPIC_SIPRR_C, 71 .prio = IPIC_SIPRR_C, 78 .prio = IPIC_SIPRR_C, 85 .prio = IPIC_SIPRR_C, 92 .prio = IPIC_SIPRR_D, 99 .prio = IPIC_SIPRR_D, [all …]
|
/linux-6.1.9/drivers/net/ethernet/mscc/ |
D | ocelot_devlink.c | 47 #define BUF_Q_RSRV_E(port, prio) \ argument 48 (BUF_xxxx_E + xxx_Q_RSRV_x + OCELOT_NUM_TC * (port) + (prio)) 69 #define BUF_Q_RSRV_I(port, prio) \ argument 70 (BUF_xxxx_I + xxx_Q_RSRV_x + OCELOT_NUM_TC * (port) + (prio)) 91 #define REF_Q_RSRV_E(port, prio) \ argument 92 (REF_xxxx_E + xxx_Q_RSRV_x + OCELOT_NUM_TC * (port) + (prio)) 113 #define REF_Q_RSRV_I(port, prio) \ argument 114 (REF_xxxx_I + xxx_Q_RSRV_x + OCELOT_NUM_TC * (port) + (prio)) 141 #define BUF_PRIO_SHR_E(prio) \ argument 142 (BUF_xxxx_E + xxx_PRIO_SHR_x + (prio)) [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | fs_chains.c | 56 u32 prio; member 60 struct prio { struct 83 .head_offset = offsetof(struct prio, node), argument 84 .key_offset = offsetof(struct prio, key), 85 .key_len = sizeof_field(struct prio, key), 153 u32 chain, u32 prio, u32 level) in mlx5_chains_create_table() argument 179 (chain == 0 && prio == 1 && level == 0)) { in mlx5_chains_create_table() 181 ft_attr.prio = prio - 1; in mlx5_chains_create_table() 187 ft_attr.prio = ns_to_chains_fs_prio(chains->ns); in mlx5_chains_create_table() 204 (int)PTR_ERR(ft), chain, prio, level, sz); in mlx5_chains_create_table() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | lsm_cgroup.c | 55 int prio = 123; in real_create() local 66 if (bpf_setsockopt(sk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in real_create() 70 prio = 0; in real_create() 71 if (bpf_getsockopt(sk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in real_create() 73 if (prio != 123) in real_create() 165 int prio = 234; in BPF_PROG() local 171 if (bpf_setsockopt(newsk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in BPF_PROG() 175 prio = 0; in BPF_PROG() 176 if (bpf_getsockopt(newsk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in BPF_PROG() 178 if (prio != 234) in BPF_PROG()
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/block/ |
D | mq-deadline.c | 205 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_request_merged() local 206 struct dd_per_prio *per_prio = &dd->per_prio[prio]; in dd_request_merged() 225 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_merged_requests() local 229 dd->per_prio[prio].stats.merged++; in dd_merged_requests() 246 deadline_remove_request(q, &dd->per_prio[prio], next); in dd_merged_requests() 267 static u32 dd_queued(struct deadline_data *dd, enum dd_prio prio) in dd_queued() argument 269 const struct io_stats_per_prio *stats = &dd->per_prio[prio].stats; in dd_queued() 429 enum dd_prio prio; in __dd_dispatch_request() local 526 prio = ioprio_class_to_prio[ioprio_class]; in __dd_dispatch_request() 527 dd->per_prio[prio].stats.dispatched++; in __dd_dispatch_request() [all …]
|
/linux-6.1.9/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))
|
/linux-6.1.9/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() 90 if (prio) in prog_load() 112 if (prio) { in prog_load() 158 unsigned int prio = 0; in get_priority() local 159 socklen_t optlen = sizeof(prio); in get_priority() 162 rc = getsockopt(sd, SOL_SOCKET, SO_PRIORITY, &prio, &optlen); in get_priority() 166 return prio; in get_priority() 171 unsigned int mark, prio; in show_sockopts() local 185 prio = get_priority(sd); in show_sockopts() [all …]
|
/linux-6.1.9/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,
|
/linux-6.1.9/arch/powerpc/sysdev/xive/ |
D | spapr.c | 211 unsigned long prio, in plpar_int_set_source_config() argument 218 flags, lisn, target, prio, sw_irq); in plpar_int_set_source_config() 223 target, prio, sw_irq); in plpar_int_set_source_config() 228 lisn, target, prio, rc); in plpar_int_set_source_config() 238 unsigned long *prio, in plpar_int_get_source_config() argument 248 target, prio, sw_irq); in plpar_int_get_source_config() 258 *prio = retbuf[1]; in plpar_int_get_source_config() 449 static int xive_spapr_configure_irq(u32 hw_irq, u32 target, u8 prio, u32 sw_irq) in xive_spapr_configure_irq() argument 454 prio, sw_irq); in xive_spapr_configure_irq() 459 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 | 99 int xive_native_configure_irq(u32 hw_irq, u32 target, u8 prio, u32 sw_irq) in xive_native_configure_irq() argument 104 rc = opal_xive_set_irq_config(hw_irq, target, prio, sw_irq); in xive_native_configure_irq() 113 static int xive_native_get_irq_config(u32 hw_irq, u32 *target, u8 *prio, in xive_native_get_irq_config() argument 120 rc = opal_xive_get_irq_config(hw_irq, &vp, prio, &lirq); in xive_native_get_irq_config() 131 int xive_native_configure_queue(u32 vp_id, struct xive_q *q, u8 prio, in xive_native_configure_queue() argument 152 rc = opal_xive_get_queue_info(vp_id, prio, NULL, NULL, in xive_native_configure_queue() 157 vp_err(vp_id, "Failed to get queue %d info : %lld\n", prio, rc); in xive_native_configure_queue() 174 rc = opal_xive_set_queue_info(vp_id, prio, qpage_phys, order, flags); in xive_native_configure_queue() 180 vp_err(vp_id, "Failed to set queue %d info: %lld\n", prio, rc); in xive_native_configure_queue() 195 static void __xive_native_disable_queue(u32 vp_id, struct xive_q *q, u8 prio) in __xive_native_disable_queue() argument [all …]
|
/linux-6.1.9/tools/tracing/rtla/src/ |
D | utils.c | 420 long prio; in parse_prio() local 453 prio = get_long_after_colon(arg); in parse_prio() 454 if (prio == INVALID_VAL) in parse_prio() 457 if (prio < sched_get_priority_min(SCHED_FIFO)) in parse_prio() 459 if (prio > sched_get_priority_max(SCHED_FIFO)) in parse_prio() 463 sched_param->sched_priority = prio; in parse_prio() 468 prio = get_long_after_colon(arg); in parse_prio() 469 if (prio == INVALID_VAL) in parse_prio() 472 if (prio < sched_get_priority_min(SCHED_RR)) in parse_prio() 474 if (prio > sched_get_priority_max(SCHED_RR)) in parse_prio() [all …]
|
/linux-6.1.9/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() 478 u8 prio) in mlxsw_sp_port_pfc_cnt_get() argument 486 MLXSW_REG_PPCNT_PRIO_CNT, prio); in mlxsw_sp_port_pfc_cnt_get() 491 my_pfc->requests[prio] = mlxsw_reg_ppcnt_tx_pause_get(ppcnt_pl); in mlxsw_sp_port_pfc_cnt_get() 492 my_pfc->indications[prio] = mlxsw_reg_ppcnt_rx_pause_get(ppcnt_pl); in mlxsw_sp_port_pfc_cnt_get() 538 int prio; in mlxsw_sp_dcbnl_ieee_setpfc() local 554 for (prio = 0; prio < IEEE_8021QAZ_MAX_TCS; prio++) in mlxsw_sp_dcbnl_ieee_setpfc() 555 hdroom.prios.prio[prio].lossy = !(pfc->pfc_en & BIT(prio)); in mlxsw_sp_dcbnl_ieee_setpfc() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | bpf_sockopt_helpers.h | 8 int prio; in get_set_sk_priority() local 15 if (bpf_getsockopt(ctx, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in get_set_sk_priority() 17 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in get_set_sk_priority()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fs_core.c | 155 int prio; member 426 unsigned int prio) in find_prio() argument 431 if (iter_prio->prio == prio) in find_prio() 533 struct fs_prio *prio; in del_sw_flow_table() local 539 fs_get_obj(prio, ft->node.parent); in del_sw_flow_table() 540 prio->num_ft--; in del_sw_flow_table() 883 static struct mlx5_flow_table *find_closest_ft(struct fs_prio *prio, bool reverse) in find_closest_ft() argument 889 parent = prio->node.parent; in find_closest_ft() 890 curr_node = &prio->node; in find_closest_ft() 900 static struct mlx5_flow_table *find_next_chained_ft(struct fs_prio *prio) in find_next_chained_ft() argument [all …]
|
/linux-6.1.9/arch/powerpc/kvm/ |
D | book3s_xive.c | 137 u8 prio = 0xff; in xive_vm_scan_interrupts() local 149 prio = ffs(pending) - 1; in xive_vm_scan_interrupts() 152 if (prio >= xc->cppr || prio > 7) { in xive_vm_scan_interrupts() 154 prio = xc->mfrr; in xive_vm_scan_interrupts() 161 q = &xc->queues[prio]; in xive_vm_scan_interrupts() 194 if (hirq == XICS_IPI || (prio == 0 && !qpage)) { in xive_vm_scan_interrupts() 213 pending &= ~(1 << prio); in xive_vm_scan_interrupts() 234 if (prio >= xc->mfrr && xc->mfrr < xc->cppr) { in xive_vm_scan_interrupts() 235 prio = xc->mfrr; in xive_vm_scan_interrupts() 272 xc->cppr = prio; in xive_vm_scan_interrupts() [all …]
|
/linux-6.1.9/samples/trace_events/ |
D | trace_custom_sched.h | 49 __entry->prev_prio = prev->prio; 51 __entry->next_prio = next->prio; 67 __field( unsigned short, prio ) 72 __entry->prio = p->prio; 75 TP_printk("pid=%d prio=%d", __entry->pid, __entry->prio)
|