Lines Matching refs:bn
55 struct bond_net *bn = in bonding_show_bonds() local
62 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bonding_show_bonds()
79 static struct net_device *bond_get_by_name(struct bond_net *bn, const char *ifname) in bond_get_by_name() argument
83 list_for_each_entry(bond, &bn->dev_list, bond_list) { in bond_get_by_name()
99 struct bond_net *bn = in bonding_store_bonds() local
113 rv = bond_create(bn->net, ifname); in bonding_store_bonds()
125 bond_dev = bond_get_by_name(bn, ifname); in bonding_store_bonds()
739 int bond_create_sysfs(struct bond_net *bn) in bond_create_sysfs() argument
743 bn->class_attr_bonding_masters = class_attr_bonding_masters; in bond_create_sysfs()
744 sysfs_attr_init(&bn->class_attr_bonding_masters.attr); in bond_create_sysfs()
746 ret = netdev_class_create_file_ns(&bn->class_attr_bonding_masters, in bond_create_sysfs()
747 bn->net); in bond_create_sysfs()
760 if (__dev_get_by_name(bn->net, in bond_create_sysfs()
772 void bond_destroy_sysfs(struct bond_net *bn) in bond_destroy_sysfs() argument
774 netdev_class_remove_file_ns(&bn->class_attr_bonding_masters, bn->net); in bond_destroy_sysfs()