• Home
  • Raw
  • Download

Lines Matching refs:m

179 static struct map_iter *map_iter(struct seq_file *m)  in map_iter()  argument
181 return m->private; in map_iter()
184 static struct bpf_map *seq_file_to_map(struct seq_file *m) in seq_file_to_map() argument
186 return file_inode(m->file)->i_private; in seq_file_to_map()
216 static void *map_seq_next(struct seq_file *m, void *v, loff_t *pos) in map_seq_next() argument
218 struct bpf_map *map = seq_file_to_map(m); in map_seq_next()
219 void *key = map_iter(m)->key; in map_seq_next()
223 if (map_iter(m)->done) in map_seq_next()
233 map_iter(m)->done = true; in map_seq_next()
240 static void *map_seq_start(struct seq_file *m, loff_t *pos) in map_seq_start() argument
242 if (map_iter(m)->done) in map_seq_start()
245 return *pos ? map_iter(m)->key : SEQ_START_TOKEN; in map_seq_start()
248 static void map_seq_stop(struct seq_file *m, void *v) in map_seq_stop() argument
252 static int map_seq_show(struct seq_file *m, void *v) in map_seq_show() argument
254 struct bpf_map *map = seq_file_to_map(m); in map_seq_show()
255 void *key = map_iter(m)->key; in map_seq_show()
258 seq_puts(m, "# WARNING!! The output is for debug purpose only\n"); in map_seq_show()
259 seq_puts(m, "# WARNING!! The output format will change\n"); in map_seq_show()
261 map->ops->map_seq_show_elem(map, key, m); in map_seq_show()
278 struct seq_file *m; in bpffs_map_open() local
291 m = file->private_data; in bpffs_map_open()
292 m->private = iter; in bpffs_map_open()
299 struct seq_file *m = file->private_data; in bpffs_map_release() local
301 map_iter_free(map_iter(m)); in bpffs_map_release()
604 static int bpf_show_options(struct seq_file *m, struct dentry *root) in bpf_show_options() argument
609 seq_printf(m, ",mode=%o", mode); in bpf_show_options()