Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/phy/rockchip/
H A Dphy-rockchip-csi2-dphy.c86 struct v4l2_subdev *sensor_sd = get_remote_sensor(sd); in csi2_dphy_get_sensor_data_rate() local
91 if (!sensor_sd) in csi2_dphy_get_sensor_data_rate()
94 link_freq = v4l2_ctrl_find(sensor_sd->ctrl_handler, V4L2_CID_LINK_FREQ); in csi2_dphy_get_sensor_data_rate()
101 ret = v4l2_querymenu(sensor_sd->ctrl_handler, &qm); in csi2_dphy_get_sensor_data_rate()
122 struct v4l2_subdev *sensor_sd = get_remote_sensor(&dphy->sd); in rockchip_csi2_dphy_attach_hw() local
126 if (sensor_sd) { in rockchip_csi2_dphy_attach_hw()
127 sensor = sd_to_sensor(dphy, sensor_sd); in rockchip_csi2_dphy_attach_hw()
321 struct v4l2_subdev *sensor_sd = get_remote_sensor(sd); in csi2_dphy_update_sensor_mbus() local
326 if (!sensor_sd) in csi2_dphy_update_sensor_mbus()
328 sensor = sd_to_sensor(dphy, sensor_sd); in csi2_dphy_update_sensor_mbus()
[all …]
H A Dphy-rockchip-mipi-rx.c748 struct v4l2_subdev *sensor_sd = get_remote_sensor(sd); in mipidphy_get_sensor_data_rate() local
753 if (!sensor_sd) in mipidphy_get_sensor_data_rate()
756 link_freq = v4l2_ctrl_find(sensor_sd->ctrl_handler, V4L2_CID_LINK_FREQ); in mipidphy_get_sensor_data_rate()
763 ret = v4l2_querymenu(sensor_sd->ctrl_handler, &qm); in mipidphy_get_sensor_data_rate()
782 struct v4l2_subdev *sensor_sd = get_remote_sensor(sd); in mipidphy_update_sensor_mbus() local
787 if (!sensor_sd) in mipidphy_update_sensor_mbus()
789 sensor = sd_to_sensor(priv, sensor_sd); in mipidphy_update_sensor_mbus()
792 ret = v4l2_subdev_call(sensor_sd, pad, get_mbus_config, 0, &mbus); in mipidphy_update_sensor_mbus()
914 struct v4l2_subdev *sensor_sd = get_remote_sensor(sd); in mipidphy_g_mbus_config() local
917 if (!sensor_sd) in mipidphy_g_mbus_config()
[all …]
H A Dphy-rockchip-samsung-dcphy.c1741 struct v4l2_subdev *sensor_sd = NULL; in samsung_mipi_dcphy_power_on() local
1748 sensor_sd = get_remote_sensor(&samsung->dphy_dev[0]->sd); in samsung_mipi_dcphy_power_on()
1750 if (sensor_sd) in samsung_mipi_dcphy_power_on()
1751 v4l2_subdev_call(sensor_sd, core, ioctl, in samsung_mipi_dcphy_power_on()
1755 if (sensor_sd) in samsung_mipi_dcphy_power_on()
1756 v4l2_subdev_call(sensor_sd, core, ioctl, in samsung_mipi_dcphy_power_on()
2192 struct v4l2_subdev *sensor_sd = get_remote_sensor(sd); in samsung_dcphy_rx_stream_on() local
2197 if (!sensor_sd) in samsung_dcphy_rx_stream_on()
2199 sensor = sd_to_sensor(dphy, sensor_sd); in samsung_dcphy_rx_stream_on()
2240 struct v4l2_subdev *sensor_sd = get_remote_sensor(sd); in samsung_dcphy_rx_stream_off() local
[all …]
H A Dphy-rockchip-csi2-dphy-hw.c683 struct v4l2_subdev *sensor_sd = get_remote_sensor(sd); in csi2_dphy_hw_stream_on() local
693 if (!sensor_sd) in csi2_dphy_hw_stream_on()
695 sensor = sd_to_sensor(dphy, sensor_sd); in csi2_dphy_hw_stream_on()
/OK3568_Linux_fs/kernel/drivers/media/i2c/s5c73m3/
H A Ds5c73m3-core.c256 v4l2_dbg(1, s5c73m3_dbg, &state->sensor_sd, in s5c73m3_check_status()
267 v4l2_err(&state->sensor_sd, in s5c73m3_check_status()
313 v4l2_info(&state->sensor_sd, "AF soft-landing failed\n"); in s5c73m3_set_af_softlanding()
336 v4l2_info(&state->sensor_sd, "AF soft-landing %s after %dms\n", in s5c73m3_set_af_softlanding()
380 v4l2_dbg(1, s5c73m3_dbg, &state->sensor_sd, in s5c73m3_set_frame_size()
387 v4l2_dbg(1, s5c73m3_dbg, &state->sensor_sd, in s5c73m3_set_frame_size()
481 struct v4l2_subdev *sd = &state->sensor_sd; in s5c73m3_read_fw_version()
521 struct v4l2_subdev *sd = &state->sensor_sd; in s5c73m3_fw_update_from()
555 struct v4l2_subdev *sd = &state->sensor_sd; in s5c73m3_spi_boot()
660 struct v4l2_subdev *sd = &state->sensor_sd; in s5c73m3_get_fw_version()
[all …]
H A Ds5c73m3-ctrls.c48 v4l2_info(&state->sensor_sd, "Unknown AF status %#x\n", reg); in s5c73m3_get_af_status()
95 v4l2_dbg(1, s5c73m3_dbg, &state->sensor_sd, in s5c73m3_set_colorfx()
108 struct v4l2_subdev *sd = &state->sensor_sd; in s5c73m3_set_exposure()
158 v4l2_dbg(1, s5c73m3_dbg, &state->sensor_sd, in s5c73m3_set_white_balance()
268 struct v4l2_subdev *sd = &state->sensor_sd; in s5c73m3_set_stabilization()
309 v4l2_dbg(1, s5c73m3_dbg, &state->sensor_sd, "Setting %s scene mode\n", in s5c73m3_set_scene_program()
552 state->sensor_sd.ctrl_handler = hdl; in s5c73m3_init_controls()
H A Ds5c73m3.h373 struct v4l2_subdev sensor_sd; member
443 ctrls.handler)->sensor_sd; in ctrl_to_sensor_sd()
448 return container_of(sd, struct s5c73m3, sensor_sd); in sensor_sd_to_s5c73m3()
H A Ds5c73m3-spi.c129 v4l2_info(&state->sensor_sd, "S5C73M3 SPI probed successfully\n"); in s5c73m3_spi_probe()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/cif/
H A Dsubdev-itf.c85 struct v4l2_subdev *sensor_sd; in sditf_g_frame_interval() local
91 sensor_sd = cif_dev->terminal_sensor.sd; in sditf_g_frame_interval()
92 return v4l2_subdev_call(sensor_sd, video, g_frame_interval, fi); in sditf_g_frame_interval()
103 struct v4l2_subdev *sensor_sd; in sditf_g_mbus_config() local
109 sensor_sd = cif_dev->active_sensor->sd; in sditf_g_mbus_config()
110 return v4l2_subdev_call(sensor_sd, pad, get_mbus_config, 0, config); in sditf_g_mbus_config()
204 if (priv->sensor_sd) { in sditf_get_set_fmt()
207 ret = v4l2_subdev_call(priv->sensor_sd, pad, get_fmt, NULL, fmt); in sditf_get_set_fmt()
217 ret = v4l2_subdev_call(priv->sensor_sd, in sditf_get_set_fmt()
336 struct v4l2_subdev *sensor_sd; in sditf_ioctl() local
[all …]
H A Dsubdev-itf.h74 struct v4l2_subdev *sensor_sd; member
H A Dmipi-csi2.c77 struct v4l2_subdev **sensor_sd) in get_remote_terminal_sensor() argument
89 *sensor_sd = NULL; in get_remote_terminal_sensor()
102 *sensor_sd = media_entity_to_v4l2_subdev(entity); in get_remote_terminal_sensor()
104 *sensor_sd = NULL; in get_remote_terminal_sensor()
516 struct v4l2_subdev *sensor_sd = get_remote_sensor(sd); in csi2_g_mbus_config() local
519 ret = v4l2_subdev_call(sensor_sd, pad, get_mbus_config, 0, mbus); in csi2_g_mbus_config()
H A Dcapture.c723 struct v4l2_subdev **sensor_sd) in get_remote_terminal_sensor() argument
735 *sensor_sd = NULL; in get_remote_terminal_sensor()
748 *sensor_sd = media_entity_to_v4l2_subdev(entity); in get_remote_terminal_sensor()
750 *sensor_sd = NULL; in get_remote_terminal_sensor()
5436 struct v4l2_subdev *sensor_sd; in rkcif_update_sensor_info() local
5439 sensor_sd = get_remote_sensor(stream, NULL); in rkcif_update_sensor_info()
5440 if (!sensor_sd) { in rkcif_update_sensor_info()
5447 sensor = sd_to_sensor(stream->cifdev, sensor_sd); in rkcif_update_sensor_info()
5953 ret |= v4l2_subdev_call(cifdev->sditf[j]->sensor_sd, in rkcif_attach_sync_mode()
5964 ret = v4l2_subdev_call(cifdev->sditf[j]->sensor_sd, in rkcif_attach_sync_mode()
[all …]
H A Ddev.c1017 ret |= v4l2_subdev_call(dev->sditf[j]->sensor_sd, in rkcif_set_sensor_streamon_in_sync_mode()
1044 ret |= v4l2_subdev_call(dev->sditf[j]->sensor_sd, in rkcif_set_sensor_streamon_in_sync_mode()
1070 ret |= v4l2_subdev_call(dev->sditf[j]->sensor_sd, in rkcif_set_sensor_streamon_in_sync_mode()
1160 ret = v4l2_subdev_call(cif_dev->sditf[i]->sensor_sd, in rkcif_pipeline_set_stream()
1243 ret = v4l2_subdev_call(cif_dev->sditf[i]->sensor_sd, in rkcif_pipeline_set_stream()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp1/
H A Drkisp1.c104 struct v4l2_subdev **sensor_sd) in get_remote_mipi_sensor() argument
116 *sensor_sd = NULL; in get_remote_mipi_sensor()
129 *sensor_sd = media_entity_to_v4l2_subdev(entity); in get_remote_mipi_sensor()
131 *sensor_sd = NULL; in get_remote_mipi_sensor()
150 struct v4l2_subdev *sensor_sd; in rkisp1_update_sensor_info() local
153 sensor_sd = get_remote_sensor(sd); in rkisp1_update_sensor_info()
154 if (!sensor_sd) in rkisp1_update_sensor_info()
157 sensor = sd_to_sensor(dev, sensor_sd); in rkisp1_update_sensor_info()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/isp/
H A Dcsi.c19 struct v4l2_subdev **sensor_sd, u32 function) in get_remote_mipi_sensor() argument
31 *sensor_sd = NULL; in get_remote_mipi_sensor()
44 *sensor_sd = media_entity_to_v4l2_subdev(entity); in get_remote_mipi_sensor()
46 *sensor_sd = NULL; in get_remote_mipi_sensor()
H A Drkisp.c351 struct v4l2_subdev *sensor_sd; in rkisp_update_sensor_info() local
355 sensor_sd = get_remote_sensor(sd); in rkisp_update_sensor_info()
356 if (!sensor_sd) in rkisp_update_sensor_info()
359 sensor = sd_to_sensor(dev, sensor_sd); in rkisp_update_sensor_info()
378 sensor_sd = get_remote_sensor(sensor->sd); in rkisp_update_sensor_info()
379 if (!sensor_sd) in rkisp_update_sensor_info()
387 ret = v4l2_subdev_call(sensor_sd, core, ioctl, in rkisp_update_sensor_info()
/OK3568_Linux_fs/kernel/drivers/staging/media/rkisp1/
H A Drkisp1-isp.c934 struct v4l2_subdev *sensor_sd; in rkisp1_isp_s_stream() local
943 sensor_sd = rkisp1_get_remote_sensor(sd); in rkisp1_isp_s_stream()
944 if (!sensor_sd) { in rkisp1_isp_s_stream()
949 rkisp1->active_sensor = container_of(sensor_sd->asd, in rkisp1_isp_s_stream()