Lines Matching refs:arg
104 struct nlattr **tca, unsigned long *arg)
107 struct nss_wrr_class_data *cl = (struct nss_wrr_class_data *)*arg;
157 *arg = (unsigned long)cl;
273 static int nss_wrr_delete_class(struct Qdisc *sch, unsigned long arg)
276 struct nss_wrr_class_data *cl = (struct nss_wrr_class_data *)arg;
310 static int nss_wrr_graft_class(struct Qdisc *sch, unsigned long arg, struct Qdisc *new,
314 struct nss_wrr_class_data *cl = (struct nss_wrr_class_data *)arg;
374 static struct Qdisc *nss_wrr_leaf_class(struct Qdisc *sch, unsigned long arg)
376 struct nss_wrr_class_data *cl = (struct nss_wrr_class_data *)arg;
386 static void nss_wrr_qlen_notify(struct Qdisc *sch, unsigned long arg)
407 static void nss_wrr_put_class(struct Qdisc *sch, unsigned long arg)
409 struct nss_wrr_class_data *cl = (struct nss_wrr_class_data *)arg;
421 static int nss_wrr_dump_class(struct Qdisc *sch, unsigned long arg, struct sk_buff *skb,
424 struct nss_wrr_class_data *cl = (struct nss_wrr_class_data *)arg;
451 static int nss_wrr_dump_class_stats(struct Qdisc *sch, unsigned long arg, struct gnet_dump *d)
453 struct nss_qdisc *nq = (struct nss_qdisc *)arg;
463 static void nss_wrr_walk(struct Qdisc *sch, struct qdisc_walker *arg)
471 if (arg->stop)
477 if (arg->count < arg->skip) {
478 arg->count++;
481 if (arg->fn(sch, (unsigned long)cl, arg) < 0) {
482 arg->stop = 1;
485 arg->count++;