Searched refs:switch_sem (Results 1 – 3 of 3) sorted by relevance
47 DEFINE_SEMAPHORE(switch_sem);902 down(&switch_sem); in btusb_close()912 up(&switch_sem); in btusb_close()1331 down(&switch_sem);1335 up(&switch_sem);1341 down(&switch_sem);1343 up(&switch_sem);
787 down_read(&mlx4_priv(dev)->cmd.switch_sem); in __mlx4_cmd()797 up_read(&mlx4_priv(dev)->cmd.switch_sem); in __mlx4_cmd()2501 init_rwsem(&priv->cmd.switch_sem); in mlx4_cmd_init()2637 down_write(&priv->cmd.switch_sem); in mlx4_cmd_use_events()2661 up_write(&priv->cmd.switch_sem); in mlx4_cmd_use_events()2678 down_write(&priv->cmd.switch_sem); in mlx4_cmd_use_polling()2688 up_write(&priv->cmd.switch_sem); in mlx4_cmd_use_polling()
633 struct rw_semaphore switch_sem; member