Home
last modified time | relevance | path

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

1234

/linux/drivers/media/i2c/ccs/
H A Dccs-core.c93 static int ccs_limit_ptr(struct ccs_sensor *sensor, unsigned int limit, in ccs_limit_ptr()
113 void ccs_replace_limit(struct ccs_sensor *sensor, in ccs_replace_limit()
133 u32 ccs_get_limit(struct ccs_sensor *sensor, unsigned int limit, in ccs_get_limit()
162 static int ccs_read_all_limits(struct ccs_sensor *sensor) in ccs_read_all_limits()
277 static int ccs_read_frame_fmt(struct ccs_sensor *sensor) in ccs_read_frame_fmt()
403 static int ccs_pll_configure(struct ccs_sensor *sensor) in ccs_pll_configure()
464 static int ccs_pll_try(struct ccs_sensor *sensor, struct ccs_pll *pll) in ccs_pll_try()
516 ccs_get_binning(struct ccs_sensor *sensor, u8 *binning_mode, u8 *binh, u8 *binv) in ccs_get_binning()
535 static void ccs_get_scaling(struct ccs_sensor *sensor, u8 *scaling_mode, in ccs_get_scaling()
561 static int ccs_pll_update(struct ccs_sensor *sensor) in ccs_pll_update()
[all …]
H A Dccs-reg-access.h33 #define ccs_read(sensor, reg_name, val) \ argument
36 #define ccs_write(sensor, reg_name, val) \ argument
H A Dccs-quirk.h65 #define ccs_call_quirk(sensor, _quirk, ...) \ argument
70 #define ccs_needs_quirk(sensor, _quirk) \ argument
/linux/drivers/media/i2c/
H A Dov2680.c271 static void ov2680_power_up(struct ov2680_dev *sensor) in ov2680_power_up()
280 static void ov2680_power_down(struct ov2680_dev *sensor) in ov2680_power_down()
289 static void ov2680_set_bayer_order(struct ov2680_dev *sensor, in ov2680_set_bayer_order()
304 __ov2680_get_pad_format(struct ov2680_dev *sensor, in __ov2680_get_pad_format()
316 __ov2680_get_pad_crop(struct ov2680_dev *sensor, in __ov2680_get_pad_crop()
327 static void ov2680_fill_format(struct ov2680_dev *sensor, in ov2680_fill_format()
339 static void ov2680_calc_mode(struct ov2680_dev *sensor) in ov2680_calc_mode()
367 static int ov2680_set_mode(struct ov2680_dev *sensor) in ov2680_set_mode()
415 static int ov2680_set_vflip(struct ov2680_dev *sensor, s32 val) in ov2680_set_vflip()
431 static int ov2680_set_hflip(struct ov2680_dev *sensor, s32 val) in ov2680_set_hflip()
[all …]
H A Dov5640.c480 static inline bool ov5640_is_csi2(const struct ov5640_dev *sensor) in ov5640_is_csi2()
486 ov5640_formats(struct ov5640_dev *sensor) in ov5640_formats()
493 ov5640_code_to_pixfmt(struct ov5640_dev *sensor, u32 code) in ov5640_code_to_pixfmt()
506 static u32 ov5640_code_to_bpp(struct ov5640_dev *sensor, u32 code) in ov5640_code_to_bpp()
1140 ov5640_timings(const struct ov5640_dev *sensor, in ov5640_timings()
1149 static int ov5640_init_slave_id(struct ov5640_dev *sensor) in ov5640_init_slave_id()
1177 static int ov5640_write_reg(struct ov5640_dev *sensor, u16 reg, u8 val) in ov5640_write_reg()
1203 static int ov5640_read_reg(struct ov5640_dev *sensor, u16 reg, u8 *val) in ov5640_read_reg()
1234 static int ov5640_read_reg16(struct ov5640_dev *sensor, u16 reg, u16 *val) in ov5640_read_reg16()
1250 static int ov5640_write_reg16(struct ov5640_dev *sensor, u16 reg, u16 val) in ov5640_write_reg16()
[all …]
H A Dt4ka3.c287 static void t4ka3_set_bayer_order(struct t4ka3_data *sensor, in t4ka3_set_bayer_order()
301 static int t4ka3_update_exposure_range(struct t4ka3_data *sensor, in t4ka3_update_exposure_range()
311 static void t4ka3_fill_format(struct t4ka3_data *sensor, in t4ka3_fill_format()
323 static void t4ka3_calc_mode(struct t4ka3_data *sensor, in t4ka3_calc_mode()
354 static void t4ka3_get_vblank_limits(struct t4ka3_data *sensor, in t4ka3_get_vblank_limits()
369 struct t4ka3_data *sensor = to_t4ka3_sensor(sd); in t4ka3_set_pad_format() local
416 struct t4ka3_data *sensor = to_t4ka3_sensor(sd); in t4ka3_update_flip() local
435 static int t4ka3_test_pattern(struct t4ka3_data *sensor, s32 value) in t4ka3_test_pattern()
441 static int t4ka3_detect(struct t4ka3_data *sensor, u16 *id) in t4ka3_detect()
469 struct t4ka3_data *sensor = ctrl_to_t4ka3(ctrl); in t4ka3_s_ctrl() local
[all …]
H A Dmt9m114.c485 mt9m114_default_format_info(struct mt9m114 *sensor) in mt9m114_default_format_info()
494 mt9m114_format_info(struct mt9m114 *sensor, unsigned int pad, u32 code) in mt9m114_format_info()
666 static int mt9m114_poll_command(struct mt9m114 *sensor, u32 command) in mt9m114_poll_command()
699 static int mt9m114_poll_state(struct mt9m114 *sensor, u32 state) in mt9m114_poll_state()
722 static int mt9m114_set_state(struct mt9m114 *sensor, u8 next_state) in mt9m114_set_state()
742 static int mt9m114_initialize(struct mt9m114 *sensor) in mt9m114_initialize()
800 static int mt9m114_configure_pa(struct mt9m114 *sensor, in mt9m114_configure_pa()
863 static int mt9m114_configure_ifp(struct mt9m114 *sensor, in mt9m114_configure_ifp()
944 static int mt9m114_set_frame_rate(struct mt9m114 *sensor) in mt9m114_set_frame_rate()
957 static int mt9m114_start_streaming(struct mt9m114 *sensor, in mt9m114_start_streaming()
[all …]
H A Dov8865.c1347 static int ov8865_read(struct ov8865_sensor *sensor, u16 address, u8 *value) in ov8865_read()
1370 static int ov8865_write(struct ov8865_sensor *sensor, u16 address, u8 value) in ov8865_write()
1386 static int ov8865_write_sequence(struct ov8865_sensor *sensor, in ov8865_write_sequence()
1406 static int ov8865_update_bits(struct ov8865_sensor *sensor, u16 address, in ov8865_update_bits()
1424 static int ov8865_sw_reset(struct ov8865_sensor *sensor) in ov8865_sw_reset()
1429 static int ov8865_sw_standby(struct ov8865_sensor *sensor, int standby) in ov8865_sw_standby()
1439 static int ov8865_chip_id_check(struct ov8865_sensor *sensor) in ov8865_chip_id_check()
1465 static int ov8865_charge_pump_configure(struct ov8865_sensor *sensor) in ov8865_charge_pump_configure()
1471 static int ov8865_mipi_configure(struct ov8865_sensor *sensor) in ov8865_mipi_configure()
1520 static int ov8865_black_level_configure(struct ov8865_sensor *sensor) in ov8865_black_level_configure()
[all …]
/linux/drivers/thermal/st/
H A Dstm_thermal.c99 static int stm_enable_irq(struct stm_thermal_sensor *sensor) in stm_enable_irq()
124 struct stm_thermal_sensor *sensor = sdata; in stm_thermal_irq_handler() local
139 static int stm_sensor_power_on(struct stm_thermal_sensor *sensor) in stm_sensor_power_on()
172 static int stm_sensor_power_off(struct stm_thermal_sensor *sensor) in stm_sensor_power_off()
197 static int stm_thermal_calibration(struct stm_thermal_sensor *sensor) in stm_thermal_calibration()
241 static int stm_thermal_read_factory_settings(struct stm_thermal_sensor *sensor) in stm_thermal_read_factory_settings()
270 static int stm_thermal_calculate_threshold(struct stm_thermal_sensor *sensor, in stm_thermal_calculate_threshold()
290 static int stm_disable_irq(struct stm_thermal_sensor *sensor) in stm_disable_irq()
304 struct stm_thermal_sensor *sensor = thermal_zone_device_priv(tz); in stm_thermal_set_trips() local
352 struct stm_thermal_sensor *sensor = thermal_zone_device_priv(tz); in stm_thermal_get_temp() local
[all …]
H A Dst_thermal.c24 static int st_thermal_alloc_regfields(struct st_thermal_sensor *sensor) in st_thermal_alloc_regfields()
49 static int st_thermal_sensor_on(struct st_thermal_sensor *sensor) in st_thermal_sensor_on()
69 static int st_thermal_sensor_off(struct st_thermal_sensor *sensor) in st_thermal_sensor_off()
82 static int st_thermal_calibration(struct st_thermal_sensor *sensor) in st_thermal_calibration()
112 struct st_thermal_sensor *sensor = thermal_zone_device_priv(th); in st_thermal_get_temp() local
142 struct st_thermal_sensor *sensor; in st_thermal_register() local
225 struct st_thermal_sensor *sensor = platform_get_drvdata(pdev); in st_thermal_unregister() local
235 struct st_thermal_sensor *sensor = dev_get_drvdata(dev); in st_thermal_suspend() local
243 struct st_thermal_sensor *sensor = dev_get_drvdata(dev); in st_thermal_resume() local
H A 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()
116 static int st_mmap_regmap_init(struct st_thermal_sensor *sensor) in st_mmap_regmap_init()
/linux/drivers/iio/imu/st_lsm6dsx/
H A Dst_lsm6dsx_shub.c158 struct st_lsm6dsx_sensor *sensor; in st_lsm6dsx_shub_wait_complete() local
242 static int st_lsm6dsx_shub_master_enable(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_shub_master_enable()
283 st_lsm6dsx_shub_read(struct st_lsm6dsx_sensor *sensor, u8 addr, in st_lsm6dsx_shub_read()
335 st_lsm6dsx_shub_write(struct st_lsm6dsx_sensor *sensor, u8 addr, in st_lsm6dsx_shub_write()
386 st_lsm6dsx_shub_write_with_mask(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_shub_write_with_mask()
402 st_lsm6dsx_shub_get_odr_val(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_shub_get_odr_val()
422 st_lsm6dsx_shub_set_odr(struct st_lsm6dsx_sensor *sensor, u32 odr) in st_lsm6dsx_shub_set_odr()
441 st_lsm6dsx_shub_config_channels(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_shub_config_channels()
478 int st_lsm6dsx_shub_set_enable(struct st_lsm6dsx_sensor *sensor, bool enable) in st_lsm6dsx_shub_set_enable()
517 st_lsm6dsx_shub_read_oneshot(struct st_lsm6dsx_sensor *sensor, in st_lsm6dsx_shub_read_oneshot()
[all …]
/linux/drivers/thermal/
H A Dhisi_thermal.c77 struct hisi_thermal_sensor *sensor; member
252 static inline void hi6220_thermal_sensor_select(void __iomem *addr, int sensor) in hi6220_thermal_sensor_select()
274 static int hi6220_thermal_irq_handler(struct hisi_thermal_sensor *sensor) in hi6220_thermal_irq_handler()
282 static int hi3660_thermal_irq_handler(struct hisi_thermal_sensor *sensor) in hi3660_thermal_irq_handler()
290 static int hi6220_thermal_get_temp(struct hisi_thermal_sensor *sensor) in hi6220_thermal_get_temp()
297 static int hi3660_thermal_get_temp(struct hisi_thermal_sensor *sensor) in hi3660_thermal_get_temp()
304 static int hi6220_thermal_disable_sensor(struct hisi_thermal_sensor *sensor) in hi6220_thermal_disable_sensor()
318 static int hi3660_thermal_disable_sensor(struct hisi_thermal_sensor *sensor) in hi3660_thermal_disable_sensor()
327 static int hi6220_thermal_enable_sensor(struct hisi_thermal_sensor *sensor) in hi6220_thermal_enable_sensor()
365 static int hi3660_thermal_enable_sensor(struct hisi_thermal_sensor *sensor) in hi3660_thermal_enable_sensor()
[all …]
H A Dthermal_mmio.c26 struct thermal_mmio *sensor = thermal_zone_device_priv(tz); in thermal_mmio_get_temperature() local
42 struct thermal_mmio *sensor; in thermal_mmio_probe() local
88 struct thermal_mmio *sensor) in al_thermal_init()
H A Dimx_sc_thermal.c48 struct imx_sc_sensor *sensor = thermal_zone_device_priv(tz); in imx_sc_thermal_get_temp() local
74 struct imx_sc_sensor *sensor; in imx_sc_thermal_probe() local
/linux/drivers/iio/temperature/
H A Dltc2983.c292 struct ltc2983_sensor sensor; member
299 struct ltc2983_sensor sensor; member
308 struct ltc2983_sensor sensor; member
320 struct ltc2983_sensor sensor; member
327 struct ltc2983_sensor sensor; member
335 struct ltc2983_sensor sensor; member
342 struct ltc2983_sensor sensor; member
347 struct ltc2983_sensor sensor; member
352 struct ltc2983_sensor sensor; member
400 const struct ltc2983_sensor *sensor, in __ltc2983_chan_assign_common()
[all …]
/linux/drivers/hwmon/
H A 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
180 struct sensor_data *sensor = &scpi_sensors->data[idx]; in scpi_hwmon_probe() local
265 struct sensor_data *sensor = &scpi_sensors->data[i]; in scpi_hwmon_probe() local
H A Dcgbc-hwmon.c99 struct cgbc_hwmon_sensor *sensor = hwmon->sensors; in cgbc_hwmon_probe_sensors() local
167 struct cgbc_hwmon_sensor *sensor = NULL; in cgbc_hwmon_find_sensor() local
192 struct cgbc_hwmon_sensor *sensor = cgbc_hwmon_find_sensor(hwmon, type, channel); in cgbc_hwmon_read() local
217 struct cgbc_hwmon_sensor *sensor; in cgbc_hwmon_is_visible() local
230 struct cgbc_hwmon_sensor *sensor = cgbc_hwmon_find_sensor(hwmon, type, channel); in cgbc_hwmon_read_string() local
H A Dasus_wmi_sensors.c381 struct asus_wmi_sensor_info *sensor; in asus_wmi_update_values_for_source() local
417 static int asus_wmi_get_cached_value_or_update(const struct asus_wmi_sensor_info *sensor, in asus_wmi_get_cached_value_or_update()
449 const struct asus_wmi_sensor_info *sensor; in asus_wmi_hwmon_read() local
471 const struct asus_wmi_sensor_info *sensor; in asus_wmi_hwmon_read_string() local
484 const struct asus_wmi_sensor_info *sensor; in asus_wmi_hwmon_is_visible() local
518 struct asus_wmi_sensor_info sensor; in asus_wmi_configure_sensor_setup() local
H A Dmacsmc-hwmon.c191 struct macsmc_hwmon_sensor *sensor, int scale, in macsmc_hwmon_read_key()
257 struct macsmc_hwmon_sensor *sensor, long val) in macsmc_hwmon_write_key()
407 struct macsmc_hwmon_sensor *sensor; in macsmc_hwmon_is_visible() local
446 struct macsmc_hwmon_sensor *sensor, in macsmc_hwmon_parse_key()
469 struct macsmc_hwmon_sensor *sensor) in macsmc_hwmon_create_sensor()
568 struct macsmc_hwmon_sensor *sensor; in macsmc_hwmon_populate_sensors() local
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/
H A 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
/linux/drivers/input/rmi4/
H A Drmi_f12.c32 struct rmi_2d_sensor sensor; member
97 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_read_sensor_tuning() local
207 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_process_objects() local
262 struct rmi_2d_sensor *sensor = &f12->sensor; in rmi_f12_attention() local
360 struct rmi_2d_sensor *sensor; in rmi_f12_config() local
388 struct rmi_2d_sensor *sensor; in rmi_f12_probe() local
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dg84.c56 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in g84_therm_program_alarms() local
143 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in g84_therm_intr() local
H A Dtemp.c166 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in alarm_timer_callback() local
195 struct nvbios_therm_sensor *sensor = &therm->bios_sensor; in nvkm_therm_program_alarms_polling() local
/linux/drivers/hwmon/pmbus/
H A Dpmbus_core.c163 struct pmbus_sensor *sensor; in pmbus_clear_cache() local
173 struct pmbus_sensor *sensor; in pmbus_set_update() local
622 struct pmbus_sensor *sensor; in pmbus_find_sensor() local
799 static void pmbus_update_sensor_data(struct i2c_client *client, struct pmbus_sensor *sensor) in pmbus_update_sensor_data()
826 struct pmbus_sensor *sensor) in pmbus_reg2data_ieee754()
871 struct pmbus_sensor *sensor) in pmbus_reg2data_linear()
908 struct pmbus_sensor *sensor) in pmbus_reg2data_direct()
952 struct pmbus_sensor *sensor) in pmbus_reg2data_vid()
986 static s64 pmbus_reg2data(struct pmbus_data *data, struct pmbus_sensor *sensor) in pmbus_reg2data()
1015 struct pmbus_sensor *sensor, long val) in pmbus_data2reg_ieee754()
[all …]

1234