Home
last modified time | relevance | path

Searched refs:sch (Results 1 – 25 of 98) sorted by relevance

1234

/linux/drivers/s390/cio/
H A Dcio.c88 int cio_set_options(struct subchannel *sch, int flags) in cio_set_options() argument
90 struct io_subchannel_private *priv = to_io_private(sch); in cio_set_options()
99 cio_start_handle_notoper(struct subchannel *sch, __u8 lpm) in cio_start_handle_notoper() argument
104 sch->lpm &= ~lpm; in cio_start_handle_notoper()
106 sch->lpm = 0; in cio_start_handle_notoper()
109 "subchannel 0.%x.%04x!\n", sch->schid.ssid, in cio_start_handle_notoper()
110 sch->schid.sch_no); in cio_start_handle_notoper()
112 if (cio_update_schib(sch)) in cio_start_handle_notoper()
115 scnprintf(dbf_text, sizeof(dbf_text), "no%s", dev_name(&sch->dev)); in cio_start_handle_notoper()
117 CIO_HEX_EVENT(0, &sch->schib, sizeof (struct schib)); in cio_start_handle_notoper()
[all …]
H A Deadm_sch.c61 static int eadm_subchannel_start(struct subchannel *sch, struct aob *aob) in eadm_subchannel_start() argument
63 union orb *orb = &get_eadm_private(sch)->orb; in eadm_subchannel_start()
68 orb->eadm.intparm = (u32)virt_to_phys(sch); in eadm_subchannel_start()
72 EADM_LOG_HEX(6, &sch->schid, sizeof(sch->schid)); in eadm_subchannel_start()
74 cc = ssch(sch->schid, orb); in eadm_subchannel_start()
77 sch->schib.scsw.eadm.actl |= SCSW_ACTL_START_PEND; in eadm_subchannel_start()
88 static int eadm_subchannel_clear(struct subchannel *sch) in eadm_subchannel_clear() argument
92 cc = csch(sch->schid); in eadm_subchannel_clear()
96 sch->schib.scsw.eadm.actl |= SCSW_ACTL_CLEAR_PEND; in eadm_subchannel_clear()
103 struct subchannel *sch = private->sch; in eadm_subchannel_timeout() local
[all …]
H A Ddevice.c273 struct subchannel *sch; in ccw_device_set_offline() local
287 sch = to_subchannel(cdev->dev.parent); in ccw_device_set_offline()
308 io_subchannel_quiesce(sch); in ccw_device_set_offline()
543 struct subchannel *sch; in available_show() local
553 sch = to_subchannel(dev->parent); in available_show()
554 if (!sch->lpm) in available_show()
568 struct subchannel *sch = to_subchannel(dev); in initiate_logging() local
571 rc = chsc_siosl(sch->schid); in initiate_logging()
574 sch->schid.ssid, sch->schid.sch_no, rc); in initiate_logging()
578 sch->schid.ssid, sch->schid.sch_no); in initiate_logging()
[all …]
H A Dvfio_ccw_fsm.c21 struct subchannel *sch = to_subchannel(private->vdev.dev->parent); in fsm_io_helper() local
28 spin_lock_irqsave(&sch->lock, flags); in fsm_io_helper()
30 orb = cp_get_orb(&private->cp, sch); in fsm_io_helper()
37 VFIO_CCW_TRACE_EVENT(5, dev_name(&sch->dev)); in fsm_io_helper()
40 ccode = ssch(sch->schid, orb); in fsm_io_helper()
49 sch->schib.scsw.cmd.actl |= SCSW_ACTL_START_PEND; in fsm_io_helper()
61 sch->lpm &= ~lpm; in fsm_io_helper()
63 sch->lpm = 0; in fsm_io_helper()
65 if (cio_update_schib(sch)) in fsm_io_helper()
68 ret = sch->lpm ? -EACCES : -ENODEV; in fsm_io_helper()
[all …]
/linux/drivers/gpio/
H A Dgpio-sch.c50 static unsigned int sch_gpio_offset(struct sch_gpio *sch, unsigned int gpio, in sch_gpio_offset() argument
55 if (gpio >= sch->resume_base) { in sch_gpio_offset()
56 gpio -= sch->resume_base; in sch_gpio_offset()
63 static unsigned int sch_gpio_bit(struct sch_gpio *sch, unsigned int gpio) in sch_gpio_bit() argument
65 if (gpio >= sch->resume_base) in sch_gpio_bit()
66 gpio -= sch->resume_base; in sch_gpio_bit()
70 static int sch_gpio_reg_get(struct sch_gpio *sch, unsigned int gpio, unsigned int reg) in sch_gpio_reg_get() argument
75 offset = sch_gpio_offset(sch, gpio, reg); in sch_gpio_reg_get()
76 bit = sch_gpio_bit(sch, gpio); in sch_gpio_reg_get()
78 reg_val = !!(ioread8(sch in sch_gpio_reg_get()
83 sch_gpio_reg_set(struct sch_gpio * sch,unsigned int gpio,unsigned int reg,int val) sch_gpio_reg_set() argument
104 struct sch_gpio *sch = gpiochip_get_data(gc); sch_gpio_direction_in() local
115 struct sch_gpio *sch = gpiochip_get_data(gc); sch_gpio_get() local
122 struct sch_gpio *sch = gpiochip_get_data(gc); sch_gpio_set() local
135 struct sch_gpio *sch = gpiochip_get_data(gc); sch_gpio_direction_out() local
156 struct sch_gpio *sch = gpiochip_get_data(gc); sch_gpio_get_direction() local
177 struct sch_gpio *sch = gpiochip_get_data(gc); sch_irq_type() local
214 struct sch_gpio *sch = gpiochip_get_data(gc); sch_irq_ack() local
225 struct sch_gpio *sch = gpiochip_get_data(gc); sch_irq_mask_unmask() local
263 struct sch_gpio *sch = context; sch_gpio_gpe_handler() local
293 struct sch_gpio *sch = data; sch_gpio_remove_gpe_handler() local
299 sch_gpio_install_gpe_handler(struct sch_gpio * sch) sch_gpio_install_gpe_handler() argument
327 struct sch_gpio *sch; sch_gpio_probe() local
[all...]
/linux/net/sched/
H A Dsch_fifo.c19 static int bfifo_enqueue(struct sk_buff *skb, struct Qdisc *sch, in bfifo_enqueue() argument
22 if (likely((u64)sch->qstats.backlog + qdisc_pkt_len(skb) <= in bfifo_enqueue()
23 READ_ONCE(sch->limit))) in bfifo_enqueue()
24 return qdisc_enqueue_tail(skb, sch); in bfifo_enqueue()
26 return qdisc_drop(skb, sch, to_free); in bfifo_enqueue()
29 static int pfifo_enqueue(struct sk_buff *skb, struct Qdisc *sch, in pfifo_enqueue() argument
32 if (likely(sch->q.qlen < READ_ONCE(sch->limit))) in pfifo_enqueue()
33 return qdisc_enqueue_tail(skb, sch); in pfifo_enqueue()
35 return qdisc_drop(skb, sch, to_free); in pfifo_enqueue()
38 static int pfifo_tail_enqueue(struct sk_buff *skb, struct Qdisc *sch, in pfifo_tail_enqueue() argument
[all …]
H A Dsch_mq.c20 static int mq_offload(struct Qdisc *sch, enum tc_mq_command cmd) in mq_offload() argument
22 struct net_device *dev = qdisc_dev(sch); in mq_offload()
25 .handle = sch->handle, in mq_offload()
34 static int mq_offload_stats(struct Qdisc *sch) in mq_offload_stats() argument
38 .handle = sch->handle, in mq_offload_stats()
40 .bstats = &sch->bstats, in mq_offload_stats()
41 .qstats = &sch->qstats, in mq_offload_stats()
45 return qdisc_offload_dump_helper(sch, TC_SETUP_QDISC_MQ, &opt); in mq_offload_stats()
48 void mq_destroy_common(struct Qdisc *sch) in mq_destroy_common() argument
50 struct net_device *dev = qdisc_dev(sch); in mq_destroy_common()
62 mq_destroy(struct Qdisc * sch) mq_destroy() argument
68 mq_init_common(struct Qdisc * sch,struct nlattr * opt,struct netlink_ext_ack * extack,const struct Qdisc_ops * qdisc_ops) mq_init_common() argument
107 mq_init(struct Qdisc * sch,struct nlattr * opt,struct netlink_ext_ack * extack) mq_init() argument
120 mq_attach(struct Qdisc * sch) mq_attach() argument
143 mq_dump_common(struct Qdisc * sch,struct sk_buff * skb) mq_dump_common() argument
173 mq_dump(struct Qdisc * sch,struct sk_buff * skb) mq_dump() argument
179 mq_queue_get(struct Qdisc * sch,unsigned long cl) mq_queue_get() argument
189 mq_select_queue(struct Qdisc * sch,struct tcmsg * tcm) mq_select_queue() argument
196 mq_graft(struct Qdisc * sch,unsigned long cl,struct Qdisc * new,struct Qdisc ** old,struct netlink_ext_ack * extack) mq_graft() argument
222 mq_leaf(struct Qdisc * sch,unsigned long cl) mq_leaf() argument
230 mq_find(struct Qdisc * sch,u32 classid) mq_find() argument
240 mq_dump_class(struct Qdisc * sch,unsigned long cl,struct sk_buff * skb,struct tcmsg * tcm) mq_dump_class() argument
252 mq_dump_class_stats(struct Qdisc * sch,unsigned long cl,struct gnet_dump * d) mq_dump_class_stats() argument
265 mq_walk(struct Qdisc * sch,struct qdisc_walker * arg) mq_walk() argument
[all...]
H A Dsch_codel.c41 struct Qdisc *sch = ctx; in dequeue_func() local
42 struct sk_buff *skb = __qdisc_dequeue_head(&sch->q); in dequeue_func()
45 qstats_backlog_sub(sch, qdisc_pkt_len(skb)); in dequeue_func()
53 struct Qdisc *sch = ctx; in drop_func() local
55 qdisc_dequeue_drop(sch, skb, QDISC_DROP_CONGESTED); in drop_func()
56 qdisc_qstats_drop(sch); in drop_func()
59 static struct sk_buff *__codel_qdisc_dequeue(struct Qdisc *sch) in __codel_qdisc_dequeue() argument
61 struct codel_sched_data *q = qdisc_priv(sch); in __codel_qdisc_dequeue()
64 skb = codel_dequeue(sch, &sch->qstats.backlog, &q->params, &q->vars, in __codel_qdisc_dequeue()
69 qdisc_bstats_update(sch, skb); in __codel_qdisc_dequeue()
[all …]
H A Dsch_prio.c31 prio_classify(struct sk_buff *skb, struct Qdisc *sch, int *qerr) in prio_classify() argument
33 struct prio_sched_data *q = qdisc_priv(sch); in prio_classify()
40 if (TC_H_MAJ(skb->priority) != sch->handle) { in prio_classify()
69 prio_enqueue(struct sk_buff *skb, struct Qdisc *sch, struct sk_buff **to_free) in prio_enqueue() argument
75 qdisc = prio_classify(skb, sch, &ret); in prio_enqueue()
80 qdisc_qstats_drop(sch); in prio_enqueue()
88 qstats_backlog_add(sch, len); in prio_enqueue()
89 qdisc_qlen_inc(sch); in prio_enqueue()
93 qdisc_qstats_drop(sch); in prio_enqueue()
97 static struct sk_buff *prio_peek(struct Qdisc *sch) in prio_peek() argument
[all …]
H A Dsch_red.c44 struct Qdisc *sch; member
70 static int red_enqueue(struct sk_buff *skb, struct Qdisc *sch, in red_enqueue() argument
74 struct red_sched_data *q = qdisc_priv(sch); in red_enqueue()
91 qdisc_qstats_overlimit(sch); in red_enqueue()
101 skb = tcf_qevent_handle(&q->qe_mark, sch, skb, to_free, &ret); in red_enqueue()
115 qdisc_qstats_overlimit(sch); in red_enqueue()
125 skb = tcf_qevent_handle(&q->qe_mark, sch, skb, to_free, &ret); in red_enqueue()
141 qstats_backlog_add(sch, len); in red_enqueue()
142 qdisc_qlen_inc(sch); in red_enqueue()
146 qdisc_qstats_drop(sch); in red_enqueue()
159 red_dequeue(struct Qdisc * sch) red_dequeue() argument
177 red_peek(struct Qdisc * sch) red_peek() argument
185 red_reset(struct Qdisc * sch) red_reset() argument
193 red_offload(struct Qdisc * sch,bool enable) red_offload() argument
222 red_destroy(struct Qdisc * sch) red_destroy() argument
243 __red_change(struct Qdisc * sch,struct nlattr ** tb,struct netlink_ext_ack * extack) __red_change() argument
332 struct Qdisc *sch = q->sch; red_adaptative_timer() local
344 red_init(struct Qdisc * sch,struct nlattr * opt,struct netlink_ext_ack * extack) red_init() argument
378 red_change(struct Qdisc * sch,struct nlattr * opt,struct netlink_ext_ack * extack) red_change() argument
403 red_dump_offload_stats(struct Qdisc * sch) red_dump_offload_stats() argument
418 red_dump(struct Qdisc * sch,struct sk_buff * skb) red_dump() argument
455 red_dump_stats(struct Qdisc * sch,struct gnet_dump * d) red_dump_stats() argument
484 red_dump_class(struct Qdisc * sch,unsigned long cl,struct sk_buff * skb,struct tcmsg * tcm) red_dump_class() argument
494 red_graft_offload(struct Qdisc * sch,struct Qdisc * new,struct Qdisc * old,struct netlink_ext_ack * extack) red_graft_offload() argument
509 red_graft(struct Qdisc * sch,unsigned long arg,struct Qdisc * new,struct Qdisc ** old,struct netlink_ext_ack * extack) red_graft() argument
523 red_leaf(struct Qdisc * sch,unsigned long arg) red_leaf() argument
529 red_find(struct Qdisc * sch,u32 classid) red_find() argument
534 red_walk(struct Qdisc * sch,struct qdisc_walker * walker) red_walk() argument
[all...]
H A Dsch_ets.c82 static int ets_quantum_parse(struct Qdisc *sch, const struct nlattr *attr, in ets_quantum_parse() argument
91 ets_class_from_arg(struct Qdisc *sch, unsigned long arg) in ets_class_from_arg() argument
93 struct ets_sched *q = qdisc_priv(sch); in ets_class_from_arg()
100 static u32 ets_class_id(struct Qdisc *sch, const struct ets_class *cl) in ets_class_id() argument
102 struct ets_sched *q = qdisc_priv(sch); in ets_class_id()
105 return TC_H_MAKE(sch->handle, band + 1); in ets_class_id()
108 static void ets_offload_change(struct Qdisc *sch) in ets_offload_change() argument
110 struct net_device *dev = qdisc_dev(sch); in ets_offload_change()
111 struct ets_sched *q = qdisc_priv(sch); in ets_offload_change()
125 qopt.handle = sch->handle; in ets_offload_change()
[all …]
H A Dsch_ingress.c24 static struct Qdisc *ingress_leaf(struct Qdisc *sch, unsigned long arg) in ingress_leaf() argument
29 static unsigned long ingress_find(struct Qdisc *sch, u32 classid) in ingress_find() argument
34 static unsigned long ingress_bind_filter(struct Qdisc *sch, in ingress_bind_filter() argument
37 return ingress_find(sch, classid); in ingress_bind_filter()
40 static void ingress_unbind_filter(struct Qdisc *sch, unsigned long cl) in ingress_unbind_filter() argument
44 static void ingress_walk(struct Qdisc *sch, struct qdisc_walker *walker) in ingress_walk() argument
48 static struct tcf_block *ingress_tcf_block(struct Qdisc *sch, unsigned long cl, in ingress_tcf_block() argument
51 struct ingress_sched_data *q = qdisc_priv(sch); in ingress_tcf_block()
63 static void ingress_ingress_block_set(struct Qdisc *sch, u32 block_index) in ingress_ingress_block_set() argument
65 struct ingress_sched_data *q = qdisc_priv(sch); in ingress_ingress_block_set()
[all …]
H A Dsch_tbf.c142 static void tbf_offload_change(struct Qdisc *sch, in tbf_offload_change() argument
145 struct tbf_sched_data *q = qdisc_priv(sch); in tbf_offload_change()
146 struct net_device *dev = qdisc_dev(sch); in tbf_offload_change()
154 qopt.handle = sch->handle; in tbf_offload_change()
155 qopt.parent = sch->parent; in tbf_offload_change()
158 qopt.replace_params.qstats = &sch->qstats; in tbf_offload_change()
163 static void tbf_offload_destroy(struct Qdisc *sch) in tbf_offload_destroy()
165 struct net_device *dev = qdisc_dev(sch); in tbf_offload_destroy()
173 qopt.handle = sch->handle; in tbf_offload_destroy()
174 qopt.parent = sch in tbf_offload_destroy()
161 tbf_offload_destroy(struct Qdisc * sch) tbf_offload_destroy() argument
175 tbf_offload_dump(struct Qdisc * sch) tbf_offload_dump() argument
188 tbf_offload_graft(struct Qdisc * sch,struct Qdisc * new,struct Qdisc * old,struct netlink_ext_ack * extack) tbf_offload_graft() argument
205 tbf_segment(struct sk_buff * skb,struct Qdisc * sch,struct sk_buff ** to_free) tbf_segment() argument
245 tbf_enqueue(struct sk_buff * skb,struct Qdisc * sch,struct sk_buff ** to_free) tbf_enqueue() argument
275 tbf_dequeue(struct Qdisc * sch) tbf_dequeue() argument
335 tbf_reset(struct Qdisc * sch) tbf_reset() argument
356 tbf_change(struct Qdisc * sch,struct nlattr * opt,struct netlink_ext_ack * extack) tbf_change() argument
484 tbf_init(struct Qdisc * sch,struct nlattr * opt,struct netlink_ext_ack * extack) tbf_init() argument
500 tbf_destroy(struct Qdisc * sch) tbf_destroy() argument
509 tbf_dump(struct Qdisc * sch,struct sk_buff * skb) tbf_dump() argument
551 tbf_dump_class(struct Qdisc * sch,unsigned long cl,struct sk_buff * skb,struct tcmsg * tcm) tbf_dump_class() argument
562 tbf_graft(struct Qdisc * sch,unsigned long arg,struct Qdisc * new,struct Qdisc ** old,struct netlink_ext_ack * extack) tbf_graft() argument
576 tbf_leaf(struct Qdisc * sch,unsigned long arg) tbf_leaf() argument
582 tbf_find(struct Qdisc * sch,u32 classid) tbf_find() argument
587 tbf_walk(struct Qdisc * sch,struct qdisc_walker * walker) tbf_walk() argument
[all...]
H A Dsch_multiq.c30 multiq_classify(struct sk_buff *skb, struct Qdisc *sch, int *qerr) in multiq_classify() argument
32 struct multiq_sched_data *q = qdisc_priv(sch); in multiq_classify()
60 multiq_enqueue(struct sk_buff *skb, struct Qdisc *sch, in multiq_enqueue() argument
66 qdisc = multiq_classify(skb, sch, &ret); in multiq_enqueue()
71 qdisc_qstats_drop(sch); in multiq_enqueue()
79 qdisc_qlen_inc(sch); in multiq_enqueue()
83 qdisc_qstats_drop(sch); in multiq_enqueue()
87 static struct sk_buff *multiq_dequeue(struct Qdisc *sch) in multiq_dequeue() argument
89 struct multiq_sched_data *q = qdisc_priv(sch); in multiq_dequeue()
104 netdev_get_tx_queue(qdisc_dev(sch), q->curband))) { in multiq_dequeue()
[all …]
H A Dsch_fq_codel.c56 u32 quantum; /* psched_mtu(qdisc_dev(sch)); */
76 static unsigned int fq_codel_classify(struct sk_buff *skb, struct Qdisc *sch, in fq_codel_classify() argument
79 struct fq_codel_sched_data *q = qdisc_priv(sch); in fq_codel_classify()
84 if (TC_H_MAJ(skb->priority) == sch->handle && in fq_codel_classify()
137 static unsigned int fq_codel_drop(struct Qdisc *sch, unsigned int max_packets, in fq_codel_drop() argument
140 struct fq_codel_sched_data *q = qdisc_priv(sch); in fq_codel_drop()
179 __qdisc_qstats_drop(sch, i); in fq_codel_drop()
180 qstats_backlog_sub(sch, len); in fq_codel_drop()
181 WRITE_ONCE(sch->q.qlen, sch in fq_codel_drop()
185 fq_codel_enqueue(struct sk_buff * skb,struct Qdisc * sch,struct sk_buff ** to_free) fq_codel_enqueue() argument
259 struct Qdisc *sch = ctx; dequeue_func() local
278 struct Qdisc *sch = ctx; drop_func() local
284 __fq_codel_dequeue(struct Qdisc * sch) __fq_codel_dequeue() argument
324 fq_codel_dequeue_drop(struct Qdisc * sch) fq_codel_dequeue_drop() argument
336 fq_codel_dequeue(struct Qdisc * sch) fq_codel_dequeue() argument
347 fq_codel_peek(struct Qdisc * sch) fq_codel_peek() argument
373 fq_codel_reset(struct Qdisc * sch) fq_codel_reset() argument
405 fq_codel_change(struct Qdisc * sch,struct nlattr * opt,struct netlink_ext_ack * extack) fq_codel_change() argument
499 fq_codel_destroy(struct Qdisc * sch) fq_codel_destroy() argument
508 fq_codel_init(struct Qdisc * sch,struct nlattr * opt,struct netlink_ext_ack * extack) fq_codel_init() argument
574 fq_codel_dump(struct Qdisc * sch,struct sk_buff * skb) fq_codel_dump() argument
621 fq_codel_dump_stats(struct Qdisc * sch,struct gnet_dump * d) fq_codel_dump_stats() argument
649 fq_codel_leaf(struct Qdisc * sch,unsigned long arg) fq_codel_leaf() argument
654 fq_codel_find(struct Qdisc * sch,u32 classid) fq_codel_find() argument
659 fq_codel_bind(struct Qdisc * sch,unsigned long parent,u32 classid) fq_codel_bind() argument
669 fq_codel_tcf_block(struct Qdisc * sch,unsigned long cl,struct netlink_ext_ack * extack) fq_codel_tcf_block() argument
679 fq_codel_dump_class(struct Qdisc * sch,unsigned long cl,struct sk_buff * skb,struct tcmsg * tcm) fq_codel_dump_class() argument
686 fq_codel_dump_class_stats(struct Qdisc * sch,unsigned long cl,struct gnet_dump * d) fq_codel_dump_class_stats() argument
733 fq_codel_walk(struct Qdisc * sch,struct qdisc_walker * arg) fq_codel_walk() argument
[all...]
H A Dsch_dualpi2.c72 struct Qdisc *sch; /* The Classic queue (C-queue) */ member
208 static void dualpi2_calculate_c_protection(struct Qdisc *sch, in dualpi2_calculate_c_protection() argument
211 u32 mtu = clamp_t(u32, psched_mtu(qdisc_dev(sch)), 1, 1 << 20); in dualpi2_calculate_c_protection()
284 static bool must_drop(struct Qdisc *sch, struct dualpi2_sched_data *q, in must_drop() argument
290 u32 mtu = clamp_t(u32, psched_mtu(qdisc_dev(sch)), 1, 1 << 20); in must_drop()
292 if (sch->qstats.backlog < 2 * mtu) in must_drop()
360 if (TC_H_MAJ(skb->priority) == q->sch->handle && in dualpi2_skb_classify()
388 static int dualpi2_enqueue_skb(struct sk_buff *skb, struct Qdisc *sch, in dualpi2_enqueue_skb() argument
391 struct dualpi2_sched_data *q = qdisc_priv(sch); in dualpi2_enqueue_skb()
394 if (unlikely(qdisc_qlen(sch) >= sch->limit) || in dualpi2_enqueue_skb()
[all …]
H A Dsch_etf.c75 static bool is_packet_valid(struct Qdisc *sch, struct sk_buff *nskb) in is_packet_valid() argument
77 struct etf_sched_data *q = qdisc_priv(sch); in is_packet_valid()
108 static struct sk_buff *etf_peek_timesortedlist(struct Qdisc *sch) in etf_peek_timesortedlist() argument
110 struct etf_sched_data *q = qdisc_priv(sch); in etf_peek_timesortedlist()
120 static void reset_watchdog(struct Qdisc *sch) in reset_watchdog() argument
122 struct etf_sched_data *q = qdisc_priv(sch); in reset_watchdog()
123 struct sk_buff *skb = etf_peek_timesortedlist(sch); in reset_watchdog()
163 static int etf_enqueue_timesortedlist(struct sk_buff *nskb, struct Qdisc *sch, in etf_enqueue_timesortedlist()
166 struct etf_sched_data *q = qdisc_priv(sch); in etf_enqueue_timesortedlist()
171 if (!is_packet_valid(sch, nsk in etf_enqueue_timesortedlist()
162 etf_enqueue_timesortedlist(struct sk_buff * nskb,struct Qdisc * sch,struct sk_buff ** to_free) etf_enqueue_timesortedlist() argument
200 timesortedlist_drop(struct Qdisc * sch,struct sk_buff * skb,ktime_t now) timesortedlist_drop() argument
231 timesortedlist_remove(struct Qdisc * sch,struct sk_buff * skb) timesortedlist_remove() argument
253 etf_dequeue_timesortedlist(struct Qdisc * sch) etf_dequeue_timesortedlist() argument
343 etf_init(struct Qdisc * sch,struct nlattr * opt,struct netlink_ext_ack * extack) etf_init() argument
417 timesortedlist_clear(struct Qdisc * sch) timesortedlist_clear() argument
433 etf_reset(struct Qdisc * sch) etf_reset() argument
448 etf_destroy(struct Qdisc * sch) etf_destroy() argument
460 etf_dump(struct Qdisc * sch,struct sk_buff * skb) etf_dump() argument
[all...]
H A Dsch_drr.c43 static struct drr_class *drr_find_class(struct Qdisc *sch, u32 classid) in drr_find_class() argument
45 struct drr_sched *q = qdisc_priv(sch); in drr_find_class()
58 static int drr_change_class(struct Qdisc *sch, u32 classid, u32 parentid, in drr_change_class() argument
62 struct drr_sched *q = qdisc_priv(sch); in drr_change_class()
87 quantum = clamp_t(u32, (u32)psched_mtu(qdisc_dev(sch)), 256, 1 << 20); in drr_change_class()
115 cl->qdisc = qdisc_create_dflt(sch->dev_queue, in drr_change_class()
134 sch_tree_lock(sch); in drr_change_class()
136 sch_tree_unlock(sch); in drr_change_class()
138 qdisc_class_hash_grow(sch, &q->clhash); in drr_change_class()
144 static void drr_destroy_class(struct Qdisc *sch, struct drr_class *cl) in drr_destroy_class() argument
[all …]
H A Dsch_cbs.c81 int (*enqueue)(struct sk_buff *skb, struct Qdisc *sch,
83 struct sk_buff *(*dequeue)(struct Qdisc *sch);
88 static int cbs_child_enqueue(struct sk_buff *skb, struct Qdisc *sch, in cbs_child_enqueue() argument
99 qstats_backlog_add(sch, len); in cbs_child_enqueue()
100 qdisc_qlen_inc(sch); in cbs_child_enqueue()
105 static int cbs_enqueue_offload(struct sk_buff *skb, struct Qdisc *sch, in cbs_enqueue_offload() argument
108 struct cbs_sched_data *q = qdisc_priv(sch); in cbs_enqueue_offload()
111 return cbs_child_enqueue(skb, sch, qdisc, to_free); in cbs_enqueue_offload()
114 static int cbs_enqueue_soft(struct sk_buff *skb, struct Qdisc *sch, in cbs_enqueue_soft() argument
117 struct cbs_sched_data *q = qdisc_priv(sch); in cbs_enqueue_soft()
131 cbs_enqueue(struct sk_buff * skb,struct Qdisc * sch,struct sk_buff ** to_free) cbs_enqueue() argument
161 cbs_child_dequeue(struct Qdisc * sch,struct Qdisc * child) cbs_child_dequeue() argument
176 cbs_dequeue_soft(struct Qdisc * sch) cbs_dequeue_soft() argument
231 cbs_dequeue_offload(struct Qdisc * sch) cbs_dequeue_offload() argument
239 cbs_dequeue(struct Qdisc * sch) cbs_dequeue() argument
246 cbs_reset(struct Qdisc * sch) cbs_reset() argument
375 cbs_change(struct Qdisc * sch,struct nlattr * opt,struct netlink_ext_ack * extack) cbs_change() argument
415 cbs_init(struct Qdisc * sch,struct nlattr * opt,struct netlink_ext_ack * extack) cbs_init() argument
447 cbs_destroy(struct Qdisc * sch) cbs_destroy() argument
466 cbs_dump(struct Qdisc * sch,struct sk_buff * skb) cbs_dump() argument
492 cbs_dump_class(struct Qdisc * sch,unsigned long cl,struct sk_buff * skb,struct tcmsg * tcm) cbs_dump_class() argument
506 cbs_graft(struct Qdisc * sch,unsigned long arg,struct Qdisc * new,struct Qdisc ** old,struct netlink_ext_ack * extack) cbs_graft() argument
522 cbs_leaf(struct Qdisc * sch,unsigned long arg) cbs_leaf() argument
529 cbs_find(struct Qdisc * sch,u32 classid) cbs_find() argument
534 cbs_walk(struct Qdisc * sch,struct qdisc_walker * walker) cbs_walk() argument
[all...]
/linux/kernel/sched/ext/
H A Dext.c40 struct scx_sched *sch;
45 sch = scx_task_sched(p);
46 return !sch || (sch->ops.flags & SCX_OPS_ENQ_BLOCKED);
84 const struct scx_sched *sch = ptr;
88 return sch->ops.sub_cgroup_id != *(const u64 *)arg->key;
203 * interval is half of the shortest sch->watchdog_timeout.
331 static void scx_disable(struct scx_sched *sch, enum scx_exit_kind kind); in bypass_enq_target_dsq()
333 __printf(5, 6) bool __scx_exit(struct scx_sched *sch, in bypass_enq_target_dsq()
341 ret = scx_vexit(sch, kin in bypass_enq_target_dsq()
269 __scx_exit(struct scx_sched * sch,enum scx_exit_kind kind,s64 exit_code,s32 exit_cpu,const char * fmt,...) __scx_exit() argument
303 scx_is_descendant(struct scx_sched * sch,struct scx_sched * ancestor) scx_is_descendant() argument
310 find_global_dsq(struct scx_sched * sch,s32 cpu) find_global_dsq() argument
315 find_user_dsq(struct scx_sched * sch,u64 dsq_id) find_user_dsq() argument
328 bypass_enq_target_dsq(struct scx_sched * sch,s32 cpu) bypass_enq_target_dsq() argument
464 scx_fill_cmask_scratch(struct scx_sched * sch,const struct cpumask * cpumask) scx_fill_cmask_scratch() argument
485 scx_call_op_set_cpumask(struct scx_sched * sch,struct rq * rq,struct task_struct * task,const struct cpumask * cpumask) scx_call_op_set_cpumask() argument
998 scx_cpu_valid(struct scx_sched * sch,s32 cpu,const char * where) scx_cpu_valid() argument
1099 schedule_dsq_reenq(struct scx_sched * sch,struct scx_dispatch_q * dsq,u64 reenq_flags,struct rq * locked_rq) schedule_dsq_reenq() argument
1334 set_task_slice_oob(struct scx_sched * sch,struct task_struct * p,u64 slice) set_task_slice_oob() argument
1498 refill_task_slice_dfl(struct scx_sched * sch,struct task_struct * p) refill_task_slice_dfl() argument
1533 rq_owned_post_enq(struct scx_sched * sch,struct rq * rq,struct scx_dispatch_q * dsq,struct task_struct * p,u64 enq_flags) rq_owned_post_enq() argument
1605 scx_dispatch_enqueue(struct scx_sched * sch,struct rq * rq,struct scx_dispatch_q * dsq,struct task_struct * p,u64 slice,u64 vtime,u64 enq_flags) scx_dispatch_enqueue() argument
1844 find_dsq_for_dispatch(struct scx_sched * sch,struct rq * rq,u64 dsq_id,s32 tcpu) find_dsq_for_dispatch() argument
1879 mark_direct_dispatch(struct scx_sched * sch,struct task_struct * ddsp_task,struct task_struct * p,u64 dsq_id,u64 slice,u64 vtime,u64 enq_flags) mark_direct_dispatch() argument
1933 direct_dispatch(struct scx_sched * sch,struct task_struct * p,u64 enq_flags) direct_dispatch() argument
2002 struct scx_sched *sch = scx_task_sched(p); scx_do_enqueue_task() local
2170 struct scx_sched *sch = scx_task_sched(p); enqueue_task_scx() local
2229 struct scx_sched *sch = scx_task_sched(p); ops_dequeue() local
2306 struct scx_sched *sch = scx_task_sched(p); dequeue_task_scx() local
2367 struct scx_sched *sch = scx_task_sched(p); yield_task_scx() local
2381 struct scx_sched *sch = scx_task_sched(from); yield_to_task_scx() local
2416 scx_move_local_task_to_local_dsq(struct scx_sched * sch,struct task_struct * p,u64 enq_flags,struct rq * dst_rq) scx_move_local_task_to_local_dsq() argument
2449 move_remote_task_to_local_dsq(struct scx_sched * sch,struct task_struct * p,u64 enq_flags,struct rq * src_rq,struct rq * dst_rq) move_remote_task_to_local_dsq() argument
2501 task_can_run_on_remote_rq(struct scx_sched * sch,struct task_struct * p,struct rq * rq,bool enforce) task_can_run_on_remote_rq() argument
2614 consume_remote_task(struct scx_sched * sch,struct rq * this_rq,struct task_struct * p,u64 enq_flags,struct scx_dispatch_q * dsq,struct rq * src_rq) consume_remote_task() argument
2643 move_task_between_dsqs(struct scx_sched * sch,struct task_struct * p,u64 enq_flags,struct scx_dispatch_q * src_dsq,struct scx_dispatch_q * dst_dsq) move_task_between_dsqs() argument
2697 scx_consume_dispatch_q(struct scx_sched * sch,struct rq * rq,struct scx_dispatch_q * dsq,u64 enq_flags) scx_consume_dispatch_q() argument
2744 scx_consume_global_dsq(struct scx_sched * sch,struct rq * rq) scx_consume_global_dsq() argument
2768 dispatch_to_local_dsq(struct scx_sched * sch,struct rq * rq,struct scx_dispatch_q * dst_dsq,struct task_struct * p,u64 slice,u64 vtime,u64 enq_flags) dispatch_to_local_dsq() argument
2869 finish_dispatch(struct scx_sched * sch,struct rq * rq,struct task_struct * p,unsigned long qseq_at_dispatch,u64 dsq_id,u64 slice,u64 vtime,u64 enq_flags) finish_dispatch() argument
2936 scx_flush_dispatch_buf(struct scx_sched * sch,struct rq * rq) scx_flush_dispatch_buf() argument
3058 struct scx_sched *sch = scx_task_sched(p); set_next_task_scx() local
3138 struct scx_sched *sch = scx_root_protected_live(); switch_class() local
3178 struct scx_sched *sch = scx_task_sched(p); put_prev_task_scx() local
3473 struct scx_sched *sch = scx_task_sched(p); do_pick_task_scx() local
3549 struct scx_sched *sch = NULL; scx_prio_less() local
3600 struct scx_sched *sch = scx_task_sched(p); select_task_rq_scx() local
3679 struct scx_sched *sch = scx_task_sched(p); set_cpus_allowed_scx() local
3704 struct scx_sched *sch = scx_root_protected(); handle_hotplug() local
3806 struct scx_sched *sch; check_rq_for_timeouts() local
3817 struct scx_sched *sch = scx_task_sched(p); check_rq_for_timeouts() local
3894 struct scx_sched *sch = scx_task_sched(curr); task_tick_scx() local
3945 __scx_init_task(struct scx_sched * sch,struct task_struct * p,struct cgroup * cgrp,bool fork) __scx_init_task() argument
4000 __scx_enable_task(struct scx_sched * sch,struct task_struct * p) __scx_enable_task() argument
4051 scx_enable_task(struct scx_sched * sch,struct task_struct * p) scx_enable_task() argument
4057 scx_disable_task(struct scx_sched * sch,struct task_struct * p) scx_disable_task() argument
4087 __scx_disable_and_exit_task(struct scx_sched * sch,struct task_struct * p) __scx_disable_and_exit_task() argument
4121 scx_sub_init_cancel_task(struct scx_sched * sch,struct task_struct * p) scx_sub_init_cancel_task() argument
4133 scx_disable_and_exit_task(struct scx_sched * sch,struct task_struct * p) scx_disable_and_exit_task() argument
4216 struct scx_sched *sch = scx_cgroup_sched(kargs->cset->dfl_cgrp); scx_fork() local
4350 struct scx_sched *sch = scx_task_sched(p); reweight_task_scx() local
4379 struct scx_sched *sch = scx_task_sched(p); switching_to_scx() local
4442 struct scx_sched *sch = scx_task_sched(p); process_ddsp_deferred_locals() local
4522 reenq_local(struct scx_sched * sch,struct rq * rq,u64 reenq_flags) reenq_local() argument
4611 struct scx_sched *sch; process_deferred_reenq_locals() local
4649 struct scx_sched *sch = dsq->sched; reenq_user() local
4779 struct scx_sched *sch = scx_task_sched(p); scx_can_stop_tick() local
4885 struct scx_sched *sch; scx_tg_online() local
4924 struct scx_sched *sch = tg->scx.sched; scx_tg_offline() local
4956 struct scx_sched *sch = scx_cgroup_task_sched(p); scx_cgroup_can_attach() local
4995 struct scx_sched *sch = scx_cgroup_task_sched(p); scx_cgroup_can_attach() local
5009 struct scx_sched *sch; scx_cgroup_move_task() local
5037 struct scx_sched *sch = scx_cgroup_task_sched(p); scx_cgroup_cancel_attach() local
5049 struct scx_sched *sch; scx_group_set_weight() local
5065 struct scx_sched *sch; scx_group_set_idle() local
5083 struct scx_sched *sch; scx_group_set_bandwidth() local
5178 scx_init_dsq(struct scx_dispatch_q * dsq,u64 dsq_id,struct scx_sched * sch) scx_init_dsq() argument
5262 destroy_dsq(struct scx_sched * sch,u64 dsq_id) destroy_dsq() argument
5302 scx_cgroup_exit(struct scx_sched * sch) scx_cgroup_exit() argument
5323 scx_cgroup_init(struct scx_sched * sch) scx_cgroup_init() argument
5362 scx_cgroup_exit(struct scx_sched * sch) scx_cgroup_exit() argument
5363 scx_cgroup_init(struct scx_sched * sch) scx_cgroup_init() argument
5430 scx_alloc_kern_arena_objs(struct scx_sched * sch) scx_alloc_kern_arena_objs() argument
5471 scx_free_kern_arena_objs(struct scx_sched * sch) scx_free_kern_arena_objs() argument
5493 struct scx_sched *sch = container_of(rcu_work, struct scx_sched, rcu_work); scx_sched_free_rcu_work() local
5577 struct scx_sched *sch = container_of(kobj, struct scx_sched, kobj); scx_kobj_release() local
5586 struct scx_sched *sch = container_of(kobj, struct scx_sched, kobj); scx_attr_ops_show() local
5599 struct scx_sched *sch = container_of(kobj, struct scx_sched, kobj); scx_attr_events_show() local
5622 struct scx_sched *sch = container_of(kobj, struct scx_sched, kobj); scx_attr_caps_show() local
5672 const struct scx_sched *sch; scx_uevent() local
5726 struct scx_sched *sch; scx_allow_ttwu_queue() local
5758 struct scx_sched *sch; handle_lockup() local
5795 struct scx_sched *sch; scx_rcu_cpu_stall() local
5883 bypass_lb_cpu(struct scx_sched * sch,s32 donor,struct cpumask * donee_mask,struct cpumask * resched_mask,u32 nr_donor_target,u32 nr_donee_target) bypass_lb_cpu() argument
5989 bypass_lb_node(struct scx_sched * sch,int node) bypass_lb_node() argument
6068 struct scx_sched *sch = container_of(timer, struct scx_sched, bypass_lb_timer); scx_bypass_lb_timerfn() local
6083 inc_bypass_depth(struct scx_sched * sch) inc_bypass_depth() argument
6098 dec_bypass_depth(struct scx_sched * sch) dec_bypass_depth() argument
6113 enable_bypass_dsp(struct scx_sched * sch) enable_bypass_dsp() argument
6157 scx_disable_bypass_dsp(struct scx_sched * sch) scx_disable_bypass_dsp() argument
6237 scx_bypass(struct scx_sched * sch,bool bypass) scx_bypass() argument
6446 struct scx_sched *sch; refresh_watchdog() local
6464 scx_link_sched(struct scx_sched * sch) scx_link_sched() argument
6519 scx_unlink_sched(struct scx_sched * sch) scx_unlink_sched() argument
6541 scx_disable_dump(struct scx_sched * sch) scx_disable_dump() argument
6547 scx_log_sched_disable(struct scx_sched * sch) scx_log_sched_disable() argument
6567 scx_root_disable(struct scx_sched * sch) scx_root_disable() argument
6744 struct scx_sched *sch = container_of(irq_work, struct scx_sched, scx_propagate_exit_irq_workfn() local
6763 scx_claim_exit(struct scx_sched * sch,enum scx_exit_kind kind) scx_claim_exit() argument
6805 struct scx_sched *sch = container_of(work, struct scx_sched, disable_work); scx_disable_workfn() local
6826 scx_disable(struct scx_sched * sch,enum scx_exit_kind kind) scx_disable() argument
6841 scx_flush_disable_work(struct scx_sched * sch) scx_flush_disable_work() argument
6963 scx_dump_task(struct scx_sched * sch,struct seq_buf * s,struct scx_dump_ctx * dctx,struct rq * rq,struct task_struct * p,char marker) scx_dump_task() argument
7016 scx_dump_cpu(struct scx_sched * sch,struct seq_buf * s,struct scx_dump_ctx * dctx,int cpu,bool dump_all_tasks) scx_dump_cpu() argument
7111 scx_dump_state(struct scx_sched * sch,struct scx_exit_info * ei,size_t dump_len,bool dump_all_tasks) scx_dump_state() argument
7203 struct scx_sched *sch = container_of(irq_work, struct scx_sched, disable_irq_work); scx_disable_irq_workfn() local
7213 scx_finish_exit(struct scx_sched * sch,enum scx_exit_kind kind,s64 exit_code,s32 exit_cpu) scx_finish_exit() argument
7238 scx_vexit(struct scx_sched * sch,enum scx_exit_kind kind,s64 exit_code,s32 exit_cpu,const char * fmt,va_list args) scx_vexit() argument
7290 alloc_pnode(struct scx_sched * sch,int node) alloc_pnode() argument
7315 struct scx_sched *sch; scx_alloc_and_add_sched() local
7544 scx_sched_sysfs_add(struct scx_sched * sch) scx_sched_sysfs_add() argument
7569 check_hotplug_seq(struct scx_sched * sch,const struct sched_ext_ops * ops) check_hotplug_seq() argument
7593 scx_validate_ops(struct scx_sched * sch,const struct sched_ext_ops * ops) scx_validate_ops() argument
7658 struct scx_sched *sch; scx_root_enable_workfn() local
8373 struct scx_sched *sch = rcu_dereference_protected(ops->priv, true); bpf_scx_unreg() local
8583 struct scx_sched *sch; sysrq_handle_sched_ext_reset() local
8606 struct scx_sched *sch; sysrq_handle_sched_ext_dump() local
8781 struct scx_sched *sch; print_scx_info() local
8819 struct scx_sched *sch; scx_pm_handler() local
8906 scx_vet_enq_flags(struct scx_sched * sch,u64 dsq_id,u64 * enq_flags) scx_vet_enq_flags() argument
8933 scx_dsq_insert_preamble(struct scx_sched * sch,struct task_struct * p,u64 dsq_id,u64 * enq_flags) scx_dsq_insert_preamble() argument
8955 scx_dsq_insert_commit(struct scx_sched * sch,struct task_struct * p,u64 dsq_id,u64 slice,u64 vtime,u64 enq_flags) scx_dsq_insert_commit() argument
9028 struct scx_sched *sch; scx_bpf_dsq_insert___v2() local
9053 scx_dsq_insert_vtime(struct scx_sched * sch,struct task_struct * p,u64 dsq_id,u64 slice,u64 vtime,u64 enq_flags) scx_dsq_insert_vtime() argument
9108 struct scx_sched *sch; __scx_bpf_dsq_insert_vtime() local
9126 struct scx_sched *sch; scx_bpf_dsq_insert_vtime() local
9175 struct scx_sched *sch; scx_dsq_move() local
9286 struct scx_sched *sch; scx_bpf_dispatch_nr_slots() local
9306 struct scx_sched *sch; scx_bpf_dispatch_cancel() local
9352 struct scx_sched *sch; scx_bpf_dsq_move_to_local___v2() local
9526 struct scx_sched *sch; scx_bpf_reenqueue_local() local
9566 struct scx_sched *sch; scx_bpf_create_dsq() local
9653 struct scx_sched *sch; scx_bpf_task_set_slice() local
9707 struct scx_sched *sch; scx_bpf_task_set_dsq_vtime() local
9718 scx_kick_cpu(struct scx_sched * sch,s32 cpu,u64 flags) scx_kick_cpu() argument
9799 struct scx_sched *sch; scx_bpf_kick_cpu() local
9821 struct scx_sched *sch; scx_bpf_kick_cid() local
9848 struct scx_sched *sch; scx_bpf_dsq_nr_queued() local
9895 struct scx_sched *sch; scx_bpf_destroy_dsq() local
9918 struct scx_sched *sch; bpf_iter_scx_dsq_new() local
10005 struct scx_sched *sch; scx_bpf_dsq_peek() local
10049 struct scx_sched *sch; scx_bpf_dsq_reenq() local
10090 __bstr_format(struct scx_sched * sch,u64 * data_buf,char * line_buf,size_t line_size,char * fmt,unsigned long long * data,u32 data__sz) __bstr_format() argument
10138 scx_exit_bstr(struct scx_sched * sch,enum scx_exit_kind kind,s64 exit_code,struct scx_sched * fmt_blame,char * fmt,unsigned long long * data,u32 data__sz) scx_exit_bstr() argument
10179 struct scx_sched *sch; scx_bpf_exit_bstr() local
10203 struct scx_sched *sch; scx_bpf_error_bstr() local
10230 struct scx_sched *sch; scx_bpf_dump_bstr() local
10284 struct scx_sched *sch; scx_bpf_cpuperf_cap() local
10304 struct scx_sched *sch; scx_bpf_cidperf_cap() local
10335 struct scx_sched *sch; scx_bpf_cpuperf_cur() local
10355 struct scx_sched *sch; scx_bpf_cidperf_cur() local
10370 scx_cpuperf_set(struct scx_sched * sch,s32 cpu,u32 perf) scx_cpuperf_set() argument
10442 struct scx_sched *sch; scx_bpf_cpuperf_set() local
10467 struct scx_sched *sch; scx_bpf_cidperf_set() local
10542 struct scx_sched *sch; scx_bpf_online_cmask() local
10654 struct scx_sched *sch; scx_bpf_locked_rq() local
10681 struct scx_sched *sch; scx_bpf_cpu_curr() local
10705 struct scx_sched *sch; scx_bpf_cid_curr() local
10733 struct scx_sched *sch = rcu_dereference(scx_root); scx_bpf_tid_to_task() local
10808 scx_read_events(struct scx_sched * sch,struct scx_event_stats * events) scx_read_events() argument
10834 struct scx_sched *sch; scx_bpf_events() local
10873 struct scx_sched *sch; scx_bpf_task_cgroup() local
[all...]
H A Darena.c27 s32 scx_arena_pool_init(struct scx_sched *sch) in scx_arena_pool_init() argument
29 if (!sch->arena_map) in scx_arena_pool_init()
32 sch->arena_pool = gen_pool_create(SCX_ARENA_MIN_ORDER, NUMA_NO_NODE); in scx_arena_pool_init()
33 if (!sch->arena_pool) in scx_arena_pool_init()
56 void scx_arena_pool_destroy(struct scx_sched *sch) in scx_arena_pool_destroy() argument
58 if (!sch->arena_pool) in scx_arena_pool_destroy()
60 gen_pool_for_each_chunk(sch->arena_pool, scx_arena_clear_chunk, NULL); in scx_arena_pool_destroy()
61 gen_pool_destroy(sch->arena_pool); in scx_arena_pool_destroy()
62 sch->arena_pool = NULL; in scx_arena_pool_destroy()
70 static int scx_arena_grow(struct scx_sched *sch, u32 page_cnt) in scx_arena_grow() argument
[all …]
H A Dsub.h21 void scx_cid_sched_update(struct rq *rq, struct scx_sched *sch);
22 void scx_ops_cid_sched_updated_enable(struct scx_sched *sch);
23 void scx_ops_cid_sched_updated_disable(struct scx_sched *sch);
24 void scx_set_task_sched(struct task_struct *p, struct scx_sched *sch);
25 struct cgroup *sch_cgroup(struct scx_sched *sch);
26 void set_cgroup_sched(struct cgroup *cgrp, struct scx_sched *sch);
29 void drain_descendants(struct scx_sched *sch);
30 void scx_sub_disable(struct scx_sched *sch);
33 void scx_free_pshards(struct scx_sched *sch);
34 s32 scx_alloc_pshards(struct scx_sched *sch);
63 sch_cgrp_path(struct scx_sched * sch) sch_cgrp_path() argument
69 scx_dec_has_subs(struct scx_sched * sch) scx_dec_has_subs() argument
79 scx_set_task_sched(struct task_struct * p,struct scx_sched * sch) scx_set_task_sched() argument
80 sch_cgroup(struct scx_sched * sch) sch_cgroup() argument
81 sch_cgrp_path(struct scx_sched * sch) sch_cgrp_path() argument
82 set_cgroup_sched(struct cgroup * cgrp,struct scx_sched * sch) set_cgroup_sched() argument
83 drain_descendants(struct scx_sched * sch) drain_descendants() argument
84 scx_sub_disable(struct scx_sched * sch) scx_sub_disable() argument
85 scx_free_pshards(struct scx_sched * sch) scx_free_pshards() argument
86 scx_alloc_pshards(struct scx_sched * sch) scx_alloc_pshards() argument
87 scx_init_root_caps(struct scx_sched * sch) scx_init_root_caps() argument
89 scx_unbypass_replay_ecaps(struct rq * rq,struct scx_sched * sch) scx_unbypass_replay_ecaps() argument
94 scx_resolve_local_dsq(struct scx_sched * sch,struct rq * rq,struct task_struct * p,u64 * enq_flags) scx_resolve_local_dsq() argument
102 scx_rescue_set_knobs(struct scx_sched * sch) scx_rescue_set_knobs() argument
104 scx_dec_has_subs(struct scx_sched * sch) scx_dec_has_subs() argument
131 scx_missing_caps(struct scx_sched * sch,s32 cpu,u64 needed) scx_missing_caps() argument
173 scx_caps_for_preempt(struct scx_sched * sch,struct rq * rq,u64 enq_flags) scx_caps_for_preempt() argument
225 scx_missing_caps(struct scx_sched * sch,s32 cpu,u64 needed) scx_missing_caps() argument
226 scx_caps_for_preempt(struct scx_sched * sch,struct rq * rq,u64 enq_flags) scx_caps_for_preempt() argument
[all...]
H A Dinlines.h53 scx_dispatch_sched(struct scx_sched *sch, struct rq *rq, in scx_dispatch_sched()
56 struct scx_dsp_ctx *dspc = &this_cpu_ptr(sch->pcpu)->dsp_ctx; in scx_dispatch_sched()
61 if (scx_consume_global_dsq(sch, rq)) in scx_dispatch_sched()
67 * %SCX_CAP_ENQ_IMMED, the base cap. Dispatch descends into @sch only on in scx_dispatch_sched()
68 * a cpu where @sch holds the base cap, so @sch holds it here. The same in scx_dispatch_sched()
71 if (scx_bypass_dsp_enabled(sch)) { in scx_dispatch_sched()
72 /* if @sch is bypassing, only the bypass DSQs are active */ in scx_dispatch_sched()
73 if (scx_bypassing(sch, cpu)) { in scx_dispatch_sched()
74 if (scx_consume_dispatch_q(sch, r in scx_dispatch_sched()
30 scx_dispatch_sched(struct scx_sched * sch,struct rq * rq,struct task_struct * prev,bool nested) scx_dispatch_sched() argument
[all...]
H A Dsub.c130 * scx_cid_sched_id_from - Resolve what @from sees when @sch runs on a cid in free_pshard()
131 * @sch: sched whose task runs there, %NULL for none in free_pshard()
134 * Return %SCX_CID_SCHED_NONE when @sch is %NULL or outside @from's subtree,
136 * child of @from on the way down to @sch. in scx_free_pshards()
138 static u64 scx_cid_sched_id_from(struct scx_sched *sch, struct scx_sched *from) in scx_free_pshards()
140 if (!sch || !scx_is_descendant(sch, from)) in scx_free_pshards()
142 if (sch == from) in scx_free_pshards()
144 return sch->ancestors[from->level + 1]->ops.sub_cgroup_id; in scx_free_pshards()
148 static void scx_cid_notify_sched_updated(struct rq *rq, struct scx_sched *sch, in alloc_pshard()
101 scx_set_task_sched(struct task_struct * p,struct scx_sched * sch) scx_set_task_sched() argument
106 sch_cgroup(struct scx_sched * sch) sch_cgroup() argument
112 set_cgroup_sched(struct cgroup * cgrp,struct scx_sched * sch) set_cgroup_sched() argument
135 scx_free_pshards(struct scx_sched * sch) scx_free_pshards() argument
146 alloc_pshard(struct scx_sched * sch,s32 shard_idx,s32 node) alloc_pshard() argument
185 scx_alloc_pshards(struct scx_sched * sch) scx_alloc_pshards() argument
227 scx_init_root_caps(struct scx_sched * sch) scx_init_root_caps() argument
618 scx_rescue_check_timeout(struct scx_sched * sch) scx_rescue_check_timeout() argument
629 scx_rescue_set_knobs(struct scx_sched * sch) scx_rescue_set_knobs() argument
693 scx_resolve_local_dsq(struct scx_sched * sch,struct rq * rq,struct task_struct * p,u64 * enq_flags) scx_resolve_local_dsq() argument
839 struct scx_sched *sch = ps->sch; caps_updated_deliver() local
880 scx_sub_seed_caps(struct scx_sched * sch) scx_sub_seed_caps() argument
918 queue_sync_ecaps(struct scx_sched * sch,s32 cid) queue_sync_ecaps() argument
1069 scx_unbypass_replay_ecaps(struct rq * rq,struct scx_sched * sch) scx_unbypass_replay_ecaps() argument
1229 drain_descendants(struct scx_sched * sch) drain_descendants() argument
1291 scx_fail_parent(struct scx_sched * sch,struct task_struct * failed,s32 fail_code) scx_fail_parent() argument
1346 scx_cgroup_claim_subtree(struct scx_sched * sch) scx_cgroup_claim_subtree() argument
1435 scx_cgroup_return_subtree(struct scx_sched * sch) scx_cgroup_return_subtree() argument
1501 scx_cgroup_claim_subtree(struct scx_sched * sch) scx_cgroup_claim_subtree() argument
1502 scx_cgroup_return_subtree(struct scx_sched * sch) scx_cgroup_return_subtree() argument
1505 scx_sub_disable(struct scx_sched * sch) scx_sub_disable() argument
1713 struct scx_sched *parent, *sch; scx_sub_enable_workfn() local
2125 struct scx_sched *sch; scx_cgroup_lifetime_notify() local
2192 struct scx_sched *sch; scx_pstack_recursion() local
2530 struct scx_sched *sch, *target; scx_bpf_sub_caps() local
[all...]
/linux/include/net/
H A Dsch_generic.h71 struct Qdisc *sch,
73 struct sk_buff * (*dequeue)(struct Qdisc *sch);
287 struct tcf_block * (*tcf_block)(struct Qdisc *sch,
316 struct Qdisc *sch,
321 int (*init)(struct Qdisc *sch, struct nlattr *arg,
325 int (*change)(struct Qdisc *sch,
328 void (*attach)(struct Qdisc *sch);
330 void (*change_real_num_tx)(struct Qdisc *sch,
336 void (*ingress_block_set)(struct Qdisc *sch,
338 void (*egress_block_set)(struct Qdisc *sch,
[all …]

1234