Lines Matching refs:sd

39 #define to_dw9719_device(x) container_of(x, struct dw9719_device, sd)
42 struct v4l2_subdev sd; member
137 struct v4l2_subdev *sd = dev_get_drvdata(dev); in dw9719_suspend() local
138 struct dw9719_device *dw9719 = to_dw9719_device(sd); in dw9719_suspend()
156 struct v4l2_subdev *sd = dev_get_drvdata(dev); in dw9719_resume() local
157 struct dw9719_device *dw9719 = to_dw9719_device(sd); in dw9719_resume()
182 static int dw9719_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) in dw9719_open() argument
184 return pm_runtime_resume_and_get(sd->dev); in dw9719_open()
187 static int dw9719_close(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) in dw9719_close() argument
189 pm_runtime_put(sd->dev); in dw9719_close()
216 dw9719->sd.ctrl_handler = &dw9719->ctrls.handler; in dw9719_init_controls()
256 v4l2_i2c_subdev_init(&dw9719->sd, client, &dw9719_ops); in dw9719_probe()
257 dw9719->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; in dw9719_probe()
258 dw9719->sd.internal_ops = &dw9719_internal_ops; in dw9719_probe()
264 ret = media_entity_pads_init(&dw9719->sd.entity, 0, NULL); in dw9719_probe()
268 dw9719->sd.entity.function = MEDIA_ENT_F_LENS; in dw9719_probe()
289 ret = v4l2_async_register_subdev(&dw9719->sd); in dw9719_probe()
305 media_entity_cleanup(&dw9719->sd.entity); in dw9719_probe()
314 struct v4l2_subdev *sd = i2c_get_clientdata(client); in dw9719_remove() local
316 container_of(sd, struct dw9719_device, sd); in dw9719_remove()
318 v4l2_async_unregister_subdev(sd); in dw9719_remove()
320 media_entity_cleanup(&dw9719->sd.entity); in dw9719_remove()