Lines Matching refs:subdev
123 struct v4l2_subdev subdev; member
151 return container_of(sd, struct mt9p031, subdev); in to_mt9p031()
167 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_set_output_control()
181 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_set_mode2()
195 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_reset()
233 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_clk_setup()
269 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_pll_enable()
298 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_pll_disable()
358 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in __mt9p031_set_power()
385 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_set_params()
448 static int mt9p031_s_stream(struct v4l2_subdev *subdev, int enable) in mt9p031_s_stream() argument
450 struct mt9p031 *mt9p031 = to_mt9p031(subdev); in mt9p031_s_stream()
476 static int mt9p031_enum_mbus_code(struct v4l2_subdev *subdev, in mt9p031_enum_mbus_code() argument
480 struct mt9p031 *mt9p031 = to_mt9p031(subdev); in mt9p031_enum_mbus_code()
489 static int mt9p031_enum_frame_size(struct v4l2_subdev *subdev, in mt9p031_enum_frame_size() argument
493 struct mt9p031 *mt9p031 = to_mt9p031(subdev); in mt9p031_enum_frame_size()
513 return v4l2_subdev_get_try_format(&mt9p031->subdev, cfg, pad); in __mt9p031_get_pad_format()
527 return v4l2_subdev_get_try_crop(&mt9p031->subdev, cfg, pad); in __mt9p031_get_pad_crop()
535 static int mt9p031_get_format(struct v4l2_subdev *subdev, in mt9p031_get_format() argument
539 struct mt9p031 *mt9p031 = to_mt9p031(subdev); in mt9p031_get_format()
546 static int mt9p031_set_format(struct v4l2_subdev *subdev, in mt9p031_set_format() argument
550 struct mt9p031 *mt9p031 = to_mt9p031(subdev); in mt9p031_set_format()
584 static int mt9p031_get_selection(struct v4l2_subdev *subdev, in mt9p031_get_selection() argument
588 struct mt9p031 *mt9p031 = to_mt9p031(subdev); in mt9p031_get_selection()
597 static int mt9p031_set_selection(struct v4l2_subdev *subdev, in mt9p031_set_selection() argument
601 struct mt9p031 *mt9p031 = to_mt9p031(subdev); in mt9p031_set_selection()
657 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_restore_blc()
681 struct i2c_client *client = v4l2_get_subdevdata(&mt9p031->subdev); in mt9p031_s_ctrl()
885 static int mt9p031_set_power(struct v4l2_subdev *subdev, int on) in mt9p031_set_power() argument
887 struct mt9p031 *mt9p031 = to_mt9p031(subdev); in mt9p031_set_power()
914 static int mt9p031_registered(struct v4l2_subdev *subdev) in mt9p031_registered() argument
916 struct i2c_client *client = v4l2_get_subdevdata(subdev); in mt9p031_registered()
917 struct mt9p031 *mt9p031 = to_mt9p031(subdev); in mt9p031_registered()
943 static int mt9p031_open(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) in mt9p031_open() argument
945 struct mt9p031 *mt9p031 = to_mt9p031(subdev); in mt9p031_open()
949 crop = v4l2_subdev_get_try_crop(subdev, fh->pad, 0); in mt9p031_open()
955 format = v4l2_subdev_get_try_format(subdev, fh->pad, 0); in mt9p031_open()
967 return mt9p031_set_power(subdev, 1); in mt9p031_open()
970 static int mt9p031_close(struct v4l2_subdev *subdev, struct v4l2_subdev_fh *fh) in mt9p031_close() argument
972 return mt9p031_set_power(subdev, 0); in mt9p031_close()
1098 mt9p031->subdev.ctrl_handler = &mt9p031->ctrls; in mt9p031_probe()
1111 v4l2_i2c_subdev_init(&mt9p031->subdev, client, &mt9p031_subdev_ops); in mt9p031_probe()
1112 mt9p031->subdev.internal_ops = &mt9p031_subdev_internal_ops; in mt9p031_probe()
1115 ret = media_entity_init(&mt9p031->subdev.entity, 1, &mt9p031->pad, 0); in mt9p031_probe()
1119 mt9p031->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; in mt9p031_probe()
1143 ret = v4l2_async_register_subdev(&mt9p031->subdev); in mt9p031_probe()
1148 media_entity_cleanup(&mt9p031->subdev.entity); in mt9p031_probe()
1157 struct v4l2_subdev *subdev = i2c_get_clientdata(client); in mt9p031_remove() local
1158 struct mt9p031 *mt9p031 = to_mt9p031(subdev); in mt9p031_remove()
1161 v4l2_async_unregister_subdev(subdev); in mt9p031_remove()
1162 media_entity_cleanup(&subdev->entity); in mt9p031_remove()