Searched refs:mtmp_pl (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_hwmon.c | 63 char mtmp_pl[MLXSW_REG_MTMP_LEN]; in mlxsw_hwmon_temp_show() local 69 mlxsw_reg_mtmp_pack(mtmp_pl, index, false, false); in mlxsw_hwmon_temp_show() 70 err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl); in mlxsw_hwmon_temp_show() 75 mlxsw_reg_mtmp_unpack(mtmp_pl, &temp, NULL, NULL); in mlxsw_hwmon_temp_show() 86 char mtmp_pl[MLXSW_REG_MTMP_LEN]; in mlxsw_hwmon_temp_max_show() local 92 mlxsw_reg_mtmp_pack(mtmp_pl, index, false, false); in mlxsw_hwmon_temp_max_show() 93 err = mlxsw_reg_query(mlxsw_hwmon->core, MLXSW_REG(mtmp), mtmp_pl); in mlxsw_hwmon_temp_max_show() 98 mlxsw_reg_mtmp_unpack(mtmp_pl, NULL, &temp_max, NULL); in mlxsw_hwmon_temp_max_show() 109 char mtmp_pl[MLXSW_REG_MTMP_LEN] = {0}; in mlxsw_hwmon_temp_rst_store() local 123 mlxsw_reg_mtmp_sensor_index_set(mtmp_pl, index); in mlxsw_hwmon_temp_rst_store() [all …]
|
D | core_env.c | 134 char mtmp_pl[MLXSW_REG_MTMP_LEN]; in mlxsw_env_module_temp_thresholds_get() local 140 mlxsw_reg_mtmp_pack(mtmp_pl, MLXSW_REG_MTMP_MODULE_INDEX_MIN + module, in mlxsw_env_module_temp_thresholds_get() 142 err = mlxsw_reg_query(core, MLXSW_REG(mtmp), mtmp_pl); in mlxsw_env_module_temp_thresholds_get() 145 mlxsw_reg_mtmp_unpack(mtmp_pl, &module_temp, NULL, NULL); in mlxsw_env_module_temp_thresholds_get() 341 char mtmp_pl[MLXSW_REG_MTMP_LEN] = {0}; in mlxsw_env_temp_event_set() local 345 mlxsw_reg_mtmp_sensor_index_set(mtmp_pl, sensor_index); in mlxsw_env_temp_event_set() 346 err = mlxsw_reg_query(mlxsw_core, MLXSW_REG(mtmp), mtmp_pl); in mlxsw_env_temp_event_set() 369 mlxsw_reg_mtmp_temperature_threshold_hi_set(mtmp_pl, threshold_hi); in mlxsw_env_temp_event_set() 370 mlxsw_reg_mtmp_temperature_threshold_lo_set(mtmp_pl, threshold_hi - in mlxsw_env_temp_event_set() 374 mlxsw_reg_mtmp_tee_set(mtmp_pl, tee); in mlxsw_env_temp_event_set() [all …]
|
D | core_thermal.c | 283 char mtmp_pl[MLXSW_REG_MTMP_LEN]; in mlxsw_thermal_get_temp() local 287 mlxsw_reg_mtmp_pack(mtmp_pl, 0, false, false); in mlxsw_thermal_get_temp() 289 err = mlxsw_reg_query(thermal->core, MLXSW_REG(mtmp), mtmp_pl); in mlxsw_thermal_get_temp() 294 mlxsw_reg_mtmp_unpack(mtmp_pl, &temp, NULL, NULL); in mlxsw_thermal_get_temp() 440 char mtmp_pl[MLXSW_REG_MTMP_LEN]; in mlxsw_thermal_module_temp_get() local 445 mlxsw_reg_mtmp_pack(mtmp_pl, MLXSW_REG_MTMP_MODULE_INDEX_MIN + in mlxsw_thermal_module_temp_get() 447 err = mlxsw_reg_query(thermal->core, MLXSW_REG(mtmp), mtmp_pl); in mlxsw_thermal_module_temp_get() 456 mlxsw_reg_mtmp_unpack(mtmp_pl, &temp, NULL, NULL); in mlxsw_thermal_module_temp_get() 563 char mtmp_pl[MLXSW_REG_MTMP_LEN]; in mlxsw_thermal_gearbox_temp_get() local 569 mlxsw_reg_mtmp_pack(mtmp_pl, index, false, false); in mlxsw_thermal_gearbox_temp_get() [all …]
|