Home
last modified time | relevance | path

Searched refs:mbus (Results 1 - 25 of 32) sorted by relevance

12

/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/cif/
H A Dprocfs.c264 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/BT1120"); in rkcif_show_format()
271 sensor->mbus.type == V4L2_MBUS_CSI2_DPHY ? "mipi csi2 dphy" in rkcif_show_format()
272 : sensor->mbus.type == V4L2_MBUS_CSI2_CPHY ? "mipi csi2 cphy" in rkcif_show_format()
273 : sensor->mbus.type == V4L2_MBUS_CCP2 ? "lvds" in rkcif_show_format()
330 if (sensor->mbus.type == V4L2_MBUS_PARALLEL || sensor->mbus.type == V4L2_MBUS_BT656) { in rkcif_show_format()
H A Ddev.c950 if (sensor->mbus.type == V4L2_MBUS_CCP2) { in rkcif_create_link()
954 memcpy(&dev->lvds_subdev.sensor_self.mbus, &sensor->mbus, sizeof(struct v4l2_mbus_config)); in rkcif_create_link()
959 memcpy(&linked_sensor.mbus, &sensor->mbus, sizeof(struct v4l2_mbus_config)); in rkcif_create_link()
969 if ((linked_sensor.mbus.type == V4L2_MBUS_BT656 || linked_sensor.mbus.type == V4L2_MBUS_PARALLEL) && in rkcif_create_link()
981 if ((linked_sensor.mbus.type == V4L2_MBUS_BT656 || linked_sensor.mbus.type == V4L2_MBUS_PARALLEL) && in rkcif_create_link()
1030 if (sensor->mbus in rkcif_create_link()
1189 struct v4l2_mbus_config mbus; global() member
[all...]
H A Dmipi-csi2.c82 struct v4l2_mbus_config mbus; in csi2_update_sensor_info() local
85 ret = v4l2_subdev_call(sensor->sd, pad, get_mbus_config, 0, &mbus); in csi2_update_sensor_info()
91 csi2->bus.flags = mbus.flags; in csi2_update_sensor_info()
147 static int csi2_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id, struct v4l2_mbus_config *mbus);
153 struct v4l2_mbus_config mbus; in csi2_enable() local
156 csi2_g_mbus_config(&csi2->sd, 0, &mbus); in csi2_enable()
157 if (mbus.type == V4L2_MBUS_CSI2_DPHY) { in csi2_enable()
159 } else if (mbus.type == V4L2_MBUS_CSI2_CPHY) { in csi2_enable()
331 /* set a default mbus format */ in csi2_media_init()
446 static int csi2_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id, struct v4l2_mbus_config *mbus) in csi2_g_mbus_config() argument
[all...]
H A Dcapture.c645 if (dev->sensors[i].mbus.type == V4L2_MBUS_CCP2) { in sd_to_sensor()
763 v4l2_dbg(1, rkcif_debug, sd->v4l2_dev, "remote fmt: mbus code:0x%x, size:%dx%d, field: %d\n", fmt.format.code, in get_input_fmt()
776 v4l2_err(sd->v4l2_dev, "remote sensor mbus code not supported\n"); in get_input_fmt()
1386 struct v4l2_mbus_config *mbus_cfg = &dev->active_sensor->mbus; in rkcif_assign_new_buffer_init_toisp()
1440 struct v4l2_mbus_config *mbus_cfg = &dev->active_sensor->mbus; in rkcif_assign_new_buffer_update_toisp()
1498 struct v4l2_mbus_config *mbus_cfg = &dev->active_sensor->mbus; in rkcif_assign_new_buffer_init()
1601 struct v4l2_mbus_config *mbus_cfg = &dev->active_sensor->mbus; in rkcif_assign_new_buffer_update()
1761 struct v4l2_mbus_config *mbus_cfg = &dev->active_sensor->mbus; in rkcif_update_new_buffer_wake_up_mode()
1817 struct v4l2_mbus_config *mbus_cfg = &dev->active_sensor->mbus; in rkcif_assign_dummy_buffer()
2376 unsigned int flags = active_sensor->mbus in rkcif_csi_stream_start()
3542 struct v4l2_mbus_config *mbus; rkcif_stream_start() local
5060 rkcif_lvds_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id, struct v4l2_mbus_config *mbus) rkcif_lvds_g_mbus_config() argument
5668 struct v4l2_mbus_config *mbus; rkcif_dynamic_crop() local
6914 struct v4l2_mbus_config *mbus = &cif_dev->active_sensor->mbus; rkcif_deal_sof() local
6960 struct v4l2_mbus_config *mbus; rkcif_irq_pingpong_v1() local
7201 struct v4l2_mbus_config *mbus; rkcif_irq_pingpong() local
7518 struct v4l2_mbus_config *mbus = &cif_dev->active_sensor->mbus; rkcif_irq_lite_lvds() local
[all...]
H A Dmipi-csi2.h113 struct v4l2_mbus_config mbus; member
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/cif/
H A Dprocfs.c264 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()
275 sensor->mbus.type == V4L2_MBUS_CSI2_DPHY ? "mipi csi2 dphy" : in rkcif_show_format()
276 sensor->mbus.type == V4L2_MBUS_CSI2_CPHY ? "mipi csi2 cphy" : in rkcif_show_format()
277 sensor->mbus.type == V4L2_MBUS_CCP2 ? "lvds" : "unknown"); in rkcif_show_format()
339 if (sensor->mbus.type == V4L2_MBUS_PARALLEL || in rkcif_show_format()
340 sensor->mbus.type == V4L2_MBUS_BT656) { in rkcif_show_format()
H A Ddev.c1006 if (sensor->mbus.type == V4L2_MBUS_CCP2) { in rkcif_create_link()
1010 memcpy(&dev->lvds_subdev.sensor_self.mbus, &sensor->mbus, in rkcif_create_link()
1016 memcpy(&linked_sensor.mbus, &sensor->mbus, in rkcif_create_link()
1030 if ((linked_sensor.mbus.type == V4L2_MBUS_BT656 || in rkcif_create_link()
1031 linked_sensor.mbus.type == V4L2_MBUS_PARALLEL) && in rkcif_create_link()
1047 if ((linked_sensor.mbus.type == V4L2_MBUS_BT656 || in rkcif_create_link()
1048 linked_sensor.mbus.type == V4L2_MBUS_PARALLEL) && in rkcif_create_link()
1112 if (sensor->mbus in rkcif_create_link()
1280 struct v4l2_mbus_config mbus; global() member
[all...]
H A Dmipi-csi2.c75 struct v4l2_mbus_config mbus; in csi2_update_sensor_info() local
78 ret = v4l2_subdev_call(sensor->sd, pad, get_mbus_config, 0, &mbus); in csi2_update_sensor_info()
84 csi2->bus.flags = mbus.flags; in csi2_update_sensor_info()
141 struct v4l2_mbus_config *mbus);
148 struct v4l2_mbus_config mbus; in csi2_enable() local
151 csi2_g_mbus_config(&csi2->sd, 0, &mbus); in csi2_enable()
152 if (mbus.type == V4L2_MBUS_CSI2_DPHY) in csi2_enable()
154 else if (mbus.type == V4L2_MBUS_CSI2_CPHY) in csi2_enable()
328 /* set a default mbus format */ in csi2_media_init()
448 struct v4l2_mbus_config *mbus) in csi2_g_mbus_config()
447 csi2_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id, struct v4l2_mbus_config *mbus) csi2_g_mbus_config() argument
[all...]
H A Dcapture.c589 if (dev->sensors[i].mbus.type == V4L2_MBUS_CCP2) in sd_to_sensor()
710 "remote fmt: mbus code:0x%x, size:%dx%d, field: %d\n", in get_input_fmt()
723 v4l2_err(sd->v4l2_dev, "remote sensor mbus code not supported\n"); in get_input_fmt()
1350 struct v4l2_mbus_config *mbus_cfg = &dev->active_sensor->mbus; in rkcif_assign_new_buffer_init_toisp()
1408 struct v4l2_mbus_config *mbus_cfg = &dev->active_sensor->mbus; in rkcif_assign_new_buffer_update_toisp()
1474 struct v4l2_mbus_config *mbus_cfg = &dev->active_sensor->mbus; in rkcif_assign_new_buffer_init()
1589 struct v4l2_mbus_config *mbus_cfg = &dev->active_sensor->mbus; in rkcif_assign_new_buffer_update()
1759 struct v4l2_mbus_config *mbus_cfg = &dev->active_sensor->mbus; in rkcif_update_new_buffer_wake_up_mode()
1819 struct v4l2_mbus_config *mbus_cfg = &dev->active_sensor->mbus; in rkcif_assign_dummy_buffer()
2424 unsigned int flags = active_sensor->mbus in rkcif_csi_stream_start()
3665 struct v4l2_mbus_config *mbus; rkcif_stream_start() local
5247 rkcif_lvds_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id, struct v4l2_mbus_config *mbus) rkcif_lvds_g_mbus_config() argument
5865 struct v4l2_mbus_config *mbus; rkcif_dynamic_crop() local
7197 struct v4l2_mbus_config *mbus = &cif_dev->active_sensor->mbus; rkcif_deal_sof() local
7249 struct v4l2_mbus_config *mbus; rkcif_irq_pingpong_v1() local
7494 struct v4l2_mbus_config *mbus; rkcif_irq_pingpong() local
7826 struct v4l2_mbus_config *mbus = &cif_dev->active_sensor->mbus; rkcif_irq_lite_lvds() local
[all...]
H A Dmipi-csi2.h116 struct v4l2_mbus_config mbus; member
/device/soc/rockchip/common/vendor/drivers/phy/
H A Dphy-rockchip-csi2-dphy.c28 struct v4l2_mbus_config mbus; member
106 struct v4l2_mbus_config mbus; in csi2_dphy_update_sensor_mbus() local
109 ret = v4l2_subdev_call(sensor_sd, pad, get_mbus_config, 0, &mbus); in csi2_dphy_update_sensor_mbus()
114 sensor->mbus = mbus; in csi2_dphy_update_sensor_mbus()
115 switch (mbus.flags & V4L2_MBUS_CSI2_LANES) { in csi2_dphy_update_sensor_mbus()
221 *config = sensor->mbus; in csi2_dphy_g_mbus_config()
337 sensor->mbus = s_asd->mbus; in rockchip_csi2_dphy_notifier_bound()
340 dev_info(dphy->dev, "dphy%d matches %s:bus type %d\n", dphy->phy_index, sd->name, s_asd->mbus in rockchip_csi2_dphy_notifier_bound()
[all...]
H A Dphy-rockchip-mipi-rx.c510 struct v4l2_mbus_config mbus; member
519 struct v4l2_mbus_config mbus; member
728 struct v4l2_mbus_config mbus; in mipidphy_update_sensor_mbus() local
731 ret = v4l2_subdev_call(sensor_sd, pad, get_mbus_config, 0, &mbus); in mipidphy_update_sensor_mbus()
736 sensor->mbus = mbus; in mipidphy_update_sensor_mbus()
737 switch (mbus.flags & V4L2_MBUS_CSI2_LANES) { in mipidphy_update_sensor_mbus()
871 *config = sensor->mbus; in mipidphy_g_mbus_config()
1312 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) { in csi_mipidphy_stream_on()
1517 sensor->mbus in rockchip_mipidphy_notifier_bound()
[all...]
H A Dphy-rockchip-csi2-dphy-hw.c613 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) { in csi2_dphy_hw_stream_on()
767 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) { in csi2_dcphy_hw_stream_on()
771 } else if (sensor->mbus.type == V4L2_MBUS_CSI2_CPHY) { in csi2_dcphy_hw_stream_on()
778 if (sensor->mbus.type == V4L2_MBUS_CSI2_CPHY) { in csi2_dcphy_hw_stream_on()
787 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) { in csi2_dcphy_hw_stream_on()
826 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) { in csi2_dcphy_hw_stream_on()
844 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) { in csi2_dcphy_hw_stream_on()
900 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) { in csi2_dcphy_hw_stream_off()
H A Dphy-rockchip-csi2-dphy-common.h48 struct v4l2_mbus_config mbus; member
/device/soc/rockchip/rk3588/kernel/drivers/phy/rockchip/
H A Dphy-rockchip-csi2-dphy.c28 struct v4l2_mbus_config mbus; member
104 struct v4l2_mbus_config mbus; in csi2_dphy_update_sensor_mbus() local
107 ret = v4l2_subdev_call(sensor_sd, pad, get_mbus_config, 0, &mbus); in csi2_dphy_update_sensor_mbus()
111 sensor->mbus = mbus; in csi2_dphy_update_sensor_mbus()
112 switch (mbus.flags & V4L2_MBUS_CSI2_LANES) { in csi2_dphy_update_sensor_mbus()
215 *config = sensor->mbus; in csi2_dphy_g_mbus_config()
333 sensor->mbus = s_asd->mbus; in rockchip_csi2_dphy_notifier_bound()
337 dphy->phy_index, sd->name, s_asd->mbus in rockchip_csi2_dphy_notifier_bound()
[all...]
H A Dphy-rockchip-mipi-rx.c532 struct v4l2_mbus_config mbus; member
541 struct v4l2_mbus_config mbus; member
750 struct v4l2_mbus_config mbus; in mipidphy_update_sensor_mbus() local
753 ret = v4l2_subdev_call(sensor_sd, pad, get_mbus_config, 0, &mbus); in mipidphy_update_sensor_mbus()
757 sensor->mbus = mbus; in mipidphy_update_sensor_mbus()
758 switch (mbus.flags & V4L2_MBUS_CSI2_LANES) { in mipidphy_update_sensor_mbus()
882 *config = sensor->mbus; in mipidphy_g_mbus_config()
1343 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) { in csi_mipidphy_stream_on()
1553 sensor->mbus in rockchip_mipidphy_notifier_bound()
[all...]
H A Dphy-rockchip-csi2-dphy-hw.c633 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) { in csi2_dphy_hw_stream_on()
775 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) { in csi2_dcphy_hw_stream_on()
779 } else if (sensor->mbus.type == V4L2_MBUS_CSI2_CPHY) { in csi2_dcphy_hw_stream_on()
786 if (sensor->mbus.type == V4L2_MBUS_CSI2_CPHY) in csi2_dcphy_hw_stream_on()
793 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) { in csi2_dcphy_hw_stream_on()
832 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) in csi2_dcphy_hw_stream_on()
845 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) in csi2_dcphy_hw_stream_on()
890 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) in csi2_dcphy_hw_stream_off()
H A Dphy-rockchip-csi2-dphy-common.h48 struct v4l2_mbus_config mbus; member
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/
H A Ddev.c386 v4l2_subdev_call(sensor->sd, pad, get_mbus_config, 0, &sensor->mbus); in rkisp_create_links()
387 if (sensor->mbus.type == V4L2_MBUS_CCP2) { in rkisp_create_links()
537 struct v4l2_mbus_config mbus; member
550 isp_dev->sensors[isp_dev->num_sensors].mbus = s_asd->mbus; in subdev_notifier_bound()
572 rk_asd->mbus.flags = bus->flags; in rkisp_fwnode_parse()
573 rk_asd->mbus.type = vep->bus_type; in rkisp_fwnode_parse()
H A Drkisp.c343 ret = v4l2_subdev_call(sensor->sd, pad, get_mbus_config, 0, &sensor->mbus); in rkisp_update_sensor_info()
355 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) { in rkisp_update_sensor_info()
1335 if (sensor && sensor->mbus.type == V4L2_MBUS_BT656) { in rkisp_config_isp()
1358 if (sensor && sensor->mbus.type == V4L2_MBUS_BT656) { in rkisp_config_isp()
1374 if (sensor && (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY || sensor->mbus.type == V4L2_MBUS_CCP2)) { in rkisp_config_isp()
1377 if (sensor && sensor->mbus.type == V4L2_MBUS_BT656) { in rkisp_config_isp()
1391 if (sensor && (sensor->mbus.type == V4L2_MBUS_BT656 || sensor->mbus.type == V4L2_MBUS_PARALLEL)) { in rkisp_config_isp()
1392 if (sensor->mbus in rkisp_config_isp()
[all...]
H A Ddev.h128 * @mbus: media bus configuration
132 struct v4l2_mbus_config mbus; member
H A Dcapture.c125 (dev->active_sensor && dev->active_sensor->mbus.type != V4L2_MBUS_CSI2_DPHY) || (dev->isp_inp & INP_CIF) || in hdr_destroy_buf()
158 if (!dev->active_sensor || (dev->active_sensor && dev->active_sensor->mbus.type != V4L2_MBUS_CSI2_DPHY) || in hdr_update_dmatx_buf()
219 (dev->active_sensor && dev->active_sensor->mbus.type != V4L2_MBUS_CSI2_DPHY) || (dev->isp_inp & INP_CIF) || in hdr_config_dmatx()
285 (dev->active_sensor && dev->active_sensor->mbus.type != V4L2_MBUS_CSI2_DPHY) || (dev->isp_inp & INP_CIF) || in hdr_stop_dmatx()
334 (dev->active_sensor && dev->active_sensor->mbus.type != V4L2_MBUS_CSI2_DPHY) || (dev->isp_inp & INP_CIF) || in rkisp_config_dmatx_valid_buf()
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/
H A Ddev.c353 get_mbus_config, 0, &sensor->mbus); in rkisp_create_links()
354 if (sensor->mbus.type == V4L2_MBUS_CCP2) { in rkisp_create_links()
508 struct v4l2_mbus_config mbus; member
523 isp_dev->sensors[isp_dev->num_sensors].mbus = s_asd->mbus; in subdev_notifier_bound()
548 rk_asd->mbus.flags = bus->flags; in rkisp_fwnode_parse()
549 rk_asd->mbus.type = vep->bus_type; in rkisp_fwnode_parse()
H A Drkisp.c361 0, &sensor->mbus); in rkisp_update_sensor_info()
372 if (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY) { in rkisp_update_sensor_info()
1352 if (sensor && sensor->mbus.type == V4L2_MBUS_BT656) in rkisp_config_isp()
1386 if (sensor && sensor->mbus.type == V4L2_MBUS_BT656) in rkisp_config_isp()
1401 (sensor->mbus.type == V4L2_MBUS_CSI2_DPHY || in rkisp_config_isp()
1402 sensor->mbus.type == V4L2_MBUS_CCP2)) { in rkisp_config_isp()
1405 if (sensor && sensor->mbus.type == V4L2_MBUS_BT656) in rkisp_config_isp()
1418 if (sensor && (sensor->mbus.type == V4L2_MBUS_BT656 || in rkisp_config_isp()
1419 sensor->mbus.type == V4L2_MBUS_PARALLEL)) { in rkisp_config_isp()
1420 if (sensor->mbus in rkisp_config_isp()
[all...]
H A Ddev.h128 * @mbus: media bus configuration
132 struct v4l2_mbus_config mbus; member

Completed in 40 milliseconds

12