Lines Matching defs:ret
769 int ret;
775 ret = libusb_get_descriptor (hdl, LIBUSB_DT_STRING, index,
777 if (ret < 0)
780 sfs_libusb_strerror (ret));
794 ret = libusb_get_descriptor (hdl, LIBUSB_DT_STRING, index,
796 if (ret < 0)
799 sfs_libusb_strerror (ret));
833 int ret;
838 ret = libusb_get_device_descriptor (dev, &desc);
839 if (ret < 0)
842 busno, address, sfs_libusb_strerror (ret));
849 ret = libusb_open (dev, &hdl);
850 if (ret < 0)
853 vid, pid, busno, address, sfs_libusb_strerror (ret));
857 ret = libusb_get_configuration (hdl, &config);
858 if (ret < 0)
861 vid, pid, busno, address, sfs_libusb_strerror (ret));
920 ret = libusb_get_config_descriptor (dev, config_nr, &c);
921 if (ret < 0)
924 config_nr, sfs_libusb_strerror (ret));
1034 ret = libusb_get_config_descriptor (dev, 0, &config0);
1035 if (ret < 0)
1038 sfs_libusb_strerror (ret));
1170 BOOL ret;
1200 ret = DeviceIoControl(fd,
1209 if(ret == 0)
1999 int ret;
2004 ret = libusb_init (&sfs_usb_ctx);
2005 if (ret < 0)
2007 printf ("# Could not initialize libusb-1.0, error %d\n", ret);
2024 printf ("# Could not get device list, error %d\n", ret);