Lines Matching refs:type_index
32 unsigned int type_index; member
77 index = mlxsw_hwmon_get_attr_index(mlxsw_hwmon_attr->type_index, in mlxsw_hwmon_temp_show()
102 index = mlxsw_hwmon_get_attr_index(mlxsw_hwmon_attr->type_index, in mlxsw_hwmon_temp_max_show()
134 index = mlxsw_hwmon_get_attr_index(mlxsw_hwmon_attr->type_index, in mlxsw_hwmon_temp_rst_store()
163 mlxsw_reg_mfsm_pack(mfsm_pl, mlxsw_hwmon_attr->type_index); in mlxsw_hwmon_fan_rpm_show()
189 mlxsw_reg_fore_unpack(fore_pl, mlxsw_hwmon_attr->type_index, &fault); in mlxsw_hwmon_fan_fault_show()
205 mlxsw_reg_mfsc_pack(mfsc_pl, mlxsw_hwmon_attr->type_index, 0); in mlxsw_hwmon_pwm_show()
233 mlxsw_reg_mfsc_pack(mfsc_pl, mlxsw_hwmon_attr->type_index, val); in mlxsw_hwmon_pwm_store()
254 module = mlxsw_hwmon_attr->type_index - mlxsw_hwmon_dev->sensor_count; in mlxsw_hwmon_module_temp_get()
294 module = mlxsw_hwmon_attr->type_index - mlxsw_hwmon_dev->sensor_count; in mlxsw_hwmon_module_temp_fault_show()
335 module = mlxsw_hwmon_attr->type_index - mlxsw_hwmon_dev->sensor_count; in mlxsw_hwmon_module_temp_critical_get()
372 module = mlxsw_hwmon_attr->type_index - mlxsw_hwmon_dev->sensor_count; in mlxsw_hwmon_module_temp_emergency_get()
408 mlxsw_hwmon_attr->type_index + 1 - in mlxsw_hwmon_module_temp_label_show()
420 int index = mlxsw_hwmon_attr->type_index - in mlxsw_hwmon_gbox_temp_label_show()
492 unsigned int type_index, unsigned int num) in mlxsw_hwmon_attr_add() argument
597 mlxsw_hwmon_attr->type_index = type_index; in mlxsw_hwmon_attr_add()
653 unsigned int type_index; in mlxsw_hwmon_fans_init() local
666 for (type_index = 0; type_index < MLXSW_MFCR_TACHOS_MAX; type_index++) { in mlxsw_hwmon_fans_init()
667 if (tacho_active & BIT(type_index)) { in mlxsw_hwmon_fans_init()
670 type_index, num); in mlxsw_hwmon_fans_init()
673 type_index, num++); in mlxsw_hwmon_fans_init()
677 for (type_index = 0; type_index < MLXSW_MFCR_PWMS_MAX; type_index++) { in mlxsw_hwmon_fans_init()
678 if (pwm_active & BIT(type_index)) in mlxsw_hwmon_fans_init()
681 type_index, num++); in mlxsw_hwmon_fans_init()