/linux-6.12.1/drivers/accel/habanalabs/common/ |
D | hwmon.c | 570 int sensor_index, u32 attr, long *value) in hl_get_temperature() argument 580 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_temperature() 591 sensor_index, rc); in hl_get_temperature() 599 int sensor_index, u32 attr, long value) in hl_set_temperature() argument 608 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_set_temperature() 617 sensor_index, rc); in hl_set_temperature() 623 int sensor_index, u32 attr, long *value) in hl_get_voltage() argument 633 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_voltage() 645 sensor_index, rc); in hl_get_voltage() 653 int sensor_index, u32 attr, long *value) in hl_get_current() argument [all …]
|
D | habanalabs.h | 4012 int hl_get_temperature(struct hl_device *hdev, int sensor_index, u32 attr, long *value); 4013 int hl_set_temperature(struct hl_device *hdev, int sensor_index, u32 attr, long value); 4014 int hl_get_voltage(struct hl_device *hdev, int sensor_index, u32 attr, long *value); 4015 int hl_get_current(struct hl_device *hdev, int sensor_index, u32 attr, long *value); 4016 int hl_get_fan_speed(struct hl_device *hdev, int sensor_index, u32 attr, long *value); 4017 int hl_get_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, long *value); 4018 void hl_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, long value); 4025 int hl_set_voltage(struct hl_device *hdev, int sensor_index, u32 attr, long value); 4026 int hl_set_current(struct hl_device *hdev, int sensor_index, u32 attr, long value); 4027 int hl_set_power(struct hl_device *hdev, int sensor_index, u32 attr, long value); [all …]
|
/linux-6.12.1/drivers/media/platform/samsung/exynos4-is/ |
D | fimc-is-regs.c | 61 mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1)); in fimc_is_hw_set_param() 77 mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1)); in fimc_is_hw_set_tune() 121 pr_debug("setting sensor index to: %d\n", is->sensor_index); in fimc_is_hw_set_sensor_num() 124 mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1)); in fimc_is_hw_set_sensor_num() 131 if (is->sensor_index != index) in fimc_is_hw_close_sensor() 136 mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1)); in fimc_is_hw_close_sensor() 137 mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(2)); in fimc_is_hw_close_sensor() 145 mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1)); in fimc_is_hw_get_setfile_addr() 153 mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1)); in fimc_is_hw_load_setfile() 168 mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1)); in fimc_is_hw_change_mode() [all …]
|
D | fimc-is.h | 285 unsigned int sensor_index; member
|
D | fimc-is.c | 546 is->sensor_index = 0; in fimc_is_general_irq_handler() 641 mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1)); in fimc_is_hw_open_sensor()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | hwmon.c | 24 u32 sensor_index; member 43 static int mlx5_hwmon_query_mtmp(struct mlx5_core_dev *mdev, u32 sensor_index, u32 *mtmp_out) in mlx5_hwmon_query_mtmp() argument 47 MLX5_SET(mtmp_reg, mtmp_in, sensor_index, sensor_index); in mlx5_hwmon_query_mtmp() 54 static int mlx5_hwmon_reset_max_temp(struct mlx5_core_dev *mdev, int sensor_index) in mlx5_hwmon_reset_max_temp() argument 59 MLX5_SET(mtmp_reg, mtmp_in, sensor_index, sensor_index); in mlx5_hwmon_reset_max_temp() 67 static int mlx5_hwmon_enable_max_temp(struct mlx5_core_dev *mdev, int sensor_index) in mlx5_hwmon_enable_max_temp() argument 73 err = mlx5_hwmon_query_mtmp(mdev, sensor_index, mtmp_in); in mlx5_hwmon_enable_max_temp() 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() 172 err = mlx5_hwmon_query_mtmp(hwmon->mdev, hwmon->temp_channel_desc[i].sensor_index, in mlx5_hwmon_init_channels_names() [all …]
|
/linux-6.12.1/drivers/accel/habanalabs/goya/ |
D | goyaP.h | 209 long goya_get_temperature(struct hl_device *hdev, int sensor_index, u32 attr); 210 long goya_get_voltage(struct hl_device *hdev, int sensor_index, u32 attr); 211 long goya_get_current(struct hl_device *hdev, int sensor_index, u32 attr); 212 long goya_get_fan_speed(struct hl_device *hdev, int sensor_index, u32 attr); 213 long goya_get_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr); 214 void goya_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr,
|
/linux-6.12.1/drivers/hid/amd-sfh-hid/ |
D | amd_sfh_client.c | 72 u8 current_index, sensor_index; in amd_sfh_work() local 81 sensor_index = req_node->sensor_idx; in amd_sfh_work() 89 report_size = mp2_ops->get_feat_rep(sensor_index, report_id, in amd_sfh_work() 99 report_size = mp2_ops->get_in_rep(current_index, sensor_index, report_id, in_data); in amd_sfh_work()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_env.c | 857 u16 sensor_index, bool enable) in mlxsw_env_temp_event_set() argument 864 mlxsw_reg_mtmp_sensor_index_set(mtmp_pl, sensor_index); in mlxsw_env_temp_event_set() 872 sensor_index - in mlxsw_env_temp_event_set() 902 int i, err, sensor_index; in mlxsw_env_module_temp_event_enable() local 914 sensor_index = i + MLXSW_REG_MTMP_MODULE_INDEX_MIN; in mlxsw_env_module_temp_event_enable() 916 sensor_index, true); in mlxsw_env_module_temp_event_enable() 1030 u16 sensor_index; in mlxsw_env_pmpe_event_work() local 1057 sensor_index = event->module + MLXSW_REG_MTMP_MODULE_INDEX_MIN; in mlxsw_env_pmpe_event_work() 1059 sensor_index, true); in mlxsw_env_pmpe_event_work()
|
D | core_hwmon.c | 739 int index, max_index, sensor_index; in mlxsw_hwmon_gearbox_init() local 759 sensor_index = index % mlxsw_hwmon_dev->module_sensor_max + in mlxsw_hwmon_gearbox_init() 762 sensor_index, true, true); in mlxsw_hwmon_gearbox_init() 767 sensor_index); in mlxsw_hwmon_gearbox_init()
|
D | core_thermal.c | 242 u16 sensor_index; in mlxsw_thermal_module_temp_get() local 245 sensor_index = MLXSW_REG_MTMP_MODULE_INDEX_MIN + tz->module; in mlxsw_thermal_module_temp_get() 246 mlxsw_reg_mtmp_pack(mtmp_pl, tz->slot_index, sensor_index, in mlxsw_thermal_module_temp_get()
|
D | reg.h | 9484 MLXSW_ITEM32(reg, mtmp, sensor_index, 0x00, 0, 12); 9566 u16 sensor_index, bool max_temp_enable, in mlxsw_reg_mtmp_pack() argument 9571 mlxsw_reg_mtmp_sensor_index_set(payload, sensor_index); in mlxsw_reg_mtmp_pack()
|
/linux-6.12.1/drivers/gpu/drm/xe/ |
D | xe_hwmon.c | 288 int sensor_index = to_sensor_dev_attr(attr)->index; in xe_hwmon_power_max_interval_show() local 294 r = xe_mmio_read32(mmio, xe_hwmon_get_reg(hwmon, REG_PKG_RAPL_LIMIT, sensor_index)); in xe_hwmon_power_max_interval_show() 331 int sensor_index = to_sensor_dev_attr(attr)->index; in xe_hwmon_power_max_interval_store() local 383 r = xe_mmio_rmw32(mmio, xe_hwmon_get_reg(hwmon, REG_PKG_RAPL_LIMIT, sensor_index), in xe_hwmon_power_max_interval_store()
|
/linux-6.12.1/drivers/hid/amd-sfh-hid/sfh1_1/ |
D | amd_sfh_interface.h | 21 enum sensor_index { enum
|
/linux-6.12.1/drivers/hwmon/ |
D | asus-ec-sensors.c | 865 int sensor_index, in get_cached_value_or_update() argument 877 *value = state->sensors[sensor_index].cached_value; in get_cached_value_or_update() 912 int sensor_index = find_ec_sensor_index(state, type, channel); in asus_ec_hwmon_read_string() local 913 *str = get_sensor_info(state, sensor_index)->label; in asus_ec_hwmon_read_string()
|
D | abituguru3.c | 961 int sensor_index[3] = { 0, 1, 1 }; in abituguru3_probe() local 1017 name, sensor_index[type]) + 1; in abituguru3_probe() 1027 sensor_index[type]++; in abituguru3_probe()
|
/linux-6.12.1/drivers/net/ethernet/intel/igb/ |
D | e1000_82575.c | 2783 u8 sensor_index; in igb_get_thermal_sensor_data_generic() local 2809 sensor_index = FIELD_GET(NVM_ETS_DATA_INDEX_MASK, ets_sensor); in igb_get_thermal_sensor_data_generic() 2814 e1000_emc_temp_data[sensor_index], in igb_get_thermal_sensor_data_generic() 2835 u8 sensor_index; in igb_init_thermal_sensor_thresh_generic() local 2867 sensor_index = FIELD_GET(NVM_ETS_DATA_INDEX_MASK, ets_sensor); in igb_init_thermal_sensor_thresh_generic() 2872 e1000_emc_therm_limit[sensor_index], in igb_init_thermal_sensor_thresh_generic()
|
/linux-6.12.1/drivers/platform/chrome/wilco_ec/ |
D | telemetry.c | 107 u8 sensor_index; member
|
/linux-6.12.1/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_common.c | 3929 u8 sensor_index; in ixgbe_get_thermal_sensor_data_generic() local 3937 sensor_index = FIELD_GET(IXGBE_ETS_DATA_INDEX_MASK, in ixgbe_get_thermal_sensor_data_generic() 3944 ixgbe_emc_temp_data[sensor_index], in ixgbe_get_thermal_sensor_data_generic() 3990 u8 sensor_index; in ixgbe_init_thermal_sensor_thresh_generic() local 3998 sensor_index = FIELD_GET(IXGBE_ETS_DATA_INDEX_MASK, in ixgbe_init_thermal_sensor_thresh_generic() 4005 ixgbe_emc_therm_limit[sensor_index], in ixgbe_init_thermal_sensor_thresh_generic()
|
/linux-6.12.1/include/linux/habanalabs/ |
D | cpucp_if.h | 824 __le16 sensor_index; member
|
/linux-6.12.1/include/linux/mlx5/ |
D | mlx5_ifc.h | 11384 u8 sensor_index[0xc]; member
|