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; member
101 v4l2_err(&shark->v4l2_dev, "set-freq error: %d\n", res); in shark_write_val()
117 v4l2_err(&shark->v4l2_dev, "request-status error: %d\n", res); in shark_read_val()
126 v4l2_err(&shark->v4l2_dev, "get-status error: %d\n", res); in shark_read_val()
177 v4l2_err(&shark->v4l2_dev, "set LED %s error: %d\n", in shark_led_work()
247 shark->leds[i].name, shark->v4l2_dev.name); in shark_register_leds()
251 v4l2_err(&shark->v4l2_dev, in shark_register_leds()
282 v4l2_warn(&shark->v4l2_dev, in shark_register_leds()
292 struct v4l2_device *v4l2_dev = usb_get_intfdata(intf); in usb_shark_disconnect() local
293 struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev); in usb_shark_disconnect()
296 v4l2_device_disconnect(&shark->v4l2_dev); in usb_shark_disconnect()
302 v4l2_device_put(&shark->v4l2_dev); in usb_shark_disconnect()
305 static void usb_shark_release(struct v4l2_device *v4l2_dev) in usb_shark_release() argument
307 struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev); in usb_shark_release()
309 v4l2_device_unregister(&shark->v4l2_dev); in usb_shark_release()
328 v4l2_device_set_name(&shark->v4l2_dev, DRV_NAME, &shark_instance); in usb_shark_probe()
334 shark->v4l2_dev.release = usb_shark_release; in usb_shark_probe()
335 retval = v4l2_device_register(&intf->dev, &shark->v4l2_dev); in usb_shark_probe()
337 v4l2_err(&shark->v4l2_dev, "couldn't register v4l2_device\n"); in usb_shark_probe()
342 shark->tea.v4l2_dev = &shark->v4l2_dev; in usb_shark_probe()
355 v4l2_err(&shark->v4l2_dev, "couldn't init tea5757\n"); in usb_shark_probe()
362 v4l2_device_unregister(&shark->v4l2_dev); in usb_shark_probe()
381 struct v4l2_device *v4l2_dev = usb_get_intfdata(intf); in usb_shark_resume() local
382 struct shark_device *shark = v4l2_dev_to_shark(v4l2_dev); in usb_shark_resume()