Lines Matching defs:seq
36 static int vlan_seq_show(struct seq_file *seq, void *v);
37 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos);
38 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos);
39 static void vlan_seq_stop(struct seq_file *seq, void *);
40 static int vlandev_seq_show(struct seq_file *seq, void *v);
166 static void *vlan_seq_from_index(struct seq_file *seq, loff_t *pos)
171 for_each_netdev_dump(seq_file_net(seq), dev, ifindex) {
180 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos)
187 return vlan_seq_from_index(seq, pos);
190 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos)
193 return vlan_seq_from_index(seq, pos);
196 static void vlan_seq_stop(struct seq_file *seq, void *v)
202 static int vlan_seq_show(struct seq_file *seq, void *v)
204 struct net *net = seq_file_net(seq);
210 seq_puts(seq, "VLAN Dev name | VLAN ID\n");
215 seq_printf(seq, "Name-Type: %s\n",
221 seq_printf(seq, "%-15s| %d | %s\n", vlandev->name,
227 static int vlandev_seq_show(struct seq_file *seq, void *offset)
229 struct net_device *vlandev = (struct net_device *) seq->private;
240 seq_printf(seq,
245 seq_printf(seq, fmt64, "total frames received", stats->rx_packets);
246 seq_printf(seq, fmt64, "total bytes received", stats->rx_bytes);
247 seq_printf(seq, fmt64, "Broadcast/Multicast Rcvd", stats->multicast);
248 seq_puts(seq, "\n");
249 seq_printf(seq, fmt64, "total frames transmitted", stats->tx_packets);
250 seq_printf(seq, fmt64, "total bytes transmitted", stats->tx_bytes);
251 seq_printf(seq, "Device: %s", vlan->real_dev->name);
253 seq_printf(seq, "\nINGRESS priority mappings: "
264 seq_printf(seq, " EGRESS priority mappings: ");
272 seq_printf(seq, "%u:%d ",
278 seq_puts(seq, "\n");