Lines Matching refs:tacho
107 struct mlxreg_fan_tacho tacho[MLXREG_FAN_MAX_TACHO]; member
121 struct mlxreg_fan_tacho *tacho; in mlxreg_fan_read() local
127 tacho = &fan->tacho[channel]; in mlxreg_fan_read()
134 if (tacho->prsnt && fan->tachos_per_drwr) { in mlxreg_fan_read()
135 err = regmap_read(fan->regmap, tacho->prsnt, ®val); in mlxreg_fan_read()
150 err = regmap_read(fan->regmap, tacho->reg, ®val); in mlxreg_fan_read()
154 if (MLXREG_FAN_GET_FAULT(regval, tacho->mask)) { in mlxreg_fan_read()
165 err = regmap_read(fan->regmap, tacho->reg, ®val); in mlxreg_fan_read()
169 *val = MLXREG_FAN_GET_FAULT(regval, tacho->mask); in mlxreg_fan_read()
231 if (!(((struct mlxreg_fan *)data)->tacho[channel].connected)) in mlxreg_fan_is_visible()
452 fan->tacho[tacho_num].reg = data->reg; in mlxreg_fan_config()
453 fan->tacho[tacho_num].mask = data->mask; in mlxreg_fan_config()
454 fan->tacho[tacho_num].prsnt = data->reg_prsnt; in mlxreg_fan_config()
455 fan->tacho[tacho_num++].connected = true; in mlxreg_fan_config()