Searched refs:switch_sem (Results 1 – 2 of 2) sorted by relevance
793 down_read(&mlx4_priv(dev)->cmd.switch_sem); in __mlx4_cmd()803 up_read(&mlx4_priv(dev)->cmd.switch_sem); in __mlx4_cmd()2490 init_rwsem(&priv->cmd.switch_sem); in mlx4_cmd_init()2631 down_write(&priv->cmd.switch_sem); in mlx4_cmd_use_events()2656 up_write(&priv->cmd.switch_sem); in mlx4_cmd_use_events()2672 down_write(&priv->cmd.switch_sem); in mlx4_cmd_use_polling()2682 up_write(&priv->cmd.switch_sem); in mlx4_cmd_use_polling()
624 struct rw_semaphore switch_sem; member