Home
last modified time | relevance | path

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

12345678910>>...24

/linux-6.12.1/lib/
Dparman.c44 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 …]
Dplist.c89 if (node->prio < iter->prio) { in plist_add()
92 } else if (node->prio >= reverse_iter->prio) { in plist_add()
108 if (!prev || prev->prio != node->prio) in plist_add()
169 if (node->prio != iter->prio) in plist_requeue()
175 if (node->prio != iter->prio) { in plist_requeue()
208 if (node_pos->prio == prio_pos->prio) { in plist_test_check()
213 BUG_ON(prio_pos->prio > node_pos->prio); in plist_test_check()
227 BUG_ON(node->prio == plist_next(node)->prio); in plist_test_requeue()
245 test_node[i].prio = r % 99; in plist_test()
281 test_node[i].prio = test_data[i]; in plist_test()
Dtest_parman.c73 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.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_dcbnl.c12 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.12.1/net/sched/
Dsch_skbprio.c42 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 …]
Dsch_prio.c100 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.12.1/arch/powerpc/sysdev/
Dipic.c36 .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.12.1/drivers/net/ethernet/mscc/
Docelot_devlink.c47 #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.12.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dfs_chains.c56 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.12.1/net/sctp/
Dstream_sched_prio.c41 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.12.1/tools/testing/selftests/bpf/progs/
Dlsm_cgroup.c55 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()
169 int prio = 234; in BPF_PROG() local
175 if (bpf_setsockopt(newsk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in BPF_PROG()
179 prio = 0; in BPF_PROG()
180 if (bpf_getsockopt(newsk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in BPF_PROG()
182 if (prio != 234) in BPF_PROG()
/linux-6.12.1/block/
Dmq-deadline.c194 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_request_merged() local
195 struct dd_per_prio *per_prio = &dd->per_prio[prio]; in dd_request_merged()
214 const enum dd_prio prio = ioprio_class_to_prio[ioprio_class]; in dd_merged_requests() local
218 dd->per_prio[prio].stats.merged++; in dd_merged_requests()
235 deadline_remove_request(q, &dd->per_prio[prio], next); in dd_merged_requests()
252 static u32 dd_queued(struct deadline_data *dd, enum dd_prio prio) in dd_queued() argument
254 const struct io_stats_per_prio *stats = &dd->per_prio[prio].stats; in dd_queued()
323 enum dd_prio prio; in __dd_dispatch_request() local
419 prio = ioprio_class_to_prio[ioprio_class]; in __dd_dispatch_request()
420 dd->per_prio[prio].latest_pos[data_dir] = blk_rq_pos(rq); in __dd_dispatch_request()
[all …]
/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/
Dqos_dscp_bridge.sh75 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 …]
Dqos_defprio.sh50 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
Dqos_dscp_router.sh105 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.12.1/tools/testing/selftests/net/forwarding/
Dskbedit_priority.sh68 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.12.1/samples/bpf/
Dtest_cgrp2_sock.c30 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.12.1/tools/testing/selftests/tc-testing/
Dtdc_batch.py65 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.12.1/include/linux/sched/
Drt.h9 static inline bool rt_prio(int prio) in rt_prio() argument
11 return unlikely(prio < MAX_RT_PRIO && prio >= MAX_DL_PRIO); in rt_prio()
14 static inline bool rt_or_dl_prio(int prio) in rt_or_dl_prio() argument
16 return unlikely(prio < MAX_RT_PRIO); in rt_or_dl_prio()
25 return rt_prio(p->prio); in rt_task()
35 return rt_or_dl_prio(p->prio); in rt_or_dl_task()
/linux-6.12.1/arch/powerpc/sysdev/xive/
Dspapr.c211 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 …]
Dnative.c99 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.12.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_dcb.c72 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.12.1/tools/testing/selftests/drivers/net/microchip/
Dksz9477_qos.sh325 local prio
327 prio="$(dcb -j app show dev ${if_name} default-prio | \
329 if [ -z "${prio}" ]; then
330 prio=0
333 echo ${prio}
348 dcb app replace dev ${swp1} default-prio ${val}
363 dcb app replace dev ${swp1} default-prio ${orig_prio}
416 dcb app replace dev ${swp1} default-prio ${port_prio}
417 dcb app replace dev ${swp1} dscp-prio ${dscp}:${dscp_prio}
472 dcb app replace dev ${swp1} dscp-prio ${dscp}:${dscp_prio}
[all …]
/linux-6.12.1/drivers/block/zram/
Dzram_drv.c159 static inline void zram_set_priority(struct zram *zram, u32 index, u32 prio) in zram_set_priority() argument
161 prio &= ZRAM_COMP_PRIORITY_MASK; in zram_set_priority()
168 zram->table[index].flags |= (prio << ZRAM_COMP_PRIORITY_BIT1); in zram_set_priority()
173 u32 prio = zram->table[index].flags >> ZRAM_COMP_PRIORITY_BIT1; in zram_get_priority() local
175 return prio & ZRAM_COMP_PRIORITY_MASK; in zram_get_priority()
947 static void comp_algorithm_set(struct zram *zram, u32 prio, const char *alg) in comp_algorithm_set() argument
950 if (zram->comp_algs[prio] != default_compressor) in comp_algorithm_set()
951 kfree(zram->comp_algs[prio]); in comp_algorithm_set()
953 zram->comp_algs[prio] = alg; in comp_algorithm_set()
956 static ssize_t __comp_algorithm_show(struct zram *zram, u32 prio, char *buf) in __comp_algorithm_show() argument
[all …]
/linux-6.12.1/kernel/printk/
Dnbcon.c255 if (ctxt->prio <= cur->prio || ctxt->prio <= cur->req_prio) in nbcon_context_try_acquire_direct()
268 new.prio = ctxt->prio; in nbcon_context_try_acquire_direct()
350 if (!nbcon_waiter_matches(cur, ctxt->prio)) in nbcon_context_try_acquire_requested()
354 if (cur->prio != NBCON_PRIO_NONE) in nbcon_context_try_acquire_requested()
364 new.prio = ctxt->prio; in nbcon_context_try_acquire_requested()
374 WARN_ON_ONCE(nbcon_waiter_matches(cur, ctxt->prio)); in nbcon_context_try_acquire_requested()
431 WARN_ON_ONCE(ctxt->prio <= cur->prio || ctxt->prio <= cur->req_prio); in nbcon_context_try_acquire_handover()
454 new.req_prio = ctxt->prio; in nbcon_context_try_acquire_handover()
487 if (!nbcon_waiter_matches(cur, ctxt->prio)) in nbcon_context_try_acquire_handover()
535 if (WARN_ON_ONCE(ctxt->prio != NBCON_PRIO_PANIC)) in nbcon_context_try_acquire_hostile()
[all …]

12345678910>>...24