Lines Matching refs:subdev
116 struct v4l2_subdev subdev; member
131 return container_of(sd, struct mt9t001, subdev); in to_mt9t001()
147 struct i2c_client *client = v4l2_get_subdevdata(&mt9t001->subdev); in mt9t001_set_output_control()
194 static int mt9t001_s_stream(struct v4l2_subdev *subdev, int enable) in mt9t001_s_stream() argument
197 struct i2c_client *client = v4l2_get_subdevdata(subdev); in mt9t001_s_stream()
198 struct mt9t001 *mt9t001 = to_mt9t001(subdev); in mt9t001_s_stream()
240 static int mt9t001_enum_mbus_code(struct v4l2_subdev *subdev, in mt9t001_enum_mbus_code() argument
251 static int mt9t001_enum_frame_size(struct v4l2_subdev *subdev, in mt9t001_enum_frame_size() argument
266 static int mt9t001_get_format(struct v4l2_subdev *subdev, in mt9t001_get_format() argument
270 struct mt9t001 *mt9t001 = to_mt9t001(subdev); in mt9t001_get_format()
277 static int mt9t001_set_format(struct v4l2_subdev *subdev, in mt9t001_set_format() argument
281 struct mt9t001 *mt9t001 = to_mt9t001(subdev); in mt9t001_set_format()
313 static int mt9t001_get_crop(struct v4l2_subdev *subdev, in mt9t001_get_crop() argument
317 struct mt9t001 *mt9t001 = to_mt9t001(subdev); in mt9t001_get_crop()
324 static int mt9t001_set_crop(struct v4l2_subdev *subdev, in mt9t001_set_crop() argument
328 struct mt9t001 *mt9t001 = to_mt9t001(subdev); in mt9t001_set_crop()
428 struct i2c_client *client = v4l2_get_subdevdata(&mt9t001->subdev); in mt9t001_s_ctrl()
632 static int mt9t001_open(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) in mt9t001_open() argument
773 mt9t001->subdev.ctrl_handler = &mt9t001->ctrls; in mt9t001_probe()
793 v4l2_i2c_subdev_init(&mt9t001->subdev, client, &mt9t001_subdev_ops); in mt9t001_probe()
794 mt9t001->subdev.internal_ops = &mt9t001_subdev_internal_ops; in mt9t001_probe()
795 mt9t001->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; in mt9t001_probe()
798 ret = media_entity_init(&mt9t001->subdev.entity, 1, &mt9t001->pad, 0); in mt9t001_probe()
803 media_entity_cleanup(&mt9t001->subdev.entity); in mt9t001_probe()
812 struct v4l2_subdev *subdev = i2c_get_clientdata(client); in mt9t001_remove() local
813 struct mt9t001 *mt9t001 = to_mt9t001(subdev); in mt9t001_remove()
816 v4l2_device_unregister_subdev(subdev); in mt9t001_remove()
817 media_entity_cleanup(&subdev->entity); in mt9t001_remove()