Home
last modified time | relevance | path

Searched refs:tacho (Results 1 – 3 of 3) sorted by relevance

/drivers/hwmon/
Dmlxreg-fan.c107 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, &regval); in mlxreg_fan_read()
150 err = regmap_read(fan->regmap, tacho->reg, &regval); 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, &regval); 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()
[all …]
DMakefile54 obj-$(CONFIG_SENSORS_ASPEED) += aspeed-pwm-tacho.o
/drivers/net/ethernet/mellanox/mlxsw/
Dreg.h9331 MLXSW_ITEM32(reg, mfsm, tacho, 0x00, 24, 4);
9339 static inline void mlxsw_reg_mfsm_pack(char *payload, u8 tacho) in mlxsw_reg_mfsm_pack() argument
9342 mlxsw_reg_mfsm_tacho_set(payload, tacho); in mlxsw_reg_mfsm_pack()
9360 MLXSW_ITEM32(reg, mfsl, tacho, 0x00, 24, 4);
9374 static inline void mlxsw_reg_mfsl_pack(char *payload, u8 tacho, in mlxsw_reg_mfsl_pack() argument
9378 mlxsw_reg_mfsl_tacho_set(payload, tacho); in mlxsw_reg_mfsl_pack()
9383 static inline void mlxsw_reg_mfsl_unpack(char *payload, u8 tacho, in mlxsw_reg_mfsl_unpack() argument
9411 static inline void mlxsw_reg_fore_unpack(char *payload, u8 tacho, in mlxsw_reg_fore_unpack() argument
9418 *fault = limit & BIT(tacho); in mlxsw_reg_fore_unpack()