Lines Matching refs:pwrkey

104 	struct pmic8xxx_pwrkey *pwrkey = dev_get_drvdata(dev);  in pmic8xxx_pwrkey_suspend()  local
107 enable_irq_wake(pwrkey->key_press_irq); in pmic8xxx_pwrkey_suspend()
114 struct pmic8xxx_pwrkey *pwrkey = dev_get_drvdata(dev); in pmic8xxx_pwrkey_resume() local
117 disable_irq_wake(pwrkey->key_press_irq); in pmic8xxx_pwrkey_resume()
127 struct pmic8xxx_pwrkey *pwrkey = platform_get_drvdata(pdev); in pmic8xxx_pwrkey_shutdown() local
132 if (pwrkey->shutdown_fn) { in pmic8xxx_pwrkey_shutdown()
133 error = pwrkey->shutdown_fn(pwrkey, reset); in pmic8xxx_pwrkey_shutdown()
149 regmap_update_bits(pwrkey->regmap, PON_CNTL_1, mask, val); in pmic8xxx_pwrkey_shutdown()
279 static int pm8058_pwrkey_shutdown(struct pmic8xxx_pwrkey *pwrkey, bool reset) in pm8058_pwrkey_shutdown() argument
282 struct regmap *regmap = pwrkey->regmap; in pm8058_pwrkey_shutdown()
319 static int pm8921_pwrkey_shutdown(struct pmic8xxx_pwrkey *pwrkey, bool reset) in pm8921_pwrkey_shutdown() argument
321 struct regmap *regmap = pwrkey->regmap; in pm8921_pwrkey_shutdown()
340 struct pmic8xxx_pwrkey *pwrkey; in pmic8xxx_pwrkey_probe() local
361 pwrkey = devm_kzalloc(&pdev->dev, sizeof(*pwrkey), GFP_KERNEL); in pmic8xxx_pwrkey_probe()
362 if (!pwrkey) in pmic8xxx_pwrkey_probe()
365 pwrkey->shutdown_fn = of_device_get_match_data(&pdev->dev); in pmic8xxx_pwrkey_probe()
366 pwrkey->regmap = regmap; in pmic8xxx_pwrkey_probe()
367 pwrkey->key_press_irq = key_press_irq; in pmic8xxx_pwrkey_probe()
426 platform_set_drvdata(pdev, pwrkey); in pmic8xxx_pwrkey_probe()