Lines Matching refs:m
20 static inline struct afs_net *afs_seq2net(struct seq_file *m) in afs_seq2net() argument
22 return afs_net(seq_file_net(m)); in afs_seq2net()
25 static inline struct afs_net *afs_seq2net_single(struct seq_file *m) in afs_seq2net_single() argument
27 return afs_net(seq_file_single_net(m)); in afs_seq2net_single()
33 static int afs_proc_cells_show(struct seq_file *m, void *v) in afs_proc_cells_show() argument
39 seq_puts(m, "USE NAME\n"); in afs_proc_cells_show()
44 seq_printf(m, "%3u %s\n", atomic_read(&cell->usage), cell->name); in afs_proc_cells_show()
48 static void *afs_proc_cells_start(struct seq_file *m, loff_t *_pos) in afs_proc_cells_start() argument
52 return seq_hlist_start_head_rcu(&afs_seq2net(m)->proc_cells, *_pos); in afs_proc_cells_start()
55 static void *afs_proc_cells_next(struct seq_file *m, void *v, loff_t *pos) in afs_proc_cells_next() argument
57 return seq_hlist_next_rcu(v, &afs_seq2net(m)->proc_cells, pos); in afs_proc_cells_next()
60 static void afs_proc_cells_stop(struct seq_file *m, void *v) in afs_proc_cells_stop() argument
79 struct seq_file *m = file->private_data; in afs_proc_cells_write() local
80 struct afs_net *net = afs_seq2net(m); in afs_proc_cells_write()
141 static int afs_proc_rootcell_show(struct seq_file *m, void *v) in afs_proc_rootcell_show() argument
146 net = afs_seq2net_single(m); in afs_proc_rootcell_show()
151 seq_printf(m, "%s\n", cell->name); in afs_proc_rootcell_show()
165 struct seq_file *m = file->private_data; in afs_proc_rootcell_write() local
166 struct afs_net *net = afs_seq2net_single(m); in afs_proc_rootcell_write()
200 static int afs_proc_cell_volumes_show(struct seq_file *m, void *v) in afs_proc_cell_volumes_show() argument
202 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_volumes_show()
207 seq_puts(m, "USE VID TY\n"); in afs_proc_cell_volumes_show()
211 seq_printf(m, "%3d %08x %s\n", in afs_proc_cell_volumes_show()
218 static void *afs_proc_cell_volumes_start(struct seq_file *m, loff_t *_pos) in afs_proc_cell_volumes_start() argument
221 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_volumes_start()
227 static void *afs_proc_cell_volumes_next(struct seq_file *m, void *v, in afs_proc_cell_volumes_next() argument
230 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_volumes_next()
235 static void afs_proc_cell_volumes_stop(struct seq_file *m, void *v) in afs_proc_cell_volumes_stop() argument
238 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_volumes_stop()
253 static int afs_proc_cell_vlservers_show(struct seq_file *m, void *v) in afs_proc_cell_vlservers_show() argument
259 seq_puts(m, "ADDRESS\n"); in afs_proc_cell_vlservers_show()
264 seq_printf(m, "%pISp\n", &addr->transport); in afs_proc_cell_vlservers_show()
268 static void *afs_proc_cell_vlservers_start(struct seq_file *m, loff_t *_pos) in afs_proc_cell_vlservers_start() argument
272 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_vlservers_start()
290 static void *afs_proc_cell_vlservers_next(struct seq_file *m, void *v, in afs_proc_cell_vlservers_next() argument
294 struct afs_cell *cell = PDE_DATA(file_inode(m->file)); in afs_proc_cell_vlservers_next()
307 static void afs_proc_cell_vlservers_stop(struct seq_file *m, void *v) in afs_proc_cell_vlservers_stop() argument
323 static int afs_proc_servers_show(struct seq_file *m, void *v) in afs_proc_servers_show() argument
330 seq_puts(m, "UUID USE ADDR\n"); in afs_proc_servers_show()
336 seq_printf(m, "%pU %3d %pISpc%s\n", in afs_proc_servers_show()
342 seq_printf(m, " %pISpc%s\n", in afs_proc_servers_show()
348 static void *afs_proc_servers_start(struct seq_file *m, loff_t *_pos) in afs_proc_servers_start() argument
352 return seq_hlist_start_head_rcu(&afs_seq2net(m)->fs_proc, *_pos); in afs_proc_servers_start()
355 static void *afs_proc_servers_next(struct seq_file *m, void *v, loff_t *_pos) in afs_proc_servers_next() argument
357 return seq_hlist_next_rcu(v, &afs_seq2net(m)->fs_proc, _pos); in afs_proc_servers_next()
360 static void afs_proc_servers_stop(struct seq_file *m, void *v) in afs_proc_servers_stop() argument
377 static int afs_proc_sysname_show(struct seq_file *m, void *v) in afs_proc_sysname_show() argument
379 struct afs_net *net = afs_seq2net(m); in afs_proc_sysname_show()
384 seq_printf(m, "%s\n", sysnames->subs[i]); in afs_proc_sysname_show()
388 static void *afs_proc_sysname_start(struct seq_file *m, loff_t *pos) in afs_proc_sysname_start() argument
391 struct afs_net *net = afs_seq2net(m); in afs_proc_sysname_start()
402 static void *afs_proc_sysname_next(struct seq_file *m, void *v, loff_t *pos) in afs_proc_sysname_next() argument
404 struct afs_net *net = afs_seq2net(m); in afs_proc_sysname_next()
413 static void afs_proc_sysname_stop(struct seq_file *m, void *v) in afs_proc_sysname_stop() argument
416 struct afs_net *net = afs_seq2net(m); in afs_proc_sysname_stop()
434 struct seq_file *m = file->private_data; in afs_proc_sysname_write() local
435 struct afs_net *net = afs_seq2net(m); in afs_proc_sysname_write()
522 static int afs_proc_stats_show(struct seq_file *m, void *v) in afs_proc_stats_show() argument
524 struct afs_net *net = afs_seq2net_single(m); in afs_proc_stats_show()
526 seq_puts(m, "kAFS statistics\n"); in afs_proc_stats_show()
528 seq_printf(m, "dir-mgmt: look=%u reval=%u inval=%u relpg=%u\n", in afs_proc_stats_show()
534 seq_printf(m, "dir-data: rdpg=%u\n", in afs_proc_stats_show()
537 seq_printf(m, "dir-edit: cr=%u rm=%u\n", in afs_proc_stats_show()
541 seq_printf(m, "file-rd : n=%u nb=%lu\n", in afs_proc_stats_show()
544 seq_printf(m, "file-wr : n=%u nb=%lu\n", in afs_proc_stats_show()