Lines Matching refs:mp2

41 static int amd_sfh_wait_response_v2(struct amd_mp2_dev *mp2, u8 sid, u32 sensor_sts)  in amd_sfh_wait_response_v2()  argument
46 if (!readl_poll_timeout(mp2->mmio + AMD_P2C_MSG(0), cmd_resp.resp, in amd_sfh_wait_response_v2()
248 struct amd_mp2_dev *mp2 = privdata; in amd_mp2_pci_remove() local
250 mp2->mp2_ops->stop_all(mp2); in amd_mp2_pci_remove()
251 pci_intx(mp2->pdev, false); in amd_mp2_pci_remove()
252 amd_sfh_clear_intr(mp2); in amd_mp2_pci_remove()
335 struct amd_mp2_dev *mp2 = container_of(work, struct amd_mp2_dev, work); in sfh1_1_init_work() local
338 rc = mp2->sfh1_1_ops->init(mp2); in sfh1_1_init_work()
342 amd_sfh_clear_intr(mp2); in sfh1_1_init_work()
343 mp2->init_done = 1; in sfh1_1_init_work()
348 struct amd_mp2_dev *mp2 = container_of(work, struct amd_mp2_dev, work); in sfh_init_work() local
349 struct pci_dev *pdev = mp2->pdev; in sfh_init_work()
352 rc = amd_sfh_hid_client_init(mp2); in sfh_init_work()
354 amd_sfh_clear_intr(mp2); in sfh_init_work()
359 amd_sfh_clear_intr(mp2); in sfh_init_work()
360 mp2->init_done = 1; in sfh_init_work()
365 struct amd_mp2_dev *mp2 = pci_get_drvdata(pdev); in amd_sfh_remove() local
367 flush_work(&mp2->work); in amd_sfh_remove()
368 if (mp2->init_done) in amd_sfh_remove()
369 mp2->mp2_ops->remove(mp2); in amd_sfh_remove()
441 struct amd_mp2_dev *mp2 = pci_get_drvdata(pdev); in amd_sfh_shutdown() local
443 if (mp2) { in amd_sfh_shutdown()
444 flush_work(&mp2->work); in amd_sfh_shutdown()
445 if (mp2->init_done) in amd_sfh_shutdown()
446 mp2->mp2_ops->stop_all(mp2); in amd_sfh_shutdown()
452 struct amd_mp2_dev *mp2 = dev_get_drvdata(dev); in amd_mp2_pci_resume() local
454 flush_work(&mp2->work); in amd_mp2_pci_resume()
455 if (mp2->init_done) in amd_mp2_pci_resume()
456 mp2->mp2_ops->resume(mp2); in amd_mp2_pci_resume()
463 struct amd_mp2_dev *mp2 = dev_get_drvdata(dev); in amd_mp2_pci_suspend() local
465 flush_work(&mp2->work); in amd_mp2_pci_suspend()
466 if (mp2->init_done) in amd_mp2_pci_suspend()
467 mp2->mp2_ops->suspend(mp2); in amd_mp2_pci_suspend()