axp20x 281 drivers/acpi/pmic/intel_pmic_xpower.c struct axp20x_dev *axp20x = dev_get_drvdata(parent); axp20x 292 drivers/acpi/pmic/intel_pmic_xpower.c ACPI_HANDLE(parent), axp20x->regmap, axp20x 328 drivers/extcon/extcon-axp288.c struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); axp20x 338 drivers/extcon/extcon-axp288.c info->regmap = axp20x->regmap; axp20x 339 drivers/extcon/extcon-axp288.c info->regmap_irqc = axp20x->regmap_irqc; axp20x 252 drivers/iio/adc/axp288_adc.c struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); axp20x 263 drivers/iio/adc/axp288_adc.c info->regmap = axp20x->regmap; axp20x 40 drivers/input/misc/axp20x-pek.c struct axp20x_dev *axp20x; axp20x 95 drivers/input/misc/axp20x-pek.c ret = regmap_read(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY, &val); axp20x 166 drivers/input/misc/axp20x-pek.c ret = regmap_update_bits(axp20x_pek->axp20x->regmap, AXP20X_PEK_KEY, axp20x 203 drivers/input/misc/axp20x-pek.c ATTRIBUTE_GROUPS(axp20x); axp20x 227 drivers/input/misc/axp20x-pek.c struct axp20x_dev *axp20x = axp20x_pek->axp20x; axp20x 234 drivers/input/misc/axp20x-pek.c axp20x_pek->irq_dbr = regmap_irq_get_virq(axp20x->regmap_irqc, axp20x 240 drivers/input/misc/axp20x-pek.c axp20x_pek->irq_dbf = regmap_irq_get_virq(axp20x->regmap_irqc, axp20x 282 drivers/input/misc/axp20x-pek.c if (axp20x_pek->axp20x->variant == AXP288_ID) axp20x 296 drivers/input/misc/axp20x-pek.c axp20x_pek->axp20x->variant == AXP288_ID) { axp20x 340 drivers/input/misc/axp20x-pek.c axp20x_pek->axp20x = dev_get_drvdata(pdev->dev.parent); axp20x 359 drivers/input/misc/axp20x-pek.c if (axp20x_pek->axp20x->variant != AXP288_ID) axp20x 366 drivers/input/misc/axp20x-pek.c regmap_write(axp20x_pek->axp20x->regmap, axp20x 28 drivers/mfd/axp20x-i2c.c struct axp20x_dev *axp20x; axp20x 31 drivers/mfd/axp20x-i2c.c axp20x = devm_kzalloc(&i2c->dev, sizeof(*axp20x), GFP_KERNEL); axp20x 32 drivers/mfd/axp20x-i2c.c if (!axp20x) axp20x 35 drivers/mfd/axp20x-i2c.c axp20x->dev = &i2c->dev; axp20x 36 drivers/mfd/axp20x-i2c.c axp20x->irq = i2c->irq; axp20x 37 drivers/mfd/axp20x-i2c.c dev_set_drvdata(axp20x->dev, axp20x); axp20x 39 drivers/mfd/axp20x-i2c.c ret = axp20x_match_device(axp20x); axp20x 43 drivers/mfd/axp20x-i2c.c axp20x->regmap = devm_regmap_init_i2c(i2c, axp20x->regmap_cfg); axp20x 44 drivers/mfd/axp20x-i2c.c if (IS_ERR(axp20x->regmap)) { axp20x 45 drivers/mfd/axp20x-i2c.c ret = PTR_ERR(axp20x->regmap); axp20x 50 drivers/mfd/axp20x-i2c.c return axp20x_device_probe(axp20x); axp20x 55 drivers/mfd/axp20x-i2c.c struct axp20x_dev *axp20x = i2c_get_clientdata(i2c); axp20x 57 drivers/mfd/axp20x-i2c.c return axp20x_device_remove(axp20x); axp20x 27 drivers/mfd/axp20x-rsb.c struct axp20x_dev *axp20x; axp20x 30 drivers/mfd/axp20x-rsb.c axp20x = devm_kzalloc(&rdev->dev, sizeof(*axp20x), GFP_KERNEL); axp20x 31 drivers/mfd/axp20x-rsb.c if (!axp20x) axp20x 34 drivers/mfd/axp20x-rsb.c axp20x->dev = &rdev->dev; axp20x 35 drivers/mfd/axp20x-rsb.c axp20x->irq = rdev->irq; axp20x 36 drivers/mfd/axp20x-rsb.c dev_set_drvdata(&rdev->dev, axp20x); axp20x 38 drivers/mfd/axp20x-rsb.c ret = axp20x_match_device(axp20x); axp20x 42 drivers/mfd/axp20x-rsb.c axp20x->regmap = devm_regmap_init_sunxi_rsb(rdev, axp20x->regmap_cfg); axp20x 43 drivers/mfd/axp20x-rsb.c if (IS_ERR(axp20x->regmap)) { axp20x 44 drivers/mfd/axp20x-rsb.c ret = PTR_ERR(axp20x->regmap); axp20x 49 drivers/mfd/axp20x-rsb.c return axp20x_device_probe(axp20x); axp20x 54 drivers/mfd/axp20x-rsb.c struct axp20x_dev *axp20x = sunxi_rsb_device_get_drvdata(rdev); axp20x 56 drivers/mfd/axp20x-rsb.c return axp20x_device_remove(axp20x); axp20x 825 drivers/mfd/axp20x.c int axp20x_match_device(struct axp20x_dev *axp20x) axp20x 827 drivers/mfd/axp20x.c struct device *dev = axp20x->dev; axp20x 837 drivers/mfd/axp20x.c axp20x->variant = (long)of_id->data; axp20x 844 drivers/mfd/axp20x.c axp20x->variant = (long)acpi_id->driver_data; axp20x 847 drivers/mfd/axp20x.c switch (axp20x->variant) { axp20x 849 drivers/mfd/axp20x.c axp20x->nr_cells = ARRAY_SIZE(axp152_cells); axp20x 850 drivers/mfd/axp20x.c axp20x->cells = axp152_cells; axp20x 851 drivers/mfd/axp20x.c axp20x->regmap_cfg = &axp152_regmap_config; axp20x 852 drivers/mfd/axp20x.c axp20x->regmap_irq_chip = &axp152_regmap_irq_chip; axp20x 856 drivers/mfd/axp20x.c axp20x->nr_cells = ARRAY_SIZE(axp20x_cells); axp20x 857 drivers/mfd/axp20x.c axp20x->cells = axp20x_cells; axp20x 858 drivers/mfd/axp20x.c axp20x->regmap_cfg = &axp20x_regmap_config; axp20x 859 drivers/mfd/axp20x.c axp20x->regmap_irq_chip = &axp20x_regmap_irq_chip; axp20x 862 drivers/mfd/axp20x.c axp20x->nr_cells = ARRAY_SIZE(axp221_cells); axp20x 863 drivers/mfd/axp20x.c axp20x->cells = axp221_cells; axp20x 864 drivers/mfd/axp20x.c axp20x->regmap_cfg = &axp22x_regmap_config; axp20x 865 drivers/mfd/axp20x.c axp20x->regmap_irq_chip = &axp22x_regmap_irq_chip; axp20x 868 drivers/mfd/axp20x.c axp20x->nr_cells = ARRAY_SIZE(axp223_cells); axp20x 869 drivers/mfd/axp20x.c axp20x->cells = axp223_cells; axp20x 870 drivers/mfd/axp20x.c axp20x->regmap_cfg = &axp22x_regmap_config; axp20x 871 drivers/mfd/axp20x.c axp20x->regmap_irq_chip = &axp22x_regmap_irq_chip; axp20x 874 drivers/mfd/axp20x.c axp20x->cells = axp288_cells; axp20x 875 drivers/mfd/axp20x.c axp20x->nr_cells = ARRAY_SIZE(axp288_cells); axp20x 876 drivers/mfd/axp20x.c axp20x->regmap_cfg = &axp288_regmap_config; axp20x 877 drivers/mfd/axp20x.c axp20x->regmap_irq_chip = &axp288_regmap_irq_chip; axp20x 878 drivers/mfd/axp20x.c axp20x->irq_flags = IRQF_TRIGGER_LOW; axp20x 881 drivers/mfd/axp20x.c axp20x->nr_cells = ARRAY_SIZE(axp803_cells); axp20x 882 drivers/mfd/axp20x.c axp20x->cells = axp803_cells; axp20x 883 drivers/mfd/axp20x.c axp20x->regmap_cfg = &axp288_regmap_config; axp20x 884 drivers/mfd/axp20x.c axp20x->regmap_irq_chip = &axp803_regmap_irq_chip; axp20x 887 drivers/mfd/axp20x.c if (of_property_read_bool(axp20x->dev->of_node, axp20x 889 drivers/mfd/axp20x.c axp20x->nr_cells = ARRAY_SIZE(axp806_self_working_cells); axp20x 890 drivers/mfd/axp20x.c axp20x->cells = axp806_self_working_cells; axp20x 892 drivers/mfd/axp20x.c axp20x->nr_cells = ARRAY_SIZE(axp806_cells); axp20x 893 drivers/mfd/axp20x.c axp20x->cells = axp806_cells; axp20x 895 drivers/mfd/axp20x.c axp20x->regmap_cfg = &axp806_regmap_config; axp20x 896 drivers/mfd/axp20x.c axp20x->regmap_irq_chip = &axp806_regmap_irq_chip; axp20x 899 drivers/mfd/axp20x.c axp20x->nr_cells = ARRAY_SIZE(axp809_cells); axp20x 900 drivers/mfd/axp20x.c axp20x->cells = axp809_cells; axp20x 901 drivers/mfd/axp20x.c axp20x->regmap_cfg = &axp22x_regmap_config; axp20x 902 drivers/mfd/axp20x.c axp20x->regmap_irq_chip = &axp809_regmap_irq_chip; axp20x 905 drivers/mfd/axp20x.c axp20x->nr_cells = ARRAY_SIZE(axp813_cells); axp20x 906 drivers/mfd/axp20x.c axp20x->cells = axp813_cells; axp20x 907 drivers/mfd/axp20x.c axp20x->regmap_cfg = &axp288_regmap_config; axp20x 915 drivers/mfd/axp20x.c axp20x->regmap_irq_chip = &axp803_regmap_irq_chip; axp20x 918 drivers/mfd/axp20x.c dev_err(dev, "unsupported AXP20X ID %lu\n", axp20x->variant); axp20x 922 drivers/mfd/axp20x.c axp20x_model_names[axp20x->variant]); axp20x 928 drivers/mfd/axp20x.c int axp20x_device_probe(struct axp20x_dev *axp20x) axp20x 950 drivers/mfd/axp20x.c if (axp20x->variant == AXP806_ID) { axp20x 951 drivers/mfd/axp20x.c if (of_property_read_bool(axp20x->dev->of_node, axp20x 953 drivers/mfd/axp20x.c of_property_read_bool(axp20x->dev->of_node, axp20x 955 drivers/mfd/axp20x.c regmap_write(axp20x->regmap, AXP806_REG_ADDR_EXT, axp20x 958 drivers/mfd/axp20x.c regmap_write(axp20x->regmap, AXP806_REG_ADDR_EXT, axp20x 962 drivers/mfd/axp20x.c ret = regmap_add_irq_chip(axp20x->regmap, axp20x->irq, axp20x 963 drivers/mfd/axp20x.c IRQF_ONESHOT | IRQF_SHARED | axp20x->irq_flags, axp20x 964 drivers/mfd/axp20x.c -1, axp20x->regmap_irq_chip, &axp20x->regmap_irqc); axp20x 966 drivers/mfd/axp20x.c dev_err(axp20x->dev, "failed to add irq chip: %d\n", ret); axp20x 970 drivers/mfd/axp20x.c ret = mfd_add_devices(axp20x->dev, -1, axp20x->cells, axp20x 971 drivers/mfd/axp20x.c axp20x->nr_cells, NULL, 0, NULL); axp20x 974 drivers/mfd/axp20x.c dev_err(axp20x->dev, "failed to add MFD devices: %d\n", ret); axp20x 975 drivers/mfd/axp20x.c regmap_del_irq_chip(axp20x->irq, axp20x->regmap_irqc); axp20x 980 drivers/mfd/axp20x.c axp20x_pm_power_off = axp20x; axp20x 984 drivers/mfd/axp20x.c dev_info(axp20x->dev, "AXP20X driver loaded\n"); axp20x 990 drivers/mfd/axp20x.c int axp20x_device_remove(struct axp20x_dev *axp20x) axp20x 992 drivers/mfd/axp20x.c if (axp20x == axp20x_pm_power_off) { axp20x 997 drivers/mfd/axp20x.c mfd_remove_devices(axp20x->dev); axp20x 998 drivers/mfd/axp20x.c regmap_del_irq_chip(axp20x->irq, axp20x->regmap_irqc); axp20x 395 drivers/pinctrl/pinctrl-axp209.c struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); axp20x 404 drivers/pinctrl/pinctrl-axp209.c if (!axp20x) { axp20x 430 drivers/pinctrl/pinctrl-axp209.c pctl->regmap = axp20x->regmap; axp20x 264 drivers/power/supply/axp20x_ac_power.c struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); axp20x 275 drivers/power/supply/axp20x_ac_power.c if (!axp20x) { axp20x 324 drivers/power/supply/axp20x_ac_power.c irq = regmap_irq_get_virq(axp20x->regmap_irqc, irq); axp20x 439 drivers/power/supply/axp20x_usb_power.c struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); axp20x 453 drivers/power/supply/axp20x_usb_power.c if (!axp20x) { axp20x 467 drivers/power/supply/axp20x_usb_power.c power->regmap = axp20x->regmap; axp20x 494 drivers/power/supply/axp20x_usb_power.c axp20x->variant); axp20x 514 drivers/power/supply/axp20x_usb_power.c irq = regmap_irq_get_virq(axp20x->regmap_irqc, irq); axp20x 796 drivers/power/supply/axp288_charger.c struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); axp20x 804 drivers/power/supply/axp288_charger.c ret = regmap_read(axp20x->regmap, AXP20X_CC_CTRL, &val); axp20x 815 drivers/power/supply/axp288_charger.c info->regmap = axp20x->regmap; axp20x 816 drivers/power/supply/axp288_charger.c info->regmap_irqc = axp20x->regmap_irqc; axp20x 743 drivers/power/supply/axp288_fuel_gauge.c struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); axp20x 762 drivers/power/supply/axp288_fuel_gauge.c ret = regmap_read(axp20x->regmap, AXP20X_CC_CTRL, &val); axp20x 773 drivers/power/supply/axp288_fuel_gauge.c info->regmap = axp20x->regmap; axp20x 774 drivers/power/supply/axp288_fuel_gauge.c info->regmap_irqc = axp20x->regmap_irqc; axp20x 369 drivers/regulator/axp20x-regulator.c struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); axp20x 375 drivers/regulator/axp20x-regulator.c switch (axp20x->variant) { axp20x 426 drivers/regulator/axp20x-regulator.c dev_err(axp20x->dev, "unsupported ramp value %d", ramp); axp20x 433 drivers/regulator/axp20x-regulator.c return regmap_update_bits(axp20x->regmap, reg, mask, cfg); axp20x 438 drivers/regulator/axp20x-regulator.c struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); axp20x 441 drivers/regulator/axp20x-regulator.c switch (axp20x->variant) { axp20x 1007 drivers/regulator/axp20x-regulator.c struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); axp20x 1011 drivers/regulator/axp20x-regulator.c switch (axp20x->variant) { axp20x 1033 drivers/regulator/axp20x-regulator.c if (axp20x->variant == AXP806_ID) axp20x 1067 drivers/regulator/axp20x-regulator.c return regmap_update_bits(axp20x->regmap, reg, axp20x 1100 drivers/regulator/axp20x-regulator.c struct axp20x_dev *axp20x = rdev_get_drvdata(rdev); axp20x 1104 drivers/regulator/axp20x-regulator.c switch (axp20x->variant) { axp20x 1163 drivers/regulator/axp20x-regulator.c static bool axp20x_is_polyphase_slave(struct axp20x_dev *axp20x, int id) axp20x 1171 drivers/regulator/axp20x-regulator.c switch (axp20x->variant) { axp20x 1174 drivers/regulator/axp20x-regulator.c regmap_read(axp20x->regmap, AXP803_POLYPHASE_CTRL, ®); axp20x 1185 drivers/regulator/axp20x-regulator.c regmap_read(axp20x->regmap, AXP806_DCDC_MODE_CTRL2, ®); axp20x 1211 drivers/regulator/axp20x-regulator.c struct axp20x_dev *axp20x = dev_get_drvdata(pdev->dev.parent); axp20x 1215 drivers/regulator/axp20x-regulator.c .regmap = axp20x->regmap, axp20x 1216 drivers/regulator/axp20x-regulator.c .driver_data = axp20x, axp20x 1224 drivers/regulator/axp20x-regulator.c switch (axp20x->variant) { axp20x 1259 drivers/regulator/axp20x-regulator.c axp20x->variant); axp20x 1275 drivers/regulator/axp20x-regulator.c if (axp20x_is_polyphase_slave(axp20x, i)) axp20x 1279 drivers/regulator/axp20x-regulator.c if (axp20x->variant == AXP813_ID && i == AXP813_FLDO3) axp20x 1351 drivers/regulator/axp20x-regulator.c regmap_update_bits(axp20x->regmap, AXP20X_OVER_TMP, axp20x 679 include/linux/mfd/axp20x.h int axp20x_match_device(struct axp20x_dev *axp20x); axp20x 690 include/linux/mfd/axp20x.h int axp20x_device_probe(struct axp20x_dev *axp20x); axp20x 699 include/linux/mfd/axp20x.h int axp20x_device_remove(struct axp20x_dev *axp20x);