Lines Matching refs:interface

78 	struct usb_interface *interface;  member
96 usb_dbg(dev->interface, "free"); in chaoskey_free()
102 static int chaoskey_probe(struct usb_interface *interface, in chaoskey_probe() argument
105 struct usb_device *udev = interface_to_usbdev(interface); in chaoskey_probe()
106 struct usb_host_interface *altsetting = interface->cur_altsetting; in chaoskey_probe()
113 usb_dbg(interface, "probe %s-%s", udev->product, udev->serial); in chaoskey_probe()
126 usb_dbg(interface, "no IN endpoint found"); in chaoskey_probe()
130 usb_dbg(interface, "invalid size (%d)", size); in chaoskey_probe()
135 usb_dbg(interface, "size reduced from %d to %d\n", in chaoskey_probe()
172 dev->interface = interface; in chaoskey_probe()
184 usb_set_intfdata(interface, dev); in chaoskey_probe()
186 result = usb_register_dev(interface, &chaoskey_class); in chaoskey_probe()
188 usb_err(interface, "Unable to allocate minor number."); in chaoskey_probe()
189 usb_set_intfdata(interface, NULL); in chaoskey_probe()
212 usb_err(interface, "Unable to register with hwrng"); in chaoskey_probe()
216 usb_dbg(interface, "chaoskey probe success, size %d", dev->size); in chaoskey_probe()
220 static void chaoskey_disconnect(struct usb_interface *interface) in chaoskey_disconnect() argument
224 usb_dbg(interface, "disconnect"); in chaoskey_disconnect()
225 dev = usb_get_intfdata(interface); in chaoskey_disconnect()
227 usb_dbg(interface, "disconnect failed - no dev"); in chaoskey_disconnect()
234 usb_deregister_dev(interface, &chaoskey_class); in chaoskey_disconnect()
236 usb_set_intfdata(interface, NULL); in chaoskey_disconnect()
247 usb_dbg(interface, "disconnect done"); in chaoskey_disconnect()
253 struct usb_interface *interface; in chaoskey_open() local
256 interface = usb_find_interface(&chaoskey_driver, iminor(inode)); in chaoskey_open()
257 if (!interface) in chaoskey_open()
260 usb_dbg(interface, "open"); in chaoskey_open()
262 dev = usb_get_intfdata(interface); in chaoskey_open()
264 usb_dbg(interface, "open (dev)"); in chaoskey_open()
273 usb_dbg(interface, "open success"); in chaoskey_open()
280 struct usb_interface *interface; in chaoskey_release() local
285 interface = dev->interface; in chaoskey_release()
287 usb_dbg(interface, "release"); in chaoskey_release()
291 usb_dbg(interface, "open count at release is %d", dev->open); in chaoskey_release()
294 usb_dbg(interface, "invalid open count (%d)", dev->open); in chaoskey_release()
310 usb_dbg(interface, "release success"); in chaoskey_release()
321 struct usb_device *udev = interface_to_usbdev(dev->interface); in _chaoskey_fill()
323 usb_dbg(dev->interface, "fill"); in _chaoskey_fill()
328 usb_dbg(dev->interface, "not empty yet (valid %d used %d)", in _chaoskey_fill()
335 usb_dbg(dev->interface, "device not present"); in _chaoskey_fill()
340 result = usb_autopm_get_interface(dev->interface); in _chaoskey_fill()
342 usb_dbg(dev->interface, "wakeup failed (result %d)", result); in _chaoskey_fill()
352 usb_autopm_put_interface(dev->interface); in _chaoskey_fill()
359 usb_dbg(dev->interface, "bulk_msg result %d this_read %d", in _chaoskey_fill()
381 usb_dbg(dev->interface, "read %zu", count); in chaoskey_read()
434 usb_dbg(dev->interface, "read %zu bytes", read_count); in chaoskey_read()
437 usb_dbg(dev->interface, "empty read, result %d", result); in chaoskey_read()
447 usb_dbg(dev->interface, "rng_read max %zu wait %d", max, wait); in chaoskey_rng_read()
450 usb_dbg(dev->interface, "device not present"); in chaoskey_rng_read()
481 usb_dbg(dev->interface, "rng_read this_time %d\n", this_time); in chaoskey_rng_read()
486 static int chaoskey_suspend(struct usb_interface *interface, in chaoskey_suspend() argument
489 usb_dbg(interface, "suspend"); in chaoskey_suspend()
493 static int chaoskey_resume(struct usb_interface *interface) in chaoskey_resume() argument
495 usb_dbg(interface, "resume"); in chaoskey_resume()