Lines Matching full:cros_ec

21 	struct cros_ec_device *cros_ec;  member
26 static int cros_ec_hwmon_read_fan_speed(struct cros_ec_device *cros_ec, u8 index, u16 *speed) in cros_ec_hwmon_read_fan_speed() argument
31 ret = cros_ec_cmd_readmem(cros_ec, EC_MEMMAP_FAN + index * 2, 2, &__speed); in cros_ec_hwmon_read_fan_speed()
39 static int cros_ec_hwmon_read_temp(struct cros_ec_device *cros_ec, u8 index, u8 *temp) in cros_ec_hwmon_read_temp() argument
49 ret = cros_ec_cmd_readmem(cros_ec, offset, 1, temp); in cros_ec_hwmon_read_temp()
83 ret = cros_ec_hwmon_read_fan_speed(priv->cros_ec, channel, &speed); in cros_ec_hwmon_read()
91 ret = cros_ec_hwmon_read_fan_speed(priv->cros_ec, channel, &speed); in cros_ec_hwmon_read()
97 ret = cros_ec_hwmon_read_temp(priv->cros_ec, channel, &temp); in cros_ec_hwmon_read()
105 ret = cros_ec_hwmon_read_temp(priv->cros_ec, channel, &temp); in cros_ec_hwmon_read()
203 if (cros_ec_hwmon_read_temp(priv->cros_ec, i, &temp) < 0) in cros_ec_hwmon_probe_temp_sensors()
210 ret = cros_ec_cmd(priv->cros_ec, 0, EC_CMD_TEMP_SENSOR_GET_INFO, in cros_ec_hwmon_probe_temp_sensors()
229 ret = cros_ec_hwmon_read_fan_speed(priv->cros_ec, i, &speed); in cros_ec_hwmon_probe_fans()
239 struct cros_ec_device *cros_ec = ec_dev->ec_dev; in cros_ec_hwmon_probe() local
245 ret = cros_ec_cmd_readmem(cros_ec, EC_MEMMAP_THERMAL_VERSION, 1, &thermal_version); in cros_ec_hwmon_probe()
257 priv->cros_ec = cros_ec; in cros_ec_hwmon_probe()
262 hwmon_dev = devm_hwmon_device_register_with_info(dev, "cros_ec", priv, in cros_ec_hwmon_probe()