Lines Matching +full:0 +full:x0fffff

31  *   iConfiguration          0
32 * bInterfaceNumber 0
35 * bEndpointAddress 0x81 EP 1 IN
38 * wMaxPacketSize 0x1400 3x 1024 bytes
58 .tuner = 0,
60 .index = 0,
78 #if 0
213 * Number 2 (0b10) was never seen.
245 unsigned int i, j, transactions, dst_len = 0; in msi2500_convert_stream()
251 for (i = 0; i < transactions; i++) { in msi2500_convert_stream()
253 src[0] << 0; in msi2500_convert_stream()
254 if (i == 0 && dev->next_sample != sample[0]) { in msi2500_convert_stream()
257 sample[0] - dev->next_sample, in msi2500_convert_stream()
259 sample[0]); in msi2500_convert_stream()
276 for (j = 0; j < 1008; j++) in msi2500_convert_stream()
292 for (j = 0; j < 1008; j += 2) { in msi2500_convert_stream()
378 if (unlikely(urb->status != 0)) { in msi2500_isoc_handler()
386 dev->isoc_errors = 0; in msi2500_isoc_handler()
390 for (i = 0; i < urb->number_of_packets; i++) { in msi2500_isoc_handler()
404 if (unlikely(flen == 0)) in msi2500_isoc_handler()
420 ptr = vb2_plane_vaddr(&fbuf->vb.vb2_buf, 0); in msi2500_isoc_handler()
422 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, flen); in msi2500_isoc_handler()
428 if (unlikely(i != 0)) in msi2500_isoc_handler()
439 for (i = 0; i < MAX_ISO_BUFS; i++) { in msi2500_iso_stop()
454 for (i = 0; i < MAX_ISO_BUFS; i++) { in msi2500_iso_free()
486 dev->isoc_errors = 0; in msi2500_isoc_init()
488 ret = usb_set_interface(dev->udev, 0, 1); in msi2500_isoc_init()
493 for (i = 0; i < MAX_ISO_BUFS; i++) { in msi2500_isoc_init()
500 dev_dbg(dev->dev, "Allocated URB at 0x%p\n", urb); in msi2500_isoc_init()
504 urb->pipe = usb_rcvisocpipe(dev->udev, 0x81); in msi2500_isoc_init()
518 urb->start_frame = 0; in msi2500_isoc_init()
520 for (j = 0; j < ISO_FRAMES_PER_DESC; j++) { in msi2500_isoc_init()
527 for (i = 0; i < MAX_ISO_BUFS; i++) { in msi2500_isoc_init()
536 dev_dbg(dev->dev, "URB 0x%p submitted.\n", dev->urbs[i]); in msi2500_isoc_init()
540 return 0; in msi2500_isoc_init()
594 return 0; in msi2500_querycap()
610 sizes[0] = PAGE_ALIGN(dev->buffersize); in msi2500_queue_setup()
611 dev_dbg(dev->dev, "nbuffers=%d sizes[0]=%d\n", *nbuffers, sizes[0]); in msi2500_queue_setup()
612 return 0; in msi2500_queue_setup()
635 #define CMD_WREG 0x41
636 #define CMD_START_STREAMING 0x43
637 #define CMD_STOP_STREAMING 0x45
638 #define CMD_READ_UNKNOWN 0x48
647 _t, _r, _v & 0xff, _v >> 8, _i & 0xff, _i >> 8, \
648 _l & 0xff, _l >> 8, _direction, _l, _b); \
656 u16 value = (data >> 0) & 0xffff; in msi2500_ctrl_msg()
657 u16 index = (data >> 16) & 0xffff; in msi2500_ctrl_msg()
660 value, index, NULL, 0); in msi2500_ctrl_msg()
661 ret = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, 0), request, in msi2500_ctrl_msg()
662 requesttype, value, index, NULL, 0, 2000); in msi2500_ctrl_msg()
692 reg7 = 0x000c9407; /* 504 */ in msi2500_set_usb_adc()
695 reg7 = 0x00009407; /* 252 */ in msi2500_set_usb_adc()
698 reg7 = 0x000c9407; /* 504 */ in msi2500_set_usb_adc()
701 reg7 = 0x0000a507; /* 384 */ in msi2500_set_usb_adc()
704 reg7 = 0x00008507; /* 336 */ in msi2500_set_usb_adc()
707 reg7 = 0x00009407; /* 252 */ in msi2500_set_usb_adc()
710 reg7 = 0x000c9407; /* 504 */ in msi2500_set_usb_adc()
732 * [7:0] 0x03, register address in msi2500_set_usb_adc()
736 * [13] 0 ? in msi2500_set_usb_adc()
737 * [14] 0 ? in msi2500_set_usb_adc()
741 * [24:31] 0x01 in msi2500_set_usb_adc()
745 * 0 - (invalid) in msi2500_set_usb_adc()
760 reg3 = 0x01000303; in msi2500_set_usb_adc()
761 reg4 = 0x00000004; in msi2500_set_usb_adc()
765 reg3 |= 0x1 << 20; in msi2500_set_usb_adc()
767 reg3 |= 0x5 << 20; in msi2500_set_usb_adc()
769 reg3 |= 0x9 << 20; in msi2500_set_usb_adc()
771 reg3 |= 0xd << 20; in msi2500_set_usb_adc()
782 k_cw = div_u64((u64) k * 0x200000, DIV_PRE_N * F_REF); in msi2500_set_usb_adc()
786 reg3 |= ((k_cw >> 20) & 0x000001) << 15; /* [20] */ in msi2500_set_usb_adc()
787 reg4 |= ((k_cw >> 0) & 0x0fffff) << 8; /* [19:0] */ in msi2500_set_usb_adc()
793 ret = msi2500_ctrl_msg(dev, CMD_WREG, 0x00608008); in msi2500_set_usb_adc()
797 ret = msi2500_ctrl_msg(dev, CMD_WREG, 0x00000c05); in msi2500_set_usb_adc()
801 ret = msi2500_ctrl_msg(dev, CMD_WREG, 0x00020000); in msi2500_set_usb_adc()
805 ret = msi2500_ctrl_msg(dev, CMD_WREG, 0x00480102); in msi2500_set_usb_adc()
809 ret = msi2500_ctrl_msg(dev, CMD_WREG, 0x00f38008); in msi2500_set_usb_adc()
848 ret = msi2500_ctrl_msg(dev, CMD_START_STREAMING, 0); in msi2500_start_streaming()
870 if (dev->udev && !msi2500_ctrl_msg(dev, CMD_STOP_STREAMING, 0)) { in msi2500_stop_streaming()
872 msi2500_ctrl_msg(dev, CMD_WREG, 0x01000003); in msi2500_stop_streaming()
876 v4l2_subdev_call(dev->v4l2_subdev, core, s_power, 0); in msi2500_stop_streaming()
902 return 0; in msi2500_enum_fmt_sdr_cap()
916 return 0; in msi2500_g_fmt_sdr_cap()
932 for (i = 0; i < dev->num_formats; i++) { in msi2500_s_fmt_sdr_cap()
937 return 0; in msi2500_s_fmt_sdr_cap()
941 dev->pixelformat = formats[0].pixelformat; in msi2500_s_fmt_sdr_cap()
942 dev->buffersize = formats[0].buffersize; in msi2500_s_fmt_sdr_cap()
943 f->fmt.sdr.pixelformat = formats[0].pixelformat; in msi2500_s_fmt_sdr_cap()
944 f->fmt.sdr.buffersize = formats[0].buffersize; in msi2500_s_fmt_sdr_cap()
946 return 0; in msi2500_s_fmt_sdr_cap()
958 for (i = 0; i < dev->num_formats; i++) { in msi2500_try_fmt_sdr_cap()
961 return 0; in msi2500_try_fmt_sdr_cap()
965 f->fmt.sdr.pixelformat = formats[0].pixelformat; in msi2500_try_fmt_sdr_cap()
966 f->fmt.sdr.buffersize = formats[0].buffersize; in msi2500_try_fmt_sdr_cap()
968 return 0; in msi2500_try_fmt_sdr_cap()
979 if (v->index == 0) in msi2500_s_tuner()
980 ret = 0; in msi2500_s_tuner()
996 if (v->index == 0) { in msi2500_g_tuner()
1002 ret = 0; in msi2500_g_tuner()
1016 int ret = 0; in msi2500_g_frequency()
1020 if (f->tuner == 0) { in msi2500_g_frequency()
1022 ret = 0; in msi2500_g_frequency()
1042 if (f->tuner == 0) { in msi2500_s_frequency()
1044 bands[0].rangelow, in msi2500_s_frequency()
1045 bands[0].rangehigh); in msi2500_s_frequency()
1066 if (band->tuner == 0) { in msi2500_enum_freq_bands()
1071 ret = 0; in msi2500_enum_freq_bands()
1144 int ret = 0; in msi2500_transfer_one_message()
1149 data = 0x09; /* reg 9 is SPI adapter */ in msi2500_transfer_one_message()
1150 data |= ((u8 *)t->tx_buf)[0] << 8; in msi2500_transfer_one_message()
1170 .bus_num = 0, in msi2500_probe()
1171 .chip_select = 0, in msi2500_probe()
1187 dev->f_adc = bands[0].rangelow; in msi2500_probe()
1188 dev->pixelformat = formats[0].pixelformat; in msi2500_probe()
1189 dev->buffersize = formats[0].buffersize; in msi2500_probe()
1223 ctlr = spi_alloc_master(dev->dev, 0); in msi2500_probe()
1250 v4l2_ctrl_handler_init(&dev->hdl, 0); in msi2500_probe()
1276 return 0; in msi2500_probe()
1291 {USB_DEVICE(0x1df7, 0x2500)}, /* Mirics MSi3101 SDR Dongle */
1292 {USB_DEVICE(0x2040, 0xd300)}, /* Hauppauge WinTV 133559 LF */