Home
last modified time | relevance | path

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

/drivers/net/bonding/
Dbond_alb.c119 spin_lock_bh(&bond->mode_lock); in tlb_clear_slave()
121 spin_unlock_bh(&bond->mode_lock); in tlb_clear_slave()
136 spin_lock_bh(&bond->mode_lock); in tlb_initialize()
143 spin_unlock_bh(&bond->mode_lock); in tlb_initialize()
153 spin_lock_bh(&bond->mode_lock); in tlb_deinitialize()
158 spin_unlock_bh(&bond->mode_lock); in tlb_deinitialize()
236 spin_lock(&bond->mode_lock); in tlb_choose_channel()
238 spin_unlock(&bond->mode_lock); in tlb_choose_channel()
254 spin_lock_bh(&bond->mode_lock); in rlb_update_entry_from_arp()
269 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.c2096 spin_lock_bh(&bond->mode_lock); in bond_3ad_unbind_slave()
2238 spin_unlock_bh(&bond->mode_lock); in bond_3ad_unbind_slave()
2263 spin_lock_bh(&bond->mode_lock); in bond_3ad_update_ad_actor_settings()
2270 spin_unlock_bh(&bond->mode_lock); in bond_3ad_update_ad_actor_settings()
2323 spin_lock_bh(&bond->mode_lock); in bond_3ad_state_machine_handler()
2377 spin_unlock_bh(&bond->mode_lock); in bond_3ad_state_machine_handler()
2420 spin_lock(&slave->bond->mode_lock); in bond_3ad_rx_indication()
2422 spin_unlock(&slave->bond->mode_lock); in bond_3ad_rx_indication()
2526 spin_lock_bh(&slave->bond->mode_lock); in bond_3ad_adapter_speed_duplex_changed()
2528 spin_unlock_bh(&slave->bond->mode_lock); in bond_3ad_adapter_speed_duplex_changed()
[all …]
Dbond_main.c5104 spin_lock_bh(&bond->mode_lock); in bond_update_slave_arr()
5106 spin_unlock_bh(&bond->mode_lock); in bond_update_slave_arr()
5114 spin_unlock_bh(&bond->mode_lock); in bond_update_slave_arr()
5804 spin_lock_init(&bond->mode_lock); in bond_setup()
/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c1256 lockdep_assert_held(&esw->mode_lock); in mlx5_eswitch_enable_locked()
1324 down_write(&esw->mode_lock); in mlx5_eswitch_enable()
1336 up_write(&esw->mode_lock); in mlx5_eswitch_enable()
1351 down_write(&esw->mode_lock); in mlx5_eswitch_disable_sriov()
1380 up_write(&esw->mode_lock); in mlx5_eswitch_disable_sriov()
1422 down_write(&esw->mode_lock); in mlx5_eswitch_disable()
1425 up_write(&esw->mode_lock); in mlx5_eswitch_disable()
1615 init_rwsem(&esw->mode_lock); in mlx5_eswitch_init()
1974 if (down_read_trylock(&esw->mode_lock) != 0) in mlx5_esw_hold()
1989 up_read(&esw->mode_lock); in mlx5_esw_release()
[all …]
Deswitch_offloads.c3036 down_write(&esw->mode_lock); in mlx5_esw_offloads_vport_metadata_set()
3050 up_write(&esw->mode_lock); in mlx5_esw_offloads_vport_metadata_set()
3570 down_write(&esw->mode_lock); in mlx5_devlink_eswitch_mode_get()
3572 up_write(&esw->mode_lock); in mlx5_devlink_eswitch_mode_get()
3619 down_write(&esw->mode_lock); in mlx5_devlink_eswitch_inline_mode_set()
3653 up_write(&esw->mode_lock); in mlx5_devlink_eswitch_inline_mode_set()
3657 up_write(&esw->mode_lock); in mlx5_devlink_eswitch_inline_mode_set()
3670 down_write(&esw->mode_lock); in mlx5_devlink_eswitch_inline_mode_get()
3672 up_write(&esw->mode_lock); in mlx5_devlink_eswitch_inline_mode_get()
3688 down_write(&esw->mode_lock); in mlx5_devlink_eswitch_encap_mode_set()
[all …]
Deswitch.h318 struct rw_semaphore mode_lock; member
/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()
/drivers/gpu/drm/bridge/
Dite-it6505.c416 struct mutex mode_lock; /* used to bridge_detect */ member
2621 mutex_lock(&it6505->mode_lock); in it6505_detect()
2670 mutex_unlock(&it6505->mode_lock); in it6505_detect()
3252 mutex_init(&it6505->mode_lock); in it6505_i2c_probe()