Lines Matching refs:opened
271 /** return count of opened devices
272 * @return count of opened devices
291 /** count opened devices
293 * @param expected use opened count
303 printf ("ERROR: %d opened devices, expected %d!\n", num, expected);
306 printf ("%d devices still opened.\n", num);
312 * @param dn array to store opened device number
313 * @param expected number of devices to be opened
319 int opened = 0;
331 status = sanei_usb_open (devices[i].devname, dn + opened);
334 opened++;
353 printf ("opened %d devices\n", opened);
355 /* try to reopen an opened device when there is one */
358 status = sanei_usb_open (devices[last].devname, dn + opened);
367 /* there should be as many opened devices than detected devices */
391 * loop on all opened devices and close them
392 * @param dn array of opened device number
411 /* there should be any more opened devices */
417 * loop on all opened devices and claim interface 0
418 * @param dn array of opened device number
482 * loop on all opened devices and claim interface 0
483 * @param dn array of opened device number
713 test_scan_devices (int detected, int opened)
725 rc = count_opened (opened);
728 printf ("ERROR: scanning devices change opened count!\n");
832 int detected, opened, i;
880 opened = get_opened();
882 /* rescan devices : detected and opened count shouldn't change */
883 assert (test_scan_devices (detected, opened));
894 /* there should be still as many opened devices */
895 assert (count_opened (opened));
899 /* there should be still as many opened devices */
900 assert (count_opened (opened));
907 assert (test_claim_all (dn, opened));
910 assert (test_release_all (dn, opened));
912 /* close all opened devices */
913 assert (test_close_all (dn, opened));
915 /* check there is no opened device */