Lines Matching defs:pusb_device
700 regset(struct usb_device *pusb_device, __u16 index, __u16 value)
705 if (!pusb_device)
709 rc0 = usb_control_msg(pusb_device, usb_sndctrlpipe(pusb_device, 0), \
721 rc1 = usb_control_msg(pusb_device, usb_rcvctrlpipe(pusb_device, 0), \
778 regget(struct usb_device *pusb_device, __u16 index, void *pvoid)
782 if (!pusb_device)
785 ir = usb_control_msg(pusb_device, usb_rcvctrlpipe(pusb_device, 0), \
797 wakeup_device(struct usb_device *pusb_device)
799 return usb_control_msg(pusb_device, usb_sndctrlpipe(pusb_device, 0), \
820 struct usb_device *pusb_device;
835 pusb_device = peasycap->pusb_device;
836 if (NULL == pusb_device)
850 rc = usb_control_msg(pusb_device, usb_sndctrlpipe(pusb_device, 0), \
879 SET(pusb_device, 0x0500, 0x0094);
881 SET(pusb_device, 0x0500, 0x008C);
883 SET(pusb_device, 0x0506, 0x0001);
884 SET(pusb_device, 0x0507, 0x0000);
886 id1 = read_vt(pusb_device, 0x007C);
887 id2 = read_vt(pusb_device, 0x007E);
899 write_vt(pusb_device, 0x0002, 0x8000);
900 write_vt(pusb_device, 0x001C, 0x8000);
902 write_vt(pusb_device, 0x000E, 0x0000);
903 write_vt(pusb_device, 0x0010, 0x0000);
904 write_vt(pusb_device, 0x0012, 0x8000);
905 write_vt(pusb_device, 0x0016, 0x0000);
907 write_vt(pusb_device, 0x001A, 0x0404);
908 write_vt(pusb_device, 0x0002, 0x0000);
909 write_vt(pusb_device, 0x001C, 0x0000);
911 check_vt(pusb_device);
917 check_vt(struct usb_device *pusb_device)
921 igot = read_vt(pusb_device, 0x0002);
927 igot = read_vt(pusb_device, 0x000E);
933 igot = read_vt(pusb_device, 0x0010);
939 igot = read_vt(pusb_device, 0x0012);
945 igot = read_vt(pusb_device, 0x0016);
951 igot = read_vt(pusb_device, 0x001A);
957 igot = read_vt(pusb_device, 0x001C);
969 * audio_gainset(pusb_device, 0x000F);
977 audio_gainset(struct usb_device *pusb_device, __s8 loud)
987 write_vt(pusb_device, 0x0002, 0x8000);
989 igot = read_vt(pusb_device, 0x001C);
998 write_vt(pusb_device, 0x001C, 0x8000);
999 write_vt(pusb_device, 0x001C, (mute | u8 | (u8 << 8)));
1000 write_vt(pusb_device, 0x0002, 0x0000);
1006 audio_gainget(struct usb_device *pusb_device)
1010 igot = read_vt(pusb_device, 0x001C);