Lines Matching refs:hwmon
31 static void init_pvt(struct as370_hwmon *hwmon) in init_pvt() argument
34 void __iomem *addr = hwmon->base + CTRL; in init_pvt()
50 struct as370_hwmon *hwmon = dev_get_drvdata(dev); in as370_hwmon_read() local
54 val = readl_relaxed(hwmon->base + STS) & BN_MASK; in as370_hwmon_read()
97 struct as370_hwmon *hwmon; in as370_hwmon_probe() local
100 hwmon = devm_kzalloc(dev, sizeof(*hwmon), GFP_KERNEL); in as370_hwmon_probe()
101 if (!hwmon) in as370_hwmon_probe()
104 hwmon->base = devm_platform_ioremap_resource(pdev, 0); in as370_hwmon_probe()
105 if (IS_ERR(hwmon->base)) in as370_hwmon_probe()
106 return PTR_ERR(hwmon->base); in as370_hwmon_probe()
108 init_pvt(hwmon); in as370_hwmon_probe()
112 hwmon, in as370_hwmon_probe()