Lines Matching refs:subdev

31 #include <media/v4l2-subdev.h>
186 struct v4l2_subdev subdev;
223 return container_of(sd, struct mt9v032, subdev);
349 * V4L2 subdev video operations
382 static int mt9v032_s_stream(struct v4l2_subdev *subdev, int enable)
386 struct mt9v032 *mt9v032 = to_mt9v032(subdev);
430 static int mt9v032_enum_mbus_code(struct v4l2_subdev *subdev,
434 struct mt9v032 *mt9v032 = to_mt9v032(subdev);
443 static int mt9v032_enum_frame_size(struct v4l2_subdev *subdev,
447 struct mt9v032 *mt9v032 = to_mt9v032(subdev);
462 static int mt9v032_get_format(struct v4l2_subdev *subdev,
466 struct mt9v032 *mt9v032 = to_mt9v032(subdev);
476 struct i2c_client *client = v4l2_get_subdevdata(&mt9v032->subdev);
498 static int mt9v032_set_format(struct v4l2_subdev *subdev,
502 struct mt9v032 *mt9v032 = to_mt9v032(subdev);
542 static int mt9v032_get_selection(struct v4l2_subdev *subdev,
546 struct mt9v032 *mt9v032 = to_mt9v032(subdev);
556 static int mt9v032_set_selection(struct v4l2_subdev *subdev,
560 struct mt9v032 *mt9v032 = to_mt9v032(subdev);
615 * V4L2 subdev control operations
846 * V4L2 subdev core operations
849 static int mt9v032_set_power(struct v4l2_subdev *subdev, int on)
851 struct mt9v032 *mt9v032 = to_mt9v032(subdev);
875 * V4L2 subdev internal operations
878 static int mt9v032_registered(struct v4l2_subdev *subdev)
880 struct i2c_client *client = v4l2_get_subdevdata(subdev);
881 struct mt9v032 *mt9v032 = to_mt9v032(subdev);
926 static int mt9v032_open(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh)
928 struct mt9v032 *mt9v032 = to_mt9v032(subdev);
950 return mt9v032_set_power(subdev, 1);
953 static int mt9v032_close(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh)
955 return mt9v032_set_power(subdev, 0);
1139 mt9v032->subdev.ctrl_handler = &mt9v032->ctrls;
1170 v4l2_i2c_subdev_init(&mt9v032->subdev, client, &mt9v032_subdev_ops);
1171 mt9v032->subdev.internal_ops = &mt9v032_subdev_internal_ops;
1172 mt9v032->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
1174 mt9v032->subdev.entity.function = MEDIA_ENT_F_CAM_SENSOR;
1176 ret = media_entity_pads_init(&mt9v032->subdev.entity, 1, &mt9v032->pad);
1180 mt9v032->subdev.dev = &client->dev;
1181 ret = v4l2_async_register_subdev(&mt9v032->subdev);
1188 media_entity_cleanup(&mt9v032->subdev.entity);
1195 struct v4l2_subdev *subdev = i2c_get_clientdata(client);
1196 struct mt9v032 *mt9v032 = to_mt9v032(subdev);
1198 v4l2_async_unregister_subdev(subdev);
1200 media_entity_cleanup(&subdev->entity);