Lines Matching defs:sensor
39 /* Set up image sensor subdev -> FIMC capture node notifications. */
41 struct v4l2_subdev *sensor,
48 src_inf = v4l2_get_subdev_hostdata(sensor);
70 struct v4l2_subdev *sensor = NULL;
95 sensor = sd;
120 if (sensor && p->subdevs[IDX_FIMC])
121 __setup_sensor_notification(fmd, sensor, p->subdevs[IDX_FIMC]);
188 * and the sensor clock
219 * of all pipeline subdevs and the sensor clock
241 pr_warn("%s(): No sensor subdev\n", __func__);
253 * __fimc_pipeline_close - disable the sensor clock and pipeline power
256 * Disable power of all subdevs and turn the external sensor clock off.
266 pr_warn("%s(): No sensor subdev\n", __func__);
402 struct fimc_source_info *pd = &fmd->sensor[index].pdata;
438 * the sensor's clock frequency is needed.
462 if (WARN_ON(index >= ARRAY_SIZE(fmd->sensor))) {
475 fmd->sensor[index].asd = asd;
481 /* Parse port node and register as a sub-device any sensor specified there. */
809 * @sensor: sensor subdev linked to FIMC[fimc_id] entity, may be null
815 struct v4l2_subdev *sensor,
823 if (sensor) {
824 si = v4l2_get_subdev_hostdata(sensor);
825 /* Skip direct FIMC links in the logical FIMC-IS sensor path */
835 * interface. Skip creating a link from sensor for those.
946 * Parallel interface sensor entities are connected directly to FIMC capture
950 * are created by default between each subsequent registered sensor and
958 struct v4l2_subdev *sensor, *csis;
965 if (fmd->sensor[i].subdev == NULL)
968 sensor = fmd->sensor[i].subdev;
969 pdata = v4l2_get_subdev_hostdata(sensor);
986 pad = sensor->entity.num_pads - 1;
987 ret = media_create_pad_link(&sensor->entity, pad,
995 sensor->entity.name, csis->entity.name);
998 csi_sensors[pdata->mux_id] = sensor;
1002 source = &sensor->entity;
1015 ret = __fimc_md_create_fimc_sink_links(fmd, source, sensor,
1025 sensor = csi_sensors[i];
1028 ret = __fimc_md_create_fimc_sink_links(fmd, source, sensor,
1058 * The peripheral sensor and CAM_BLK (PIXELASYNCMx) clocks management.
1379 /* Find platform data for this sensor subdev */
1380 for (i = 0; i < ARRAY_SIZE(fmd->sensor); i++)
1381 if (fmd->sensor[i].asd == asd)
1382 si = &fmd->sensor[i];
1396 v4l2_info(&fmd->v4l2_dev, "Registered sensor subdevice: %s (%d)\n",