Lines Matching defs:file
97 static int lowpan_ctx_pfx_show(struct seq_file *file, void *offset)
99 struct lowpan_iphc_ctx *ctx = file->private;
104 seq_printf(file, "%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",
118 static int lowpan_ctx_pfx_open(struct inode *inode, struct file *file)
120 return single_open(file, lowpan_ctx_pfx_show, inode->i_private);
123 static ssize_t lowpan_ctx_pfx_write(struct file *fp,
128 struct seq_file *file = fp->private_data;
129 struct lowpan_iphc_ctx *ctx = file->private;
193 static int lowpan_context_show(struct seq_file *file, void *offset)
195 struct lowpan_iphc_ctx_table *t = file->private;
198 seq_printf(file, "%3s|%-43s|%c\n", "cid", "prefix", 'C');
199 seq_puts(file, "-------------------------------------------------\n");
206 seq_printf(file, "%3d|%39pI6c/%-3d|%d\n", t->table[i].id,