Lines Matching defs:model

138   SANE_Int model;
181 static SANE_Status bknd_colormodes (TScanner * scanner, SANE_Int model);
184 static SANE_Status bknd_depths (TScanner * scanner, SANE_Int model);
187 static SANE_Status bknd_resolutions (TScanner * scanner, SANE_Int model);
188 static SANE_Status bknd_sources (TScanner * scanner, SANE_Int model);
206 static SANE_Int Get_Model (SANE_String model);
258 bknd_resolutions (TScanner * scanner, SANE_Int model)
262 DBG (DBG_FNC, "> bknd_resolutions(*scanner, model=%i)\n", model);
268 switch (model)
340 SANE_String_Const *model = NULL;
348 model = (SANE_String_Const *) malloc (sizeof (mymodel));
349 if (model != NULL)
350 memcpy (model, &mymodel, sizeof (mymodel));
352 if (model != NULL)
359 scanner->list_models = model;
368 bknd_colormodes (TScanner * scanner, SANE_Int model)
372 DBG (DBG_FNC, "> bknd_colormodes(*scanner, model=%i)\n", model);
383 (void) model;
403 bknd_sources (TScanner * scanner, SANE_Int model)
407 DBG (DBG_FNC, "> bknd_sources(*scanner, model=%i)\n", model);
413 switch (model)
449 bknd_depths (TScanner * scanner, SANE_Int model)
453 DBG (DBG_FNC, "> bknd_depths(*scanner, model=%i\n", model);
463 (void) model;
519 SANE_Int usbid, model;
521 /* default model is unknown */
522 model = -1;
531 model = Device_get (product, vendor);
536 return model;
654 DBG (DBG_VRB, " -> Device model is %s\n", sdevname[current + 1]);
983 Get_Model (SANE_String model)
987 if (strcmp (model, "HP3800") == 0)
989 else if (strcmp (model, "HPG2710") == 0)
991 else if (strcmp (model, "HP3970") == 0)
993 else if (strcmp (model, "HP4070") == 0)
995 else if (strcmp (model, "HP4370") == 0)
997 else if (strcmp (model, "HPG3010") == 0)
999 else if (strcmp (model, "HPG3110") == 0)
1001 else if (strcmp (model, "UA4900") == 0)
1003 else if (strcmp (model, "BQ5550") == 0)
1404 pDesc->title = SANE_I18N ("Scanner model");
1681 pNew->dev.model = pModel->pszName;
1874 /* Setting device model */
1878 s->model = Device_get (product, vendor);
1880 s->model = HP3970;
1882 set_ScannerModel (s->model, product, vendor);
2098 SANE_Int model;
2104 model = Get_Model (scanner->aValues[optid].s);
2105 if (model != RTS_Debug->dev_model)
2110 /* free configuration of last model */
2113 /* set new model */
2114 RTS_Debug->dev_model = model;
2116 /* and load configuration of current model */
2121 bknd_colormodes (scanner, model);
2122 bknd_depths (scanner, model);
2123 bknd_resolutions (scanner, model);
2124 bknd_sources (scanner, model);