Lines Matching refs:pdev
904 dev_warn_once(&pmcdev->pdev->dev, "Crystal frequency unavailable\n");
1110 dev_warn(&pmcdev->pdev->dev,
1154 dev_err(&pmcdev->pdev->dev, "PUNIT PMT device not found.");
1161 dev_err(&pmcdev->pdev->dev,
1194 struct platform_device *pdev = pmcdev->pdev;
1195 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev);
1373 static void pmc_core_clean_structure(struct platform_device *pdev)
1375 struct pmc_dev *pmcdev = platform_get_drvdata(pdev);
1393 platform_set_drvdata(pdev, NULL);
1397 static int pmc_core_probe(struct platform_device *pdev)
1409 pmcdev = devm_kzalloc(&pdev->dev, sizeof(*pmcdev), GFP_KERNEL);
1415 platform_set_drvdata(pdev, pmcdev);
1416 pmcdev->pdev = pdev;
1425 primary_pmc = devm_kzalloc(&pdev->dev, sizeof(*primary_pmc), GFP_KERNEL);
1432 pmcdev->pkgc_res_cnt = devm_kcalloc(&pdev->dev,
1450 pmc_core_clean_structure(pdev);
1462 dev_info(&pdev->dev, " initialized\n");
1467 static void pmc_core_remove(struct platform_device *pdev)
1469 struct pmc_dev *pmcdev = platform_get_drvdata(pdev);
1471 pmc_core_clean_structure(pdev);
1535 struct device *dev = &pmcdev->pdev->dev;