Home
last modified time | relevance | path

Searched refs:sensor_map (Results 1 – 2 of 2) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/
Dhwmon.c207 static int mlx5_hwmon_init_sensors_indexes(struct mlx5_hwmon *hwmon, u64 sensor_map) in mlx5_hwmon_init_sensors_indexes() argument
209 DECLARE_BITMAP(smap, BITS_PER_TYPE(sensor_map)); in mlx5_hwmon_init_sensors_indexes()
214 bitmap_from_u64(smap, sensor_map); in mlx5_hwmon_init_sensors_indexes()
216 for_each_set_bit(bit_pos, smap, BITS_PER_TYPE(sensor_map)) { in mlx5_hwmon_init_sensors_indexes()
356 mlx5_hwmon_init_sensors_indexes(hwmon, MLX5_GET64(mtcap_reg, mtcap_out, sensor_map)); in mlx5_hwmon_dev_init()
/drivers/thermal/mediatek/
Dlvts_thermal.c1042 u32 sensor_map = 0; in lvts_ctrl_start() local
1090 sensor_map |= sensor_bitmap[i]; in lvts_ctrl_start()
1113 writel(sensor_map, LVTS_MSRCTL1(lvts_ctrl->base)); in lvts_ctrl_start()
1120 writel(sensor_map | BIT(9), LVTS_MONCTL0(lvts_ctrl->base)); in lvts_ctrl_start()