axp20x_pek         91 drivers/input/misc/axp20x-pek.c 	struct axp20x_pek *axp20x_pek = dev_get_drvdata(dev);
axp20x_pek         95 drivers/input/misc/axp20x-pek.c 	ret = regmap_read(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY, &val);
axp20x_pek        113 drivers/input/misc/axp20x-pek.c 	struct axp20x_pek *axp20x_pek = dev_get_drvdata(dev);
axp20x_pek        115 drivers/input/misc/axp20x-pek.c 	return axp20x_show_attr(dev, axp20x_pek->info->startup_time,
axp20x_pek        116 drivers/input/misc/axp20x-pek.c 				axp20x_pek->info->startup_mask, buf);
axp20x_pek        123 drivers/input/misc/axp20x-pek.c 	struct axp20x_pek *axp20x_pek = dev_get_drvdata(dev);
axp20x_pek        125 drivers/input/misc/axp20x-pek.c 	return axp20x_show_attr(dev, axp20x_pek->info->shutdown_time,
axp20x_pek        126 drivers/input/misc/axp20x-pek.c 				axp20x_pek->info->shutdown_mask, buf);
axp20x_pek        134 drivers/input/misc/axp20x-pek.c 	struct axp20x_pek *axp20x_pek = dev_get_drvdata(dev);
axp20x_pek        166 drivers/input/misc/axp20x-pek.c 	ret = regmap_update_bits(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY,
axp20x_pek        178 drivers/input/misc/axp20x-pek.c 	struct axp20x_pek *axp20x_pek = dev_get_drvdata(dev);
axp20x_pek        180 drivers/input/misc/axp20x-pek.c 	return axp20x_store_attr(dev, axp20x_pek->info->startup_time,
axp20x_pek        181 drivers/input/misc/axp20x-pek.c 				 axp20x_pek->info->startup_mask, buf, count);
axp20x_pek        188 drivers/input/misc/axp20x-pek.c 	struct axp20x_pek *axp20x_pek = dev_get_drvdata(dev);
axp20x_pek        190 drivers/input/misc/axp20x-pek.c 	return axp20x_store_attr(dev, axp20x_pek->info->shutdown_time,
axp20x_pek        191 drivers/input/misc/axp20x-pek.c 				 axp20x_pek->info->shutdown_mask, buf, count);
axp20x_pek        208 drivers/input/misc/axp20x-pek.c 	struct axp20x_pek *axp20x_pek = input_get_drvdata(idev);
axp20x_pek        214 drivers/input/misc/axp20x-pek.c 	if (irq == axp20x_pek->irq_dbf)
axp20x_pek        216 drivers/input/misc/axp20x-pek.c 	else if (irq == axp20x_pek->irq_dbr)
axp20x_pek        224 drivers/input/misc/axp20x-pek.c static int axp20x_pek_probe_input_device(struct axp20x_pek *axp20x_pek,
axp20x_pek        227 drivers/input/misc/axp20x-pek.c 	struct axp20x_dev *axp20x = axp20x_pek->axp20x;
axp20x_pek        231 drivers/input/misc/axp20x-pek.c 	axp20x_pek->irq_dbr = platform_get_irq_byname(pdev, "PEK_DBR");
axp20x_pek        232 drivers/input/misc/axp20x-pek.c 	if (axp20x_pek->irq_dbr < 0)
axp20x_pek        233 drivers/input/misc/axp20x-pek.c 		return axp20x_pek->irq_dbr;
axp20x_pek        234 drivers/input/misc/axp20x-pek.c 	axp20x_pek->irq_dbr = regmap_irq_get_virq(axp20x->regmap_irqc,
axp20x_pek        235 drivers/input/misc/axp20x-pek.c 						  axp20x_pek->irq_dbr);
axp20x_pek        237 drivers/input/misc/axp20x-pek.c 	axp20x_pek->irq_dbf = platform_get_irq_byname(pdev, "PEK_DBF");
axp20x_pek        238 drivers/input/misc/axp20x-pek.c 	if (axp20x_pek->irq_dbf < 0)
axp20x_pek        239 drivers/input/misc/axp20x-pek.c 		return axp20x_pek->irq_dbf;
axp20x_pek        240 drivers/input/misc/axp20x-pek.c 	axp20x_pek->irq_dbf = regmap_irq_get_virq(axp20x->regmap_irqc,
axp20x_pek        241 drivers/input/misc/axp20x-pek.c 						  axp20x_pek->irq_dbf);
axp20x_pek        243 drivers/input/misc/axp20x-pek.c 	axp20x_pek->input = devm_input_allocate_device(&pdev->dev);
axp20x_pek        244 drivers/input/misc/axp20x-pek.c 	if (!axp20x_pek->input)
axp20x_pek        247 drivers/input/misc/axp20x-pek.c 	idev = axp20x_pek->input;
axp20x_pek        255 drivers/input/misc/axp20x-pek.c 	input_set_drvdata(idev, axp20x_pek);
axp20x_pek        257 drivers/input/misc/axp20x-pek.c 	error = devm_request_any_context_irq(&pdev->dev, axp20x_pek->irq_dbr,
axp20x_pek        262 drivers/input/misc/axp20x-pek.c 			axp20x_pek->irq_dbr, error);
axp20x_pek        266 drivers/input/misc/axp20x-pek.c 	error = devm_request_any_context_irq(&pdev->dev, axp20x_pek->irq_dbf,
axp20x_pek        271 drivers/input/misc/axp20x-pek.c 			axp20x_pek->irq_dbf, error);
axp20x_pek        282 drivers/input/misc/axp20x-pek.c 	if (axp20x_pek->axp20x->variant == AXP288_ID)
axp20x_pek        283 drivers/input/misc/axp20x-pek.c 		enable_irq_wake(axp20x_pek->irq_dbr);
axp20x_pek        289 drivers/input/misc/axp20x-pek.c static bool axp20x_pek_should_register_input(struct axp20x_pek *axp20x_pek,
axp20x_pek        296 drivers/input/misc/axp20x-pek.c 	    axp20x_pek->axp20x->variant == AXP288_ID) {
axp20x_pek        317 drivers/input/misc/axp20x-pek.c static bool axp20x_pek_should_register_input(struct axp20x_pek *axp20x_pek,
axp20x_pek        326 drivers/input/misc/axp20x-pek.c 	struct axp20x_pek *axp20x_pek;
axp20x_pek        335 drivers/input/misc/axp20x-pek.c 	axp20x_pek = devm_kzalloc(&pdev->dev, sizeof(struct axp20x_pek),
axp20x_pek        337 drivers/input/misc/axp20x-pek.c 	if (!axp20x_pek)
axp20x_pek        340 drivers/input/misc/axp20x-pek.c 	axp20x_pek->axp20x = dev_get_drvdata(pdev->dev.parent);
axp20x_pek        342 drivers/input/misc/axp20x-pek.c 	if (axp20x_pek_should_register_input(axp20x_pek, pdev)) {
axp20x_pek        343 drivers/input/misc/axp20x-pek.c 		error = axp20x_pek_probe_input_device(axp20x_pek, pdev);
axp20x_pek        348 drivers/input/misc/axp20x-pek.c 	axp20x_pek->info = (struct axp20x_info *)match->driver_data;
axp20x_pek        350 drivers/input/misc/axp20x-pek.c 	platform_set_drvdata(pdev, axp20x_pek);
axp20x_pek        357 drivers/input/misc/axp20x-pek.c 	struct axp20x_pek *axp20x_pek = dev_get_drvdata(dev);
axp20x_pek        359 drivers/input/misc/axp20x-pek.c 	if (axp20x_pek->axp20x->variant != AXP288_ID)
axp20x_pek        366 drivers/input/misc/axp20x-pek.c 	regmap_write(axp20x_pek->axp20x->regmap,