Lines Matching refs:pdev
298 struct amd_pmf_dev *pdev = dev_get_drvdata(dev);
300 if (pdev->smart_pc_enabled)
301 cancel_delayed_work_sync(&pdev->pb_work);
303 if (is_apmf_func_supported(pdev, APMF_FUNC_SBIOS_HEARTBEAT_V2))
304 amd_pmf_notify_sbios_heartbeat_event_v2(pdev, ON_SUSPEND);
311 struct amd_pmf_dev *pdev = dev_get_drvdata(dev);
314 if (pdev->buf) {
315 ret = amd_pmf_set_dram_addr(pdev, false);
320 if (is_apmf_func_supported(pdev, APMF_FUNC_SBIOS_HEARTBEAT_V2))
321 amd_pmf_notify_sbios_heartbeat_event_v2(pdev, ON_RESUME);
323 if (pdev->smart_pc_enabled)
324 schedule_delayed_work(&pdev->pb_work, msecs_to_jiffies(2000));
389 static int amd_pmf_probe(struct platform_device *pdev)
400 id = acpi_match_device(amd_pmf_acpi_ids, &pdev->dev);
407 dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
411 dev->dev = &pdev->dev;
451 platform_set_drvdata(pdev, dev);
463 static void amd_pmf_remove(struct platform_device *pdev)
465 struct amd_pmf_dev *dev = platform_get_drvdata(pdev);