Lines Matching refs:entity

205 		if (vdev->entity.function != MEDIA_ENT_F_UNKNOWN)
206 media_device_unregister_entity(&vdev->entity);
804 vdev->entity.obj_type = MEDIA_ENTITY_TYPE_VIDEO_DEVICE;
805 vdev->entity.function = MEDIA_ENT_F_UNKNOWN;
810 vdev->entity.function = MEDIA_ENT_F_IO_V4L;
814 vdev->entity.function = MEDIA_ENT_F_IO_VBI;
818 vdev->entity.function = MEDIA_ENT_F_IO_SWRADIO;
822 vdev->entity.function = MEDIA_ENT_F_IO_V4L;
827 * Radio doesn't have an entity at the V4L2 side to represent
840 if (vdev->entity.function != MEDIA_ENT_F_UNKNOWN) {
841 vdev->entity.name = vdev->name;
844 vdev->entity.info.dev.major = VIDEO_MAJOR;
845 vdev->entity.info.dev.minor = vdev->minor;
848 &vdev->entity);
861 media_device_unregister_entity(&vdev->entity);
865 if (vdev->entity.function != MEDIA_ENT_F_UNKNOWN) {
868 link = media_create_intf_link(&vdev->entity,
874 media_device_unregister_entity(&vdev->entity);
1060 /* Part 5: Register the entity. */
1112 struct media_entity *entity = &vdev->entity;
1114 if (entity->num_pads != 1)
1117 return media_pipeline_start(&entity->pads[0], pipe);
1124 struct media_entity *entity = &vdev->entity;
1126 if (entity->num_pads != 1)
1129 return __media_pipeline_start(&entity->pads[0], pipe);
1135 struct media_entity *entity = &vdev->entity;
1137 if (WARN_ON(entity->num_pads != 1))
1140 return media_pipeline_stop(&entity->pads[0]);
1146 struct media_entity *entity = &vdev->entity;
1148 if (WARN_ON(entity->num_pads != 1))
1151 return __media_pipeline_stop(&entity->pads[0]);
1157 struct media_entity *entity = &vdev->entity;
1159 if (entity->num_pads != 1)
1162 return media_pipeline_alloc_start(&entity->pads[0]);
1168 struct media_entity *entity = &vdev->entity;
1170 if (WARN_ON(entity->num_pads != 1))
1173 return media_pad_pipeline(&entity->pads[0]);