Lines Matching refs:slave
173 int bond_create_slave_symlinks(struct net_device *master, struct net_device *slave) in bond_create_slave_symlinks() argument
179 ret = sysfs_create_link(&(slave->dev.kobj), &(master->dev.kobj), in bond_create_slave_symlinks()
184 sprintf(linkname,"slave_%s",slave->name); in bond_create_slave_symlinks()
185 ret = sysfs_create_link(&(master->dev.kobj), &(slave->dev.kobj), in bond_create_slave_symlinks()
191 void bond_destroy_slave_symlinks(struct net_device *master, struct net_device *slave) in bond_destroy_slave_symlinks() argument
195 sysfs_remove_link(&(slave->dev.kobj), "master"); in bond_destroy_slave_symlinks()
196 sprintf(linkname,"slave_%s",slave->name); in bond_destroy_slave_symlinks()
207 struct slave *slave; in bonding_show_slaves() local
212 bond_for_each_slave(bond, slave, i) { in bonding_show_slaves()
220 res += sprintf(buf + res, "%s ", slave->dev->name); in bonding_show_slaves()
241 struct slave *slave; in bonding_store_slaves() local
268 bond_for_each_slave(bond, slave, i) in bonding_store_slaves()
269 if (strnicmp(slave->dev->name, ifname, IFNAMSIZ) == 0) { in bonding_store_slaves()
317 bond_for_each_slave(bond, slave, i) in bonding_store_slaves()
318 if (strnicmp(slave->dev->name, ifname, IFNAMSIZ) == 0) in bonding_store_slaves()
319 slave->original_mtu = original_mtu; in bonding_store_slaves()
329 bond_for_each_slave(bond, slave, i) in bonding_store_slaves()
330 if (strnicmp(slave->dev->name, ifname, IFNAMSIZ) == 0) { in bonding_store_slaves()
331 dev = slave->dev; in bonding_store_slaves()
332 original_mtu = slave->original_mtu; in bonding_store_slaves()
1169 struct slave *slave; in bonding_store_primary() local
1181 bond_for_each_slave(bond, slave, i) { in bonding_store_primary()
1183 (slave->dev->name, buf, in bonding_store_primary()
1184 strlen(slave->dev->name)) == 0) { in bonding_store_primary()
1187 bond->dev->name, slave->dev->name); in bonding_store_primary()
1188 bond->primary_slave = slave; in bonding_store_primary()
1266 struct slave *curr; in bonding_show_active_slave()
1284 struct slave *slave; in bonding_store_active_slave() local
1285 struct slave *old_active = NULL; in bonding_store_active_slave()
1286 struct slave *new_active = NULL; in bonding_store_active_slave()
1298 bond_for_each_slave(bond, slave, i) { in bonding_store_active_slave()
1300 (slave->dev->name, buf, in bonding_store_active_slave()
1301 strlen(slave->dev->name)) == 0) { in bonding_store_active_slave()
1303 new_active = slave; in bonding_store_active_slave()
1308 bond->dev->name, slave->dev->name); in bonding_store_active_slave()
1318 bond->dev->name, slave->dev->name); in bonding_store_active_slave()
1325 bond->dev->name, slave->dev->name, in bonding_store_active_slave()
1326 slave->dev->name); in bonding_store_active_slave()
1365 struct slave *curr; in bonding_show_mii_status()