Lines Matching refs:sd

54 	struct v4l2_subdev sd;  member
63 static inline struct bt819 *to_bt819(struct v4l2_subdev *sd) in to_bt819() argument
65 return container_of(sd, struct bt819, sd); in to_bt819()
70 return &container_of(ctrl->handler, struct bt819, hdl)->sd; in to_sd()
92 struct i2c_client *client = v4l2_get_subdevdata(&decoder->sd); in bt819_write()
106 struct i2c_client *client = v4l2_get_subdevdata(&decoder->sd); in bt819_write_block()
146 struct i2c_client *client = v4l2_get_subdevdata(&decoder->sd); in bt819_read()
151 static int bt819_init(struct v4l2_subdev *sd) in bt819_init() argument
187 struct bt819 *decoder = to_bt819(sd); in bt819_init()
213 static int bt819_status(struct v4l2_subdev *sd, u32 *pstatus, v4l2_std_id *pstd) in bt819_status() argument
215 struct bt819 *decoder = to_bt819(sd); in bt819_status()
234 v4l2_dbg(1, debug, sd, "get status %x\n", status); in bt819_status()
238 static int bt819_querystd(struct v4l2_subdev *sd, v4l2_std_id *std) in bt819_querystd() argument
240 return bt819_status(sd, NULL, std); in bt819_querystd()
243 static int bt819_g_input_status(struct v4l2_subdev *sd, u32 *status) in bt819_g_input_status() argument
245 return bt819_status(sd, status, NULL); in bt819_g_input_status()
248 static int bt819_s_std(struct v4l2_subdev *sd, v4l2_std_id std) in bt819_s_std() argument
250 struct bt819 *decoder = to_bt819(sd); in bt819_s_std()
253 v4l2_dbg(1, debug, sd, "set norm %llx\n", (unsigned long long)std); in bt819_s_std()
255 if (sd->v4l2_dev == NULL || sd->v4l2_dev->notify == NULL) in bt819_s_std()
256 v4l2_err(sd, "no notify found!\n"); in bt819_s_std()
259 v4l2_subdev_notify(sd, BT819_FIFO_RESET_LOW, NULL); in bt819_s_std()
268 v4l2_subdev_notify(sd, BT819_FIFO_RESET_LOW, NULL); in bt819_s_std()
277 v4l2_dbg(1, debug, sd, "unsupported norm %llx\n", in bt819_s_std()
293 v4l2_subdev_notify(sd, BT819_FIFO_RESET_HIGH, NULL); in bt819_s_std()
297 static int bt819_s_routing(struct v4l2_subdev *sd, in bt819_s_routing() argument
300 struct bt819 *decoder = to_bt819(sd); in bt819_s_routing()
302 v4l2_dbg(1, debug, sd, "set input %x\n", input); in bt819_s_routing()
307 if (sd->v4l2_dev == NULL || sd->v4l2_dev->notify == NULL) in bt819_s_routing()
308 v4l2_err(sd, "no notify found!\n"); in bt819_s_routing()
311 v4l2_subdev_notify(sd, BT819_FIFO_RESET_LOW, NULL); in bt819_s_routing()
321 v4l2_subdev_notify(sd, BT819_FIFO_RESET_HIGH, NULL); in bt819_s_routing()
326 static int bt819_s_stream(struct v4l2_subdev *sd, int enable) in bt819_s_stream() argument
328 struct bt819 *decoder = to_bt819(sd); in bt819_s_stream()
330 v4l2_dbg(1, debug, sd, "enable output %x\n", enable); in bt819_s_stream()
341 struct v4l2_subdev *sd = to_sd(ctrl); in bt819_s_ctrl() local
342 struct bt819 *decoder = to_bt819(sd); in bt819_s_ctrl()
401 struct v4l2_subdev *sd; in bt819_probe() local
411 sd = &decoder->sd; in bt819_probe()
412 v4l2_i2c_subdev_init(sd, client, &bt819_ops); in bt819_probe()
426 v4l2_dbg(1, debug, sd, in bt819_probe()
438 i = bt819_init(sd); in bt819_probe()
440 v4l2_dbg(1, debug, sd, "init status %d\n", i); in bt819_probe()
451 sd->ctrl_handler = &decoder->hdl; in bt819_probe()
464 struct v4l2_subdev *sd = i2c_get_clientdata(client); in bt819_remove() local
465 struct bt819 *decoder = to_bt819(sd); in bt819_remove()
467 v4l2_device_unregister_subdev(sd); in bt819_remove()