Lines Matching refs:seq

44 static void add_stats(struct seq_file *seq, const char *aal,  in add_stats()  argument
47 seq_printf(seq, "%s ( %d %d %d %d %d )", aal, in add_stats()
53 static void atm_dev_info(struct seq_file *seq, const struct atm_dev *dev) in atm_dev_info() argument
57 seq_printf(seq, "%3d %-8s", dev->number, dev->type); in atm_dev_info()
59 seq_printf(seq, "%02x", dev->esi[i]); in atm_dev_info()
60 seq_puts(seq, " "); in atm_dev_info()
61 add_stats(seq, "0", &dev->stats.aal0); in atm_dev_info()
62 seq_puts(seq, " "); in atm_dev_info()
63 add_stats(seq, "5", &dev->stats.aal5); in atm_dev_info()
64 seq_printf(seq, "\t[%d]", refcount_read(&dev->refcnt)); in atm_dev_info()
65 seq_putc(seq, '\n'); in atm_dev_info()
108 static inline void *vcc_walk(struct seq_file *seq, loff_t l) in vcc_walk() argument
110 struct vcc_state *state = seq->private; in vcc_walk()
111 int family = (uintptr_t)(pde_data(file_inode(seq->file))); in vcc_walk()
117 static void *vcc_seq_start(struct seq_file *seq, loff_t *pos) in vcc_seq_start() argument
120 struct vcc_state *state = seq->private; in vcc_seq_start()
125 return left ? vcc_walk(seq, left) : SEQ_START_TOKEN; in vcc_seq_start()
128 static void vcc_seq_stop(struct seq_file *seq, void *v) in vcc_seq_stop() argument
134 static void *vcc_seq_next(struct seq_file *seq, void *v, loff_t *pos) in vcc_seq_next() argument
136 v = vcc_walk(seq, 1); in vcc_seq_next()
141 static void pvc_info(struct seq_file *seq, struct atm_vcc *vcc) in pvc_info() argument
151 seq_printf(seq, "%3d %3d %5d %-3s %7d %-5s %7d %-6s", in pvc_info()
163 seq_printf(seq, "CLIP, Itf:%s, Encap:", in pvc_info()
165 seq_printf(seq, "%s", clip_vcc->encap ? "LLC/SNAP" : "None"); in pvc_info()
167 seq_putc(seq, '\n'); in pvc_info()
177 static void vcc_info(struct seq_file *seq, struct atm_vcc *vcc) in vcc_info() argument
181 seq_printf(seq, "%pK ", vcc); in vcc_info()
183 seq_printf(seq, "Unassigned "); in vcc_info()
185 seq_printf(seq, "%3d %3d %5d ", vcc->dev->number, vcc->vpi, in vcc_info()
189 seq_printf(seq, "PVC"); in vcc_info()
192 seq_printf(seq, "SVC"); in vcc_info()
195 seq_printf(seq, "%3d", sk->sk_family); in vcc_info()
197 seq_printf(seq, " %04lx %5d %7d/%7d %7d/%7d [%d]\n", in vcc_info()
204 static void svc_info(struct seq_file *seq, struct atm_vcc *vcc) in svc_info() argument
207 seq_printf(seq, sizeof(void *) == 4 ? in svc_info()
210 seq_printf(seq, "%3d %3d %5d ", in svc_info()
212 seq_printf(seq, "%-10s ", vcc_state(vcc)); in svc_info()
213 seq_printf(seq, "%s%s", vcc->remote.sas_addr.pub, in svc_info()
219 seq_printf(seq, "%02x", vcc->remote.sas_addr.prv[i]); in svc_info()
221 seq_putc(seq, '\n'); in svc_info()
224 static int atm_dev_seq_show(struct seq_file *seq, void *v) in atm_dev_seq_show() argument
231 seq_puts(seq, atm_dev_banner); in atm_dev_seq_show()
235 atm_dev_info(seq, dev); in atm_dev_seq_show()
247 static int pvc_seq_show(struct seq_file *seq, void *v) in pvc_seq_show() argument
253 seq_puts(seq, atm_pvc_banner); in pvc_seq_show()
255 struct vcc_state *state = seq->private; in pvc_seq_show()
258 pvc_info(seq, vcc); in pvc_seq_show()
270 static int vcc_seq_show(struct seq_file *seq, void *v) in vcc_seq_show() argument
273 seq_printf(seq, sizeof(void *) == 4 ? "%-8s%s" : "%-16s%s", in vcc_seq_show()
277 struct vcc_state *state = seq->private; in vcc_seq_show()
280 vcc_info(seq, vcc); in vcc_seq_show()
292 static int svc_seq_show(struct seq_file *seq, void *v) in svc_seq_show() argument
298 seq_puts(seq, atm_svc_banner); in svc_seq_show()
300 struct vcc_state *state = seq->private; in svc_seq_show()
303 svc_info(seq, vcc); in svc_seq_show()