Lines Matching refs:scanner

11  * this driver. If a certain scanner cannot handle a certain option, there's
41 struct scanner
44 /* immutable values which are set during init of scanner. */
45 struct scanner *next;
46 char *device_name; /* The name of the scanner device for sane */
53 /* immutable values which are set during inquiry probing of the scanner. */
63 /* immutable values which are set during INQUIRY probing of the scanner, */
66 /* which modes scanner has */
87 /* instead of in global vars so that they can differ for each scanner */
135 /* values which are set by the scanner's post-scan image header */
167 int fd; /* The scanner device file descriptor. */
238 static SANE_Status connect_fd (struct scanner *s);
239 static SANE_Status disconnect_fd (struct scanner *s);
242 static SANE_Status init_inquire (struct scanner *s);
243 static SANE_Status init_model (struct scanner *s);
244 static SANE_Status init_user (struct scanner *s);
245 static SANE_Status init_options (struct scanner *s);
248 do_cmd(struct scanner *s, int runRS, int shortTime,
255 static SANE_Status wait_scanner (struct scanner *s);
258 static SANE_Status do_cancel (struct scanner *scanner);
260 static SANE_Status set_window (struct scanner *s);
261 static SANE_Status read_imageheader(struct scanner *s);
262 static SANE_Status send_sc(struct scanner *s);
264 static SANE_Status read_from_scanner(struct scanner *s);
265 static SANE_Status copy_buffer(struct scanner *s, unsigned char * buf, int len);
266 static SANE_Status read_from_buffer(struct scanner *s, SANE_Byte * buf, SANE_Int max_len, SANE_Int * len);