Lines Matching refs:sd
40 struct v4l2_subdev sd; member
142 static inline struct tw2804 *to_state(struct v4l2_subdev *sd) in to_state() argument
144 return container_of(sd, struct tw2804, sd); in to_state()
152 static int tw2804_log_status(struct v4l2_subdev *sd) in tw2804_log_status() argument
154 struct tw2804 *state = to_state(sd); in tw2804_log_status()
156 v4l2_info(sd, "Standard: %s\n", in tw2804_log_status()
158 v4l2_info(sd, "Channel: %d\n", state->channel); in tw2804_log_status()
159 v4l2_info(sd, "Input: %d\n", state->input); in tw2804_log_status()
160 return v4l2_ctrl_subdev_log_status(sd); in tw2804_log_status()
179 struct i2c_client *client = v4l2_get_subdevdata(&state->sd); in tw2804_g_volatile_ctrl()
204 struct i2c_client *client = v4l2_get_subdevdata(&state->sd); in tw2804_s_ctrl()
262 static int tw2804_s_std(struct v4l2_subdev *sd, v4l2_std_id norm) in tw2804_s_std() argument
264 struct tw2804 *dec = to_state(sd); in tw2804_s_std()
265 struct i2c_client *client = v4l2_get_subdevdata(sd); in tw2804_s_std()
286 static int tw2804_s_video_routing(struct v4l2_subdev *sd, u32 input, u32 output, in tw2804_s_video_routing() argument
289 struct tw2804 *dec = to_state(sd); in tw2804_s_video_routing()
290 struct i2c_client *client = v4l2_get_subdevdata(sd); in tw2804_s_video_routing()
363 struct v4l2_subdev *sd; in tw2804_probe() local
373 sd = &state->sd; in tw2804_probe()
374 v4l2_i2c_subdev_init(sd, client, &tw2804_ops); in tw2804_probe()
407 sd->ctrl_handler = &state->hdl; in tw2804_probe()
422 struct v4l2_subdev *sd = i2c_get_clientdata(client); in tw2804_remove() local
423 struct tw2804 *state = to_state(sd); in tw2804_remove()
425 v4l2_device_unregister_subdev(sd); in tw2804_remove()