/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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 = chains->fs_base_prio + prio - 1; in mlx5_chains_create_table() 187 ft_attr.prio = chains->fs_base_prio; in mlx5_chains_create_table() 204 (int)PTR_ERR(ft), chain, prio, level, sz); in mlx5_chains_create_table() [all …]
|
/linux-6.6.21/net/sctp/ |
D | stream_sched_prio.c | 41 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_new_head() argument 52 p->prio = prio; in sctp_sched_prio_new_head() 59 struct sctp_stream *stream, int prio, gfp_t gfp) in sctp_sched_prio_get_head() argument 68 if (p->prio == prio) in sctp_sched_prio_get_head() 70 if (p->prio > prio) in sctp_sched_prio_get_head() 85 if (p->prio == prio) in sctp_sched_prio_get_head() 90 return sctp_sched_prio_new_head(stream, prio, gfp); in sctp_sched_prio_get_head() 133 struct sctp_stream_priorities *prio, *prio_head; in sctp_sched_prio_sched() local 153 list_for_each_entry(prio, &stream->prio_list, prio_sched) { in sctp_sched_prio_sched() 154 if (prio->prio > prio_head->prio) { in sctp_sched_prio_sched() [all …]
|
/linux-6.6.21/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.6.21/block/ |
D | mq-deadline.c | 232 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_request_merged() local 233 struct dd_per_prio *per_prio = &dd->per_prio[prio]; in dd_request_merged() 252 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_merged_requests() local 256 dd->per_prio[prio].stats.merged++; in dd_merged_requests() 273 deadline_remove_request(q, &dd->per_prio[prio], next); in dd_merged_requests() 290 static u32 dd_queued(struct deadline_data *dd, enum dd_prio prio) in dd_queued() argument 292 const struct io_stats_per_prio *stats = &dd->per_prio[prio].stats; in dd_queued() 449 enum dd_prio prio; in __dd_dispatch_request() local 549 prio = ioprio_class_to_prio[ioprio_class]; in __dd_dispatch_request() 550 dd->per_prio[prio].latest_pos[data_dir] = blk_rq_pos(rq); in __dd_dispatch_request() [all …]
|
/linux-6.6.21/tools/testing/selftests/drivers/net/mlxsw/ |
D | qos_dscp_bridge.sh | 75 dcb app add dev $swp1 dscp-prio 10:0 11:1 12:2 13:3 14:4 15:5 16:6 17:7 76 dcb app add dev $swp2 dscp-prio 20:0 21:1 22:2 23:3 24:4 25:5 26:6 27:7 81 dcb app del dev $swp2 dscp-prio 20:0 21:1 22:2 23:3 24:4 25:5 26:6 27:7 82 dcb app del dev $swp1 dscp-prio 10:0 11:1 12:2 13:3 14:4 15:5 16:6 17:7 127 local prio=$1; shift 132 local dscp_10=$(((prio + 10) << 2)) 133 local dscp_20=$(((prio + 20) << 2)) 152 if ((key == prio+10 || key == prio+20)); then 163 log_test "DSCP rewrite: $dscp_10-(prio $prio)-$dscp_20" 168 local prio [all …]
|
D | qos_defprio.sh | 50 dcb app flush dev $swp1 default-prio 91 dcb app add dev $swp1 default-prio $prio_install 101 dcb app del dev $swp1 default-prio $prio_install 106 local prio 108 for prio in {0..7}; do 109 __test_defprio $prio $prio 112 dcb app add dev $swp1 default-prio 3 120 dcb app del dev $swp1 default-prio 3
|
D | qos_dscp_router.sh | 105 dcb app add dev $swp1 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 106 dcb app add dev $swp2 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 111 dcb app del dev $swp2 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 112 dcb app del dev $swp1 dscp-prio 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7 159 local prio=$1; shift 165 local prio2=$($reprio $prio) # ICMP Request egress prio 168 local dscp=$((prio << 2)) # ICMP Request ingress DSCP 213 local prio 218 for prio in {0..7}; do 219 dscp_ping_test v$h1 192.0.2.1 192.0.2.18 $prio $reprio $h1 $h2 [all …]
|
/linux-6.6.21/tools/testing/selftests/net/forwarding/ |
D | skbedit_priority.sh | 68 prio bands 8 priomap 7 6 5 4 3 2 1 0 118 local prio=$1; shift 124 flower action skbedit priority $prio 140 log_test "$locus skbedit priority $prio -> classid $classid" 147 local prio 149 for prio in {0..7}; do 151 $prio 10:$((8 - prio)) 157 local prio 159 for prio in {0..7}; do 161 $prio 10:$((8 - prio))
|
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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)
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fs_core.c | 159 int prio; member 474 unsigned int prio) in find_prio() argument 479 if (iter_prio->prio == prio) in find_prio() 583 struct fs_prio *prio; in del_sw_flow_table() local 589 fs_get_obj(prio, ft->node.parent); in del_sw_flow_table() 590 prio->num_ft--; in del_sw_flow_table() 986 struct fs_prio *prio; in find_next_fwd_ft() local 990 fs_get_obj(prio, next_ns ? ft->ns->node.parent : ft->node.parent); in find_next_fwd_ft() 992 return find_next_chained_ft(&prio->node); in find_next_fwd_ft() 996 struct fs_prio *prio, in connect_fts_in_prio() argument [all …]
|