sensor_index
int hl_get_temperature(struct hl_device *hdev, int sensor_index, u32 attr, long *value);
int hl_set_temperature(struct hl_device *hdev, int sensor_index, u32 attr, long value);
int hl_get_voltage(struct hl_device *hdev, int sensor_index, u32 attr, long *value);
int hl_get_current(struct hl_device *hdev, int sensor_index, u32 attr, long *value);
int hl_get_fan_speed(struct hl_device *hdev, int sensor_index, u32 attr, long *value);
int hl_get_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, long *value);
void hl_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, long value);
int hl_set_voltage(struct hl_device *hdev, int sensor_index, u32 attr, long value);
int hl_set_current(struct hl_device *hdev, int sensor_index, u32 attr, long value);
int hl_set_power(struct hl_device *hdev, int sensor_index, u32 attr, long value);
int hl_get_power(struct hl_device *hdev, int sensor_index, u32 attr, long *value);
int sensor_index, u32 attr, long *value)
pkt.sensor_index = __cpu_to_le16(sensor_index);
sensor_index, rc);
int sensor_index, u32 attr, long value)
pkt.sensor_index = __cpu_to_le16(sensor_index);
sensor_index, rc);
int sensor_index, u32 attr, long *value)
pkt.sensor_index = __cpu_to_le16(sensor_index);
sensor_index, rc);
int sensor_index, u32 attr, long *value)
pkt.sensor_index = __cpu_to_le16(sensor_index);
sensor_index, rc);
int sensor_index, u32 attr, long *value)
pkt.sensor_index = __cpu_to_le16(sensor_index);
sensor_index, rc);
int sensor_index, u32 attr, long *value)
pkt.sensor_index = __cpu_to_le16(sensor_index);
sensor_index, rc);
void hl_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr,
pkt.sensor_index = __cpu_to_le16(sensor_index);
sensor_index, rc);
int sensor_index, u32 attr, long value)
pkt.sensor_index = __cpu_to_le16(sensor_index);
sensor_index, rc);
int sensor_index, u32 attr, long value)
pkt.sensor_index = __cpu_to_le16(sensor_index);
sensor_index, rc);
int sensor_index, u32 attr, long value)
pkt.sensor_index = __cpu_to_le16(sensor_index);
sensor_index, rc);
int sensor_index, u32 attr, long *value)
pkt.sensor_index = __cpu_to_le16(sensor_index);
sensor_index, rc);
long goya_get_temperature(struct hl_device *hdev, int sensor_index, u32 attr);
long goya_get_voltage(struct hl_device *hdev, int sensor_index, u32 attr);
long goya_get_current(struct hl_device *hdev, int sensor_index, u32 attr);
long goya_get_fan_speed(struct hl_device *hdev, int sensor_index, u32 attr);
long goya_get_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr);
void goya_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr,
report_size = mp2_ops->get_in_rep(current_index, sensor_index, report_id, in_data);
u8 current_index, sensor_index;
sensor_index = req_node->sensor_idx;
report_size = mp2_ops->get_feat_rep(sensor_index, report_id,
name, sensor_index[type]) + 1;
sensor_index[type]++;
int sensor_index[3] = { 0, 1, 1 };
int sensor_index,
*value = state->sensors[sensor_index].cached_value;
int sensor_index = find_ec_sensor_index(state, type, channel);
if (sensor_index < 0)
return sensor_index;
*str = get_sensor_info(state, sensor_index)->label;
pr_debug("setting sensor index to: %d\n", is->sensor_index);
mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1));
if (is->sensor_index != index)
mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1));
mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(2));
mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1));
mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1));
mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1));
mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1));
mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1));
mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1));
mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1));
mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1));
is->sensor_index = 0;
mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1));
unsigned int sensor_index;
u8 sensor_index;
sensor_index = FIELD_GET(NVM_ETS_DATA_INDEX_MASK, ets_sensor);
e1000_emc_temp_data[sensor_index],
u8 sensor_index;
sensor_index = FIELD_GET(NVM_ETS_DATA_INDEX_MASK, ets_sensor);
e1000_emc_therm_limit[sensor_index],
u8 sensor_index;
sensor_index = FIELD_GET(IXGBE_ETS_DATA_INDEX_MASK,
ixgbe_emc_temp_data[sensor_index],
u8 sensor_index;
sensor_index = FIELD_GET(IXGBE_ETS_DATA_INDEX_MASK,
ixgbe_emc_therm_limit[sensor_index],
hwmon->temp_channel_desc[channel].sensor_index);
err = mlx5_hwmon_query_mtmp(hwmon->mdev, hwmon->temp_channel_desc[i].sensor_index,
hwmon->temp_channel_desc[i].sensor_index);
hwmon->temp_channel_desc[i].sensor_index = bit_pos;
&hwmon->temp_channel_desc[i].sensor_index);
u32 sensor_index;
hwmon->temp_channel_desc[i].sensor_index);
static int mlx5_hwmon_query_mtmp(struct mlx5_core_dev *mdev, u32 sensor_index, u32 *mtmp_out)
MLX5_SET(mtmp_reg, mtmp_in, sensor_index, sensor_index);
static int mlx5_hwmon_reset_max_temp(struct mlx5_core_dev *mdev, int sensor_index)
MLX5_SET(mtmp_reg, mtmp_in, sensor_index, sensor_index);
static int mlx5_hwmon_enable_max_temp(struct mlx5_core_dev *mdev, int sensor_index)
err = mlx5_hwmon_query_mtmp(mdev, sensor_index, mtmp_in);
err = mlx5_hwmon_query_mtmp(hwmon->mdev, hwmon->temp_channel_desc[channel].sensor_index,
u16 sensor_index;
sensor_index = event->module + MLXSW_REG_MTMP_MODULE_INDEX_MIN;
sensor_index, true);
u16 sensor_index, bool enable)
mlxsw_reg_mtmp_sensor_index_set(mtmp_pl, sensor_index);
sensor_index -
int i, err, sensor_index;
sensor_index = i + MLXSW_REG_MTMP_MODULE_INDEX_MIN;
sensor_index, true);
int index, max_index, sensor_index;
sensor_index = index % mlxsw_hwmon_dev->module_sensor_max +
sensor_index, true, true);
sensor_index);
u16 sensor_index;
sensor_index = MLXSW_REG_MTMP_MODULE_INDEX_MIN + tz->module;
mlxsw_reg_mtmp_pack(mtmp_pl, tz->slot_index, sensor_index,
MLXSW_ITEM32(reg, mtmp, sensor_index, 0x00, 0, 12);
u16 sensor_index, bool max_temp_enable,
mlxsw_reg_mtmp_sensor_index_set(payload, sensor_index);
u8 sensor_index;
__le16 sensor_index;
u8 sensor_index[0xc];