Lines Matching refs:m_dev
1282 struct s5p_mfc_dev *m_dev = platform_get_drvdata(pdev); in s5p_mfc_suspend() local
1285 if (m_dev->num_inst == 0) in s5p_mfc_suspend()
1288 if (test_and_set_bit(0, &m_dev->enter_suspend) != 0) { in s5p_mfc_suspend()
1294 while (test_and_set_bit(0, &m_dev->hw_lock) != 0) { in s5p_mfc_suspend()
1297 ret = wait_event_interruptible_timeout(m_dev->queue, in s5p_mfc_suspend()
1298 m_dev->int_cond, msecs_to_jiffies(MFC_INT_TIMEOUT)); in s5p_mfc_suspend()
1301 clear_bit(0, &m_dev->enter_suspend); in s5p_mfc_suspend()
1306 ret = s5p_mfc_sleep(m_dev); in s5p_mfc_suspend()
1308 clear_bit(0, &m_dev->enter_suspend); in s5p_mfc_suspend()
1309 clear_bit(0, &m_dev->hw_lock); in s5p_mfc_suspend()
1317 struct s5p_mfc_dev *m_dev = platform_get_drvdata(pdev); in s5p_mfc_resume() local
1319 if (m_dev->num_inst == 0) in s5p_mfc_resume()
1321 return s5p_mfc_wakeup(m_dev); in s5p_mfc_resume()
1329 struct s5p_mfc_dev *m_dev = platform_get_drvdata(pdev); in s5p_mfc_runtime_suspend() local
1331 atomic_set(&m_dev->pm.power, 0); in s5p_mfc_runtime_suspend()
1338 struct s5p_mfc_dev *m_dev = platform_get_drvdata(pdev); in s5p_mfc_runtime_resume() local
1340 if (!m_dev->alloc_ctx) in s5p_mfc_runtime_resume()
1342 atomic_set(&m_dev->pm.power, 1); in s5p_mfc_runtime_resume()