Lines Matching defs:mode
49 . . - sane_set_io_mode : set blocking mode
234 static SANE_Status dark_calibration (struct Rts8891_Device *dev, int mode,
236 static SANE_Status gain_calibration (struct Rts8891_Device *dev, int mode,
238 static SANE_Status offset_calibration (struct Rts8891_Device *dev, int mode,
241 SANE_Bool color, int mode, int light);
541 * Set non blocking mode. In this mode, read return immediately when
556 DBG (DBG_warn, "sane_set_io_mode: I/O mode set to %sblocking.\n",
744 /* if custom gamma, toggle gamma table options according to the mode */
1071 int light, mode;
1226 mode = 0x20;
1230 mode = 0x20;
1235 mode = 0x10;
1239 mode = 0x20;
1244 DBG (DBG_info, "sane_start: mode=0x%02x, light=0x%02x\n", mode, light);
1247 status = dark_calibration (dev, mode, light);
1276 status = gain_calibration (dev, mode, light);
1288 status = offset_calibration (dev, mode, light);
1324 || session->emulated_gray == SANE_TRUE, mode, light);
1398 SANE_String mode;
1405 mode = session->val[OPT_MODE].s;
1420 if (strcmp (mode, GRAY_MODE) == 0 || strcmp (mode, LINEART_MODE) == 0)
1443 if (strcmp (mode, LINEART_MODE) == 0)
1513 /* in lineart mode we adjust bytes_per_line needed by frontend */
1777 /* byte length for high dpi mode */
1836 /* it seems there is no gray or lineart hardware mode for the rts8891 */
1852 /* We also handle emulated color mode */
1866 /* in emulated gray mode we are always reading 3 bytes of raw data */
1947 /* in emulated gray mode we are always reading 3 bytes of raw data */
1998 /* in emulated gray mode we are always reading 3 bytes of raw data */
2060 /* in color mode, we need to copy the remainder of the */
2596 /* scan mode */
4607 dark_calibration (struct Rts8891_Device *dev, int mode, int light)
4633 sanei_rts88xx_set_status (dev->devnum, dev->regs, mode, light);
4747 /* we loop scanning a 637 (1911 bytes) pixels wide area in color mode
4749 sanei_rts88xx_set_status (dev->devnum, dev->regs, mode, light);
4862 gain_calibration (struct Rts8891_Device *dev, int mode, int light)
5031 /* we loop scanning a 637 (1911 bytes) pixels wide area in color mode until each white average
5060 sanei_rts88xx_set_status (dev->devnum, dev->regs, mode, light);
5219 * (1911 bytes) pixels wide area in color mode until each black average
5223 offset_calibration (struct Rts8891_Device *dev, int mode, int light)
5345 /* we loop scanning a 637 (1911 bytes) pixels wide area in color mode until each black average
5352 sanei_rts88xx_set_status (dev->devnum, dev->regs, mode, light);
5450 setup_shading_calibration (struct Rts8891_Device *dev, int mode, int *light, int *status1, SANE_Byte * regs)
5462 *status1 = mode;
6128 shading_calibration (struct Rts8891_Device *dev, SANE_Bool color, int mode, int light)
6166 status=setup_shading_calibration(dev, mode, &light, &status1, dev->regs);
6549 /* For now, the only mode that could be done would be 300 dpi gray scan, */
7614 /* For now, the only mode that could be done would be 300 dpi gray scan, */