Searched refs:down_trylock (Results 1 - 30 of 30) sorted by relevance

/linux-4.1.27/include/linux/
H A Dsemaphore.h42 extern int __must_check down_trylock(struct semaphore *sem);
H A Dmutex.h169 * not the down_trylock() convention!
/linux-4.1.27/drivers/input/serio/
H A Dhp_sdc_mlc.c151 if (down_trylock(&mlc->isem)) { hp_sdc_mlc_in()
189 BUG_ON(down_trylock(&mlc->isem)); hp_sdc_mlc_cts()
190 BUG_ON(down_trylock(&mlc->osem)); hp_sdc_mlc_cts()
195 if (down_trylock(&mlc->csem)) { hp_sdc_mlc_cts()
232 BUG_ON(down_trylock(&mlc->osem)); hp_sdc_mlc_out()
243 BUG_ON(down_trylock(&mlc->csem)); hp_sdc_mlc_out()
299 BUG_ON(down_trylock(&mlc->csem)); hp_sdc_mlc_out()
H A Dhil_mlc.c611 BUG_ON(down_trylock(&mlc->isem)); hilse_setup_input()
697 if (down_trylock(&mlc->osem)) { hilse_donode()
/linux-4.1.27/kernel/locking/
H A Dsemaphore.c17 * down_trylock() and up() can be called from interrupt context, so we
118 * down_trylock - try to acquire the semaphore, without waiting
130 int down_trylock(struct semaphore *sem) down_trylock() function
143 EXPORT_SYMBOL(down_trylock); variable
H A Dmutex.c896 * it is negated from the down_trylock() return values! Be careful
/linux-4.1.27/drivers/char/
H A Dsnsc.c167 if (down_trylock(&sd->sd_rbs)) { scdrv_read()
259 if (down_trylock(&sd->sd_wbs)) { scdrv_write()
/linux-4.1.27/drivers/hv/
H A Dhv_fcopy.c98 if (down_trylock(&fcopy_transaction.read_sema)) fcopy_work_func()
377 if (down_trylock(&fcopy_transaction.read_sema)) fcopy_release()
/linux-4.1.27/drivers/net/wireless/cw1200/
H A Dpm.c194 if (down_trylock(&priv->scan.lock)) cw1200_wow_suspend()
H A Dscan.c386 if (down_trylock(&priv->scan.lock)) { cw1200_probe_work()
H A Dsta.c104 while (down_trylock(&priv->scan.lock)) { cw1200_stop()
995 if (!down_trylock(&priv->scan.lock)) { cw1200_event_handler()
/linux-4.1.27/arch/ia64/kernel/
H A Dsalinfo.c196 (void)(down_trylock(&data->mutex) ?: 0); salinfo_work_to_do()
311 if (cpumask_empty(&data->cpu_event) && down_trylock(&data->mutex)) { salinfo_event_read()
/linux-4.1.27/drivers/md/
H A Ddm-region-hash.c627 while (!down_trylock(&rh->recovery_count)) { dm_rh_recovery_prepare()
/linux-4.1.27/drivers/usb/
H A Dusb-skeleton.c386 if (down_trylock(&dev->limit_sem)) { skel_write()
/linux-4.1.27/net/core/
H A Dnetpoll.c188 if (down_trylock(&ni->dev_lock)) netpoll_poll_dev()
/linux-4.1.27/drivers/crypto/ux500/cryp/
H A Dcryp_core.c1586 if (down_trylock(&driver_data.device_allocation)) ux500_cryp_remove()
1656 if (down_trylock(&driver_data.device_allocation)) ux500_cryp_shutdown()
/linux-4.1.27/drivers/crypto/ux500/hash/
H A Dhash_core.c1790 if (down_trylock(&driver_data.device_allocation)) ux500_hash_remove()
1853 if (down_trylock(&driver_data.device_allocation)) ux500_hash_shutdown()
/linux-4.1.27/drivers/infiniband/core/
H A Duser_mad.c1027 if (down_trylock(&port->sm_sem)) { ib_umad_sm_open()
/linux-4.1.27/drivers/net/irda/
H A Dsir_dev.c293 if (down_trylock(&fsm->sem)) { sirdev_schedule_request()
/linux-4.1.27/drivers/net/wireless/
H A Dairo.c2156 if (down_trylock(&priv->sem) != 0) { airo_start_xmit()
2230 if (down_trylock(&priv->sem) != 0) { airo_start_xmit11()
2280 if (down_trylock(&local->sem) != 0) { airo_get_stats()
2307 if (down_trylock(&ai->sem) != 0) { airo_set_multicast_list()
3264 if (down_trylock(&ai->sem) != 0) { airo_handle_link()
7760 if (down_trylock(&local->sem) != 0) { airo_get_wireless_stats()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_stats.c1375 if (down_trylock(&bp->stats_lock)) { bnx2x_stats_handle()
H A Dbnx2x_main.c10350 if (down_trylock(&bnx2x_prev_sem)) bnx2x_prev_is_path_marked()
/linux-4.1.27/fs/ocfs2/
H A Dinode.c1151 * down_trylock() returns 0, down_write_trylock() returns 1 ocfs2_clear_inode()
/linux-4.1.27/fs/xfs/
H A Dxfs_buf.c947 locked = down_trylock(&bp->b_sema) == 0; xfs_buf_trylock()
/linux-4.1.27/drivers/md/bcache/
H A Dbtree.c639 if (down_trylock(&b->io_mutex)) mca_reap()
/linux-4.1.27/drivers/scsi/aacraid/
H A Dcommsup.c593 while (down_trylock(&fibptr->event_wait)) { aac_fib_send()
/linux-4.1.27/drivers/hid/
H A Dhid-core.c1474 if (down_trylock(&hid->driver_input_lock)) hid_input_report()
/linux-4.1.27/kernel/printk/
H A Dprintk.c98 if (down_trylock(&console_sem)) __down_trylock_console_sem()
/linux-4.1.27/drivers/net/bonding/
H A Dbond_main.c982 if (down_trylock(&ni->dev_lock)) bond_for_each_slave_rcu()
/linux-4.1.27/drivers/block/mtip32xx/
H A Dmtip32xx.c3752 if (cmd->unaligned && down_trylock(&dd->port->cmd_slot_unal)) mtip_check_unal_depth()

Completed in 947 milliseconds