/kernel/linux/linux-6.6/drivers/accel/habanalabs/common/ |
H A D | hwmon.c | 569 int sensor_index, u32 attr, long *value) in hl_get_temperature() 579 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_temperature() 583 pkt.ctl, pkt.sensor_index, pkt.type); in hl_get_temperature() 593 sensor_index, rc); in hl_get_temperature() 601 int sensor_index, u32 attr, long value) in hl_set_temperature() 610 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_set_temperature() 620 sensor_index, rc); in hl_set_temperature() 626 int sensor_index, u3 in hl_get_voltage() 568 hl_get_temperature(struct hl_device *hdev, int sensor_index, u32 attr, long *value) hl_get_temperature() argument 600 hl_set_temperature(struct hl_device *hdev, int sensor_index, u32 attr, long value) hl_set_temperature() argument 625 hl_get_voltage(struct hl_device *hdev, int sensor_index, u32 attr, long *value) hl_get_voltage() argument 654 hl_get_current(struct hl_device *hdev, int sensor_index, u32 attr, long *value) hl_get_current() argument 683 hl_get_fan_speed(struct hl_device *hdev, int sensor_index, u32 attr, long *value) hl_get_fan_speed() argument 712 hl_get_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, long *value) hl_get_pwm_info() argument 741 hl_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, long value) hl_set_pwm_info() argument 764 hl_set_voltage(struct hl_device *hdev, int sensor_index, u32 attr, long value) hl_set_voltage() argument 789 hl_set_current(struct hl_device *hdev, int sensor_index, u32 attr, long value) hl_set_current() argument 814 hl_set_power(struct hl_device *hdev, int sensor_index, u32 attr, long value) hl_set_power() argument 845 hl_get_power(struct hl_device *hdev, int sensor_index, u32 attr, long *value) hl_get_power() argument [all...] |
H A D | habanalabs.h | 3877 int hl_get_temperature(struct hl_device *hdev, int sensor_index, u32 attr, long *value); 3878 int hl_set_temperature(struct hl_device *hdev, int sensor_index, u32 attr, long value); 3879 int hl_get_voltage(struct hl_device *hdev, int sensor_index, u32 attr, long *value); 3880 int hl_get_current(struct hl_device *hdev, int sensor_index, u32 attr, long *value); 3881 int hl_get_fan_speed(struct hl_device *hdev, int sensor_index, u32 attr, long *value); 3882 int hl_get_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, long *value); 3883 void hl_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, long value); 3888 int hl_set_voltage(struct hl_device *hdev, int sensor_index, u32 attr, long value); 3889 int hl_set_current(struct hl_device *hdev, int sensor_index, u32 attr, long value); 3890 int hl_set_power(struct hl_device *hdev, int sensor_index, u3 [all...] |
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/ |
H A D | hwmon.c | 312 int sensor_index, u32 attr, long *value) in hl_get_temperature() 321 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_temperature() 330 sensor_index, rc); in hl_get_temperature() 338 int sensor_index, u32 attr, long value) in hl_set_temperature() 347 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_set_temperature() 357 sensor_index, rc); in hl_set_temperature() 363 int sensor_index, u32 attr, long *value) in hl_get_voltage() 372 pkt.sensor_index in hl_get_voltage() 311 hl_get_temperature(struct hl_device *hdev, int sensor_index, u32 attr, long *value) hl_get_temperature() argument 337 hl_set_temperature(struct hl_device *hdev, int sensor_index, u32 attr, long value) hl_set_temperature() argument 362 hl_get_voltage(struct hl_device *hdev, int sensor_index, u32 attr, long *value) hl_get_voltage() argument 388 hl_get_current(struct hl_device *hdev, int sensor_index, u32 attr, long *value) hl_get_current() argument 414 hl_get_fan_speed(struct hl_device *hdev, int sensor_index, u32 attr, long *value) hl_get_fan_speed() argument 440 hl_get_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, long *value) hl_get_pwm_info() argument 466 hl_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, long value) hl_set_pwm_info() argument 489 hl_set_voltage(struct hl_device *hdev, int sensor_index, u32 attr, long value) hl_set_voltage() argument 514 hl_set_current(struct hl_device *hdev, int sensor_index, u32 attr, long value) hl_set_current() argument [all...] |
H A D | habanalabs.h | 1956 int sensor_index, u32 attr, long *value); 1958 int sensor_index, u32 attr, long value); 1960 int sensor_index, u32 attr, long *value); 1962 int sensor_index, u32 attr, long *value); 1964 int sensor_index, u32 attr, long *value); 1966 int sensor_index, u32 attr, long *value); 1967 void hl_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, 1972 int sensor_index, u32 attr, long value); 1974 int sensor_index, u32 attr, long value);
|
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/ |
H A 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, i in fimc_is_hw_change_mode() [all...] |
H A D | fimc-is.h | 271 unsigned int sensor_index; member
|
/kernel/linux/linux-6.6/drivers/media/platform/samsung/exynos4-is/ |
H A 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, i in fimc_is_hw_change_mode() [all...] |
H A D | fimc-is.h | 249 * @sensor_index: image sensor index for the firmware 285 unsigned int sensor_index; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | hwmon.c | 15 /* module 0 is mapped to sensor_index 64 in MTMP register */ 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_i in mlx5_hwmon_enable_max_temp() [all...] |
/kernel/linux/linux-5.10/drivers/misc/habanalabs/goya/ |
H A D | goyaP.h | 197 long goya_get_temperature(struct hl_device *hdev, int sensor_index, u32 attr); 198 long goya_get_voltage(struct hl_device *hdev, int sensor_index, u32 attr); 199 long goya_get_current(struct hl_device *hdev, int sensor_index, u32 attr); 200 long goya_get_fan_speed(struct hl_device *hdev, int sensor_index, u32 attr); 201 long goya_get_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr); 202 void goya_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr,
|
/kernel/linux/linux-6.6/drivers/accel/habanalabs/goya/ |
H A 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,
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_env.c | 339 u16 sensor_index, bool enable) in mlxsw_env_temp_event_set() 345 mlxsw_reg_mtmp_sensor_index_set(mtmp_pl, sensor_index); in mlxsw_env_temp_event_set() 352 sensor_index - in mlxsw_env_temp_event_set() 381 int i, err, sensor_index; in mlxsw_env_module_temp_event_enable() local 393 sensor_index = i + MLXSW_REG_MTMP_MODULE_INDEX_MIN; in mlxsw_env_module_temp_event_enable() 394 err = mlxsw_env_temp_event_set(mlxsw_core, sensor_index, true); in mlxsw_env_module_temp_event_enable() 410 /* 64-127 of sensor_index are mapped to the port modules in mlxsw_env_mtwe_event_func() 411 * sequentially (module 0 is mapped to sensor_index 64, in mlxsw_env_mtwe_event_func() 412 * module 1 to sensor_index 65 and so on) in mlxsw_env_mtwe_event_func() 481 u16 sensor_index; in mlxsw_env_pmpe_event_work() local 338 mlxsw_env_temp_event_set(struct mlxsw_core *mlxsw_core, u16 sensor_index, bool enable) mlxsw_env_temp_event_set() argument [all...] |
H A D | core_hwmon.c | 706 int index, max_index, sensor_index; in mlxsw_hwmon_gearbox_init() local 725 sensor_index = index % mlxsw_hwmon->module_sensor_max + in mlxsw_hwmon_gearbox_init() 727 mlxsw_reg_mtmp_pack(mtmp_pl, sensor_index, true, true); in mlxsw_hwmon_gearbox_init() 732 sensor_index); in mlxsw_hwmon_gearbox_init()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_env.c | 800 u16 sensor_index, bool enable) in mlxsw_env_temp_event_set() 807 mlxsw_reg_mtmp_sensor_index_set(mtmp_pl, sensor_index); in mlxsw_env_temp_event_set() 815 sensor_index - in mlxsw_env_temp_event_set() 845 int i, err, sensor_index; in mlxsw_env_module_temp_event_enable() local 857 sensor_index = i + MLXSW_REG_MTMP_MODULE_INDEX_MIN; in mlxsw_env_module_temp_event_enable() 859 sensor_index, true); in mlxsw_env_module_temp_event_enable() 886 /* 64-127 of sensor_index are mapped to the port modules in mlxsw_env_mtwe_event_work() 887 * sequentially (module 0 is mapped to sensor_index 64, in mlxsw_env_mtwe_event_work() 888 * module 1 to sensor_index 65 and so on) in mlxsw_env_mtwe_event_work() 973 u16 sensor_index; in mlxsw_env_pmpe_event_work() local 799 mlxsw_env_temp_event_set(struct mlxsw_core *mlxsw_core, u8 slot_index, u16 sensor_index, bool enable) mlxsw_env_temp_event_set() argument [all...] |
H A 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()
|
H A D | core_thermal.c | 292 u16 sensor_index; in mlxsw_thermal_module_temp_get() local 295 sensor_index = MLXSW_REG_MTMP_MODULE_INDEX_MIN + tz->module; in mlxsw_thermal_module_temp_get() 296 mlxsw_reg_mtmp_pack(mtmp_pl, tz->slot_index, sensor_index, in mlxsw_thermal_module_temp_get()
|
/kernel/linux/linux-6.6/drivers/hid/amd-sfh-hid/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/hid/amd-sfh-hid/sfh1_1/ |
H A D | amd_sfh_interface.h | 21 enum sensor_index { enum
|
/kernel/linux/linux-5.10/drivers/misc/habanalabs/include/common/ |
H A D | cpucp_if.h | 278 __le16 sensor_index; member
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | asus-ec-sensors.c | 843 int sensor_index, in get_cached_value_or_update() 855 *value = state->sensors[sensor_index].cached_value; in get_cached_value_or_update() 890 int sensor_index = find_ec_sensor_index(state, type, channel); in asus_ec_hwmon_read_string() local 891 *str = get_sensor_info(state, sensor_index)->label; in asus_ec_hwmon_read_string() 842 get_cached_value_or_update(const struct device *dev, int sensor_index, struct ec_sensors_data *state, s32 *value) get_cached_value_or_update() argument
|
H A 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()
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_internal.h | 171 int sensor_index; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/ |
H A D | e1000_82575.c | 2785 u8 sensor_index; in igb_get_thermal_sensor_data_generic() local 2811 sensor_index = ((ets_sensor & NVM_ETS_DATA_INDEX_MASK) >> in igb_get_thermal_sensor_data_generic() 2818 e1000_emc_temp_data[sensor_index], in igb_get_thermal_sensor_data_generic() 2839 u8 sensor_index; in igb_init_thermal_sensor_thresh_generic() local 2872 sensor_index = ((ets_sensor & NVM_ETS_DATA_INDEX_MASK) >> in igb_init_thermal_sensor_thresh_generic() 2879 e1000_emc_therm_limit[sensor_index], in igb_init_thermal_sensor_thresh_generic()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igb/ |
H A D | e1000_82575.c | 2785 u8 sensor_index; in igb_get_thermal_sensor_data_generic() local 2811 sensor_index = ((ets_sensor & NVM_ETS_DATA_INDEX_MASK) >> in igb_get_thermal_sensor_data_generic() 2818 e1000_emc_temp_data[sensor_index], in igb_get_thermal_sensor_data_generic() 2839 u8 sensor_index; in igb_init_thermal_sensor_thresh_generic() local 2872 sensor_index = ((ets_sensor & NVM_ETS_DATA_INDEX_MASK) >> in igb_init_thermal_sensor_thresh_generic() 2879 e1000_emc_therm_limit[sensor_index], in igb_init_thermal_sensor_thresh_generic()
|