Lines Matching refs:sd
182 static inline struct au8522_state *to_state(struct v4l2_subdev *sd) in to_state() argument
184 return container_of(sd, struct au8522_state, sd); in to_state()
528 static int au8522_g_register(struct v4l2_subdev *sd, in au8522_g_register() argument
531 struct au8522_state *state = to_state(sd); in au8522_g_register()
537 static int au8522_s_register(struct v4l2_subdev *sd, in au8522_s_register() argument
540 struct au8522_state *state = to_state(sd); in au8522_s_register()
586 static int au8522_s_stream(struct v4l2_subdev *sd, int enable) in au8522_s_stream() argument
588 struct au8522_state *state = to_state(sd); in au8522_s_stream()
616 static int au8522_s_video_routing(struct v4l2_subdev *sd, in au8522_s_video_routing() argument
619 struct au8522_state *state = to_state(sd); in au8522_s_video_routing()
638 static int au8522_s_std(struct v4l2_subdev *sd, v4l2_std_id std) in au8522_s_std() argument
640 struct au8522_state *state = to_state(sd); in au8522_s_std()
653 static int au8522_s_audio_routing(struct v4l2_subdev *sd, in au8522_s_audio_routing() argument
656 struct au8522_state *state = to_state(sd); in au8522_s_audio_routing()
666 static int au8522_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt) in au8522_g_tuner() argument
669 struct au8522_state *state = to_state(sd); in au8522_g_tuner()
731 struct v4l2_subdev *sd; in au8522_probe() local
768 sd = &state->sd; in au8522_probe()
769 v4l2_i2c_subdev_init(sd, client, &au8522_ops); in au8522_probe()
782 sd->ctrl_handler = hdl; in au8522_probe()
807 struct v4l2_subdev *sd = i2c_get_clientdata(client); in au8522_remove() local
808 v4l2_device_unregister_subdev(sd); in au8522_remove()
809 v4l2_ctrl_handler_free(sd->ctrl_handler); in au8522_remove()
810 au8522_release_state(to_state(sd)); in au8522_remove()