Lines Matching refs:sd

222 	struct v4l2_subdev sd;  member
832 static inline struct ov2659 *to_ov2659(struct v4l2_subdev *sd) in to_ov2659() argument
834 return container_of(sd, struct ov2659, sd); in to_ov2659()
990 static int ov2659_init(struct v4l2_subdev *sd, u32 val) in ov2659_init() argument
992 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_init()
1001 static int ov2659_enum_mbus_code(struct v4l2_subdev *sd, in ov2659_enum_mbus_code() argument
1005 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_enum_mbus_code()
1017 static int ov2659_enum_frame_sizes(struct v4l2_subdev *sd, in ov2659_enum_frame_sizes() argument
1021 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_enum_frame_sizes()
1043 static int ov2659_get_fmt(struct v4l2_subdev *sd, in ov2659_get_fmt() argument
1047 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_get_fmt()
1048 struct ov2659 *ov2659 = to_ov2659(sd); in ov2659_get_fmt()
1054 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in ov2659_get_fmt()
1100 static int ov2659_set_fmt(struct v4l2_subdev *sd, in ov2659_set_fmt() argument
1104 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_set_fmt()
1108 struct ov2659 *ov2659 = to_ov2659(sd); in ov2659_set_fmt()
1129 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in ov2659_set_fmt()
1178 static int ov2659_s_stream(struct v4l2_subdev *sd, int on) in ov2659_s_stream() argument
1180 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_s_stream()
1181 struct ov2659 *ov2659 = to_ov2659(sd); in ov2659_s_stream()
1213 struct i2c_client *client = v4l2_get_subdevdata(&ov2659->sd); in ov2659_set_test_pattern()
1260 static int ov2659_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) in ov2659_open() argument
1262 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_open()
1264 v4l2_subdev_get_try_format(sd, fh->pad, 0); in ov2659_open()
1300 static int ov2659_detect(struct v4l2_subdev *sd) in ov2659_detect() argument
1302 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_detect()
1315 ret = ov2659_init(sd, 0); in ov2659_detect()
1373 struct v4l2_subdev *sd; in ov2659_probe() local
1410 ov2659->sd.ctrl_handler = &ov2659->ctrls; in ov2659_probe()
1418 sd = &ov2659->sd; in ov2659_probe()
1420 v4l2_i2c_subdev_init(sd, client, &ov2659_subdev_ops); in ov2659_probe()
1422 sd->internal_ops = &ov2659_subdev_internal_ops; in ov2659_probe()
1423 sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE | in ov2659_probe()
1428 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_SENSOR; in ov2659_probe()
1429 ret = media_entity_init(&sd->entity, 1, &ov2659->pad, 0); in ov2659_probe()
1442 ret = ov2659_detect(sd); in ov2659_probe()
1449 ret = v4l2_async_register_subdev(&ov2659->sd); in ov2659_probe()
1453 dev_info(&client->dev, "%s sensor driver registered !!\n", sd->name); in ov2659_probe()
1460 media_entity_cleanup(&sd->entity); in ov2659_probe()
1468 struct v4l2_subdev *sd = i2c_get_clientdata(client); in ov2659_remove() local
1469 struct ov2659 *ov2659 = to_ov2659(sd); in ov2659_remove()
1472 v4l2_async_unregister_subdev(sd); in ov2659_remove()
1474 media_entity_cleanup(&sd->entity); in ov2659_remove()