Searched refs:pwrkey (Results 1 - 3 of 3) sorted by relevance
/linux-4.4.14/drivers/input/misc/ |
H A D | pm8941-pwrkey.c | 60 struct pm8941_pwrkey *pwrkey = container_of(nb, struct pm8941_pwrkey, pm8941_reboot_notify() local 67 if (pwrkey->revision == 0) pm8941_reboot_notify() 72 error = regmap_update_bits(pwrkey->regmap, pm8941_reboot_notify() 73 pwrkey->baseaddr + enable_reg, pm8941_reboot_notify() 77 dev_err(pwrkey->dev, pm8941_reboot_notify() 98 error = regmap_update_bits(pwrkey->regmap, pm8941_reboot_notify() 99 pwrkey->baseaddr + PON_PS_HOLD_RST_CTL, pm8941_reboot_notify() 103 dev_err(pwrkey->dev, "unable to set ps hold reset type: %d\n", pm8941_reboot_notify() 106 error = regmap_update_bits(pwrkey->regmap, pm8941_reboot_notify() 107 pwrkey->baseaddr + enable_reg, pm8941_reboot_notify() 111 dev_err(pwrkey->dev, "unable to re-set enable: %d\n", error); pm8941_reboot_notify() 118 struct pm8941_pwrkey *pwrkey = _data; pm8941_pwrkey_irq() local 122 error = regmap_read(pwrkey->regmap, pm8941_pwrkey_irq() 123 pwrkey->baseaddr + PON_RT_STS, &sts); pm8941_pwrkey_irq() 127 input_report_key(pwrkey->input, KEY_POWER, !!(sts & PON_KPDPWR_N_SET)); pm8941_pwrkey_irq() 128 input_sync(pwrkey->input); pm8941_pwrkey_irq() 135 struct pm8941_pwrkey *pwrkey = dev_get_drvdata(dev); pm8941_pwrkey_suspend() local 138 enable_irq_wake(pwrkey->irq); pm8941_pwrkey_suspend() 145 struct pm8941_pwrkey *pwrkey = dev_get_drvdata(dev); pm8941_pwrkey_resume() local 148 disable_irq_wake(pwrkey->irq); pm8941_pwrkey_resume() 158 struct pm8941_pwrkey *pwrkey; pm8941_pwrkey_probe() local 173 pwrkey = devm_kzalloc(&pdev->dev, sizeof(*pwrkey), GFP_KERNEL); pm8941_pwrkey_probe() 174 if (!pwrkey) pm8941_pwrkey_probe() 177 pwrkey->dev = &pdev->dev; pm8941_pwrkey_probe() 179 pwrkey->regmap = dev_get_regmap(pdev->dev.parent, NULL); pm8941_pwrkey_probe() 180 if (!pwrkey->regmap) { pm8941_pwrkey_probe() 185 pwrkey->irq = platform_get_irq(pdev, 0); pm8941_pwrkey_probe() 186 if (pwrkey->irq < 0) { pm8941_pwrkey_probe() 188 return pwrkey->irq; pm8941_pwrkey_probe() 192 &pwrkey->baseaddr); pm8941_pwrkey_probe() 196 error = regmap_read(pwrkey->regmap, pwrkey->baseaddr + PON_REV2, pm8941_pwrkey_probe() 197 &pwrkey->revision); pm8941_pwrkey_probe() 203 pwrkey->input = devm_input_allocate_device(&pdev->dev); pm8941_pwrkey_probe() 204 if (!pwrkey->input) { pm8941_pwrkey_probe() 209 input_set_capability(pwrkey->input, EV_KEY, KEY_POWER); pm8941_pwrkey_probe() 211 pwrkey->input->name = "pm8941_pwrkey"; pm8941_pwrkey_probe() 212 pwrkey->input->phys = "pm8941_pwrkey/input0"; pm8941_pwrkey_probe() 217 error = regmap_update_bits(pwrkey->regmap, pm8941_pwrkey_probe() 218 pwrkey->baseaddr + PON_DBC_CTL, pm8941_pwrkey_probe() 226 error = regmap_update_bits(pwrkey->regmap, pm8941_pwrkey_probe() 227 pwrkey->baseaddr + PON_PULL_CTL, pm8941_pwrkey_probe() 235 error = devm_request_threaded_irq(&pdev->dev, pwrkey->irq, pm8941_pwrkey_probe() 238 "pm8941_pwrkey", pwrkey); pm8941_pwrkey_probe() 244 error = input_register_device(pwrkey->input); pm8941_pwrkey_probe() 251 pwrkey->reboot_notifier.notifier_call = pm8941_reboot_notify, pm8941_pwrkey_probe() 252 error = register_reboot_notifier(&pwrkey->reboot_notifier); pm8941_pwrkey_probe() 259 platform_set_drvdata(pdev, pwrkey); pm8941_pwrkey_probe() 267 struct pm8941_pwrkey *pwrkey = platform_get_drvdata(pdev); pm8941_pwrkey_remove() local 270 unregister_reboot_notifier(&pwrkey->reboot_notifier); pm8941_pwrkey_remove() 276 { .compatible = "qcom,pm8941-pwrkey" }, 285 .name = "pm8941-pwrkey",
|
H A D | pmic8xxx-pwrkey.c | 80 * struct pmic8xxx_pwrkey - pmic8xxx pwrkey information 113 struct pmic8xxx_pwrkey *pwrkey = dev_get_drvdata(dev); pmic8xxx_pwrkey_suspend() local 116 enable_irq_wake(pwrkey->key_press_irq); pmic8xxx_pwrkey_suspend() 123 struct pmic8xxx_pwrkey *pwrkey = dev_get_drvdata(dev); pmic8xxx_pwrkey_resume() local 126 disable_irq_wake(pwrkey->key_press_irq); pmic8xxx_pwrkey_resume() 136 struct pmic8xxx_pwrkey *pwrkey = platform_get_drvdata(pdev); pmic8xxx_pwrkey_shutdown() local 141 if (pwrkey->shutdown_fn) { pmic8xxx_pwrkey_shutdown() 142 error = pwrkey->shutdown_fn(pwrkey, reset); pmic8xxx_pwrkey_shutdown() 158 regmap_update_bits(pwrkey->regmap, PON_CNTL_1, mask, val); pmic8xxx_pwrkey_shutdown() 288 static int pm8058_pwrkey_shutdown(struct pmic8xxx_pwrkey *pwrkey, bool reset) pm8058_pwrkey_shutdown() argument 291 struct regmap *regmap = pwrkey->regmap; pm8058_pwrkey_shutdown() 328 static int pm8921_pwrkey_shutdown(struct pmic8xxx_pwrkey *pwrkey, bool reset) pm8921_pwrkey_shutdown() argument 330 struct regmap *regmap = pwrkey->regmap; pm8921_pwrkey_shutdown() 349 struct pmic8xxx_pwrkey *pwrkey; pmic8xxx_pwrkey_probe() local 370 pwrkey = devm_kzalloc(&pdev->dev, sizeof(*pwrkey), GFP_KERNEL); pmic8xxx_pwrkey_probe() 371 if (!pwrkey) pmic8xxx_pwrkey_probe() 374 pwrkey->shutdown_fn = of_device_get_match_data(&pdev->dev); pmic8xxx_pwrkey_probe() 375 pwrkey->regmap = regmap; pmic8xxx_pwrkey_probe() 376 pwrkey->key_press_irq = key_press_irq; pmic8xxx_pwrkey_probe() 415 dev_err(&pdev->dev, "Can't get %d IRQ for pwrkey: %d\n", pmic8xxx_pwrkey_probe() 424 dev_err(&pdev->dev, "Can't get %d IRQ for pwrkey: %d\n", pmic8xxx_pwrkey_probe() 435 platform_set_drvdata(pdev, pwrkey); pmic8xxx_pwrkey_probe() 449 { .compatible = "qcom,pm8058-pwrkey", .data = &pm8058_pwrkey_shutdown }, 450 { .compatible = "qcom,pm8921-pwrkey", .data = &pm8921_pwrkey_shutdown }, 460 .name = "pm8xxx-pwrkey",
|
/linux-4.4.14/drivers/input/keyboard/ |
H A D | snvs_pwrkey.c | 147 input->phys = "snvs-pwrkey/input0"; imx_snvs_pwrkey_probe() 206 { .compatible = "fsl,sec-v4.0-pwrkey" },
|
Completed in 240 milliseconds