Lines Matching defs:subdev
600 v4l2_event_queue(q->subdev.devnode, &event);
1219 * cio2_subdev_get_fmt - Handle get format by pads subdev method
1220 * @sd : pointer to v4l2 subdev structure
1221 * @cfg: V4L2 subdev pad config
1222 * @fmt: pointer to v4l2 subdev format structure
1229 struct cio2_queue *q = container_of(sd, struct cio2_queue, subdev);
1245 * cio2_subdev_set_fmt - Handle set format by pads subdev method
1246 * @sd : pointer to v4l2 subdev structure
1247 * @cfg: V4L2 subdev pad config
1248 * @fmt: pointer to v4l2 subdev format structure
1255 struct cio2_queue *q = container_of(sd, struct cio2_queue, subdev);
1444 &q->subdev.entity, CIO2_PAD_SINK,
1533 struct v4l2_subdev *subdev = &q->subdev;
1568 subdev->entity.ops = &cio2_media_ops;
1569 subdev->internal_ops = &cio2_subdev_internal_ops;
1570 r = media_entity_pads_init(&subdev->entity, CIO2_PADS, q->subdev_pads);
1572 dev_err(dev, "failed initialize subdev media entity (%d)\n", r);
1585 /* Initialize subdev */
1586 v4l2_subdev_init(subdev, &cio2_subdev_ops);
1587 subdev->flags = V4L2_SUBDEV_FL_HAS_DEVNODE | V4L2_SUBDEV_FL_HAS_EVENTS;
1588 subdev->owner = THIS_MODULE;
1589 snprintf(subdev->name, sizeof(subdev->name),
1591 subdev->entity.function = MEDIA_ENT_F_VID_IF_BRIDGE;
1592 v4l2_set_subdevdata(subdev, cio2);
1593 r = v4l2_device_register_subdev(&cio2->v4l2_dev, subdev);
1595 dev_err(dev, "failed initialize subdev (%d)\n", r);
1632 /* Create link from CIO2 subdev to output node */
1634 &subdev->entity, CIO2_PAD_SOURCE, &vdev->entity, 0,
1644 v4l2_device_unregister_subdev(subdev);
1648 media_entity_cleanup(&subdev->entity);
1662 v4l2_device_unregister_subdev(&q->subdev);
1663 media_entity_cleanup(&q->subdev.entity);