Lines Matching refs:sd
23 #define to_ov9740(sd) container_of(sd, struct ov9740_priv, subdev) argument
505 static int ov9740_s_stream(struct v4l2_subdev *sd, int enable) in ov9740_s_stream() argument
507 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov9740_s_stream()
508 struct ov9740_priv *priv = to_ov9740(sd); in ov9740_s_stream()
671 static int ov9740_s_fmt(struct v4l2_subdev *sd, in ov9740_s_fmt() argument
674 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov9740_s_fmt()
675 struct ov9740_priv *priv = to_ov9740(sd); in ov9740_s_fmt()
707 static int ov9740_set_fmt(struct v4l2_subdev *sd, in ov9740_set_fmt() argument
723 return ov9740_s_fmt(sd, mf); in ov9740_set_fmt()
728 static int ov9740_enum_mbus_code(struct v4l2_subdev *sd, in ov9740_enum_mbus_code() argument
740 static int ov9740_cropcap(struct v4l2_subdev *sd, struct v4l2_cropcap *a) in ov9740_cropcap() argument
754 static int ov9740_g_crop(struct v4l2_subdev *sd, struct v4l2_crop *a) in ov9740_g_crop() argument
785 static int ov9740_s_power(struct v4l2_subdev *sd, int on) in ov9740_s_power() argument
787 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov9740_s_power()
789 struct ov9740_priv *priv = to_ov9740(sd); in ov9740_s_power()
798 ov9740_s_fmt(sd, &priv->current_mf); in ov9740_s_power()
799 ov9740_s_stream(sd, 1); in ov9740_s_power()
803 ov9740_s_stream(sd, 0); in ov9740_s_power()
814 static int ov9740_get_register(struct v4l2_subdev *sd, in ov9740_get_register() argument
817 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov9740_get_register()
835 static int ov9740_set_register(struct v4l2_subdev *sd, in ov9740_set_register() argument
838 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov9740_set_register()
849 struct v4l2_subdev *sd = i2c_get_clientdata(client); in ov9740_video_probe() local
850 struct ov9740_priv *priv = to_ov9740(sd); in ov9740_video_probe()
900 static int ov9740_g_mbus_config(struct v4l2_subdev *sd, in ov9740_g_mbus_config() argument
903 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov9740_g_mbus_config()