Lines Matching refs:v4l2_dev
56 #define v4l2_dev_to_shark(d) container_of(d, struct shark_device, v4l2_dev)
63 struct v4l2_device v4l2_dev;
101 v4l2_err(&shark->v4l2_dev, "set-freq error: %d\n", res);
117 v4l2_err(&shark->v4l2_dev, "request-status error: %d\n", res);
126 v4l2_err(&shark->v4l2_dev, "get-status error: %d\n", res);
177 v4l2_err(&shark->v4l2_dev, "set LED %s error: %d\n",
247 shark->leds[i].name, shark->v4l2_dev.name);
251 v4l2_err(&shark->v4l2_dev,
282 v4l2_warn(&shark->v4l2_dev,
292 struct v4l2_device *v4l2_dev = usb_get_intfdata(intf);
293 struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev);
296 v4l2_device_disconnect(&shark->v4l2_dev);
302 v4l2_device_put(&shark->v4l2_dev);
305 static void usb_shark_release(struct v4l2_device *v4l2_dev)
307 struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev);
309 v4l2_device_unregister(&shark->v4l2_dev);
338 v4l2_device_set_name(&shark->v4l2_dev, DRV_NAME, &shark_instance);
344 shark->v4l2_dev.release = usb_shark_release;
345 retval = v4l2_device_register(&intf->dev, &shark->v4l2_dev);
347 v4l2_err(&shark->v4l2_dev, "couldn't register v4l2_device\n");
352 shark->tea.v4l2_dev = &shark->v4l2_dev;
365 v4l2_err(&shark->v4l2_dev, "couldn't init tea5757\n");
372 v4l2_device_unregister(&shark->v4l2_dev);
391 struct v4l2_device *v4l2_dev = usb_get_intfdata(intf);
392 struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev);