Lines Matching refs:v4l2_dev
53 #define v4l2_dev_to_shark(d) container_of(d, struct shark_device, v4l2_dev)
59 struct v4l2_device v4l2_dev;
85 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-write: %*ph\n",
93 v4l2_err(tea->v4l2_dev, "write error: %d\n", res);
113 v4l2_err(tea->v4l2_dev, "request-read error: %d\n", res);
122 v4l2_err(tea->v4l2_dev, "read error: %d\n", res);
129 v4l2_dbg(1, debug, tea->v4l2_dev, "shark2-read: %*ph\n",
162 v4l2_err(&shark->v4l2_dev, "set LED %s error: %d\n",
213 shark->leds[i].name, shark->v4l2_dev.name);
217 v4l2_err(&shark->v4l2_dev,
248 v4l2_warn(&shark->v4l2_dev,
258 struct v4l2_device *v4l2_dev = usb_get_intfdata(intf);
259 struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev);
262 v4l2_device_disconnect(&shark->v4l2_dev);
268 v4l2_device_put(&shark->v4l2_dev);
271 static void usb_shark_release(struct v4l2_device *v4l2_dev)
273 struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev);
275 v4l2_device_unregister(&shark->v4l2_dev);
304 v4l2_device_set_name(&shark->v4l2_dev, DRV_NAME, &shark_instance);
310 shark->v4l2_dev.release = usb_shark_release;
311 retval = v4l2_device_register(&intf->dev, &shark->v4l2_dev);
313 v4l2_err(&shark->v4l2_dev, "couldn't register v4l2_device\n");
318 shark->tea.v4l2_dev = &shark->v4l2_dev;
330 v4l2_err(&shark->v4l2_dev, "couldn't init tea5777\n");
337 v4l2_device_unregister(&shark->v4l2_dev);
356 struct v4l2_device *v4l2_dev = usb_get_intfdata(intf);
357 struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev);