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