Lines Matching +full:0 +full:xc5000

18 #include "xc5000.h"
28 #define _AU0828_BULKPIPE 0x83
29 #define _BULKPIPESIZE 0xe522
32 0x00, /* off */
33 0x02, /* yellow */
34 0x04, /* green */
38 .gpio_output = 0x00e0,
39 .gpio_output_enable = 0x6006,
40 .gpio_output_disable = 0x0660,
42 .gpio_leds = 0x00e2,
52 .demod_address = 0x8e >> 1,
60 .demod_address = 0x8e >> 1,
67 .demod_address = 0x8e >> 1,
74 .i2c_address = 0x61,
77 .output_amp = 0x8f,
81 .i2c_address = 0x61,
84 .output_amp = 0x8f,
103 dev->bulk_timeout_running = 0; in au0828_bulk_timeout()
135 if (purb->actual_length > 0 && ptr[0] != 0x47) { in urb_completion()
137 ptr[0], purb->actual_length); in urb_completion()
145 dev->bulk_timeout_running = 0; in urb_completion()
154 memset(purb->transfer_buffer, 0, URB_BUFSIZE); in urb_completion()
167 return 0; in stop_urb_transfer()
170 dev->bulk_timeout_running = 0; in stop_urb_transfer()
175 for (i = 0; i < URB_COUNT; i++) { in stop_urb_transfer()
185 return 0; in stop_urb_transfer()
197 return 0; in start_urb_transfer()
200 for (i = 0; i < URB_COUNT; i++) { in start_urb_transfer()
202 dev->urbs[i] = usb_alloc_urb(0, GFP_KERNEL); in start_urb_transfer()
235 for (i = 0; i < URB_COUNT; i++) { in start_urb_transfer()
237 if (ret != 0) { in start_urb_transfer()
251 return 0; in start_urb_transfer()
256 au0828_write(dev, 0x608, 0x90); in au0828_start_transport()
257 au0828_write(dev, 0x609, 0x72); in au0828_start_transport()
258 au0828_write(dev, 0x60a, 0x71); in au0828_start_transport()
259 au0828_write(dev, 0x60b, 0x01); in au0828_start_transport()
266 au0828_write(dev, 0x608, 0x00); in au0828_stop_transport()
267 au0828_write(dev, 0x609, 0x00); in au0828_stop_transport()
268 au0828_write(dev, 0x60a, 0x00); in au0828_stop_transport()
270 au0828_write(dev, 0x60b, 0x00); in au0828_stop_transport()
278 int ret = 0; in au0828_dvb_start_feed()
290 if (dvb->feeding++ == 0) { in au0828_dvb_start_feed()
294 if (ret < 0) { in au0828_dvb_start_feed()
295 au0828_stop_transport(dev, 0); in au0828_dvb_start_feed()
310 int ret = 0; in au0828_dvb_stop_feed()
321 if (dvb->feeding > 0) { in au0828_dvb_stop_feed()
323 if (dvb->feeding == 0) { in au0828_dvb_stop_feed()
326 au0828_stop_transport(dev, 0); in au0828_dvb_stop_feed()
403 for (i = 0; i < URB_COUNT; i++) { in dvb_register()
423 if (result < 0) { in dvb_register()
437 if (result < 0) { in dvb_register()
457 if (result < 0) { in dvb_register()
464 dvb->dmxdev.capabilities = 0; in dvb_register()
466 if (result < 0) { in dvb_register()
473 if (result < 0) { in dvb_register()
481 if (result < 0) { in dvb_register()
488 if (result < 0) { in dvb_register()
496 dvb->start_count = 0; in dvb_register()
497 dvb->stop_count = 0; in dvb_register()
500 if (result < 0) in dvb_register()
503 return 0; in dvb_register()
524 for (i = 0; i < URB_COUNT; i++) in dvb_register()
553 for (i = 0; i < URB_COUNT; i++) in au0828_dvb_unregister()
598 &dev->i2c_adap, 0x60, in au0828_dvb_register()
607 0x60, &dev->i2c_adap, in au0828_dvb_register()
634 if (ret < 0) { in au0828_dvb_register()
641 timer_setup(&dev->bulk_timeout, au0828_bulk_timeout, 0); in au0828_dvb_register()
643 return 0; in au0828_dvb_register()