Lines Matching defs:model

274 /* strings to try and match the model ';' separator
1427 dev->model = NULL;
1430 dev->sane.model = NULL;
1438 k_set_model(KodakAio_Scanner * s, const char *model, size_t len)
1444 if (len<1) return SANE_STATUS_INVAL; /* to handle missing model */
1450 memcpy(buf, model, len);
1460 if (dev->model)
1461 free(dev->model);
1463 dev->model = strndup((const char *) buf, len);
1464 dev->sane.model = dev->model;
1465 DBG(10, "%s: model is '%s'\n", __func__, dev->model);
1490 device, dev->cap->model);
1492 k_set_model (s, dev->cap->model, strlen (dev->cap->model));
1953 if (strcmp (kodakaio_cap[n].model, ident)==0) {
1954 DBG(20, "matched <%s> & <%s>\n", kodakaio_cap[n].model, ident);
1959 DBG(20, "matched <%s> & <%s:%s>\n", kodakaio_cap[n].model, vid, pid);
1963 DBG(20, "not found <%s> & <%s>\n", kodakaio_cap[n].model, pid);
1996 split_scanner_name (const char *name, char * IP, unsigned int *model)
2000 *model = 0;
2011 if (strncmp(qm, "model=", 6) == 0) {
2013 if (!sscanf(qm, "0x%x", model))
2014 sscanf(qm, "%x", model);
2042 /* device name has the form net:ipaddr?model=... */
2044 unsigned int model = 0;
2045 if (!split_scanner_name (s->hw->sane.name, IP, &model))
2047 DBG(10, "split_scanner_name OK model=0x%x\n",model);
2053 if (model>0)
2054 k_set_device (s, model);
2223 /* set name and model (if not already set) */
2224 if (dev->model == NULL)
2267 /* check if it is a model likely to be supported: "KODAK ESP" or "KODAK HERO"
2269 DBG(min(10,DBG_AUTO),"look up model <%s>\n", device_model); */
2275 DBG(min(10,DBG_AUTO), "%s: Found autodiscovered device: %s (type 0x%x)\n", __func__, cap->model, cap->id);
2414 /* If host = NULL do autodiscovery. If host != NULL try to verify the model
2499 attach_one_net(const char *dev, unsigned int model)
2504 if (model > 0) {
2505 snprintf(name, 1024, "net:%s?model=0x%x", dev, model);
2557 unsigned int model = 0;
2568 } else if (sscanf(name, "%s %x", IP, &model) == 2) {
2569 DBG(30, "%s: Using network device on IP %s, forcing model 0x%x\n", __func__, IP, model);
2570 attach_one_net(IP, model);
2609 free(dev->model);
2711 DBG(5, " %d (%d): %s\n", i, dev->connection, dev->model);