Lines Matching full:misc
3 * Ampere Computing SoC's SMpro Misc Driver
27 struct smpro_misc *misc = dev_get_drvdata(dev); in boot_progress_show() local
37 ret = regmap_read(misc->regmap, CUR_BOOTSTAGE, ®); in boot_progress_show()
43 ret = regmap_read(misc->regmap, BOOTSTAGE, &bootstage); in boot_progress_show()
52 ret = regmap_read(misc->regmap, BOOTSTAGE_LO, ®_lo); in boot_progress_show()
54 ret = regmap_read(misc->regmap, BOOTSTAGE_HI, ®); in boot_progress_show()
60 ret = regmap_write(misc->regmap, BOOTSTAGE, ((bootstage & 0xff00) | 0x1)); in boot_progress_show()
76 struct smpro_misc *misc = dev_get_drvdata(dev); in soc_power_limit_show() local
80 ret = regmap_read(misc->regmap, SOC_POWER_LIMIT, &value); in soc_power_limit_show()
90 struct smpro_misc *misc = dev_get_drvdata(dev); in soc_power_limit_store() local
98 ret = regmap_write(misc->regmap, SOC_POWER_LIMIT, (unsigned int)val); in soc_power_limit_store()
117 struct smpro_misc *misc; in smpro_misc_probe() local
119 misc = devm_kzalloc(&pdev->dev, sizeof(struct smpro_misc), GFP_KERNEL); in smpro_misc_probe()
120 if (!misc) in smpro_misc_probe()
123 platform_set_drvdata(pdev, misc); in smpro_misc_probe()
125 misc->regmap = dev_get_regmap(pdev->dev.parent, NULL); in smpro_misc_probe()
126 if (!misc->regmap) in smpro_misc_probe()
135 .name = "smpro-misc",
144 MODULE_DESCRIPTION("Ampere Altra SMpro Misc driver");