Lines Matching refs:ip

41 	state = v4l2_subdev_lock_and_get_active_state(&cru->ip.subdev);  in rzg2l_cru_ip_get_src_fmt()
42 fmt = v4l2_subdev_get_pad_format(&cru->ip.subdev, state, 1); in rzg2l_cru_ip_get_src_fmt()
57 ret = v4l2_subdev_call(cru->ip.remote, video, s_stream, enable); in rzg2l_cru_ip_s_stream()
61 ret = v4l2_subdev_call(cru->ip.remote, video, post_streamoff); in rzg2l_cru_ip_s_stream()
68 ret = v4l2_subdev_call(cru->ip.remote, video, pre_streamon, 0); in rzg2l_cru_ip_s_stream()
76 v4l2_subdev_call(cru->ip.remote, video, post_streamoff); in rzg2l_cru_ip_s_stream()
82 ret = v4l2_subdev_call(cru->ip.remote, video, s_stream, enable); in rzg2l_cru_ip_s_stream()
97 v4l2_subdev_call(cru->ip.remote, video, post_streamoff); in rzg2l_cru_ip_s_stream()
211 struct rzg2l_cru_ip *ip = &cru->ip; in rzg2l_cru_ip_subdev_register() local
214 ip->subdev.dev = cru->dev; in rzg2l_cru_ip_subdev_register()
215 v4l2_subdev_init(&ip->subdev, &rzg2l_cru_ip_subdev_ops); in rzg2l_cru_ip_subdev_register()
216 v4l2_set_subdevdata(&ip->subdev, cru); in rzg2l_cru_ip_subdev_register()
217 snprintf(ip->subdev.name, sizeof(ip->subdev.name), in rzg2l_cru_ip_subdev_register()
219 ip->subdev.flags = V4L2_SUBDEV_FL_HAS_DEVNODE; in rzg2l_cru_ip_subdev_register()
221 ip->subdev.entity.function = MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER; in rzg2l_cru_ip_subdev_register()
222 ip->subdev.entity.ops = &rzg2l_cru_ip_entity_ops; in rzg2l_cru_ip_subdev_register()
224 ip->pads[0].flags = MEDIA_PAD_FL_SINK; in rzg2l_cru_ip_subdev_register()
225 ip->pads[1].flags = MEDIA_PAD_FL_SOURCE; in rzg2l_cru_ip_subdev_register()
227 ret = media_entity_pads_init(&ip->subdev.entity, 2, ip->pads); in rzg2l_cru_ip_subdev_register()
231 ret = v4l2_subdev_init_finalize(&ip->subdev); in rzg2l_cru_ip_subdev_register()
235 ret = v4l2_device_register_subdev(&cru->v4l2_dev, &ip->subdev); in rzg2l_cru_ip_subdev_register()
241 v4l2_subdev_cleanup(&ip->subdev); in rzg2l_cru_ip_subdev_register()
243 media_entity_cleanup(&ip->subdev.entity); in rzg2l_cru_ip_subdev_register()
250 struct rzg2l_cru_ip *ip = &cru->ip; in rzg2l_cru_ip_subdev_unregister() local
252 media_entity_cleanup(&ip->subdev.entity); in rzg2l_cru_ip_subdev_unregister()
253 v4l2_subdev_cleanup(&ip->subdev); in rzg2l_cru_ip_subdev_unregister()
254 v4l2_device_unregister_subdev(&ip->subdev); in rzg2l_cru_ip_subdev_unregister()