Lines Matching defs:model
171 struct model_entry *model;
868 model_entry *current_model = current_mfg->model;
1045 ("overwriting status of model `%s' (backend `%s')\n",
1051 ("setting status of model `%s' to `minimal'\n",
1058 ("setting status of model `%s' to `basic'\n",
1065 ("setting status of model `%s' to `good'\n",
1072 ("setting status of model `%s' to `complete'\n",
1079 ("setting status of model `%s' to `untested'\n",
1086 ("setting status of model `%s' to `unsupported'\n",
1093 ("unknown status of model `%s': `%s' (backend `%s')\n",
1315 (line, ":model", param_string,
1318 model_entry *model = 0;
1335 model = current_mfg->model;
1336 if (model)
1338 while (model->next)
1339 model = model->next;
1340 model->next = calloc (1, sizeof (model_entry));
1341 model = model->next;
1345 current_mfg->model =
1347 model = current_mfg->model;
1350 if (!model)
1355 model->name = string_entry;
1356 model->status = status_unknown;
1358 ("adding model entry %s to manufacturer `%s'\n",
1360 current_model = model;
1378 DBG_WARN ("overwriting `%s's interface of model "
1385 DBG_INFO ("setting interface of model `%s' to `%s'\n",
1402 DBG_INFO ("setting scsi vendor and product ids of model `%s' to `%s/%s'\n",
1461 DBG_WARN ("overwriting `%s's USB ids of model "
1470 DBG_INFO ("setting USB vendor and product ids of model `%s' to `%s/%s'\n",
1509 DBG_INFO ("adding `%s' to list of urls of model "
1546 DBG_INFO ("setting comment of model %s to `%s'\n",
1588 create_model_record (model_entry * model)
1598 model_record->name = model->name;
1599 model_record->status = model->status;
1600 model_record->interface = model->interface;
1601 model_record->url = model->url;
1602 model_record->comment = model->comment;
1603 model_record->usb_vendor_id = model->usb_vendor_id;
1604 model_record->usb_product_id = model->usb_product_id;
1605 model_record->scsi_vendor_id = model->scsi_vendor_id;
1606 model_record->scsi_product_id = model->scsi_product_id;
1607 model_record->scsi_is_processor = model->scsi_is_processor;
1627 /* Insert model into list at the alphabetically correct position */
1630 model_entry * model, backend_entry * be)
1636 /* First model for this manufacturer */
1637 first_model_record = create_model_record (model);
1646 int compare = string_compare (model->name, model_record->name);
1651 (string_compare (model->interface, model_record->interface) == 0) &&
1652 (string_compare (model->usb_vendor_id, model_record->usb_vendor_id) == 0) &&
1653 (string_compare (model->usb_product_id, model_record->usb_product_id) == 0))
1655 /* Two entries for the same model */
1656 int new_priority = calc_priority (model->status);
1661 ("update_model_record_list: model %s ignored, backend %s has "
1662 "higher priority\n", model->name,
1669 ("update_model_record_list: model %s overrides the one from backend %s\n",
1670 model->name, model_record->be->name);
1675 model_record = create_model_record (model);
1688 prev_model_record->next = create_model_record (model);
1693 DBG_DBG ("update_model_record_list: added model %s\n", model->name);
1704 model_entry *model = mfg->model;
1784 /* create model entries */
1785 while (model)
1788 update_model_record_list (mfg_record->model_record, model, be);
1789 model = model->next;
1919 model_entry *model = mfg->model;
1937 if (model)
1938 while (model)
1940 url_entry *url = model->url;
1941 printf (" model `%s'\n", model->name);
1942 if (model->interface)
1943 printf (" interface `%s'\n", model->interface);
1947 if (model->usb_vendor_id)
1948 printf (" usb-vendor-id `%s'\n", model->usb_vendor_id);
1952 if (model->usb_product_id)
1953 printf (" usb-product-id `%s'\n", model->usb_product_id);
1957 switch (model->status)
1991 if (model->comment)
1992 printf (" comment `%s'\n", model->comment);
1996 model = model->next;
1999 printf (" model *none*\n");
2158 model_entry *model = mfg->model;
2178 if (model)
2179 while (model)
2181 url_entry *url = model->url;
2182 printf (" <model name=\"%s\">\n",
2183 clean_string (model->name));
2184 if (model->interface)
2186 clean_string (model->interface));
2190 if (model->usb_vendor_id)
2192 clean_string (model->usb_vendor_id));
2195 if (model->usb_product_id)
2197 clean_string (model->usb_product_id));
2201 switch (model->status)
2236 if (model->comment)
2238 clean_string (model->comment));
2242 model = model->next;
2243 printf (" </model>\n");
2244 } /* while (model) */
2246 printf (" <model name=\"*none*\" />\n");
2281 model_entry *model;
2299 model = mfg->model;
2300 if (model)
2302 while (model)
2304 enum status_entry status = model->status;
2306 model = model->next;
2307 } /* while (model) */
2487 model_entry *model;
2572 model = mfg->model;
2573 if (model)
2577 while (model) /* count models for rowspan */
2579 model = model->next;
2582 model = mfg->model;
2591 while (model)
2593 enum status_entry status = model->status;
2595 if (model != mfg->model)
2598 if (model->url && model->url->name)
2601 model->url->name, model->name);
2604 model->name);
2606 if (model->interface)
2608 model->interface);
2612 if (model->usb_vendor_id && model->usb_product_id)
2614 model->usb_vendor_id, model->usb_product_id);
2621 if (model->comment && model->comment[0] != 0)
2622 printf ("<td>%s</td>\n", model->comment);
2626 model = model->next;
2628 } /* while (model) */
2861 " <dd>More information about the backend or model, e.g. the level of "
3072 create_usbid (char *manufacturer, char *model,
3080 usbid->name->name = calloc (1, strlen (manufacturer) + strlen (model) + 3);
3081 sprintf (usbid->name->name, "%s %s", manufacturer, model);
3085 manufacturer, model);
3090 create_scsiid (char *manufacturer, char *model,
3099 scsiid->name->name = calloc (1, strlen (manufacturer) + strlen (model) + 3);
3100 sprintf (scsiid->name->name, "%s %s", manufacturer, model);
3104 manufacturer, model);
3109 add_usbid (usbid_type *first_usbid, char *manufacturer, char *model,
3116 first_usbid = create_usbid (manufacturer, model, usb_vendor_id, usb_product_id);
3129 man_mod->next->name = malloc (strlen (manufacturer) + strlen (model) + 3);
3130 sprintf (man_mod->next->name, "%s %s", manufacturer, model);
3132 DBG_DBG ("Added manufacturer/model %s %s to USB ids %s/%s\n", manufacturer, model,
3141 tmp_usbid = create_usbid (manufacturer, model, usb_vendor_id, usb_product_id);
3154 prev_usbid->next = create_usbid (manufacturer, model, usb_vendor_id, usb_product_id);
3162 add_scsiid (scsiid_type *first_scsiid, char *manufacturer, char *model,
3169 first_scsiid = create_scsiid (manufacturer, model, scsi_vendor_id, scsi_product_id, is_processor);
3182 man_mod->next->name = malloc (strlen (manufacturer) + strlen (model) + 3);
3183 sprintf (man_mod->next->name, "%s %s", manufacturer, model);
3185 DBG_DBG ("Added manufacturer/model %s %s to SCSI ids %s/%s\n", manufacturer, model,
3194 tmp_scsiid = create_scsiid (manufacturer, model, scsi_vendor_id, scsi_product_id, is_processor);
3207 prev_scsiid->next = create_scsiid (manufacturer, model, scsi_vendor_id, scsi_product_id, is_processor);
3239 model_entry *model;
3241 if (!mfg->model)
3244 for (model = mfg->model; model; model = model->next)
3246 if ((model->status == status_unsupported)
3247 || (model->status == status_unknown))
3250 if (model->usb_vendor_id && model->usb_product_id)
3253 model->name,
3254 model->usb_vendor_id,
3255 model->usb_product_id);
3257 } /* for (model) */
3290 model_entry *model;
3292 if (!mfg->model)
3295 for (model = mfg->model; model; model = model->next)
3297 if ((model->status == status_unsupported)
3298 || (model->status == status_unknown))
3301 if (model->scsi_vendor_id && model->scsi_product_id)
3304 model->name,
3305 model->scsi_vendor_id,
3306 model->scsi_product_id,
3307 model->scsi_is_processor);
3309 } /* for (model) */
3534 * Limit the number of model names on the same line to 3,
3576 printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"EPSON\", ATTRS{model}==\"SCANNER*\", ENV{libsane_matched}=\"yes\"\n");
3578 printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"EPSON\", ATTRS{model}==\"SCANNER*\", MODE=\"%s\", GROUP=\"%s\", ENV{libsane_matched}=\"yes\"\n",
3611 * Limit the number of model names on the same line to 3,
3624 printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", ENV{libsane_matched}=\"yes\"\n",
3627 printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", MODE=\"%s\", GROUP=\"%s\", ENV{libsane_matched}=\"yes\"\n",
3696 printf ("ATTRS{type}==\"3\", ATTRS{vendor}==\"EPSON\", ATTRS{model}==\"SCANNER*\", ENV{libsane_matched}=\"yes\"\n\n");
3728 * Limit the number of model names on the same line to 3,
3740 printf ("ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", ENV{libsane_matched}=\"yes\"\n\n",
3798 * Limit the number of model names on the same line to 3,
3910 printf (" <match key=\"@info.parent:scsi.model\" string=\"%s\">\n", scsiid->scsi_product_id);