Lines Matching refs:vlens
36 struct vimc_lens_device *vlens = in vimc_lens_s_ctrl() local
39 vlens->focus_absolute = ctrl->val; in vimc_lens_s_ctrl()
53 struct vimc_lens_device *vlens; in vimc_lens_add() local
57 vlens = kzalloc(sizeof(*vlens), GFP_KERNEL); in vimc_lens_add()
58 if (!vlens) in vimc_lens_add()
61 v4l2_ctrl_handler_init(&vlens->hdl, 1); in vimc_lens_add()
63 v4l2_ctrl_new_std(&vlens->hdl, &vimc_lens_ctrl_ops, in vimc_lens_add()
66 vlens->sd.ctrl_handler = &vlens->hdl; in vimc_lens_add()
67 if (vlens->hdl.error) { in vimc_lens_add()
68 ret = vlens->hdl.error; in vimc_lens_add()
71 vlens->ved.dev = vimc->mdev.dev; in vimc_lens_add()
73 ret = vimc_ent_sd_register(&vlens->ved, &vlens->sd, v4l2_dev, in vimc_lens_add()
79 return &vlens->ved; in vimc_lens_add()
82 v4l2_ctrl_handler_free(&vlens->hdl); in vimc_lens_add()
84 kfree(vlens); in vimc_lens_add()
91 struct vimc_lens_device *vlens = in vimc_lens_release() local
94 v4l2_ctrl_handler_free(&vlens->hdl); in vimc_lens_release()
95 v4l2_subdev_cleanup(&vlens->sd); in vimc_lens_release()
96 media_entity_cleanup(vlens->ved.ent); in vimc_lens_release()
97 kfree(vlens); in vimc_lens_release()