pwrkey 62 drivers/input/misc/pm8941-pwrkey.c struct pm8941_pwrkey *pwrkey = container_of(nb, struct pm8941_pwrkey, pwrkey 69 drivers/input/misc/pm8941-pwrkey.c if (pwrkey->revision == 0) pwrkey 74 drivers/input/misc/pm8941-pwrkey.c error = regmap_update_bits(pwrkey->regmap, pwrkey 75 drivers/input/misc/pm8941-pwrkey.c pwrkey->baseaddr + enable_reg, pwrkey 79 drivers/input/misc/pm8941-pwrkey.c dev_err(pwrkey->dev, pwrkey 100 drivers/input/misc/pm8941-pwrkey.c error = regmap_update_bits(pwrkey->regmap, pwrkey 101 drivers/input/misc/pm8941-pwrkey.c pwrkey->baseaddr + PON_PS_HOLD_RST_CTL, pwrkey 105 drivers/input/misc/pm8941-pwrkey.c dev_err(pwrkey->dev, "unable to set ps hold reset type: %d\n", pwrkey 108 drivers/input/misc/pm8941-pwrkey.c error = regmap_update_bits(pwrkey->regmap, pwrkey 109 drivers/input/misc/pm8941-pwrkey.c pwrkey->baseaddr + enable_reg, pwrkey 113 drivers/input/misc/pm8941-pwrkey.c dev_err(pwrkey->dev, "unable to re-set enable: %d\n", error); pwrkey 120 drivers/input/misc/pm8941-pwrkey.c struct pm8941_pwrkey *pwrkey = _data; pwrkey 124 drivers/input/misc/pm8941-pwrkey.c error = regmap_read(pwrkey->regmap, pwrkey 125 drivers/input/misc/pm8941-pwrkey.c pwrkey->baseaddr + PON_RT_STS, &sts); pwrkey 129 drivers/input/misc/pm8941-pwrkey.c input_report_key(pwrkey->input, pwrkey->code, pwrkey 130 drivers/input/misc/pm8941-pwrkey.c sts & pwrkey->data->status_bit); pwrkey 131 drivers/input/misc/pm8941-pwrkey.c input_sync(pwrkey->input); pwrkey 138 drivers/input/misc/pm8941-pwrkey.c struct pm8941_pwrkey *pwrkey = dev_get_drvdata(dev); pwrkey 141 drivers/input/misc/pm8941-pwrkey.c enable_irq_wake(pwrkey->irq); pwrkey 148 drivers/input/misc/pm8941-pwrkey.c struct pm8941_pwrkey *pwrkey = dev_get_drvdata(dev); pwrkey 151 drivers/input/misc/pm8941-pwrkey.c disable_irq_wake(pwrkey->irq); pwrkey 161 drivers/input/misc/pm8941-pwrkey.c struct pm8941_pwrkey *pwrkey; pwrkey 177 drivers/input/misc/pm8941-pwrkey.c pwrkey = devm_kzalloc(&pdev->dev, sizeof(*pwrkey), GFP_KERNEL); pwrkey 178 drivers/input/misc/pm8941-pwrkey.c if (!pwrkey) pwrkey 181 drivers/input/misc/pm8941-pwrkey.c pwrkey->dev = &pdev->dev; pwrkey 182 drivers/input/misc/pm8941-pwrkey.c pwrkey->data = of_device_get_match_data(&pdev->dev); pwrkey 185 drivers/input/misc/pm8941-pwrkey.c pwrkey->regmap = dev_get_regmap(parent, NULL); pwrkey 186 drivers/input/misc/pm8941-pwrkey.c if (!pwrkey->regmap) { pwrkey 192 drivers/input/misc/pm8941-pwrkey.c pwrkey->regmap = dev_get_regmap(parent->parent, NULL); pwrkey 193 drivers/input/misc/pm8941-pwrkey.c if (!pwrkey->regmap) { pwrkey 199 drivers/input/misc/pm8941-pwrkey.c "reg", &pwrkey->baseaddr); pwrkey 202 drivers/input/misc/pm8941-pwrkey.c &pwrkey->baseaddr); pwrkey 207 drivers/input/misc/pm8941-pwrkey.c pwrkey->irq = platform_get_irq(pdev, 0); pwrkey 208 drivers/input/misc/pm8941-pwrkey.c if (pwrkey->irq < 0) pwrkey 209 drivers/input/misc/pm8941-pwrkey.c return pwrkey->irq; pwrkey 211 drivers/input/misc/pm8941-pwrkey.c error = regmap_read(pwrkey->regmap, pwrkey->baseaddr + PON_REV2, pwrkey 212 drivers/input/misc/pm8941-pwrkey.c &pwrkey->revision); pwrkey 219 drivers/input/misc/pm8941-pwrkey.c &pwrkey->code); pwrkey 223 drivers/input/misc/pm8941-pwrkey.c pwrkey->code = KEY_POWER; pwrkey 226 drivers/input/misc/pm8941-pwrkey.c pwrkey->input = devm_input_allocate_device(&pdev->dev); pwrkey 227 drivers/input/misc/pm8941-pwrkey.c if (!pwrkey->input) { pwrkey 232 drivers/input/misc/pm8941-pwrkey.c input_set_capability(pwrkey->input, EV_KEY, pwrkey->code); pwrkey 234 drivers/input/misc/pm8941-pwrkey.c pwrkey->input->name = "pm8941_pwrkey"; pwrkey 235 drivers/input/misc/pm8941-pwrkey.c pwrkey->input->phys = "pm8941_pwrkey/input0"; pwrkey 240 drivers/input/misc/pm8941-pwrkey.c error = regmap_update_bits(pwrkey->regmap, pwrkey 241 drivers/input/misc/pm8941-pwrkey.c pwrkey->baseaddr + PON_DBC_CTL, pwrkey 249 drivers/input/misc/pm8941-pwrkey.c error = regmap_update_bits(pwrkey->regmap, pwrkey 250 drivers/input/misc/pm8941-pwrkey.c pwrkey->baseaddr + PON_PULL_CTL, pwrkey 251 drivers/input/misc/pm8941-pwrkey.c pwrkey->data->pull_up_bit, pwrkey 252 drivers/input/misc/pm8941-pwrkey.c pull_up ? pwrkey->data->pull_up_bit : 0); pwrkey 258 drivers/input/misc/pm8941-pwrkey.c error = devm_request_threaded_irq(&pdev->dev, pwrkey->irq, pwrkey 261 drivers/input/misc/pm8941-pwrkey.c "pm8941_pwrkey", pwrkey); pwrkey 267 drivers/input/misc/pm8941-pwrkey.c error = input_register_device(pwrkey->input); pwrkey 274 drivers/input/misc/pm8941-pwrkey.c pwrkey->reboot_notifier.notifier_call = pm8941_reboot_notify, pwrkey 275 drivers/input/misc/pm8941-pwrkey.c error = register_reboot_notifier(&pwrkey->reboot_notifier); pwrkey 282 drivers/input/misc/pm8941-pwrkey.c platform_set_drvdata(pdev, pwrkey); pwrkey 290 drivers/input/misc/pm8941-pwrkey.c struct pm8941_pwrkey *pwrkey = platform_get_drvdata(pdev); pwrkey 292 drivers/input/misc/pm8941-pwrkey.c unregister_reboot_notifier(&pwrkey->reboot_notifier); pwrkey 105 drivers/input/misc/pmic8xxx-pwrkey.c struct pmic8xxx_pwrkey *pwrkey = dev_get_drvdata(dev); pwrkey 108 drivers/input/misc/pmic8xxx-pwrkey.c enable_irq_wake(pwrkey->key_press_irq); pwrkey 115 drivers/input/misc/pmic8xxx-pwrkey.c struct pmic8xxx_pwrkey *pwrkey = dev_get_drvdata(dev); pwrkey 118 drivers/input/misc/pmic8xxx-pwrkey.c disable_irq_wake(pwrkey->key_press_irq); pwrkey 128 drivers/input/misc/pmic8xxx-pwrkey.c struct pmic8xxx_pwrkey *pwrkey = platform_get_drvdata(pdev); pwrkey 133 drivers/input/misc/pmic8xxx-pwrkey.c if (pwrkey->shutdown_fn) { pwrkey 134 drivers/input/misc/pmic8xxx-pwrkey.c error = pwrkey->shutdown_fn(pwrkey, reset); pwrkey 150 drivers/input/misc/pmic8xxx-pwrkey.c regmap_update_bits(pwrkey->regmap, PON_CNTL_1, mask, val); pwrkey 280 drivers/input/misc/pmic8xxx-pwrkey.c static int pm8058_pwrkey_shutdown(struct pmic8xxx_pwrkey *pwrkey, bool reset) pwrkey 283 drivers/input/misc/pmic8xxx-pwrkey.c struct regmap *regmap = pwrkey->regmap; pwrkey 320 drivers/input/misc/pmic8xxx-pwrkey.c static int pm8921_pwrkey_shutdown(struct pmic8xxx_pwrkey *pwrkey, bool reset) pwrkey 322 drivers/input/misc/pmic8xxx-pwrkey.c struct regmap *regmap = pwrkey->regmap; pwrkey 341 drivers/input/misc/pmic8xxx-pwrkey.c struct pmic8xxx_pwrkey *pwrkey; pwrkey 362 drivers/input/misc/pmic8xxx-pwrkey.c pwrkey = devm_kzalloc(&pdev->dev, sizeof(*pwrkey), GFP_KERNEL); pwrkey 363 drivers/input/misc/pmic8xxx-pwrkey.c if (!pwrkey) pwrkey 366 drivers/input/misc/pmic8xxx-pwrkey.c pwrkey->shutdown_fn = of_device_get_match_data(&pdev->dev); pwrkey 367 drivers/input/misc/pmic8xxx-pwrkey.c pwrkey->regmap = regmap; pwrkey 368 drivers/input/misc/pmic8xxx-pwrkey.c pwrkey->key_press_irq = key_press_irq; pwrkey 427 drivers/input/misc/pmic8xxx-pwrkey.c platform_set_drvdata(pdev, pwrkey);