Home
last modified time | relevance | path

Searched defs:sensor (Results 1 – 25 of 133) sorted by relevance

123456

/kernel/linux/linux-5.10/drivers/media/i2c/smiapp/
Dsmiapp-quirk.c15 static int smiapp_write_8(struct smiapp_sensor *sensor, u16 reg, u8 val) in smiapp_write_8()
20 static int smiapp_write_8s(struct smiapp_sensor *sensor, in smiapp_write_8s()
39 void smiapp_replace_limit(struct smiapp_sensor *sensor, in smiapp_replace_limit()
50 static int jt8ew9_limits(struct smiapp_sensor *sensor) in jt8ew9_limits()
64 static int jt8ew9_post_poweron(struct smiapp_sensor *sensor) in jt8ew9_post_poweron()
107 static int imx125es_post_poweron(struct smiapp_sensor *sensor) in imx125es_post_poweron()
127 static int jt8ev1_limits(struct smiapp_sensor *sensor) in jt8ev1_limits()
136 static int jt8ev1_post_poweron(struct smiapp_sensor *sensor) in jt8ev1_post_poweron()
182 static int jt8ev1_pre_streamon(struct smiapp_sensor *sensor) in jt8ev1_pre_streamon()
187 static int jt8ev1_post_streamoff(struct smiapp_sensor *sensor) in jt8ev1_post_streamoff()
[all …]
Dsmiapp-core.c60 static u32 smiapp_get_limit(struct smiapp_sensor *sensor, in smiapp_get_limit()
69 #define SMIA_LIM(sensor, limit) \ argument
72 static int smiapp_read_all_smia_limits(struct smiapp_sensor *sensor) in smiapp_read_all_smia_limits()
99 static int smiapp_read_frame_fmt(struct smiapp_sensor *sensor) in smiapp_read_frame_fmt()
236 static int smiapp_pll_configure(struct smiapp_sensor *sensor) in smiapp_pll_configure()
277 static int smiapp_pll_try(struct smiapp_sensor *sensor, in smiapp_pll_try()
316 static int smiapp_pll_update(struct smiapp_sensor *sensor) in smiapp_pll_update()
346 static void __smiapp_update_exposure_limits(struct smiapp_sensor *sensor) in __smiapp_update_exposure_limits()
399 static u32 smiapp_pixel_order(struct smiapp_sensor *sensor) in smiapp_pixel_order()
418 static void smiapp_update_mbus_formats(struct smiapp_sensor *sensor) in smiapp_update_mbus_formats()
[all …]
Dsmiapp-regs.c69 static int ____smiapp_read(struct smiapp_sensor *sensor, u16 reg, in ____smiapp_read()
116 static int ____smiapp_read_8only(struct smiapp_sensor *sensor, u16 reg, in ____smiapp_read_8only()
140 static int __smiapp_read(struct smiapp_sensor *sensor, u32 reg, u32 *val, in __smiapp_read()
165 int smiapp_read_no_quirk(struct smiapp_sensor *sensor, u32 reg, u32 *val) in smiapp_read_no_quirk()
173 static int smiapp_read_quirk(struct smiapp_sensor *sensor, u32 reg, u32 *val, in smiapp_read_quirk()
191 int smiapp_read(struct smiapp_sensor *sensor, u32 reg, u32 *val) in smiapp_read()
196 int smiapp_read_8only(struct smiapp_sensor *sensor, u32 reg, u32 *val) in smiapp_read_8only()
201 int smiapp_write_no_quirk(struct smiapp_sensor *sensor, u32 reg, u32 val) in smiapp_write_no_quirk()
250 int smiapp_write(struct smiapp_sensor *sensor, u32 reg, u32 val) in smiapp_write()
/kernel/linux/linux-5.10/drivers/media/i2c/
Dov2680.c186 static struct device *ov2680_to_dev(struct ov2680_dev *sensor) in ov2680_to_dev()
197 static int __ov2680_write_reg(struct ov2680_dev *sensor, u16 reg, in __ov2680_write_reg()
227 static int __ov2680_read_reg(struct ov2680_dev *sensor, u16 reg, in __ov2680_read_reg()
269 static int ov2680_mod_reg(struct ov2680_dev *sensor, u16 reg, u8 mask, u8 val) in ov2680_mod_reg()
285 static int ov2680_load_regs(struct ov2680_dev *sensor, in ov2680_load_regs()
306 static void ov2680_power_up(struct ov2680_dev *sensor) in ov2680_power_up()
315 static void ov2680_power_down(struct ov2680_dev *sensor) in ov2680_power_down()
324 static int ov2680_bayer_order(struct ov2680_dev *sensor) in ov2680_bayer_order()
346 static int ov2680_vflip_enable(struct ov2680_dev *sensor) in ov2680_vflip_enable()
357 static int ov2680_vflip_disable(struct ov2680_dev *sensor) in ov2680_vflip_disable()
[all …]
Dov5640.c602 static int ov5640_init_slave_id(struct ov5640_dev *sensor) in ov5640_init_slave_id()
630 static int ov5640_write_reg(struct ov5640_dev *sensor, u16 reg, u8 val) in ov5640_write_reg()
656 static int ov5640_read_reg(struct ov5640_dev *sensor, u16 reg, u8 *val) in ov5640_read_reg()
687 static int ov5640_read_reg16(struct ov5640_dev *sensor, u16 reg, u16 *val) in ov5640_read_reg16()
703 static int ov5640_write_reg16(struct ov5640_dev *sensor, u16 reg, u16 val) in ov5640_write_reg16()
714 static int ov5640_mod_reg(struct ov5640_dev *sensor, u16 reg, in ov5640_mod_reg()
845 static unsigned long ov5640_compute_sys_clk(struct ov5640_dev *sensor, in ov5640_compute_sys_clk()
858 static unsigned long ov5640_calc_sys_clk(struct ov5640_dev *sensor, in ov5640_calc_sys_clk()
960 static int ov5640_set_mipi_pclk(struct ov5640_dev *sensor, in ov5640_set_mipi_pclk()
1002 static unsigned long ov5640_calc_pclk(struct ov5640_dev *sensor, in ov5640_calc_pclk()
[all …]
Dmt9m032.c155 #define to_dev(sensor) \ argument
168 static u32 mt9m032_row_time(struct mt9m032 *sensor, unsigned int width) in mt9m032_row_time()
179 static int mt9m032_update_timing(struct mt9m032 *sensor, in mt9m032_update_timing()
215 static int mt9m032_update_geom_timing(struct mt9m032 *sensor) in mt9m032_update_geom_timing()
236 static int update_formatter2(struct mt9m032 *sensor, bool streaming) in update_formatter2()
249 static int mt9m032_setup_pll(struct mt9m032 *sensor) in mt9m032_setup_pll()
341 __mt9m032_get_pad_crop(struct mt9m032 *sensor, struct v4l2_subdev_pad_config *cfg, in __mt9m032_get_pad_crop()
363 __mt9m032_get_pad_format(struct mt9m032 *sensor, struct v4l2_subdev_pad_config *cfg, in __mt9m032_get_pad_format()
380 struct mt9m032 *sensor = to_mt9m032(subdev); in mt9m032_get_pad_format() local
393 struct mt9m032 *sensor = to_mt9m032(subdev); in mt9m032_set_pad_format() local
[all …]
Ds5k6a3.c126 struct s5k6a3 *sensor, struct v4l2_subdev_pad_config *cfg, in __s5k6a3_get_format()
139 struct s5k6a3 *sensor = sd_to_s5k6a3(sd); in s5k6a3_set_fmt() local
157 struct s5k6a3 *sensor = sd_to_s5k6a3(sd); in s5k6a3_get_fmt() local
189 static int __s5k6a3_power_on(struct s5k6a3 *sensor) in __s5k6a3_power_on()
234 static int __s5k6a3_power_off(struct s5k6a3 *sensor) in __s5k6a3_power_off()
250 struct s5k6a3 *sensor = sd_to_s5k6a3(sd); in s5k6a3_s_power() local
281 struct s5k6a3 *sensor; in s5k6a3_probe() local
Dvs6624.c564 struct vs6624 *sensor = to_vs6624(sd); in vs6624_set_fmt() local
643 struct vs6624 *sensor = to_vs6624(sd); in vs6624_get_fmt() local
655 struct vs6624 *sensor = to_vs6624(sd); in vs6624_g_frame_interval() local
665 struct vs6624 *sensor = to_vs6624(sd); in vs6624_s_frame_interval() local
744 struct vs6624 *sensor; in vs6624_probe() local
/kernel/linux/linux-5.10/drivers/thermal/st/
Dst_thermal.c23 static int st_thermal_alloc_regfields(struct st_thermal_sensor *sensor) in st_thermal_alloc_regfields()
48 static int st_thermal_sensor_on(struct st_thermal_sensor *sensor) in st_thermal_sensor_on()
68 static int st_thermal_sensor_off(struct st_thermal_sensor *sensor) in st_thermal_sensor_off()
81 static int st_thermal_calibration(struct st_thermal_sensor *sensor) in st_thermal_calibration()
111 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_temp() local
140 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_trip_type() local
158 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_trip_temp() local
182 struct st_thermal_sensor *sensor; in st_thermal_register() local
268 struct st_thermal_sensor *sensor = platform_get_drvdata(pdev); in st_thermal_unregister() local
280 struct st_thermal_sensor *sensor = dev_get_drvdata(dev); in st_thermal_suspend() local
[all …]
Dstm_thermal.c102 static int stm_enable_irq(struct stm_thermal_sensor *sensor) in stm_enable_irq()
127 struct stm_thermal_sensor *sensor = sdata; in stm_thermal_irq_handler() local
142 static int stm_sensor_power_on(struct stm_thermal_sensor *sensor) in stm_sensor_power_on()
175 static int stm_sensor_power_off(struct stm_thermal_sensor *sensor) in stm_sensor_power_off()
200 static int stm_thermal_calibration(struct stm_thermal_sensor *sensor) in stm_thermal_calibration()
244 static int stm_thermal_read_factory_settings(struct stm_thermal_sensor *sensor) in stm_thermal_read_factory_settings()
273 static int stm_thermal_calculate_threshold(struct stm_thermal_sensor *sensor, in stm_thermal_calculate_threshold()
293 static int stm_disable_irq(struct stm_thermal_sensor *sensor) in stm_disable_irq()
307 struct stm_thermal_sensor *sensor = data; in stm_thermal_set_trips() local
355 struct stm_thermal_sensor *sensor = data; in stm_thermal_get_temp() local
[all …]
Dst_thermal_memmap.c39 struct st_thermal_sensor *sensor = sdata; in st_mmap_thermal_trip_handler() local
48 static int st_mmap_power_ctrl(struct st_thermal_sensor *sensor, in st_mmap_power_ctrl()
57 static int st_mmap_alloc_regfields(struct st_thermal_sensor *sensor) in st_mmap_alloc_regfields()
76 static int st_mmap_enable_irq(struct st_thermal_sensor *sensor) in st_mmap_enable_irq()
90 static int st_mmap_register_enable_irq(struct st_thermal_sensor *sensor) in st_mmap_register_enable_irq()
118 static int st_mmap_regmap_init(struct st_thermal_sensor *sensor) in st_mmap_regmap_init()
Dst_thermal_syscfg.c63 static int st_syscfg_power_ctrl(struct st_thermal_sensor *sensor, in st_syscfg_power_ctrl()
69 static int st_syscfg_alloc_regfields(struct st_thermal_sensor *sensor) in st_syscfg_alloc_regfields()
84 static int st_syscfg_regmap_init(struct st_thermal_sensor *sensor) in st_syscfg_regmap_init()
/kernel/linux/linux-5.10/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_shub.c158 struct st_lsm6dsx_sensor *sensor; in st_lsm6dsx_shub_wait_complete() local
244 static int st_lsm6dsx_shub_master_enable(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_shub_master_enable()
285 st_lsm6dsx_shub_read(struct st_lsm6dsx_sensor *sensor, u8 addr, in st_lsm6dsx_shub_read()
337 st_lsm6dsx_shub_write(struct st_lsm6dsx_sensor *sensor, u8 addr, in st_lsm6dsx_shub_write()
388 st_lsm6dsx_shub_write_with_mask(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_shub_write_with_mask()
404 st_lsm6dsx_shub_get_odr_val(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_shub_get_odr_val()
424 st_lsm6dsx_shub_set_odr(struct st_lsm6dsx_sensor *sensor, u32 odr) in st_lsm6dsx_shub_set_odr()
443 st_lsm6dsx_shub_config_channels(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_shub_config_channels()
480 int st_lsm6dsx_shub_set_enable(struct st_lsm6dsx_sensor *sensor, bool enable) in st_lsm6dsx_shub_set_enable()
519 st_lsm6dsx_shub_read_oneshot(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_shub_read_oneshot()
[all …]
Dst_lsm6dsx_core.c1391 static int st_lsm6dsx_set_full_scale(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_set_full_scale()
1419 int st_lsm6dsx_check_odr(struct st_lsm6dsx_sensor *sensor, u32 odr, u8 *val) in st_lsm6dsx_check_odr()
1458 st_lsm6dsx_set_odr(struct st_lsm6dsx_sensor *sensor, u32 req_odr) in st_lsm6dsx_set_odr()
1511 __st_lsm6dsx_sensor_set_enable(struct st_lsm6dsx_sensor *sensor, in __st_lsm6dsx_sensor_set_enable()
1531 st_lsm6dsx_check_events(struct st_lsm6dsx_sensor *sensor, bool enable) in st_lsm6dsx_check_events()
1541 int st_lsm6dsx_sensor_set_enable(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_sensor_set_enable()
1550 static int st_lsm6dsx_read_oneshot(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_read_oneshot()
1587 struct st_lsm6dsx_sensor *sensor = iio_priv(iio_dev); in st_lsm6dsx_read_raw() local
1621 struct st_lsm6dsx_sensor *sensor = iio_priv(iio_dev); in st_lsm6dsx_write_raw() local
1684 struct st_lsm6dsx_sensor *sensor = iio_priv(iio_dev); in st_lsm6dsx_read_event() local
[all …]
Dst_lsm6dsx_buffer.c82 st_lsm6dsx_get_decimator_val(struct st_lsm6dsx_sensor *sensor, u32 max_odr) in st_lsm6dsx_get_decimator_val()
103 struct st_lsm6dsx_sensor *sensor; in st_lsm6dsx_get_max_min_odr() local
121 static u8 st_lsm6dsx_get_sip(struct st_lsm6dsx_sensor *sensor, u32 min_odr) in st_lsm6dsx_get_sip()
131 struct st_lsm6dsx_sensor *sensor; in st_lsm6dsx_update_decimators() local
197 static int st_lsm6dsx_set_fifo_odr(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_set_fifo_odr()
231 int st_lsm6dsx_update_watermark(struct st_lsm6dsx_sensor *sensor, u16 watermark) in st_lsm6dsx_update_watermark()
282 struct st_lsm6dsx_sensor *sensor; in st_lsm6dsx_reset_hw_ts() local
500 struct st_lsm6dsx_sensor *sensor; in st_lsm6dsx_push_tagged_data() local
656 int st_lsm6dsx_update_fifo(struct st_lsm6dsx_sensor *sensor, bool enable) in st_lsm6dsx_update_fifo()
715 struct st_lsm6dsx_sensor *sensor = iio_priv(iio_dev); in st_lsm6dsx_buffer_preenable() local
[all …]
/kernel/linux/linux-5.10/drivers/media/i2c/et8ek8/
Det8ek8_driver.c554 static int et8ek8_set_gain(struct et8ek8_sensor *sensor, s32 gain) in et8ek8_set_gain()
582 static int et8ek8_set_test_pattern(struct et8ek8_sensor *sensor, s32 mode) in et8ek8_set_test_pattern()
638 struct et8ek8_sensor *sensor = in et8ek8_set_ctrl() local
681 static int et8ek8_init_controls(struct et8ek8_sensor *sensor) in et8ek8_init_controls()
721 static void et8ek8_update_controls(struct et8ek8_sensor *sensor) in et8ek8_update_controls()
746 static int et8ek8_configure(struct et8ek8_sensor *sensor) in et8ek8_configure()
772 static int et8ek8_stream_on(struct et8ek8_sensor *sensor) in et8ek8_stream_on()
779 static int et8ek8_stream_off(struct et8ek8_sensor *sensor) in et8ek8_stream_off()
788 struct et8ek8_sensor *sensor = to_et8ek8_sensor(subdev); in et8ek8_s_stream() local
805 static int et8ek8_power_off(struct et8ek8_sensor *sensor) in et8ek8_power_off()
[all …]
/kernel/linux/linux-5.10/drivers/thermal/
Dhisi_thermal.c86 struct hisi_thermal_sensor *sensor; member
261 static inline void hi6220_thermal_sensor_select(void __iomem *addr, int sensor) in hi6220_thermal_sensor_select()
283 static int hi6220_thermal_irq_handler(struct hisi_thermal_sensor *sensor) in hi6220_thermal_irq_handler()
291 static int hi3660_thermal_irq_handler(struct hisi_thermal_sensor *sensor) in hi3660_thermal_irq_handler()
299 static int hi6220_thermal_get_temp(struct hisi_thermal_sensor *sensor) in hi6220_thermal_get_temp()
306 static int hi3660_thermal_get_temp(struct hisi_thermal_sensor *sensor) in hi3660_thermal_get_temp()
313 static int hi6220_thermal_disable_sensor(struct hisi_thermal_sensor *sensor) in hi6220_thermal_disable_sensor()
327 static int hi3660_thermal_disable_sensor(struct hisi_thermal_sensor *sensor) in hi3660_thermal_disable_sensor()
336 static int hi6220_thermal_enable_sensor(struct hisi_thermal_sensor *sensor) in hi6220_thermal_enable_sensor()
374 static int hi3660_thermal_enable_sensor(struct hisi_thermal_sensor *sensor) in hi3660_thermal_enable_sensor()
[all …]
Dthermal_mmio.c26 struct thermal_mmio *sensor = in thermal_mmio_get_temperature() local
44 struct thermal_mmio *sensor; in thermal_mmio_probe() local
94 struct thermal_mmio *sensor) in al_thermal_init()
/kernel/linux/linux-5.10/drivers/input/rmi4/
Drmi_2d_sensor.c22 void rmi_2d_sensor_abs_process(struct rmi_2d_sensor *sensor, in rmi_2d_sensor_abs_process()
66 void rmi_2d_sensor_abs_report(struct rmi_2d_sensor *sensor, in rmi_2d_sensor_abs_report()
113 void rmi_2d_sensor_rel_report(struct rmi_2d_sensor *sensor, int x, int y) in rmi_2d_sensor_rel_report()
136 static void rmi_2d_sensor_set_input_params(struct rmi_2d_sensor *sensor) in rmi_2d_sensor_set_input_params()
209 struct rmi_2d_sensor *sensor) in rmi_2d_sensor_configure_input()
Drmi_f12.c29 struct rmi_2d_sensor sensor; member
66 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_read_sensor_tuning() local
147 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_process_objects() local
205 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_attention() local
298 struct rmi_2d_sensor *sensor; in rmi_f12_config() local
326 struct rmi_2d_sensor *sensor; in rmi_f12_probe() local
/kernel/linux/linux-5.10/drivers/hwmon/
Dscpi-hwmon.c57 static void scpi_scale_reading(u64 *value, struct sensor_data *sensor) in scpi_scale_reading()
70 struct sensor_data *sensor = &scpi_sensors->data[zone->sensor_id]; in scpi_read_temp() local
90 struct sensor_data *sensor; in scpi_show_sensor() local
117 struct sensor_data *sensor; in scpi_show_label() local
182 struct sensor_data *sensor = &scpi_sensors->data[idx]; in scpi_hwmon_probe() local
267 struct sensor_data *sensor = &scpi_sensors->data[i]; in scpi_hwmon_probe() local
Dscmi-hwmon.c31 static int scmi_hwmon_scale(const struct scmi_sensor_info *sensor, u64 *value) in scmi_hwmon_scale()
70 const struct scmi_sensor_info *sensor; in scmi_hwmon_read() local
90 const struct scmi_sensor_info *sensor; in scmi_hwmon_read_string() local
103 const struct scmi_sensor_info *sensor; in scmi_hwmon_is_visible() local
165 const struct scmi_sensor_info *sensor; in scmi_hwmon_probe() local
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/
Dbase.c101 struct nvkm_iccsense_sensor *sensor) in nvkm_iccsense_sensor_config()
134 struct nvkm_iccsense_sensor *sensor, *tmps; in nvkm_iccsense_dtor() local
157 struct nvkm_iccsense_sensor *sensor; in nvkm_iccsense_create_sensor() local
207 struct nvkm_iccsense_sensor *sensor; in nvkm_iccsense_get_sensor() local
244 struct nvkm_iccsense_sensor *sensor; in nvkm_iccsense_oneinit() local
301 struct nvkm_iccsense_sensor *sensor; in nvkm_iccsense_init() local
/kernel/linux/linux-5.10/drivers/iio/temperature/
Dltc2983.c231 struct ltc2983_sensor sensor; member
238 struct ltc2983_sensor sensor; member
247 struct ltc2983_sensor sensor; member
255 struct ltc2983_sensor sensor; member
262 struct ltc2983_sensor sensor; member
267 struct ltc2983_sensor sensor; member
314 const struct ltc2983_sensor *sensor, in __ltc2983_chan_assign_common()
501 const struct ltc2983_sensor *sensor) in ltc2983_thermocouple_assign_chan()
521 const struct ltc2983_sensor *sensor) in ltc2983_rtd_assign_chan()
543 const struct ltc2983_sensor *sensor) in ltc2983_thermistor_assign_chan()
[all …]
/kernel/linux/linux-5.10/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()
134 static void set_transforms(struct jr3_sensor __iomem *sensor, in set_transforms()
152 static void use_transform(struct jr3_sensor __iomem *sensor, in use_transform()
158 static void use_offset(struct jr3_sensor __iomem *sensor, short offset_num) in use_offset()
163 static void set_offset(struct jr3_sensor __iomem *sensor) in set_offset()
177 static void set_full_scales(struct jr3_sensor __iomem *sensor, in set_full_scales()
189 static struct six_axis_t get_min_full_scales(struct jr3_sensor __iomem *sensor) in get_min_full_scales()
202 static struct six_axis_t get_max_full_scales(struct jr3_sensor __iomem *sensor) in get_max_full_scales()
443 struct jr3_sensor __iomem *sensor; in jr3_pci_poll_subdevice() local

123456