Lines Matching defs:device
96 /* device information */
250 static struct st_device *device = NULL;
494 Chipset_Name (device, data, 255);
505 scanner->aValues[opt_chipid].w = Chipset_ID (device);
508 scanner->aValues[opt_scancount].w = RTS_ScanCounter_Get (device);
524 /* open usb device */
551 Buttons_Status (device);
552 Calib_WriteTable (device, NULL, 0, 0);
553 Gamma_GetTables (device, NULL);
560 struct st_coords *coords = Constrains_Get (device, source);
633 /* This function will set the device behaviour */
648 DBG (DBG_VRB, " -> Unknown device. Defaulting to HP3970...\n");
690 struct st_coords *limits = Constrains_Get (device, scantype);
717 Constrains_Check (device, resolution, scantype, coords);
756 status = Buttons_Released (device) & 63;
761 btn = Buttons_Order (device, b);
1407 ("Allows one to test device behavior with other supported models");
1543 /* device information */
1560 pDesc->desc = SANE_I18N ("Shows chipset name used in device.");
1594 pDesc->desc = SANE_I18N ("Updates information about device");
1638 if (i - opt_button_0 >= Buttons_Count (device))
1783 /* If line's not blank or a comment, then it's the device
1852 /* default to first available device */
1856 device = RTS_Alloc ();
1857 if (device != NULL)
1859 /* Open device */
1860 rst = sanei_usb_open (name, &device->usb_handle);
1863 /* Allocating memory for device */
1874 /* Setting device model */
1876 (device->usb_handle, &vendor,
1884 /* Initialize device */
1885 if (RTS_Scanner_Init (device) == OK)
2065 coords = Constrains_Get (device, source);
2111 Free_Config (device);
2117 Load_Config (device);
2119 /* update options according to selected device */
2156 coords = Constrains_Get (device, source);
2173 Chipset_Reset (device);
2324 if (!((source != ST_NORMAL) && (RTS_isTmaAttached (device) == FALSE)))
2397 RTS_Scanner_StopScan (device, TRUE);
2425 if (RTS_Scanner_SetParams (device, &s->ScanParams) == OK)
2428 if (RTS_Scanner_StartScan (device) == OK)
2461 || (device->status->cancel == TRUE))
2464 (device->status->cancel ==
2467 RTS_Scanner_StopScan (device, FALSE);
2541 (device, bytesperline, s->image,
2659 device->status->cancel = TRUE;
2694 RTS_Scanner_StopScan (device, TRUE);
2697 sanei_usb_close (device->usb_handle);
2700 RTS_Scanner_End (device);
2703 RTS_Free (device);
2717 /* free device list memory */