Lines Matching refs:name

199  * sane_open() call is performed. A device name may be specified
279 sane_device->name = device->name;
308 * device. The name of the device to be opened is passed in argument
309 * name. If the call completes successfully, a handle for the device
313 * the name of the backend as the device name, in this case the first
315 * @param name name of the device to open
321 sane_open (SANE_String_Const name, SANE_Handle * handle)
326 DBG (DBG_proc, "sane_open: start (devicename=%s)\n", name);
335 if (name[0] == 0 || strncmp (name, "p5", strlen ("p5")) == 0)
343 device->name);
348 DBG (DBG_info, "sane_open: device %s requested\n", name);
349 /* walk the device list until we find a matching name */
351 while (device && strcmp (device->name, name) != 0)
354 device->name);
367 DBG (DBG_info, "sane_open: device %s found\n", name);
375 device->fd = open_pp (device->name);
379 device->name);
496 session->options[option].descriptor.name);
713 s->options[option].descriptor.name, option);
724 s->options[option].descriptor.name, option);
1508 free (dev->name);
1552 cfg_options[CFG_MODEL_NAME]->name = "modelname";
1553 cfg_options[CFG_MODEL_NAME]->desc = "user provided scanner's model name";
1584 * @param devname name of the device to try to attach to, it is
1610 /** @brief try to attach to a device by its name
1617 * @param devicename name of the device to try to attach to, it is
1642 if (strcmp (device->name, devicename) == 0)
1674 /* name of the device */
1675 device->name = strdup (devicename);
1679 device->name);
1723 session->options[OPT_NUM_OPTS].descriptor.name = SANE_NAME_NUM_OPTIONS;
1732 session->options[OPT_STANDARD_GROUP].descriptor.name = SANE_NAME_STANDARD;
1741 session->options[OPT_MODE].descriptor.name = SANE_NAME_SCAN_MODE;
1753 session->options[OPT_PREVIEW].descriptor.name = SANE_NAME_PREVIEW;
1823 session->options[OPT_RESOLUTION].descriptor.name =
1841 session->options[OPT_GEOMETRY_GROUP].descriptor.name = SANE_NAME_GEOMETRY;
1854 session->options[OPT_TL_X].descriptor.name = SANE_NAME_SCAN_TL_X;
1866 session->options[OPT_TL_Y].descriptor.name = SANE_NAME_SCAN_TL_Y;
1878 session->options[OPT_BR_X].descriptor.name = SANE_NAME_SCAN_BR_X;
1890 session->options[OPT_BR_Y].descriptor.name = SANE_NAME_SCAN_BR_Y;
1902 session->options[OPT_SENSOR_GROUP].descriptor.name = SANE_NAME_SENSORS;
1910 session->options[OPT_PAGE_LOADED_SW].descriptor.name =
1923 session->options[OPT_NEED_CALIBRATION_SW].descriptor.name =
1936 session->options[OPT_BUTTON_GROUP].descriptor.name = "Buttons";
1944 session->options[OPT_CALIBRATE].descriptor.name = "calibrate";
1956 session->options[OPT_CLEAR_CALIBRATION].descriptor.name = "clear";
1977 * This function probes for a scanning device using the given name. If the