Lines Matching refs:p
42 struct seq_net_private *p; in seq_open_net() local
45 WARN_ON_ONCE(state_size < sizeof(*p)); in seq_open_net()
54 p = __seq_open_private(file, PDE(inode)->seq_ops, state_size); in seq_open_net()
55 if (!p) { in seq_open_net()
60 p->net = net; in seq_open_net()
61 netns_tracker_alloc(net, &p->ns_tracker, GFP_KERNEL); in seq_open_net()
97 struct seq_net_private *p = priv_data; in bpf_iter_init_seq_net() local
99 p->net = get_net_track(current->nsproxy->net_ns, &p->ns_tracker, in bpf_iter_init_seq_net()
108 struct seq_net_private *p = priv_data; in bpf_iter_fini_seq_net() local
110 put_net_track(p->net, &p->ns_tracker); in bpf_iter_fini_seq_net()
118 struct proc_dir_entry *p; in proc_create_net_data() local
120 p = proc_create_reg(name, mode, &parent, data); in proc_create_net_data()
121 if (!p) in proc_create_net_data()
123 pde_force_lookup(p); in proc_create_net_data()
124 p->proc_ops = &proc_net_seq_ops; in proc_create_net_data()
125 p->seq_ops = ops; in proc_create_net_data()
126 p->state_size = state_size; in proc_create_net_data()
127 return proc_register(parent, p); in proc_create_net_data()
162 struct proc_dir_entry *p; in proc_create_net_data_write() local
164 p = proc_create_reg(name, mode, &parent, data); in proc_create_net_data_write()
165 if (!p) in proc_create_net_data_write()
167 pde_force_lookup(p); in proc_create_net_data_write()
168 p->proc_ops = &proc_net_seq_ops; in proc_create_net_data_write()
169 p->seq_ops = ops; in proc_create_net_data_write()
170 p->state_size = state_size; in proc_create_net_data_write()
171 p->write = write; in proc_create_net_data_write()
172 return proc_register(parent, p); in proc_create_net_data_write()
211 struct proc_dir_entry *p; in proc_create_net_single() local
213 p = proc_create_reg(name, mode, &parent, data); in proc_create_net_single()
214 if (!p) in proc_create_net_single()
216 pde_force_lookup(p); in proc_create_net_single()
217 p->proc_ops = &proc_net_single_ops; in proc_create_net_single()
218 p->single_show = show; in proc_create_net_single()
219 return proc_register(parent, p); in proc_create_net_single()
254 struct proc_dir_entry *p; in proc_create_net_single_write() local
256 p = proc_create_reg(name, mode, &parent, data); in proc_create_net_single_write()
257 if (!p) in proc_create_net_single_write()
259 pde_force_lookup(p); in proc_create_net_single_write()
260 p->proc_ops = &proc_net_single_ops; in proc_create_net_single_write()
261 p->single_show = show; in proc_create_net_single_write()
262 p->write = write; in proc_create_net_single_write()
263 return proc_register(parent, p); in proc_create_net_single_write()