Lines Matching refs:bn
286 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_create_proc_entry() local
288 if (bn->proc_dir) { in bond_create_proc_entry()
290 bn->proc_dir, &bond_info_seq_ops, bond); in bond_create_proc_entry()
302 struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id); in bond_remove_proc_entry() local
304 if (bn->proc_dir && bond->proc_entry) { in bond_remove_proc_entry()
305 remove_proc_entry(bond->proc_file_name, bn->proc_dir); in bond_remove_proc_entry()
314 void __net_init bond_create_proc_dir(struct bond_net *bn) in bond_create_proc_dir() argument
316 if (!bn->proc_dir) { in bond_create_proc_dir()
317 bn->proc_dir = proc_mkdir(DRV_NAME, bn->net->proc_net); in bond_create_proc_dir()
318 if (!bn->proc_dir) in bond_create_proc_dir()
326 void __net_exit bond_destroy_proc_dir(struct bond_net *bn) in bond_destroy_proc_dir() argument
328 if (bn->proc_dir) { in bond_destroy_proc_dir()
329 remove_proc_entry(DRV_NAME, bn->net->proc_net); in bond_destroy_proc_dir()
330 bn->proc_dir = NULL; in bond_destroy_proc_dir()