gpio_restart 29 drivers/power/reset/gpio-restart.c struct gpio_restart *gpio_restart = gpio_restart 30 drivers/power/reset/gpio-restart.c container_of(this, struct gpio_restart, restart_handler); gpio_restart 33 drivers/power/reset/gpio-restart.c gpiod_direction_output(gpio_restart->reset_gpio, 1); gpio_restart 34 drivers/power/reset/gpio-restart.c mdelay(gpio_restart->active_delay_ms); gpio_restart 37 drivers/power/reset/gpio-restart.c gpiod_set_value(gpio_restart->reset_gpio, 0); gpio_restart 38 drivers/power/reset/gpio-restart.c mdelay(gpio_restart->inactive_delay_ms); gpio_restart 41 drivers/power/reset/gpio-restart.c gpiod_set_value(gpio_restart->reset_gpio, 1); gpio_restart 44 drivers/power/reset/gpio-restart.c mdelay(gpio_restart->wait_delay_ms); gpio_restart 53 drivers/power/reset/gpio-restart.c struct gpio_restart *gpio_restart; gpio_restart 58 drivers/power/reset/gpio-restart.c gpio_restart = devm_kzalloc(&pdev->dev, sizeof(*gpio_restart), gpio_restart 60 drivers/power/reset/gpio-restart.c if (!gpio_restart) gpio_restart 65 drivers/power/reset/gpio-restart.c gpio_restart->reset_gpio = devm_gpiod_get(&pdev->dev, NULL, gpio_restart 67 drivers/power/reset/gpio-restart.c if (IS_ERR(gpio_restart->reset_gpio)) { gpio_restart 69 drivers/power/reset/gpio-restart.c return PTR_ERR(gpio_restart->reset_gpio); gpio_restart 72 drivers/power/reset/gpio-restart.c gpio_restart->restart_handler.notifier_call = gpio_restart_notify; gpio_restart 73 drivers/power/reset/gpio-restart.c gpio_restart->restart_handler.priority = 129; gpio_restart 74 drivers/power/reset/gpio-restart.c gpio_restart->active_delay_ms = 100; gpio_restart 75 drivers/power/reset/gpio-restart.c gpio_restart->inactive_delay_ms = 100; gpio_restart 76 drivers/power/reset/gpio-restart.c gpio_restart->wait_delay_ms = 3000; gpio_restart 84 drivers/power/reset/gpio-restart.c gpio_restart->restart_handler.priority = property; gpio_restart 88 drivers/power/reset/gpio-restart.c &gpio_restart->active_delay_ms); gpio_restart 90 drivers/power/reset/gpio-restart.c &gpio_restart->inactive_delay_ms); gpio_restart 92 drivers/power/reset/gpio-restart.c &gpio_restart->wait_delay_ms); gpio_restart 94 drivers/power/reset/gpio-restart.c platform_set_drvdata(pdev, gpio_restart); gpio_restart 96 drivers/power/reset/gpio-restart.c ret = register_restart_handler(&gpio_restart->restart_handler); gpio_restart 108 drivers/power/reset/gpio-restart.c struct gpio_restart *gpio_restart = platform_get_drvdata(pdev); gpio_restart 111 drivers/power/reset/gpio-restart.c ret = unregister_restart_handler(&gpio_restart->restart_handler);