Home
last modified time | relevance | path

Searched refs:sensor (Results 1 – 25 of 672) sorted by relevance

12345678910>>...27

/Linux-v4.19/drivers/media/i2c/smiapp/
Dsmiapp-core.c68 static int smiapp_read_frame_fmt(struct smiapp_sensor *sensor) in smiapp_read_frame_fmt() argument
70 struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd); in smiapp_read_frame_fmt()
77 rval = smiapp_read(sensor, SMIAPP_REG_U8_FRAME_FORMAT_MODEL_TYPE, in smiapp_read_frame_fmt()
82 rval = smiapp_read(sensor, SMIAPP_REG_U8_FRAME_FORMAT_MODEL_SUBTYPE, in smiapp_read_frame_fmt()
109 rval = smiapp_read(sensor, reg, &desc); in smiapp_read_frame_fmt()
121 rval = smiapp_read(sensor, reg, &desc); in smiapp_read_frame_fmt()
170 sensor->visible_pixel_start = pixel_count; in smiapp_read_frame_fmt()
178 if (sensor->embedded_end) in smiapp_read_frame_fmt()
180 sensor->embedded_start = line_count; in smiapp_read_frame_fmt()
181 sensor->embedded_end = line_count + pixels; in smiapp_read_frame_fmt()
[all …]
Dsmiapp-quirk.c23 static int smiapp_write_8(struct smiapp_sensor *sensor, u16 reg, u8 val) in smiapp_write_8() argument
25 return smiapp_write(sensor, SMIAPP_REG_MK_U8(reg), val); in smiapp_write_8()
28 static int smiapp_write_8s(struct smiapp_sensor *sensor, in smiapp_write_8s() argument
31 struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd); in smiapp_write_8s()
35 rval = smiapp_write_8(sensor, regs->reg, regs->val); in smiapp_write_8s()
47 void smiapp_replace_limit(struct smiapp_sensor *sensor, in smiapp_replace_limit() argument
50 struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd); in smiapp_replace_limit()
55 sensor->limits[limit] = val; in smiapp_replace_limit()
58 static int jt8ew9_limits(struct smiapp_sensor *sensor) in jt8ew9_limits() argument
60 if (sensor->minfo.revision_number_major < 0x03) in jt8ew9_limits()
[all …]
Dsmiapp-quirk.h48 int (*limits)(struct smiapp_sensor *sensor);
49 int (*post_poweron)(struct smiapp_sensor *sensor);
50 int (*pre_streamon)(struct smiapp_sensor *sensor);
51 int (*post_streamoff)(struct smiapp_sensor *sensor);
52 unsigned long (*pll_flags)(struct smiapp_sensor *sensor);
53 int (*init)(struct smiapp_sensor *sensor);
54 int (*reg_access)(struct smiapp_sensor *sensor, bool write, u32 *reg,
66 void smiapp_replace_limit(struct smiapp_sensor *sensor,
75 #define smiapp_call_quirk(sensor, _quirk, ...) \ argument
76 ((sensor)->minfo.quirk && \
[all …]
Dsmiapp-regs.c75 static int ____smiapp_read(struct smiapp_sensor *sensor, u16 reg, in ____smiapp_read() argument
78 struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd); in ____smiapp_read()
134 static int ____smiapp_read_8only(struct smiapp_sensor *sensor, u16 reg, in ____smiapp_read_8only() argument
145 rval = ____smiapp_read(sensor, reg + i, 1, &val8); in ____smiapp_read_8only()
158 static int __smiapp_read(struct smiapp_sensor *sensor, u32 reg, u32 *val, in __smiapp_read() argument
161 struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd); in __smiapp_read()
170 rval = ____smiapp_read(sensor, SMIAPP_REG_ADDR(reg), len, val); in __smiapp_read()
172 rval = ____smiapp_read_8only(sensor, SMIAPP_REG_ADDR(reg), len, in __smiapp_read()
183 int smiapp_read_no_quirk(struct smiapp_sensor *sensor, u32 reg, u32 *val) in smiapp_read_no_quirk() argument
186 sensor, reg, val, in smiapp_read_no_quirk()
[all …]
/Linux-v4.19/drivers/thermal/st/
Dst_thermal.c28 static int st_thermal_alloc_regfields(struct st_thermal_sensor *sensor) in st_thermal_alloc_regfields() argument
30 struct device *dev = sensor->dev; in st_thermal_alloc_regfields()
31 struct regmap *regmap = sensor->regmap; in st_thermal_alloc_regfields()
32 const struct reg_field *reg_fields = sensor->cdata->reg_fields; in st_thermal_alloc_regfields()
34 sensor->dcorrect = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
37 sensor->overflow = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
40 sensor->temp_data = devm_regmap_field_alloc(dev, regmap, in st_thermal_alloc_regfields()
43 if (IS_ERR(sensor->dcorrect) || in st_thermal_alloc_regfields()
44 IS_ERR(sensor->overflow) || in st_thermal_alloc_regfields()
45 IS_ERR(sensor->temp_data)) { in st_thermal_alloc_regfields()
[all …]
Dst_thermal_memmap.c43 struct st_thermal_sensor *sensor = sdata; in st_mmap_thermal_trip_handler() local
45 thermal_zone_device_update(sensor->thermal_dev, in st_mmap_thermal_trip_handler()
52 static int st_mmap_power_ctrl(struct st_thermal_sensor *sensor, in st_mmap_power_ctrl() argument
58 return regmap_update_bits(sensor->regmap, STIH416_MPE_CONF, mask, val); in st_mmap_power_ctrl()
61 static int st_mmap_alloc_regfields(struct st_thermal_sensor *sensor) in st_mmap_alloc_regfields() argument
63 struct device *dev = sensor->dev; in st_mmap_alloc_regfields()
64 struct regmap *regmap = sensor->regmap; in st_mmap_alloc_regfields()
65 const struct reg_field *reg_fields = sensor->cdata->reg_fields; in st_mmap_alloc_regfields()
67 sensor->int_thresh_hi = devm_regmap_field_alloc(dev, regmap, in st_mmap_alloc_regfields()
69 sensor->int_enable = devm_regmap_field_alloc(dev, regmap, in st_mmap_alloc_regfields()
[all …]
Dst_thermal_syscfg.c67 static int st_syscfg_power_ctrl(struct st_thermal_sensor *sensor, in st_syscfg_power_ctrl() argument
70 return regmap_field_write(sensor->pwr, power_state); in st_syscfg_power_ctrl()
73 static int st_syscfg_alloc_regfields(struct st_thermal_sensor *sensor) in st_syscfg_alloc_regfields() argument
75 struct device *dev = sensor->dev; in st_syscfg_alloc_regfields()
77 sensor->pwr = devm_regmap_field_alloc(dev, sensor->regmap, in st_syscfg_alloc_regfields()
78 sensor->cdata->reg_fields[TEMP_PWR]); in st_syscfg_alloc_regfields()
80 if (IS_ERR(sensor->pwr)) { in st_syscfg_alloc_regfields()
82 return PTR_ERR(sensor->pwr); in st_syscfg_alloc_regfields()
88 static int st_syscfg_regmap_init(struct st_thermal_sensor *sensor) in st_syscfg_regmap_init() argument
90 sensor->regmap = in st_syscfg_regmap_init()
[all …]
/Linux-v4.19/drivers/media/i2c/
Dov2680.c186 static struct device *ov2680_to_dev(struct ov2680_dev *sensor) in ov2680_to_dev() argument
188 return &sensor->i2c_client->dev; in ov2680_to_dev()
197 static int __ov2680_write_reg(struct ov2680_dev *sensor, u16 reg, in __ov2680_write_reg() argument
200 struct i2c_client *client = sensor->i2c_client; in __ov2680_write_reg()
227 static int __ov2680_read_reg(struct ov2680_dev *sensor, u16 reg, in __ov2680_read_reg() argument
230 struct i2c_client *client = sensor->i2c_client; in __ov2680_read_reg()
269 static int ov2680_mod_reg(struct ov2680_dev *sensor, u16 reg, u8 mask, u8 val) in ov2680_mod_reg() argument
274 ret = ov2680_read_reg(sensor, reg, &readval); in ov2680_mod_reg()
282 return ov2680_write_reg(sensor, reg, val); in ov2680_mod_reg()
285 static int ov2680_load_regs(struct ov2680_dev *sensor, in ov2680_load_regs() argument
[all …]
Dov5640.c781 static int ov5640_init_slave_id(struct ov5640_dev *sensor) in ov5640_init_slave_id() argument
783 struct i2c_client *client = sensor->i2c_client; in ov5640_init_slave_id()
809 static int ov5640_write_reg(struct ov5640_dev *sensor, u16 reg, u8 val) in ov5640_write_reg() argument
811 struct i2c_client *client = sensor->i2c_client; in ov5640_write_reg()
835 static int ov5640_read_reg(struct ov5640_dev *sensor, u16 reg, u8 *val) in ov5640_read_reg() argument
837 struct i2c_client *client = sensor->i2c_client; in ov5640_read_reg()
866 static int ov5640_read_reg16(struct ov5640_dev *sensor, u16 reg, u16 *val) in ov5640_read_reg16() argument
871 ret = ov5640_read_reg(sensor, reg, &hi); in ov5640_read_reg16()
874 ret = ov5640_read_reg(sensor, reg + 1, &lo); in ov5640_read_reg16()
882 static int ov5640_write_reg16(struct ov5640_dev *sensor, u16 reg, u16 val) in ov5640_write_reg16() argument
[all …]
Dmt9m032.c163 #define to_dev(sensor) \ argument
164 (&((struct i2c_client *)v4l2_get_subdevdata(&(sensor)->subdev))->dev)
176 static u32 mt9m032_row_time(struct mt9m032 *sensor, unsigned int width) in mt9m032_row_time() argument
182 ns = div_u64(1000000000ULL * effective_width, sensor->pix_clock); in mt9m032_row_time()
183 dev_dbg(to_dev(sensor), "MT9M032 line time: %u ns\n", ns); in mt9m032_row_time()
187 static int mt9m032_update_timing(struct mt9m032 *sensor, in mt9m032_update_timing() argument
190 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in mt9m032_update_timing()
191 struct v4l2_rect *crop = &sensor->crop; in mt9m032_update_timing()
197 interval = &sensor->frame_interval; in mt9m032_update_timing()
199 row_time = mt9m032_row_time(sensor, crop->width); in mt9m032_update_timing()
[all …]
Ds5k6a3.c129 struct s5k6a3 *sensor, struct v4l2_subdev_pad_config *cfg, in __s5k6a3_get_format() argument
133 return cfg ? v4l2_subdev_get_try_format(&sensor->subdev, cfg, pad) : NULL; in __s5k6a3_get_format()
135 return &sensor->format; in __s5k6a3_get_format()
142 struct s5k6a3 *sensor = sd_to_s5k6a3(sd); in s5k6a3_set_fmt() local
147 mf = __s5k6a3_get_format(sensor, cfg, fmt->pad, fmt->which); in s5k6a3_set_fmt()
149 mutex_lock(&sensor->lock); in s5k6a3_set_fmt()
151 mutex_unlock(&sensor->lock); in s5k6a3_set_fmt()
160 struct s5k6a3 *sensor = sd_to_s5k6a3(sd); in s5k6a3_get_fmt() local
163 mf = __s5k6a3_get_format(sensor, cfg, fmt->pad, fmt->which); in s5k6a3_get_fmt()
165 mutex_lock(&sensor->lock); in s5k6a3_get_fmt()
[all …]
/Linux-v4.19/drivers/input/rmi4/
Drmi_2d_sensor.c25 void rmi_2d_sensor_abs_process(struct rmi_2d_sensor *sensor, in rmi_2d_sensor_abs_process() argument
29 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_abs_process()
36 obj->x = sensor->max_x - obj->x; in rmi_2d_sensor_abs_process()
39 obj->y = sensor->max_y - obj->y; in rmi_2d_sensor_abs_process()
59 obj->x = min(sensor->max_x, obj->x); in rmi_2d_sensor_abs_process()
62 obj->y = min(sensor->max_y, obj->y); in rmi_2d_sensor_abs_process()
64 sensor->tracking_pos[slot].x = obj->x; in rmi_2d_sensor_abs_process()
65 sensor->tracking_pos[slot].y = obj->y; in rmi_2d_sensor_abs_process()
69 void rmi_2d_sensor_abs_report(struct rmi_2d_sensor *sensor, in rmi_2d_sensor_abs_report() argument
73 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_abs_report()
[all …]
Drmi_f12.c32 struct rmi_2d_sensor sensor; member
66 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_read_sensor_tuning() local
67 struct rmi_function *fn = sensor->fn; in rmi_f12_read_sensor_tuning()
101 sensor->max_x = (buf[offset + 1] << 8) | buf[offset]; in rmi_f12_read_sensor_tuning()
102 sensor->max_y = (buf[offset + 3] << 8) | buf[offset + 2]; in rmi_f12_read_sensor_tuning()
107 sensor->max_x, sensor->max_y); in rmi_f12_read_sensor_tuning()
137 sensor->x_mm = (pitch_x * rx_receivers) >> 12; in rmi_f12_read_sensor_tuning()
138 sensor->y_mm = (pitch_y * tx_receivers) >> 12; in rmi_f12_read_sensor_tuning()
141 sensor->x_mm, sensor->y_mm); in rmi_f12_read_sensor_tuning()
149 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_process_objects() local
[all …]
Drmi_f11.c510 struct rmi_2d_sensor sensor; member
528 struct rmi_2d_sensor *sensor = &f11->sensor; in rmi_f11_rel_pos_report() local
535 rmi_2d_sensor_rel_report(sensor, x, y); in rmi_f11_rel_pos_report()
539 struct rmi_2d_sensor *sensor, in rmi_f11_abs_pos_process() argument
563 rmi_2d_sensor_abs_process(sensor, obj, n_finger); in rmi_f11_abs_pos_process()
573 struct rmi_2d_sensor *sensor, int size) in rmi_f11_finger_handler() argument
580 int abs_size = sensor->nbr_fingers * RMI_F11_ABS_BYTES; in rmi_f11_finger_handler()
582 if (sensor->report_abs) { in rmi_f11_finger_handler()
586 abs_fingers = sensor->nbr_fingers; in rmi_f11_finger_handler()
597 rmi_f11_abs_pos_process(f11, sensor, &sensor->objs[i], in rmi_f11_finger_handler()
[all …]
/Linux-v4.19/drivers/hwmon/
Dscpi-hwmon.c65 static void scpi_scale_reading(u64 *value, struct sensor_data *sensor) in scpi_scale_reading() argument
67 if (scpi_scale[sensor->info.class] != sensor->scale) { in scpi_scale_reading()
68 *value *= scpi_scale[sensor->info.class]; in scpi_scale_reading()
69 do_div(*value, sensor->scale); in scpi_scale_reading()
78 struct sensor_data *sensor = &scpi_sensors->data[zone->sensor_id]; in scpi_read_temp() local
82 ret = scpi_ops->sensor_get_value(sensor->info.sensor_id, &value); in scpi_read_temp()
86 scpi_scale_reading(&value, sensor); in scpi_read_temp()
98 struct sensor_data *sensor; in scpi_show_sensor() local
102 sensor = container_of(attr, struct sensor_data, dev_attr_input); in scpi_show_sensor()
104 ret = scpi_ops->sensor_get_value(sensor->info.sensor_id, &value); in scpi_show_sensor()
[all …]
Dscmi-hwmon.c26 const struct scmi_sensor_info *sensor; in scmi_hwmon_read() local
30 sensor = *(scmi_sensors->info[type] + channel); in scmi_hwmon_read()
31 ret = h->sensor_ops->reading_get(h, sensor->id, false, &value); in scmi_hwmon_read()
42 const struct scmi_sensor_info *sensor; in scmi_hwmon_read_string() local
45 sensor = *(scmi_sensors->info[type] + channel); in scmi_hwmon_read_string()
46 *str = sensor->name; in scmi_hwmon_read_string()
55 const struct scmi_sensor_info *sensor; in scmi_hwmon_is_visible() local
58 sensor = *(scmi_sensors->info[type] + channel); in scmi_hwmon_is_visible()
59 if (sensor && sensor->name) in scmi_hwmon_is_visible()
117 const struct scmi_sensor_info *sensor; in scmi_hwmon_probe() local
[all …]
/Linux-v4.19/drivers/media/i2c/et8ek8/
Det8ek8_driver.c562 static int et8ek8_set_gain(struct et8ek8_sensor *sensor, s32 gain) in et8ek8_set_gain() argument
564 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in et8ek8_set_gain()
590 static int et8ek8_set_test_pattern(struct et8ek8_sensor *sensor, s32 mode) in et8ek8_set_test_pattern() argument
592 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in et8ek8_set_test_pattern()
646 struct et8ek8_sensor *sensor = in et8ek8_set_ctrl() local
651 return et8ek8_set_gain(sensor, ctrl->val); in et8ek8_set_ctrl()
656 v4l2_get_subdevdata(&sensor->subdev); in et8ek8_set_ctrl()
663 return et8ek8_set_test_pattern(sensor, ctrl->val); in et8ek8_set_ctrl()
689 static int et8ek8_init_controls(struct et8ek8_sensor *sensor) in et8ek8_init_controls() argument
693 v4l2_ctrl_handler_init(&sensor->ctrl_handler, 4); in et8ek8_init_controls()
[all …]
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/
Dbase.c70 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, in nvkm_iccsense_ina2x9_read()
93 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, in nvkm_iccsense_ina3221_read()
101 struct nvkm_iccsense_sensor *sensor) in nvkm_iccsense_sensor_config() argument
104 nvkm_trace(subdev, "write config of extdev %i: 0x%04x\n", sensor->id, sensor->config); in nvkm_iccsense_sensor_config()
105 nv_wr16i2cr(sensor->i2c, sensor->addr, 0x00, sensor->config); in nvkm_iccsense_sensor_config()
134 struct nvkm_iccsense_sensor *sensor, *tmps; in nvkm_iccsense_dtor() local
137 list_for_each_entry_safe(sensor, tmps, &iccsense->sensors, head) { in nvkm_iccsense_dtor()
138 list_del(&sensor->head); in nvkm_iccsense_dtor()
139 kfree(sensor); in nvkm_iccsense_dtor()
157 struct nvkm_iccsense_sensor *sensor; in nvkm_iccsense_create_sensor() local
[all …]
/Linux-v4.19/drivers/staging/comedi/drivers/
Djr3_pci.c108 struct jr3_sensor __iomem *sensor; member
129 static int is_complete(struct jr3_sensor __iomem *sensor) in is_complete() argument
131 return get_s16(&sensor->command_word0) == 0; in is_complete()
134 static void set_transforms(struct jr3_sensor __iomem *sensor, in set_transforms() argument
141 set_u16(&sensor->transforms[num].link[i].link_type, in set_transforms()
144 set_s16(&sensor->transforms[num].link[i].link_amount, in set_transforms()
152 static void use_transform(struct jr3_sensor __iomem *sensor, in use_transform() argument
155 set_s16(&sensor->command_word0, 0x0500 + (transf_num & 0x000f)); in use_transform()
158 static void use_offset(struct jr3_sensor __iomem *sensor, short offset_num) in use_offset() argument
160 set_s16(&sensor->command_word0, 0x0600 + (offset_num & 0x000f)); in use_offset()
[all …]
/Linux-v4.19/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_core.c371 static int st_lsm6dsx_set_full_scale(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_set_full_scale() argument
374 struct st_lsm6dsx_hw *hw = sensor->hw; in st_lsm6dsx_set_full_scale()
380 if (st_lsm6dsx_fs_table[sensor->id].fs_avl[i].gain == gain) in st_lsm6dsx_set_full_scale()
386 val = st_lsm6dsx_fs_table[sensor->id].fs_avl[i].val; in st_lsm6dsx_set_full_scale()
387 reg = &st_lsm6dsx_fs_table[sensor->id].reg; in st_lsm6dsx_set_full_scale()
393 sensor->gain = gain; in st_lsm6dsx_set_full_scale()
398 static int st_lsm6dsx_check_odr(struct st_lsm6dsx_sensor *sensor, u16 odr, in st_lsm6dsx_check_odr() argument
404 if (st_lsm6dsx_odr_table[sensor->id].odr_avl[i].hz == odr) in st_lsm6dsx_check_odr()
410 *val = st_lsm6dsx_odr_table[sensor->id].odr_avl[i].val; in st_lsm6dsx_check_odr()
415 static int st_lsm6dsx_set_odr(struct st_lsm6dsx_sensor *sensor, u16 odr) in st_lsm6dsx_set_odr() argument
[all …]
/Linux-v4.19/drivers/thermal/
Dhisi_thermal.c74 struct hisi_thermal_sensor sensor; member
247 static inline void hi6220_thermal_sensor_select(void __iomem *addr, int sensor) in hi6220_thermal_sensor_select() argument
250 (sensor << 12), addr + HI6220_TEMP0_CFG); in hi6220_thermal_sensor_select()
277 hi3660_thermal_alarm_clear(data->regs, data->sensor.id, 1); in hi3660_thermal_irq_handler()
288 return hi3660_thermal_get_temperature(data->regs, data->sensor.id); in hi3660_thermal_get_temp()
306 hi3660_thermal_alarm_enable(data->regs, data->sensor.id, 0); in hi3660_thermal_disable_sensor()
312 struct hisi_thermal_sensor *sensor = &data->sensor; in hi6220_thermal_enable_sensor() local
325 hi6220_thermal_sensor_select(data->regs, sensor->id); in hi6220_thermal_enable_sensor()
334 hi6220_thermal_alarm_set(data->regs, sensor->thres_temp); in hi6220_thermal_enable_sensor()
351 struct hisi_thermal_sensor *sensor = &data->sensor; in hi3660_thermal_enable_sensor() local
[all …]
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dg84.c56 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in g84_therm_program_alarms() local
61 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags); in g84_therm_program_alarms()
67 nvkm_wr32(device, 0x20484, sensor->thrs_shutdown.hysteresis); in g84_therm_program_alarms()
68 nvkm_wr32(device, 0x20480, sensor->thrs_shutdown.temp); in g84_therm_program_alarms()
71 nvkm_wr32(device, 0x204c4, sensor->thrs_fan_boost.temp); in g84_therm_program_alarms()
74 nvkm_wr32(device, 0x204c0, sensor->thrs_critical.temp); in g84_therm_program_alarms()
77 nvkm_wr32(device, 0x20414, sensor->thrs_down_clock.temp); in g84_therm_program_alarms()
78 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags); in g84_therm_program_alarms()
82 sensor->thrs_fan_boost.temp, in g84_therm_program_alarms()
83 sensor->thrs_fan_boost.hysteresis, in g84_therm_program_alarms()
[all …]
Dtemp.c62 therm->sensor.alarm_state[thrs] = st; in nvkm_therm_sensor_set_threshold_state()
70 return therm->sensor.alarm_state[thrs]; in nvkm_therm_sensor_get_threshold_state()
165 container_of(alarm, struct nvkm_therm, sensor.therm_poll_alarm); in alarm_timer_callback()
166 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in alarm_timer_callback() local
170 spin_lock_irqsave(&therm->sensor.alarm_program_lock, flags); in alarm_timer_callback()
172 nvkm_therm_threshold_hyst_polling(therm, &sensor->thrs_fan_boost, in alarm_timer_callback()
176 &sensor->thrs_down_clock, in alarm_timer_callback()
179 nvkm_therm_threshold_hyst_polling(therm, &sensor->thrs_critical, in alarm_timer_callback()
182 nvkm_therm_threshold_hyst_polling(therm, &sensor->thrs_shutdown, in alarm_timer_callback()
185 spin_unlock_irqrestore(&therm->sensor.alarm_program_lock, flags); in alarm_timer_callback()
[all …]
/Linux-v4.19/drivers/media/usb/gspca/
Dt613.c47 u8 sensor; member
522 all_gain_reg[7] = sensor_data[sd->sensor].reg80; in setawb_n_RGB()
544 switch (sd->sensor) { in setfreq()
578 const struct additional_sensor_data *sensor; in sd_init() local
596 sd->sensor = SENSOR_TAS5130A; in sd_init()
600 sd->sensor = SENSOR_LT168G; in sd_init()
604 sd->sensor = SENSOR_OTHER; in sd_init()
608 sd->sensor = SENSOR_OM6802; in sd_init()
615 if (sd->sensor == SENSOR_OM6802) { in sd_init()
640 sensor = &sensor_data[sd->sensor]; in sd_init()
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/hwmon/
Dibmpowernv.txt6 "ibm,opal-sensor-cooling-fan"
7 "ibm,opal-sensor-amb-temp"
8 "ibm,opal-sensor-power-supply"
9 "ibm,opal-sensor-power"
10 - sensor-id: an opaque id provided by the firmware to the kernel, identifies a
11 given sensor and its attribute data
16 sensor-id = <0x7052107>;
17 compatible = "ibm,opal-sensor-cooling-fan";
21 sensor-id = <0x5096000>;
22 compatible = "ibm,opal-sensor-amb-temp";

12345678910>>...27