Lines Matching defs:pdev
3186 static void it87_check_tachometers_reset(struct platform_device *pdev)
3188 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev);
3189 struct it87_data *data = platform_get_drvdata(pdev);
3203 static void it87_check_tachometers_16bit_mode(struct platform_device *pdev)
3205 struct it87_data *data = platform_get_drvdata(pdev);
3213 dev_dbg(&pdev->dev,
3228 static void it87_init_device(struct platform_device *pdev)
3230 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev);
3231 struct it87_data *data = platform_get_drvdata(pdev);
3264 it87_check_tachometers_reset(pdev);
3269 it87_check_tachometers_16bit_mode(pdev);
3353 static int it87_probe(struct platform_device *pdev)
3357 struct device *dev = &pdev->dev;
3363 res = platform_get_resource(pdev, IORESOURCE_IO, 0);
3364 if (!devm_request_region(&pdev->dev, res->start, IT87_EC_EXTENT,
3372 data = devm_kzalloc(&pdev->dev, sizeof(struct it87_data), GFP_KERNEL);
3407 platform_set_drvdata(pdev, data);
3482 it87_init_device(pdev);
3514 static void it87_resume_sio(struct platform_device *pdev)
3516 struct it87_data *data = dev_get_drvdata(&pdev->dev);
3525 dev_warn(&pdev->dev,
3535 dev_dbg(&pdev->dev,
3548 struct platform_device *pdev = to_platform_device(dev);
3551 it87_resume_sio(pdev);
3558 it87_check_tachometers_reset(pdev);
3559 it87_check_tachometers_16bit_mode(pdev);
3586 struct platform_device *pdev;
3601 pdev = platform_device_alloc(DRVNAME, address);
3602 if (!pdev)
3605 err = platform_device_add_resources(pdev, &res, 1);
3611 err = platform_device_add_data(pdev, sio_data,
3618 err = platform_device_add(pdev);
3624 it87_pdev[index] = pdev;
3628 platform_device_put(pdev);