• Home
  • Raw
  • Download

Lines Matching refs:m

156 static struct map_iter *map_iter(struct seq_file *m)  in map_iter()  argument
158 return m->private; in map_iter()
161 static struct bpf_map *seq_file_to_map(struct seq_file *m) in seq_file_to_map() argument
163 return file_inode(m->file)->i_private; in seq_file_to_map()
193 static void *map_seq_next(struct seq_file *m, void *v, loff_t *pos) in map_seq_next() argument
195 struct bpf_map *map = seq_file_to_map(m); in map_seq_next()
196 void *key = map_iter(m)->key; in map_seq_next()
199 if (map_iter(m)->done) in map_seq_next()
208 map_iter(m)->done = true; in map_seq_next()
216 static void *map_seq_start(struct seq_file *m, loff_t *pos) in map_seq_start() argument
218 if (map_iter(m)->done) in map_seq_start()
221 return *pos ? map_iter(m)->key : SEQ_START_TOKEN; in map_seq_start()
224 static void map_seq_stop(struct seq_file *m, void *v) in map_seq_stop() argument
228 static int map_seq_show(struct seq_file *m, void *v) in map_seq_show() argument
230 struct bpf_map *map = seq_file_to_map(m); in map_seq_show()
231 void *key = map_iter(m)->key; in map_seq_show()
234 seq_puts(m, "# WARNING!! The output is for debug purpose only\n"); in map_seq_show()
235 seq_puts(m, "# WARNING!! The output format will change\n"); in map_seq_show()
237 map->ops->map_seq_show_elem(map, key, m); in map_seq_show()
254 struct seq_file *m; in bpffs_map_open() local
267 m = file->private_data; in bpffs_map_open()
268 m->private = iter; in bpffs_map_open()
275 struct seq_file *m = file->private_data; in bpffs_map_release() local
277 map_iter_free(map_iter(m)); in bpffs_map_release()
558 static int bpf_show_options(struct seq_file *m, struct dentry *root) in bpf_show_options() argument
563 seq_printf(m, ",mode=%o", mode); in bpf_show_options()