Lines Matching refs:temp_channel_desc
23 struct temp_channel_desc { struct
38 struct temp_channel_desc *temp_channel_desc; argument
93 err = mlx5_hwmon_query_mtmp(hwmon->mdev, hwmon->temp_channel_desc[channel].sensor_index, in mlx5_hwmon_read()
122 hwmon->temp_channel_desc[channel].sensor_index); in mlx5_hwmon_write()
152 *str = (const char *)hwmon->temp_channel_desc[channel].sensor_name; in mlx5_hwmon_read_string()
172 err = mlx5_hwmon_query_mtmp(hwmon->mdev, hwmon->temp_channel_desc[i].sensor_index, in mlx5_hwmon_init_channels_names()
179 snprintf(hwmon->temp_channel_desc[i].sensor_name, in mlx5_hwmon_init_channels_names()
180 sizeof(hwmon->temp_channel_desc[i].sensor_name), "sensor%u", in mlx5_hwmon_init_channels_names()
181 hwmon->temp_channel_desc[i].sensor_index); in mlx5_hwmon_init_channels_names()
185 memcpy(&hwmon->temp_channel_desc[i].sensor_name, sensor_name, in mlx5_hwmon_init_channels_names()
217 hwmon->temp_channel_desc[i].sensor_index = bit_pos; in mlx5_hwmon_init_sensors_indexes()
223 &hwmon->temp_channel_desc[i].sensor_index); in mlx5_hwmon_init_sensors_indexes()
290 kfree(hwmon->temp_channel_desc); in mlx5_hwmon_free()
316 hwmon->temp_channel_desc = kcalloc(sensors_count, sizeof(*hwmon->temp_channel_desc), in mlx5_hwmon_alloc()
318 if (!hwmon->temp_channel_desc) { in mlx5_hwmon_alloc()
336 kfree(hwmon->temp_channel_desc); in mlx5_hwmon_alloc()
363 hwmon->temp_channel_desc[i].sensor_index); in mlx5_hwmon_dev_init()