Lines Matching refs:as102_dev
222 struct as102_dev_t *as102_dev = urb->context; in as102_urb_stream_irq() local
225 dvb_dmx_swfilter(&as102_dev->dvb_dmx, in as102_urb_stream_irq()
234 if (as102_dev->streaming) in as102_urb_stream_irq()
235 as102_submit_urb_stream(as102_dev, urb); in as102_urb_stream_irq()
314 struct as102_dev_t *as102_dev; in as102_usb_release() local
316 as102_dev = container_of(kref, struct as102_dev_t, kref); in as102_usb_release()
317 if (as102_dev != NULL) { in as102_usb_release()
318 usb_put_dev(as102_dev->bus_adap.usb_dev); in as102_usb_release()
319 kfree(as102_dev); in as102_usb_release()
325 struct as102_dev_t *as102_dev; in as102_usb_disconnect() local
328 as102_dev = usb_get_intfdata(intf); in as102_usb_disconnect()
331 as102_dvb_unregister(as102_dev); in as102_usb_disconnect()
334 as102_free_usb_stream_buffer(as102_dev); in as102_usb_disconnect()
342 kref_put(&as102_dev->kref, as102_usb_release); in as102_usb_disconnect()
351 struct as102_dev_t *as102_dev; in as102_usb_probe() local
361 as102_dev = kzalloc(sizeof(struct as102_dev_t), GFP_KERNEL); in as102_usb_probe()
362 if (as102_dev == NULL) in as102_usb_probe()
368 as102_dev->name = as102_device_names[i]; in as102_usb_probe()
369 as102_dev->elna_cfg = as102_elna_cfg[i]; in as102_usb_probe()
373 if (as102_dev->name == NULL) in as102_usb_probe()
374 as102_dev->name = "Unknown AS102 device"; in as102_usb_probe()
377 as102_dev->bus_adap.ops = &as102_priv_ops; in as102_usb_probe()
380 as102_dev->bus_adap.cmd = &as102_dev->bus_adap.token.usb.c; in as102_usb_probe()
381 as102_dev->bus_adap.rsp = &as102_dev->bus_adap.token.usb.r; in as102_usb_probe()
384 kref_init(&as102_dev->kref); in as102_usb_probe()
387 usb_set_intfdata(intf, (void *) as102_dev); in as102_usb_probe()
390 as102_dev->bus_adap.usb_dev = usb_get_dev(interface_to_usbdev(intf)); in as102_usb_probe()
405 ret = as102_alloc_usb_stream_buffer(as102_dev); in as102_usb_probe()
410 ret = as102_dvb_register(as102_dev); in as102_usb_probe()
417 as102_free_usb_stream_buffer(as102_dev); in as102_usb_probe()
421 usb_put_dev(as102_dev->bus_adap.usb_dev); in as102_usb_probe()
423 kfree(as102_dev); in as102_usb_probe()