Lines Matching defs:port
13 * backend and is dramatically faster than the serial port.
105 #include <gphoto2-port-log.h>
383 SANE_Int n, m, port;
416 if (!Cam_data.port)
418 DBG (0, "init_gphoto2: Camera port not specified in config file\n");
426 if (strcmp (Cam_data.port, "Browse") != 0)
428 CHECK_RET (port = gp_port_info_list_lookup_path (il, Cam_data.port));
429 CHECK_RET (gp_port_info_list_get_info (il, port, &info));
442 if (abilities.speed[n] == 0 && !strncmp (Cam_data.port, "serial:", 7))
450 DBG (4, "init_gphoto2: about to initialize port\n");
456 * to make sure that we have a serial port.
458 if (Cam_data.speed && !strncmp (Cam_data.port, "serial:", 7))
462 * the port, and that seems to confuse the camera. Holding
463 * the port open seems to fix it.
465 if ((hack_fd = open (Cam_data.port + 7, O_RDONLY)) < 0)
710 if (strncmp (dev_name, "port=", 5) == 0)
718 Cam_data.port = strdup (p);
719 DBG (20, "Config file port=%s\n", Cam_data.port);
721 /* Validate port */
748 if (strcmp (Cam_data.port, info_path) == 0)
750 if (strcmp (Cam_data.port, info.path) == 0)
759 "%s: error: %s is not a valid gphoto2 port. Use \"gphoto2 --list-ports\" for list.\n",
760 "init_gphoto2", Cam_data.port);
791 /* Special case: Force port to special value for the
799 Cam_data.port = "Browse";
855 dev[0].name = strdup (Cam_data.port);
891 DBG (0, "Serial port support : %s\n",
892 (abilities.port & GP_PORT_SERIAL) ? "yes" : "no");
894 (abilities.port & GP_PORT_USB) ? "yes" : "no");