Lines Matching refs:vendor
94 static SANE_Status u12_initDev( U12_Device *dev, int handle, int vendor )
100 /* well now we patch the vendor string...
101 * if not found, the default vendor will be Plustek
105 if( u12Vendors[i].id == vendor ) {
106 dev->sane.vendor = u12Vendors[i].desc;
107 DBG( _DBG_INFO, "Vendor adjusted to: >%s<\n", dev->sane.vendor );
187 * string(vendor and product ID), is supported by this backend or not
189 * @param usbIdStr - string consisting out of product and vendor ID
226 * @param vendor - pointer to receive vendor ID
231 static SANE_Bool usbDev_autodetect( SANE_Word *vendor, SANE_Word *product )
248 *vendor = v;
266 SANE_Word vendor, product;
284 if( !usbDev_autodetect( &vendor, &product )) {
291 vendor = strtol( &dev->usbId[0], 0, 0 );
294 sanei_usb_find_devices( vendor, product, u12if_usbattach );
320 result = sanei_usb_get_vendor_product( handle, &vendor, &product );
325 sprintf( devStr, "0x%04X-0x%04X", vendor, product );
327 DBG(_DBG_INFO,"Vendor ID=0x%04X, Product ID=0x%04X\n",vendor,product);
339 sprintf( dev->usbId, "0x%04X-0x%04X", vendor, product );
345 DBG( _DBG_INFO, "Can't get vendor & product ID from driver...\n" );
357 vendor = strtol( &dev->usbId[0], 0, 0 );
360 "0x%04X-0x%04X\n", vendor, product );
381 DBG( _DBG_INFO, "Detected vendor & product ID: "
382 "0x%04X-0x%04X\n", vendor, product );
388 if( SANE_STATUS_GOOD != u12_initDev( dev, handle, vendor )) {
394 if( _PLUSTEK_VENID == vendor ) {