Home
last modified time | relevance | path

Searched refs:sensor_index (Results 1 – 17 of 17) sorted by relevance

/Linux-v5.10/drivers/misc/habanalabs/common/
Dhwmon.c312 int sensor_index, u32 attr, long *value) in hl_get_temperature() argument
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() argument
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() argument
372 pkt.sensor_index = __cpu_to_le16(sensor_index); in hl_get_voltage()
381 sensor_index, rc); in hl_get_voltage()
389 int sensor_index, u32 attr, long *value) in hl_get_current() argument
[all …]
Dhabanalabs.h1956 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);
/Linux-v5.10/drivers/media/platform/exynos4-is/
Dfimc-is-regs.c61 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 …]
Dfimc-is.h271 unsigned int sensor_index; member
Dfimc-is.c545 is->sensor_index = 0; in fimc_is_general_irq_handler()
640 mcuctl_write(is->sensor_index, is, MCUCTL_REG_ISSR(1)); in fimc_is_hw_open_sensor()
/Linux-v5.10/drivers/misc/habanalabs/goya/
DgoyaP.h197 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,
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dcore_env.c339 u16 sensor_index, bool enable) in mlxsw_env_temp_event_set() argument
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()
481 u16 sensor_index; in mlxsw_env_pmpe_event_work() local
503 sensor_index = event->module + MLXSW_REG_MTMP_MODULE_INDEX_MIN; in mlxsw_env_pmpe_event_work()
504 mlxsw_env_temp_event_set(mlxsw_env->core, sensor_index, true); in mlxsw_env_pmpe_event_work()
Dcore_hwmon.c706 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()
Dreg.h8479 MLXSW_ITEM32(reg, mtmp, sensor_index, 0x00, 0, 12);
8552 static inline void mlxsw_reg_mtmp_pack(char *payload, u16 sensor_index, in mlxsw_reg_mtmp_pack() argument
8557 mlxsw_reg_mtmp_sensor_index_set(payload, sensor_index); in mlxsw_reg_mtmp_pack()
/Linux-v5.10/drivers/misc/habanalabs/include/common/
Dcpucp_if.h278 __le16 sensor_index; member
/Linux-v5.10/drivers/hwmon/
Dabituguru3.c961 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-v5.10/drivers/staging/media/atomisp/pci/
Datomisp_internal.h171 int sensor_index; member
Datomisp_ioctl.c728 0, isp->inputs[input].sensor_index, 0); in atomisp_s_input()
1515 int sensor_index = isp->asd[i].input_curr; in atomisp_stream_on_master_slave_sensor() local
1517 if (isp->inputs[sensor_index].camera_caps-> in atomisp_stream_on_master_slave_sensor()
1519 slave = sensor_index; in atomisp_stream_on_master_slave_sensor()
1521 master = sensor_index; in atomisp_stream_on_master_slave_sensor()
1600 int sensor_index = isp->asd[i].input_curr; in atomisp_pause_buffer_event() local
1602 if (isp->inputs[sensor_index].camera_caps-> in atomisp_pause_buffer_event()
Datomisp_v4l2.c1101 isp->inputs[isp->input_cnt].sensor_index = 0; in atomisp_subdev_probe()
1121 isp->inputs[isp->input_cnt].sensor_index = i; in atomisp_subdev_probe()
/Linux-v5.10/drivers/net/ethernet/intel/igb/
De1000_82575.c2785 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()
/Linux-v5.10/drivers/platform/chrome/wilco_ec/
Dtelemetry.c107 u8 sensor_index; member
/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_common.c3927 u8 sensor_index; in ixgbe_get_thermal_sensor_data_generic() local
3935 sensor_index = ((ets_sensor & IXGBE_ETS_DATA_INDEX_MASK) >> in ixgbe_get_thermal_sensor_data_generic()
3942 ixgbe_emc_temp_data[sensor_index], in ixgbe_get_thermal_sensor_data_generic()
3989 u8 sensor_index; in ixgbe_init_thermal_sensor_thresh_generic() local
3997 sensor_index = ((ets_sensor & IXGBE_ETS_DATA_INDEX_MASK) >> in ixgbe_init_thermal_sensor_thresh_generic()
4004 ixgbe_emc_therm_limit[sensor_index], in ixgbe_init_thermal_sensor_thresh_generic()