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()
986 static int ov2659_init(struct v4l2_subdev *sd, u32 val) in ov2659_init() argument
988 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_init()
997 static int ov2659_enum_mbus_code(struct v4l2_subdev *sd, in ov2659_enum_mbus_code() argument
1001 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_enum_mbus_code()
1013 static int ov2659_enum_frame_sizes(struct v4l2_subdev *sd, in ov2659_enum_frame_sizes() argument
1017 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_enum_frame_sizes()
1039 static int ov2659_get_fmt(struct v4l2_subdev *sd, in ov2659_get_fmt() argument
1043 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_get_fmt()
1044 struct ov2659 *ov2659 = to_ov2659(sd); in ov2659_get_fmt()
1052 mf = v4l2_subdev_get_try_format(sd, cfg, 0); in ov2659_get_fmt()
1101 static int ov2659_set_fmt(struct v4l2_subdev *sd, in ov2659_set_fmt() argument
1105 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_set_fmt()
1109 struct ov2659 *ov2659 = to_ov2659(sd); in ov2659_set_fmt()
1131 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in ov2659_set_fmt()
1183 static int ov2659_s_stream(struct v4l2_subdev *sd, int on) in ov2659_s_stream() argument
1185 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_s_stream()
1186 struct ov2659 *ov2659 = to_ov2659(sd); in ov2659_s_stream()
1218 struct i2c_client *client = v4l2_get_subdevdata(&ov2659->sd); in ov2659_set_test_pattern()
1266 static int ov2659_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) in ov2659_open() argument
1268 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_open()
1270 v4l2_subdev_get_try_format(sd, fh->pad, 0); in ov2659_open()
1309 static int ov2659_detect(struct v4l2_subdev *sd) in ov2659_detect() argument
1311 struct i2c_client *client = v4l2_get_subdevdata(sd); in ov2659_detect()
1324 ret = ov2659_init(sd, 0); in ov2659_detect()
1391 struct v4l2_subdev *sd; in ov2659_probe() local
1428 ov2659->sd.ctrl_handler = &ov2659->ctrls; in ov2659_probe()
1436 sd = &ov2659->sd; in ov2659_probe()
1439 v4l2_i2c_subdev_init(sd, client, &ov2659_subdev_ops); in ov2659_probe()
1441 sd->internal_ops = &ov2659_subdev_internal_ops; in ov2659_probe()
1442 sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE | in ov2659_probe()
1448 sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_SENSOR; in ov2659_probe()
1449 ret = media_entity_init(&sd->entity, 1, &ov2659->pad, 0); in ov2659_probe()
1462 ret = ov2659_detect(sd); in ov2659_probe()
1469 ret = v4l2_async_register_subdev(&ov2659->sd); in ov2659_probe()
1473 dev_info(&client->dev, "%s sensor driver registered !!\n", sd->name); in ov2659_probe()
1480 media_entity_cleanup(&sd->entity); in ov2659_probe()
1488 struct v4l2_subdev *sd = i2c_get_clientdata(client); in ov2659_remove() local
1489 struct ov2659 *ov2659 = to_ov2659(sd); in ov2659_remove()
1492 v4l2_async_unregister_subdev(sd); in ov2659_remove()
1494 media_entity_cleanup(&sd->entity); in ov2659_remove()