Home
last modified time | relevance | path

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

/drivers/hwmon/
Dmlxreg-fan.c104 struct mlxreg_fan_tacho tacho[MLXREG_FAN_MAX_TACHO]; member
117 struct mlxreg_fan_tacho *tacho; in mlxreg_fan_read() local
123 tacho = &fan->tacho[channel]; in mlxreg_fan_read()
126 err = regmap_read(fan->regmap, tacho->reg, &regval); in mlxreg_fan_read()
135 err = regmap_read(fan->regmap, tacho->reg, &regval); in mlxreg_fan_read()
139 *val = MLXREG_FAN_GET_FAULT(regval, tacho->mask); in mlxreg_fan_read()
201 if (!(((struct mlxreg_fan *)data)->tacho[channel].connected)) in mlxreg_fan_is_visible()
416 fan->tacho[tacho_num].reg = data->reg; in mlxreg_fan_config()
417 fan->tacho[tacho_num].mask = data->mask; in mlxreg_fan_config()
418 fan->tacho[tacho_num++].connected = true; in mlxreg_fan_config()
DMakefile52 obj-$(CONFIG_SENSORS_ASPEED) += aspeed-pwm-tacho.o
/drivers/net/ethernet/mellanox/mlxsw/
Dreg.h8065 MLXSW_ITEM32(reg, mfsm, tacho, 0x00, 24, 4);
8073 static inline void mlxsw_reg_mfsm_pack(char *payload, u8 tacho) in mlxsw_reg_mfsm_pack() argument
8076 mlxsw_reg_mfsm_tacho_set(payload, tacho); in mlxsw_reg_mfsm_pack()
8094 MLXSW_ITEM32(reg, mfsl, tacho, 0x00, 24, 4);
8108 static inline void mlxsw_reg_mfsl_pack(char *payload, u8 tacho, in mlxsw_reg_mfsl_pack() argument
8112 mlxsw_reg_mfsl_tacho_set(payload, tacho); in mlxsw_reg_mfsl_pack()
8117 static inline void mlxsw_reg_mfsl_unpack(char *payload, u8 tacho, in mlxsw_reg_mfsl_unpack() argument
8145 static inline void mlxsw_reg_fore_unpack(char *payload, u8 tacho, in mlxsw_reg_fore_unpack() argument
8152 *fault = limit & BIT(tacho); in mlxsw_reg_fore_unpack()