Searched refs:mtmp_pl (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_hwmon.c | 73 char mtmp_pl[MLXSW_REG_MTMP_LEN]; in mlxsw_hwmon_temp_show() local 79 mlxsw_reg_mtmp_pack(mtmp_pl, mlxsw_hwmon_dev->slot_index, index, false, in mlxsw_hwmon_temp_show() 81 err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl); in mlxsw_hwmon_temp_show() 86 mlxsw_reg_mtmp_unpack(mtmp_pl, &temp, NULL, NULL, NULL, NULL); in mlxsw_hwmon_temp_show() 98 char mtmp_pl[MLXSW_REG_MTMP_LEN]; in mlxsw_hwmon_temp_max_show() local 104 mlxsw_reg_mtmp_pack(mtmp_pl, mlxsw_hwmon_dev->slot_index, index, false, in mlxsw_hwmon_temp_max_show() 106 err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl); in mlxsw_hwmon_temp_max_show() 111 mlxsw_reg_mtmp_unpack(mtmp_pl, NULL, &temp_max, NULL, NULL, NULL); in mlxsw_hwmon_temp_max_show() 123 char mtmp_pl[MLXSW_REG_MTMP_LEN]; in mlxsw_hwmon_temp_rst_store() local 137 mlxsw_reg_mtmp_slot_index_set(mtmp_pl, mlxsw_hwmon_dev->slot_index); in mlxsw_hwmon_temp_rst_store() [all …]
|
H A D | core_thermal.c | 211 char mtmp_pl[MLXSW_REG_MTMP_LEN]; in mlxsw_thermal_get_temp() local 215 mlxsw_reg_mtmp_pack(mtmp_pl, 0, 0, false, false); in mlxsw_thermal_get_temp() 217 err = mlxsw_reg_query(thermal->core, MLXSW_REG(mtmp), mtmp_pl); in mlxsw_thermal_get_temp() 222 mlxsw_reg_mtmp_unpack(mtmp_pl, &temp, NULL, NULL, NULL, NULL); in mlxsw_thermal_get_temp() 291 char mtmp_pl[MLXSW_REG_MTMP_LEN]; in mlxsw_thermal_module_temp_get() local 296 mlxsw_reg_mtmp_pack(mtmp_pl, tz->slot_index, sensor_index, in mlxsw_thermal_module_temp_get() 298 err = mlxsw_reg_query(thermal->core, MLXSW_REG(mtmp), mtmp_pl); in mlxsw_thermal_module_temp_get() 301 mlxsw_reg_mtmp_unpack(mtmp_pl, p_temp, NULL, NULL, NULL, NULL); in mlxsw_thermal_module_temp_get() 316 char mtmp_pl[MLXSW_REG_MTMP_LEN]; in mlxsw_thermal_gearbox_temp_get() local 322 mlxsw_reg_mtmp_pack(mtmp_pl, tz->slot_index, index, false, false); in mlxsw_thermal_gearbox_temp_get() [all …]
|
H A D | core_env.c | 217 char mtmp_pl[MLXSW_REG_MTMP_LEN]; in mlxsw_env_module_temp_thresholds_get() local 223 mlxsw_reg_mtmp_pack(mtmp_pl, slot_index, in mlxsw_env_module_temp_thresholds_get() 226 err = mlxsw_reg_query(core, MLXSW_REG(mtmp), mtmp_pl); in mlxsw_env_module_temp_thresholds_get() 229 mlxsw_reg_mtmp_unpack(mtmp_pl, &module_temp, NULL, &module_crit, in mlxsw_env_module_temp_thresholds_get() 802 char mtmp_pl[MLXSW_REG_MTMP_LEN] = {0}; in mlxsw_env_temp_event_set() local 806 mlxsw_reg_mtmp_slot_index_set(mtmp_pl, slot_index); in mlxsw_env_temp_event_set() 807 mlxsw_reg_mtmp_sensor_index_set(mtmp_pl, sensor_index); in mlxsw_env_temp_event_set() 808 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mtmp), mtmp_pl); in mlxsw_env_temp_event_set() 832 mlxsw_reg_mtmp_temperature_threshold_hi_set(mtmp_pl, threshold_hi); in mlxsw_env_temp_event_set() 833 mlxsw_reg_mtmp_temperature_threshold_lo_set(mtmp_pl, threshold_hi - in mlxsw_env_temp_event_set() [all …]
|