Lines Matching refs:status
59 The "Set window" command returns with status "Device busy" when the
104 int status;
110 status = atomic_usb_cmd(fd, bqhead->src, bqhead->src_size, NULL, NULL);
111 if(status == SANE_STATUS_DEVICE_BUSY) {
123 status = atomic_usb_cmd(fd,src,src_size,dst,dst_size);
125 if ((status == SANE_STATUS_DEVICE_BUSY) && is_queueable(src) ) {
130 return status;
138 int status;
151 status = usb_cmd(fd,src,src_size,dst,dst_size);
158 return status;
273 #define RETURN_ON_FAILURE(x) if((status = x) != SANE_STATUS_GOOD) return status;
277 SANE_Status status;
283 status = sanei_usb_write_bulk(fd, (const SANE_Byte*)buf, &bytes_written);
286 status = SANE_STATUS_IO_ERROR;
290 return status;
296 SANE_Status status;
299 status = sanei_usb_read_bulk(fd, (SANE_Byte*)buf, &bytes_read);
302 status = SANE_STATUS_IO_ERROR;
307 return status;
316 int status;
358 int status,tstatus;
380 /* Read status */
388 /* Read status */
396 /* Read status */
410 return status;
489 SANE_Status status;
494 status = usb_cmd (pss->fd, cmd, sizeof (cmd), data, &read_bytes);
495 if (status != SANE_STATUS_GOOD)
498 me, sane_strstatus (status));
503 status = usb_sense_handler (pss->fd, data, (void *) pss);
506 status = SANE_STATUS_UNSUPPORTED;
509 return status;