Lines Matching defs:dev_no
622 bjnp_setup_udp_socket ( const int dev_no )
632 bjnp_sockaddr_t * addr = device[dev_no].addr;
648 (sockfd, &(device[dev_no].addr->addr), sa_size(device[dev_no].addr) )!= 0)
660 udp_command (const int dev_no, char *command, int cmd_len, char *response,
676 if ( (sockfd = bjnp_setup_udp_socket(dev_no) ) == -1 )
701 timeout.tv_sec = device[dev_no].bjnp_ip_timeout /1000;
702 timeout.tv_usec = device[dev_no].bjnp_ip_timeout %1000;
732 (LOG_CRIT, "udp_command: ERROR - no data received (timeout = %d)\n", device[dev_no].bjnp_ip_timeout ) );
737 get_scanner_id (const int dev_no, char *model)
756 set_cmd_for_dev (dev_no, &cmd, CMD_UDP_GET_ID, 0);
762 if ( ( resp_len = udp_command (dev_no, (char *) &cmd, sizeof (struct BJNP_command),
773 if (device[dev_no].protocol == PROTOCOL_BJNP)
1882 static void add_scanner(SANE_Int *dev_no,
1897 switch (bjnp_allocate_device (uri, dev_no, scanner_host))
1900 if (get_scanner_id (*dev_no, makemodel) != 0)
1920 determine_scanner_serial (scanner_host, device[*dev_no].mac_address, serial);
1926 uri, serial, device[*dev_no].mac_address));
2032 int dev_no;
2084 add_scanner(&dev_no, uri, attach_bjnp, pixma_devices);
2264 add_scanner( &dev_no, uri, attach_bjnp, pixma_devices);