Home
last modified time | relevance | path

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

12345

/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/subdev/sensor/
DMakefile38 iv009_isp_sensor-objs += src/driver/sensor/SC2335_drv.o \
39 src/driver/sensor/OV13858_drv.o \
40 src/driver/sensor/sensor_bsp_common.o \
41 src/driver/sensor/IMX227_drv.o \
42 src/driver/sensor/IMX334_drv.o \
43 src/driver/sensor/Dummy_drv.o \
44 src/driver/sensor/SC8238CS_drv.o \
45 src/driver/sensor/sensor_bus_config.o \
46 src/driver/sensor/IMX481_drv.o \
47 src/driver/sensor/IMX290_drv.o \
[all …]
/device/soc/rockchip/rk3588/kernel/drivers/phy/rockchip/
Dphy-rockchip-csi2-dphy-hw.c500 struct csi2_sensor *sensor) in csi2_dphy_config_dual_mode() argument
518 GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
526 GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
539 GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
556 GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
575 GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
582 GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
595 struct csi2_sensor *sensor = sd_to_sensor(dphy, sensor_sd); in csi2_dphy_hw_stream_on() local
613 val |= (GENMASK(sensor->lanes - 1, 0) << in csi2_dphy_hw_stream_on()
621 val |= (GENMASK(sensor->lanes - 1, 0) << in csi2_dphy_hw_stream_on()
[all …]
Dphy-rockchip-csi2-dphy.c103 struct csi2_sensor *sensor = sd_to_sensor(dphy, sensor_sd); in csi2_dphy_update_sensor_mbus() local
111 sensor->mbus = mbus; in csi2_dphy_update_sensor_mbus()
114 sensor->lanes = 1; in csi2_dphy_update_sensor_mbus()
117 sensor->lanes = 2; in csi2_dphy_update_sensor_mbus()
120 sensor->lanes = 3; in csi2_dphy_update_sensor_mbus()
123 sensor->lanes = 4; in csi2_dphy_update_sensor_mbus()
195 struct v4l2_subdev *sensor = get_remote_sensor(sd); in csi2_dphy_g_frame_interval() local
197 if (sensor) in csi2_dphy_g_frame_interval()
198 return v4l2_subdev_call(sensor, video, g_frame_interval, fi); in csi2_dphy_g_frame_interval()
209 struct csi2_sensor *sensor; in csi2_dphy_g_mbus_config() local
[all …]
Dphy-rockchip-mipi-rx.c749 struct mipidphy_sensor *sensor = sd_to_sensor(priv, sensor_sd); in mipidphy_update_sensor_mbus() local
757 sensor->mbus = mbus; in mipidphy_update_sensor_mbus()
760 sensor->lanes = 1; in mipidphy_update_sensor_mbus()
763 sensor->lanes = 2; in mipidphy_update_sensor_mbus()
766 sensor->lanes = 3; in mipidphy_update_sensor_mbus()
769 sensor->lanes = 4; in mipidphy_update_sensor_mbus()
863 struct v4l2_subdev *sensor = get_remote_sensor(sd); in mipidphy_g_frame_interval() local
865 if (sensor) in mipidphy_g_frame_interval()
866 return v4l2_subdev_call(sensor, video, g_frame_interval, fi); in mipidphy_g_frame_interval()
876 struct mipidphy_sensor *sensor; in mipidphy_g_mbus_config() local
[all …]
/device/soc/rockchip/common/vendor/drivers/phy/
Dphy-rockchip-csi2-dphy-hw.c487 static void csi2_dphy_config_dual_mode(struct csi2_dphy *dphy, struct csi2_sensor *sensor) in csi2_dphy_config_dual_mode() argument
505 write_grf_reg(hw, GRF_DPHY_CSI2PHY_DATALANE_EN, GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
513 write_grf_reg(hw, GRF_DPHY_CSI2PHY_DATALANE_EN, GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
526 write_grf_reg(hw, GRF_DPHY_CSI2PHY_DATALANE_EN0, GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
541 write_grf_reg(hw, GRF_DPHY_CSI2PHY_DATALANE_EN1, GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
558 write_grf_reg(hw, GRF_DPHY_CSI2PHY_DATALANE_EN0, GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
564 write_grf_reg(hw, GRF_DPHY_CSI2PHY_DATALANE_EN1, GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
576 struct csi2_sensor *sensor = sd_to_sensor(dphy, sensor_sd); in csi2_dphy_hw_stream_on() local
594 val |= (GENMASK(sensor->lanes - 1, 0) << CSI2_DPHY_CTRL_DATALANE_ENABLE_OFFSET_BIT) | in csi2_dphy_hw_stream_on()
602 val |= (GENMASK(sensor->lanes - 1, 0) << CSI2_DPHY_CTRL_DATALANE_ENABLE_OFFSET_BIT); in csi2_dphy_hw_stream_on()
[all …]
Dphy-rockchip-csi2-dphy.c105 struct csi2_sensor *sensor = sd_to_sensor(dphy, sensor_sd); in csi2_dphy_update_sensor_mbus() local
114 sensor->mbus = mbus; in csi2_dphy_update_sensor_mbus()
117 sensor->lanes = 1; in csi2_dphy_update_sensor_mbus()
120 sensor->lanes = 0x02; in csi2_dphy_update_sensor_mbus()
123 sensor->lanes = 0x03; in csi2_dphy_update_sensor_mbus()
126 sensor->lanes = 0x04; in csi2_dphy_update_sensor_mbus()
201 struct v4l2_subdev *sensor = get_remote_sensor(sd); in csi2_dphy_g_frame_interval() local
203 if (sensor) { in csi2_dphy_g_frame_interval()
204 return v4l2_subdev_call(sensor, video, g_frame_interval, fi); in csi2_dphy_g_frame_interval()
214 struct csi2_sensor *sensor; in csi2_dphy_g_mbus_config() local
[all …]
Dphy-rockchip-mipi-rx.c727 struct mipidphy_sensor *sensor = sd_to_sensor(priv, sensor_sd); in mipidphy_update_sensor_mbus() local
736 sensor->mbus = mbus; in mipidphy_update_sensor_mbus()
739 sensor->lanes = 1; in mipidphy_update_sensor_mbus()
742 sensor->lanes = 0x02; in mipidphy_update_sensor_mbus()
745 sensor->lanes = 0x03; in mipidphy_update_sensor_mbus()
748 sensor->lanes = 0x04; in mipidphy_update_sensor_mbus()
851 struct v4l2_subdev *sensor = get_remote_sensor(sd); in mipidphy_g_frame_interval() local
853 if (sensor) { in mipidphy_g_frame_interval()
854 return v4l2_subdev_call(sensor, video, g_frame_interval, fi); in mipidphy_g_frame_interval()
864 struct mipidphy_sensor *sensor; in mipidphy_g_mbus_config() local
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/phy/
Dphy-rockchip-csi2-dphy-hw.c500 struct csi2_sensor *sensor) in csi2_dphy_config_dual_mode() argument
518 GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
526 GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
539 GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
556 GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
575 GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
582 GENMASK(sensor->lanes - 1, 0)); in csi2_dphy_config_dual_mode()
595 struct csi2_sensor *sensor = sd_to_sensor(dphy, sensor_sd); in csi2_dphy_hw_stream_on() local
613 val |= (GENMASK(sensor->lanes - 1, 0) << in csi2_dphy_hw_stream_on()
621 val |= (GENMASK(sensor->lanes - 1, 0) << in csi2_dphy_hw_stream_on()
[all …]
Dphy-rockchip-csi2-dphy.c103 struct csi2_sensor *sensor = sd_to_sensor(dphy, sensor_sd); in csi2_dphy_update_sensor_mbus() local
111 sensor->mbus = mbus; in csi2_dphy_update_sensor_mbus()
114 sensor->lanes = 1; in csi2_dphy_update_sensor_mbus()
117 sensor->lanes = 2; in csi2_dphy_update_sensor_mbus()
120 sensor->lanes = 3; in csi2_dphy_update_sensor_mbus()
123 sensor->lanes = 4; in csi2_dphy_update_sensor_mbus()
195 struct v4l2_subdev *sensor = get_remote_sensor(sd); in csi2_dphy_g_frame_interval() local
197 if (sensor) in csi2_dphy_g_frame_interval()
198 return v4l2_subdev_call(sensor, video, g_frame_interval, fi); in csi2_dphy_g_frame_interval()
209 struct csi2_sensor *sensor; in csi2_dphy_g_mbus_config() local
[all …]
Dphy-rockchip-mipi-rx.c749 struct mipidphy_sensor *sensor = sd_to_sensor(priv, sensor_sd); in mipidphy_update_sensor_mbus() local
757 sensor->mbus = mbus; in mipidphy_update_sensor_mbus()
760 sensor->lanes = 1; in mipidphy_update_sensor_mbus()
763 sensor->lanes = 2; in mipidphy_update_sensor_mbus()
766 sensor->lanes = 3; in mipidphy_update_sensor_mbus()
769 sensor->lanes = 4; in mipidphy_update_sensor_mbus()
863 struct v4l2_subdev *sensor = get_remote_sensor(sd); in mipidphy_g_frame_interval() local
865 if (sensor) in mipidphy_g_frame_interval()
866 return v4l2_subdev_call(sensor, video, g_frame_interval, fi); in mipidphy_g_frame_interval()
876 struct mipidphy_sensor *sensor; in mipidphy_g_mbus_config() local
[all …]
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/cif/
Dprocfs.c247 struct rkcif_sensor_info *sensor = &dev->terminal_sensor; in rkcif_show_format() local
248 struct v4l2_rect *rect = &sensor->raw_rect; in rkcif_show_format()
249 struct v4l2_subdev_frame_interval *interval = &sensor->fi; in rkcif_show_format()
250 struct v4l2_subdev_selection *sel = &sensor->selection; in rkcif_show_format()
260 if (sensor) { in rkcif_show_format()
263 seq_printf(f, "\tsrc subdev:%s\n", sensor->sd->name); in rkcif_show_format()
264 mbus_flags = sensor->mbus.flags; in rkcif_show_format()
265 if (sensor->mbus.type == V4L2_MBUS_PARALLEL || sensor->mbus.type == V4L2_MBUS_BT656) { in rkcif_show_format()
266 …seq_printf(f, "\tinterface:%s\n", sensor->mbus.type == V4L2_MBUS_PARALLEL ? "BT601" : "BT656/BT112… in rkcif_show_format()
271 sensor->mbus.type == V4L2_MBUS_CSI2_DPHY ? "mipi csi2 dphy" in rkcif_show_format()
[all …]
Dmipi-csi2.c81 struct csi2_sensor *sensor = &csi2->sensors[0]; in csi2_update_sensor_info() local
85 ret = v4l2_subdev_call(sensor->sd, pad, get_mbus_config, 0, &mbus); in csi2_update_sensor_info()
349 struct v4l2_subdev *sensor = get_remote_sensor(sd); in csi2_get_set_fmt() local
355 ret = v4l2_subdev_call(sensor, pad, get_fmt, NULL, fmt); in csi2_get_set_fmt()
377 struct v4l2_subdev *sensor = get_remote_sensor(sd); in csi2_get_selection() local
395 ret = v4l2_subdev_call(sensor, pad, get_selection, cfg, sel); in csi2_get_selection()
399 ret = v4l2_subdev_call(sensor, pad, get_fmt, NULL, &fmt); in csi2_get_selection()
435 struct v4l2_subdev *sensor = get_remote_sensor(sd); in csi2_set_selection() local
438 ret = v4l2_subdev_call(sensor, pad, set_selection, cfg, sel); in csi2_set_selection()
552 struct csi2_sensor *sensor; in csi2_notifier_bound() local
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/media/cif/
Dprocfs.c248 struct rkcif_sensor_info *sensor = &dev->terminal_sensor; in rkcif_show_format() local
249 struct v4l2_rect *rect = &sensor->raw_rect; in rkcif_show_format()
250 struct v4l2_subdev_frame_interval *interval = &sensor->fi; in rkcif_show_format()
251 struct v4l2_subdev_selection *sel = &sensor->selection; in rkcif_show_format()
260 if (sensor) { in rkcif_show_format()
263 seq_printf(f, "\tsrc subdev:%s\n", sensor->sd->name); in rkcif_show_format()
264 mbus_flags = sensor->mbus.flags; in rkcif_show_format()
265 if (sensor->mbus.type == V4L2_MBUS_PARALLEL || in rkcif_show_format()
266 sensor->mbus.type == V4L2_MBUS_BT656) { in rkcif_show_format()
268 sensor->mbus.type == V4L2_MBUS_PARALLEL ? "BT601" : "BT656/BT1120"); in rkcif_show_format()
[all …]
Dmipi-csi2.c74 struct csi2_sensor *sensor = &csi2->sensors[0]; in csi2_update_sensor_info() local
78 ret = v4l2_subdev_call(sensor->sd, pad, get_mbus_config, 0, &mbus); in csi2_update_sensor_info()
348 struct v4l2_subdev *sensor = get_remote_sensor(sd); in csi2_get_set_fmt() local
354 ret = v4l2_subdev_call(sensor, pad, get_fmt, NULL, fmt); in csi2_get_set_fmt()
376 struct v4l2_subdev *sensor = get_remote_sensor(sd); in csi2_get_selection() local
394 ret = v4l2_subdev_call(sensor, pad, get_selection, in csi2_get_selection()
399 ret = v4l2_subdev_call(sensor, pad, get_fmt, NULL, &fmt); in csi2_get_selection()
436 struct v4l2_subdev *sensor = get_remote_sensor(sd); in csi2_set_selection() local
439 ret = v4l2_subdev_call(sensor, pad, set_selection, in csi2_set_selection()
559 struct csi2_sensor *sensor; in csi2_notifier_bound() local
[all …]
Ddev.c995 struct rkcif_sensor_info *sensor, in rkcif_create_link() argument
1004 linked_sensor.lanes = sensor->lanes; in rkcif_create_link()
1006 if (sensor->mbus.type == V4L2_MBUS_CCP2) { in rkcif_create_link()
1009 dev->lvds_subdev.sensor_self.lanes = sensor->lanes; in rkcif_create_link()
1010 memcpy(&dev->lvds_subdev.sensor_self.mbus, &sensor->mbus, in rkcif_create_link()
1013 linked_sensor.sd = sensor->sd; in rkcif_create_link()
1016 memcpy(&linked_sensor.mbus, &sensor->mbus, in rkcif_create_link()
1112 if (sensor->mbus.type == V4L2_MBUS_CCP2) { in rkcif_create_link()
1113 source_entity = &sensor->sd->entity; in rkcif_create_link()
1123 sensor->sd->name); in rkcif_create_link()
[all …]
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/cif/
Dprocfs.c248 struct rkcif_sensor_info *sensor = &dev->terminal_sensor; in rkcif_show_format() local
249 struct v4l2_rect *rect = &sensor->raw_rect; in rkcif_show_format()
250 struct v4l2_subdev_frame_interval *interval = &sensor->fi; in rkcif_show_format()
251 struct v4l2_subdev_selection *sel = &sensor->selection; in rkcif_show_format()
260 if (sensor) { in rkcif_show_format()
263 seq_printf(f, "\tsrc subdev:%s\n", sensor->sd->name); in rkcif_show_format()
264 mbus_flags = sensor->mbus.flags; in rkcif_show_format()
265 if (sensor->mbus.type == V4L2_MBUS_PARALLEL || in rkcif_show_format()
266 sensor->mbus.type == V4L2_MBUS_BT656) { in rkcif_show_format()
268 sensor->mbus.type == V4L2_MBUS_PARALLEL ? "BT601" : "BT656/BT1120"); in rkcif_show_format()
[all …]
Dmipi-csi2.c74 struct csi2_sensor *sensor = &csi2->sensors[0]; in csi2_update_sensor_info() local
78 ret = v4l2_subdev_call(sensor->sd, pad, get_mbus_config, 0, &mbus); in csi2_update_sensor_info()
348 struct v4l2_subdev *sensor = get_remote_sensor(sd); in csi2_get_set_fmt() local
354 ret = v4l2_subdev_call(sensor, pad, get_fmt, NULL, fmt); in csi2_get_set_fmt()
376 struct v4l2_subdev *sensor = get_remote_sensor(sd); in csi2_get_selection() local
394 ret = v4l2_subdev_call(sensor, pad, get_selection, in csi2_get_selection()
399 ret = v4l2_subdev_call(sensor, pad, get_fmt, NULL, &fmt); in csi2_get_selection()
436 struct v4l2_subdev *sensor = get_remote_sensor(sd); in csi2_set_selection() local
439 ret = v4l2_subdev_call(sensor, pad, set_selection, in csi2_set_selection()
559 struct csi2_sensor *sensor; in csi2_notifier_bound() local
[all …]
Ddev.c995 struct rkcif_sensor_info *sensor, in rkcif_create_link() argument
1004 linked_sensor.lanes = sensor->lanes; in rkcif_create_link()
1006 if (sensor->mbus.type == V4L2_MBUS_CCP2) { in rkcif_create_link()
1009 dev->lvds_subdev.sensor_self.lanes = sensor->lanes; in rkcif_create_link()
1010 memcpy(&dev->lvds_subdev.sensor_self.mbus, &sensor->mbus, in rkcif_create_link()
1013 linked_sensor.sd = sensor->sd; in rkcif_create_link()
1016 memcpy(&linked_sensor.mbus, &sensor->mbus, in rkcif_create_link()
1112 if (sensor->mbus.type == V4L2_MBUS_CCP2) { in rkcif_create_link()
1113 source_entity = &sensor->sd->entity; in rkcif_create_link()
1123 sensor->sd->name); in rkcif_create_link()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/input/sensor/
DKconfig3 # Makefile for the sensor drivers.
11 Say Y here, and a list of supported sensor will be displayed.
18 source "$(BSP_TOP)drivers/input/sensor/sc7a20/Kconfig"
19 source "$(BSP_TOP)drivers/input/sensor/stk3x1x/Kconfig"
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/subdev/lens/
DMakefile36 iv009_isp_lens-objs += src/driver/sensor/Dummy_drv.o \
37 src/driver/sensor/sensor_bus_config.o \
38 src/driver/sensor/ACameraDefault.o \
44 …src/fw -I$(src)/src/fw_lib -I$(src)/src/calibration -I$(src)/src/driver/sensor -I$(src)/src/drive…
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/vin/
DMakefile1 obj-$(CONFIG_CSI_VIN) += modules/sensor/
12 vin_io-y += modules/sensor/sensor-compat-ioctl32.o
13 vin_io-y += modules/sensor/sensor_helper.o
53 vin_v4l2-y += modules/sensor-list/sensor_list.o
DKconfig11 tristate "sensor power in front of vin"
21 bool "select sensor flip to replace vipp flip"
26 so you can enable it to active sensor flip operation.
51 tristate "sensor list for adaptive"
119 bool "sensor same i2c addr"
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/thermal/
Dsunxi_thermal.c63 struct tsensor sensor[MAX_SENSOR_NUM]; member
295 tmdev->sensor[i].tmdev = tmdev; in sunxi_ths_register()
296 tmdev->sensor[i].id = i; in sunxi_ths_register()
297 tmdev->sensor[i].tzd = in sunxi_ths_register()
300 &tmdev->sensor[i], in sunxi_ths_register()
302 if (IS_ERR(tmdev->sensor[i].tzd)) in sunxi_ths_register()
303 return PTR_ERR(tmdev->sensor[i].tzd); in sunxi_ths_register()
/device/soc/rockchip/common/sdk_linux/drivers/thermal/
Drockchip_thermal.c1179 static void rockchip_thermal_toggle_sensor(struct rockchip_thermal_sensor *sensor, bool on) in rockchip_thermal_toggle_sensor() argument
1181 struct thermal_zone_device *tzd = sensor->tzd; in rockchip_thermal_toggle_sensor()
1208 struct rockchip_thermal_sensor *sensor = _sensor; in rockchip_thermal_set_trips() local
1209 struct rockchip_thermal_data *thermal = sensor->thermal; in rockchip_thermal_set_trips()
1212 …dev_dbg(&thermal->pdev->dev, "%s: sensor %d: low: %d, high %d\n", __func__, sensor->id, low, high); in rockchip_thermal_set_trips()
1218 return tsadc->set_alarm_temp(&tsadc->table, sensor->id, thermal->regs, high); in rockchip_thermal_set_trips()
1223 struct rockchip_thermal_sensor *sensor = _sensor; in rockchip_thermal_get_temp() local
1224 struct rockchip_thermal_data *thermal = sensor->thermal; in rockchip_thermal_get_temp()
1225 const struct rockchip_tsadc_chip *tsadc = sensor->thermal->chip; in rockchip_thermal_get_temp()
1228 retval = tsadc->get_temp(&tsadc->table, sensor->id, thermal->regs, out_temp); in rockchip_thermal_get_temp()
[all …]
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/
Drkisp.c188 struct v4l2_subdev *sensor = NULL; in rkisp_align_sensor_resolution() local
242 sensor = dev->active_sensor->sd; in rkisp_align_sensor_resolution()
243 if (sensor) { in rkisp_align_sensor_resolution()
249 ret = v4l2_subdev_call(sensor, pad, get_selection, NULL, &sel); in rkisp_align_sensor_resolution()
263 ret = v4l2_subdev_call(sensor, pad, get_selection, NULL, &sel); in rkisp_align_sensor_resolution()
350 struct rkisp_sensor_info *sensor; in rkisp_update_sensor_info() local
359 sensor = sd_to_sensor(dev, sensor_sd); in rkisp_update_sensor_info()
360 ret = v4l2_subdev_call(sensor->sd, pad, get_mbus_config, in rkisp_update_sensor_info()
361 0, &sensor->mbus); in rkisp_update_sensor_info()
365 sensor->fmt[0].pad = 0; in rkisp_update_sensor_info()
[all …]

12345