Lines Matching refs:subdev
146 struct v4l2_subdev subdev; member
167 #define to_mt9m032(sd) container_of(sd, struct mt9m032, subdev)
169 (&((struct i2c_client *)v4l2_get_subdevdata(&(sensor)->subdev))->dev)
195 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in mt9m032_update_timing()
230 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in mt9m032_update_geom_timing()
251 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in update_formatter2()
280 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in mt9m032_setup_pll()
319 static int mt9m032_enum_mbus_code(struct v4l2_subdev *subdev, in mt9m032_enum_mbus_code() argument
330 static int mt9m032_enum_frame_size(struct v4l2_subdev *subdev, in mt9m032_enum_frame_size() argument
359 return v4l2_subdev_get_try_crop(&sensor->subdev, cfg, 0); in __mt9m032_get_pad_crop()
381 return v4l2_subdev_get_try_format(&sensor->subdev, cfg, 0); in __mt9m032_get_pad_format()
389 static int mt9m032_get_pad_format(struct v4l2_subdev *subdev, in mt9m032_get_pad_format() argument
393 struct mt9m032 *sensor = to_mt9m032(subdev); in mt9m032_get_pad_format()
402 static int mt9m032_set_pad_format(struct v4l2_subdev *subdev, in mt9m032_set_pad_format() argument
406 struct mt9m032 *sensor = to_mt9m032(subdev); in mt9m032_set_pad_format()
425 static int mt9m032_get_pad_selection(struct v4l2_subdev *subdev, in mt9m032_get_pad_selection() argument
429 struct mt9m032 *sensor = to_mt9m032(subdev); in mt9m032_get_pad_selection()
441 static int mt9m032_set_pad_selection(struct v4l2_subdev *subdev, in mt9m032_set_pad_selection() argument
445 struct mt9m032 *sensor = to_mt9m032(subdev); in mt9m032_set_pad_selection()
500 static int mt9m032_get_frame_interval(struct v4l2_subdev *subdev, in mt9m032_get_frame_interval() argument
503 struct mt9m032 *sensor = to_mt9m032(subdev); in mt9m032_get_frame_interval()
513 static int mt9m032_set_frame_interval(struct v4l2_subdev *subdev, in mt9m032_set_frame_interval() argument
516 struct mt9m032 *sensor = to_mt9m032(subdev); in mt9m032_set_frame_interval()
539 static int mt9m032_s_stream(struct v4l2_subdev *subdev, int streaming) in mt9m032_s_stream() argument
541 struct mt9m032 *sensor = to_mt9m032(subdev); in mt9m032_s_stream()
562 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in mt9m032_g_register()
582 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in mt9m032_s_register()
597 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in update_read_mode2()
608 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in mt9m032_set_gain()
649 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in mt9m032_set_ctrl()
744 v4l2_i2c_subdev_init(&sensor->subdev, client, &mt9m032_ops); in mt9m032_probe()
745 sensor->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; in mt9m032_probe()
800 sensor->subdev.ctrl_handler = &sensor->ctrls; in mt9m032_probe()
802 ret = media_entity_init(&sensor->subdev.entity, 1, &sensor->pad, 0); in mt9m032_probe()
861 media_entity_cleanup(&sensor->subdev.entity); in mt9m032_probe()
871 struct v4l2_subdev *subdev = i2c_get_clientdata(client); in mt9m032_remove() local
872 struct mt9m032 *sensor = to_mt9m032(subdev); in mt9m032_remove()
874 v4l2_device_unregister_subdev(subdev); in mt9m032_remove()
876 media_entity_cleanup(&subdev->entity); in mt9m032_remove()