Lines Matching refs:usable_slaves
4414 struct bond_up_slave *usable_slaves, in bond_set_slave_arr() argument
4419 usable = rtnl_dereference(bond->usable_slaves); in bond_set_slave_arr()
4420 rcu_assign_pointer(bond->usable_slaves, usable_slaves); in bond_set_slave_arr()
4432 usable = rtnl_dereference(bond->usable_slaves); in bond_reset_slave_arr()
4434 RCU_INIT_POINTER(bond->usable_slaves, NULL); in bond_reset_slave_arr()
4455 struct bond_up_slave *usable_slaves = NULL, *all_slaves = NULL; in bond_update_slave_arr() local
4465 usable_slaves = kzalloc(struct_size(usable_slaves, arr, in bond_update_slave_arr()
4469 if (!usable_slaves || !all_slaves) { in bond_update_slave_arr()
4502 usable_slaves->count); in bond_update_slave_arr()
4504 usable_slaves->arr[usable_slaves->count++] = slave; in bond_update_slave_arr()
4507 bond_set_slave_arr(bond, usable_slaves, all_slaves); in bond_update_slave_arr()
4513 bond_skip_slave(rtnl_dereference(bond->usable_slaves), in bond_update_slave_arr()
4517 kfree_rcu(usable_slaves, rcu); in bond_update_slave_arr()
4550 slaves = rcu_dereference(bond->usable_slaves); in bond_3ad_xor_xmit()
4670 slaves = rcu_dereference(bond->usable_slaves); in bond_xmit_get_slave()
4921 usable = rtnl_dereference(bond->usable_slaves); in bond_uninit()
4923 RCU_INIT_POINTER(bond->usable_slaves, NULL); in bond_uninit()