Lines Matching refs:intf
118 struct usb_interface *intf; member
174 static void usb_raremono_disconnect(struct usb_interface *intf) in usb_raremono_disconnect() argument
176 struct raremono_device *radio = to_raremono_dev(usb_get_intfdata(intf)); in usb_raremono_disconnect()
178 dev_info(&intf->dev, "Thanko's Raremono disconnected\n"); in usb_raremono_disconnect()
181 usb_set_intfdata(intf, NULL); in usb_raremono_disconnect()
304 static int usb_raremono_probe(struct usb_interface *intf, in usb_raremono_probe() argument
310 radio = devm_kzalloc(&intf->dev, sizeof(struct raremono_device), GFP_KERNEL); in usb_raremono_probe()
312 radio->buffer = devm_kmalloc(&intf->dev, BUFFER_LENGTH, GFP_KERNEL); in usb_raremono_probe()
317 radio->usbdev = interface_to_usbdev(intf); in usb_raremono_probe()
318 radio->intf = intf; in usb_raremono_probe()
338 dev_info(&intf->dev, "this is not Thanko's Raremono.\n"); in usb_raremono_probe()
342 dev_info(&intf->dev, "Thanko's Raremono connected: (%04X:%04X)\n", in usb_raremono_probe()
345 retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev); in usb_raremono_probe()
347 dev_err(&intf->dev, "couldn't register v4l2_device\n"); in usb_raremono_probe()
361 usb_set_intfdata(intf, &radio->v4l2_dev); in usb_raremono_probe()
369 dev_info(&intf->dev, "V4L2 device registered as %s\n", in usb_raremono_probe()
373 dev_err(&intf->dev, "could not register video device\n"); in usb_raremono_probe()