/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | vxlan.c | 44 struct mutex sync_lock; /* sync add/del port HW operations */ member 117 mutex_lock(&vxlan->sync_lock); in mlx5_vxlan_add_port() 119 mutex_unlock(&vxlan->sync_lock); in mlx5_vxlan_add_port() 129 mutex_lock(&vxlan->sync_lock); in mlx5_vxlan_del_port() 143 mutex_unlock(&vxlan->sync_lock); in mlx5_vxlan_del_port() 159 mutex_init(&vxlan->sync_lock); in mlx5_vxlan_create()
|
H A D | geneve.c | 13 struct mutex sync_lock; /* protect GENEVE obj operations */ member 70 mutex_lock(&geneve->sync_lock); in mlx5_geneve_tlv_option_add() 112 mutex_unlock(&geneve->sync_lock); in mlx5_geneve_tlv_option_add() 121 mutex_lock(&geneve->sync_lock); in mlx5_geneve_tlv_option_del() 132 mutex_unlock(&geneve->sync_lock); in mlx5_geneve_tlv_option_del() 143 mutex_init(&geneve->sync_lock); in mlx5_geneve_create()
|
/linux/arch/mips/kernel/ |
H A D | sync-r4k.c | 38 static arch_spinlock_t sync_lock = __ARCH_SPIN_LOCK_UNLOCKED; variable 62 arch_spin_lock(&sync_lock); in check_counter_warp() 66 arch_spin_unlock(&sync_lock); in check_counter_warp() 85 arch_spin_lock(&sync_lock); in check_counter_warp() 96 arch_spin_unlock(&sync_lock); in check_counter_warp()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | meter.c | 43 struct mutex sync_lock; /* protect flow meter operations */ member 389 mutex_lock(&flow_meters->sync_lock); in mlx5e_tc_meter_get() 391 mutex_unlock(&flow_meters->sync_lock); in mlx5e_tc_meter_get() 410 mutex_lock(&flow_meters->sync_lock); in mlx5e_tc_meter_put() 412 mutex_unlock(&flow_meters->sync_lock); in mlx5e_tc_meter_put() 467 mutex_lock(&flow_meters->sync_lock); in mlx5e_tc_meter_update() 469 mutex_unlock(&flow_meters->sync_lock); in mlx5e_tc_meter_update() 484 mutex_lock(&flow_meters->sync_lock); in mlx5e_tc_meter_replace() 498 mutex_unlock(&flow_meters->sync_lock); in mlx5e_tc_meter_replace() 504 mutex_unlock(&flow_meters->sync_lock); in mlx5e_tc_meter_replace() [all...] |
/linux/arch/x86/kernel/ |
H A D | tsc_sync.c | 255 static arch_spinlock_t sync_lock = __ARCH_SPIN_LOCK_UNLOCKED; variable 283 arch_spin_lock(&sync_lock); in check_tsc_warp() 287 arch_spin_unlock(&sync_lock); in check_tsc_warp() 306 arch_spin_lock(&sync_lock); in check_tsc_warp() 317 arch_spin_unlock(&sync_lock); in check_tsc_warp()
|
/linux/sound/core/seq/oss/ |
H A D | seq_oss_writeq.c | 35 spin_lock_init(&q->sync_lock); in snd_seq_oss_writeq_new() 127 spin_lock_irqsave(&q->sync_lock, flags); in snd_seq_oss_writeq_wakeup() 131 spin_unlock_irqrestore(&q->sync_lock, flags); in snd_seq_oss_writeq_wakeup()
|
H A D | seq_oss_writeq.h | 21 spinlock_t sync_lock; member
|
/linux/drivers/media/usb/dvb-usb-v2/ |
H A D | mxl111sf-demod.c | 202 int *sync_lock) in mxl1x1sf_demod_get_sync_lock_status() argument 208 *sync_lock = (val & SYNC_LOCK_MASK) >> 4; in mxl1x1sf_demod_get_sync_lock_status() 434 int ret, locked, cr_lock, sync_lock, fec_lock; in mxl111sf_demod_read_status() local 444 ret = mxl1x1sf_demod_get_sync_lock_status(state, &sync_lock); in mxl111sf_demod_read_status() 455 if (sync_lock) in mxl111sf_demod_read_status() 460 if ((locked) && (cr_lock) && (sync_lock)) in mxl111sf_demod_read_status()
|
/linux/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | setup.c | 177 static pthread_mutex_t sync_lock = PTHREAD_MUTEX_INITIALIZER; variable 187 pthread_mutex_lock(&sync_lock); in synchronize_threads() 195 pthread_cond_wait(&sync_cond, &sync_lock); in synchronize_threads() 196 pthread_mutex_unlock(&sync_lock); in synchronize_threads()
|
/linux/tools/testing/selftests/proc/ |
H A D | proc-maps-race.c | 99 pthread_mutex_t sync_lock; member 171 pthread_mutex_lock(&mod_info->sync_lock); in wait_for_state() 173 pthread_cond_wait(&mod_info->sync_cond, &mod_info->sync_lock); in wait_for_state() 174 pthread_mutex_unlock(&mod_info->sync_lock); in wait_for_state() 179 pthread_mutex_lock(&mod_info->sync_lock); in signal_state() 182 pthread_mutex_unlock(&mod_info->sync_lock); in signal_state() 424 ASSERT_EQ(pthread_mutex_init(&mod_info->sync_lock, &mutex_attr), 0); in FIXTURE_SETUP()
|
/linux/net/netfilter/ipvs/ |
H A D | ip_vs_sync.c | 308 spin_lock_bh(&ipvs->sync_lock); in sb_dequeue() 320 spin_unlock_bh(&ipvs->sync_lock); in sb_dequeue() 367 spin_lock(&ipvs->sync_lock); in sb_queue_tail() 382 spin_unlock(&ipvs->sync_lock); in sb_queue_tail() 1626 spin_lock_bh(&ipvs->sync_lock); in master_wakeup_work_handler() 1634 spin_unlock_bh(&ipvs->sync_lock); in master_wakeup_work_handler() 1955 spin_lock(&ipvs->sync_lock); in stop_sync_thread() 1957 spin_unlock(&ipvs->sync_lock); in stop_sync_thread() 2024 spin_lock_init(&ipvs->sync_lock); in ip_vs_sync_net_init()
|
/linux/drivers/media/dvb-frontends/ |
H A D | lgdt3305.c | 906 cr_lock, fec_lock, sync_lock; in lgdt3305_read_status() local 916 sync_lock = (val & (1 << 2)) ? 1 : 0; in lgdt3305_read_status() 923 sync_lock ? "SYNCLOCK " : "", in lgdt3305_read_status() 937 if (sync_lock) in lgdt3305_read_status()
|
/linux/fs/gfs2/ |
H A D | lock_dlm.c | 587 static int sync_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags, in sync_lock() function 627 return sync_lock(sdp, mode, flags, GFS2_MOUNTED_LOCK, in mounted_lock() 640 return sync_lock(sdp, mode, flags, GFS2_CONTROL_LOCK, in control_lock()
|
/linux/fs/ocfs2/ |
H A D | stack_user.c | 823 static int sync_lock(struct ocfs2_cluster_connection *conn, in sync_lock() function 856 return sync_lock(conn, mode, flags, in version_lock()
|
/linux/drivers/scsi/aacraid/ |
H A D | commsup.c | 592 spin_lock_irqsave(&dev->sync_lock, sflags); in aac_fib_send() 595 spin_unlock_irqrestore(&dev->sync_lock, sflags); in aac_fib_send() 598 spin_unlock_irqrestore(&dev->sync_lock, sflags); in aac_fib_send()
|
H A D | aacraid.h | 1657 spinlock_t sync_lock; member
|
/linux/include/net/ |
H A D | ip_vs.h | 1027 spinlock_t sync_lock; member
|