Lines Matching defs:regmap
12 #include <linux/regmap.h>
188 static int intel_crc_pmic_get_power(struct regmap *regmap, int reg,
193 if (regmap_read(regmap, reg, &data))
200 static int intel_crc_pmic_update_power(struct regmap *regmap, int reg,
205 if (regmap_read(regmap, reg, &data))
215 if (regmap_write(regmap, reg, data))
220 static int intel_crc_pmic_get_raw_temp(struct regmap *regmap, int reg)
228 if (regmap_read(regmap, reg, &temp_l) ||
229 regmap_read(regmap, reg - 1, &temp_h))
235 static int intel_crc_pmic_update_aux(struct regmap *regmap, int reg, int raw)
237 return regmap_write(regmap, reg, raw) ||
238 regmap_update_bits(regmap, reg - 1, 0x3, raw >> 8) ? -EIO : 0;
241 static int intel_crc_pmic_get_policy(struct regmap *regmap,
246 if (regmap_read(regmap, reg, &pen))
252 static int intel_crc_pmic_update_policy(struct regmap *regmap,
258 if (regmap_read(regmap, PMIC_A0LOCK_REG, &alert0))
261 if (regmap_update_bits(regmap, PMIC_A0LOCK_REG, 0x01, 0))
264 if (regmap_update_bits(regmap, reg, 0x80, enable << 7))
268 if (regmap_write(regmap, PMIC_A0LOCK_REG, alert0))
291 ACPI_HANDLE(pdev->dev.parent), pmic->regmap,