Lines Matching refs:as102_dev

213 	struct as102_dev_t *as102_dev = urb->context;  in as102_urb_stream_irq()  local
216 dvb_dmx_swfilter(&as102_dev->dvb_dmx, in as102_urb_stream_irq()
225 if (as102_dev->streaming) in as102_urb_stream_irq()
226 as102_submit_urb_stream(as102_dev, urb); in as102_urb_stream_irq()
303 struct as102_dev_t *as102_dev; in as102_usb_release() local
305 as102_dev = container_of(kref, struct as102_dev_t, kref); in as102_usb_release()
306 usb_put_dev(as102_dev->bus_adap.usb_dev); in as102_usb_release()
307 kfree(as102_dev); in as102_usb_release()
312 struct as102_dev_t *as102_dev; in as102_usb_disconnect() local
315 as102_dev = usb_get_intfdata(intf); in as102_usb_disconnect()
318 as102_dvb_unregister(as102_dev); in as102_usb_disconnect()
321 as102_free_usb_stream_buffer(as102_dev); in as102_usb_disconnect()
329 kref_put(&as102_dev->kref, as102_usb_release); in as102_usb_disconnect()
338 struct as102_dev_t *as102_dev; in as102_usb_probe() local
348 as102_dev = kzalloc(sizeof(struct as102_dev_t), GFP_KERNEL); in as102_usb_probe()
349 if (as102_dev == NULL) in as102_usb_probe()
355 as102_dev->name = as102_device_names[i]; in as102_usb_probe()
356 as102_dev->elna_cfg = as102_elna_cfg[i]; in as102_usb_probe()
360 if (as102_dev->name == NULL) in as102_usb_probe()
361 as102_dev->name = "Unknown AS102 device"; in as102_usb_probe()
364 as102_dev->bus_adap.ops = &as102_priv_ops; in as102_usb_probe()
367 as102_dev->bus_adap.cmd = &as102_dev->bus_adap.token.usb.c; in as102_usb_probe()
368 as102_dev->bus_adap.rsp = &as102_dev->bus_adap.token.usb.r; in as102_usb_probe()
371 kref_init(&as102_dev->kref); in as102_usb_probe()
374 usb_set_intfdata(intf, (void *) as102_dev); in as102_usb_probe()
377 as102_dev->bus_adap.usb_dev = usb_get_dev(interface_to_usbdev(intf)); in as102_usb_probe()
392 ret = as102_alloc_usb_stream_buffer(as102_dev); in as102_usb_probe()
397 ret = as102_dvb_register(as102_dev); in as102_usb_probe()
404 as102_free_usb_stream_buffer(as102_dev); in as102_usb_probe()
408 usb_put_dev(as102_dev->bus_adap.usb_dev); in as102_usb_probe()
410 kfree(as102_dev); in as102_usb_probe()