Lines Matching full:tacho
99 * @tacho: tachometer data;
109 struct mlxreg_fan_tacho tacho[MLXREG_FAN_MAX_TACHO]; member
124 struct mlxreg_fan_tacho *tacho; in mlxreg_fan_read() local
131 tacho = &fan->tacho[channel]; in mlxreg_fan_read()
138 if (tacho->prsnt && fan->tachos_per_drwr) { in mlxreg_fan_read()
139 err = regmap_read(fan->regmap, tacho->prsnt, ®val); in mlxreg_fan_read()
154 err = regmap_read(fan->regmap, tacho->reg, ®val); in mlxreg_fan_read()
158 if (MLXREG_FAN_GET_FAULT(regval, tacho->mask)) { in mlxreg_fan_read()
169 err = regmap_read(fan->regmap, tacho->reg, ®val); in mlxreg_fan_read()
173 *val = MLXREG_FAN_GET_FAULT(regval, tacho->mask); in mlxreg_fan_read()
250 if (!(((struct mlxreg_fan *)data)->tacho[channel].connected)) in mlxreg_fan_is_visible()
458 if (strnstr(data->label, "tacho", sizeof(data->label))) { in mlxreg_fan_config()
460 dev_err(fan->dev, "too many tacho entries: %s\n", in mlxreg_fan_config()
475 fan->tacho[tacho_num].reg = data->reg; in mlxreg_fan_config()
476 fan->tacho[tacho_num].mask = data->mask; in mlxreg_fan_config()
477 fan->tacho[tacho_num].prsnt = data->reg_prsnt; in mlxreg_fan_config()
478 fan->tacho[tacho_num++].connected = true; in mlxreg_fan_config()