Home
last modified time | relevance | path

Searched refs:mode_lock (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.15/drivers/net/bonding/
Dbond_alb.c118 spin_lock_bh(&bond->mode_lock); in tlb_clear_slave()
120 spin_unlock_bh(&bond->mode_lock); in tlb_clear_slave()
135 spin_lock_bh(&bond->mode_lock); in tlb_initialize()
142 spin_unlock_bh(&bond->mode_lock); in tlb_initialize()
152 spin_lock_bh(&bond->mode_lock); in tlb_deinitialize()
157 spin_unlock_bh(&bond->mode_lock); in tlb_deinitialize()
235 spin_lock(&bond->mode_lock); in tlb_choose_channel()
237 spin_unlock(&bond->mode_lock); in tlb_choose_channel()
253 spin_lock_bh(&bond->mode_lock); in rlb_update_entry_from_arp()
268 spin_unlock_bh(&bond->mode_lock); in rlb_update_entry_from_arp()
[all …]
Dbond_debugfs.c31 spin_lock_bh(&bond->mode_lock); in bond_debug_rlb_hash_show()
44 spin_unlock_bh(&bond->mode_lock); in bond_debug_rlb_hash_show()
Dbond_3ad.c2104 spin_lock_bh(&bond->mode_lock); in bond_3ad_unbind_slave()
2245 spin_unlock_bh(&bond->mode_lock); in bond_3ad_unbind_slave()
2270 spin_lock_bh(&bond->mode_lock); in bond_3ad_update_ad_actor_settings()
2277 spin_unlock_bh(&bond->mode_lock); in bond_3ad_update_ad_actor_settings()
2308 spin_lock_bh(&bond->mode_lock); in bond_3ad_state_machine_handler()
2364 spin_unlock_bh(&bond->mode_lock); in bond_3ad_state_machine_handler()
2407 spin_lock(&slave->bond->mode_lock); in bond_3ad_rx_indication()
2409 spin_unlock(&slave->bond->mode_lock); in bond_3ad_rx_indication()
2513 spin_lock_bh(&slave->bond->mode_lock); in bond_3ad_adapter_speed_duplex_changed()
2515 spin_unlock_bh(&slave->bond->mode_lock); in bond_3ad_adapter_speed_duplex_changed()
[all …]
Dbond_main.c4738 spin_lock_bh(&bond->mode_lock); in bond_update_slave_arr()
4740 spin_unlock_bh(&bond->mode_lock); in bond_update_slave_arr()
4748 spin_unlock_bh(&bond->mode_lock); in bond_update_slave_arr()
5381 spin_lock_init(&bond->mode_lock); in bond_setup()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c1248 lockdep_assert_held(&esw->mode_lock); in mlx5_eswitch_enable_locked()
1314 down_write(&esw->mode_lock); in mlx5_eswitch_enable()
1326 up_write(&esw->mode_lock); in mlx5_eswitch_enable()
1335 lockdep_assert_held_write(&esw->mode_lock); in mlx5_eswitch_disable_locked()
1375 down_write(&esw->mode_lock); in mlx5_eswitch_disable()
1378 up_write(&esw->mode_lock); in mlx5_eswitch_disable()
1569 init_rwsem(&esw->mode_lock); in mlx5_eswitch_init()
1570 lockdep_set_class(&esw->mode_lock, &esw->mode_lock_key); in mlx5_eswitch_init()
2000 if (down_read_trylock(&esw->mode_lock) != 0) in mlx5_esw_hold()
2015 up_read(&esw->mode_lock); in mlx5_esw_release()
[all …]
Deswitch_offloads.c2878 down_write(&esw->mode_lock); in mlx5_esw_offloads_vport_metadata_set()
2892 up_write(&esw->mode_lock); in mlx5_esw_offloads_vport_metadata_set()
3391 down_write(&esw->mode_lock); in mlx5_devlink_eswitch_mode_get()
3398 up_write(&esw->mode_lock); in mlx5_devlink_eswitch_mode_get()
3445 down_write(&esw->mode_lock); in mlx5_devlink_eswitch_inline_mode_set()
3482 up_write(&esw->mode_lock); in mlx5_devlink_eswitch_inline_mode_set()
3486 up_write(&esw->mode_lock); in mlx5_devlink_eswitch_inline_mode_set()
3499 down_write(&esw->mode_lock); in mlx5_devlink_eswitch_inline_mode_get()
3506 up_write(&esw->mode_lock); in mlx5_devlink_eswitch_inline_mode_get()
3522 down_write(&esw->mode_lock); in mlx5_devlink_eswitch_encap_mode_set()
[all …]
Deswitch.h304 struct rw_semaphore mode_lock; member
/Linux-v5.15/drivers/power/supply/
Dsbs-battery.c215 struct mutex mode_lock; member
958 mutex_lock(&chip->mode_lock); in sbs_get_property()
960 mutex_unlock(&chip->mode_lock); in sbs_get_property()
1144 mutex_init(&chip->mode_lock); in sbs_probe()
/Linux-v5.15/include/net/
Dbonding.h227 spinlock_t mode_lock; member