Lines Matching refs:dev
166 static ssize_t simplecmd_store(struct device *dev, struct device_attribute *attr, in simplecmd_store() argument
169 struct intel_pmc_dev *pmc = dev_get_drvdata(dev); in simplecmd_store()
177 dev_err(dev, "Invalid values, expected: cmd subcmd\n"); in simplecmd_store()
202 static ssize_t northpeak_store(struct device *dev, struct device_attribute *attr, in northpeak_store() argument
205 struct intel_pmc_dev *pmc = dev_get_drvdata(dev); in northpeak_store()
289 dev_err(&pdev->dev, "Failed to get IO resource\n"); in intel_pmc_get_tco_resources()
317 dev_err(&pdev->dev, "Failed to get IPC resource\n"); in intel_pmc_get_resources()
331 pmc->gcr_mem_base = devm_ioremap_resource(&pdev->dev, &gcr_res); in intel_pmc_get_resources()
344 dev_err(&pdev->dev, "Failed to get resource of P-unit BIOS data\n"); in intel_pmc_get_resources()
353 dev_err(&pdev->dev, "Failed to get resource of P-unit BIOS interface\n"); in intel_pmc_get_resources()
398 ret = devm_mfd_add_devices(pmc->dev, PLATFORM_DEVID_AUTO, &tco, in intel_pmc_create_devices()
404 ret = devm_mfd_add_devices(pmc->dev, PLATFORM_DEVID_AUTO, &punit, 1, in intel_pmc_create_devices()
410 ret = devm_mfd_add_devices(pmc->dev, PLATFORM_DEVID_AUTO, in intel_pmc_create_devices()
429 pmc = devm_kzalloc(&pdev->dev, sizeof(*pmc), GFP_KERNEL); in intel_pmc_probe()
433 pmc->dev = &pdev->dev; in intel_pmc_probe()
438 dev_err(&pdev->dev, "Failed to request resources\n"); in intel_pmc_probe()
442 pmc->scu = devm_intel_scu_ipc_register(&pdev->dev, &scu_data); in intel_pmc_probe()
450 dev_err(&pdev->dev, "Failed to create PMC devices\n"); in intel_pmc_probe()