Lines Matching refs:unit
406 e2_set_fbf_area(Epson_Scanner * s, int x, int y, int unit)
414 dev->fbf_x_range.max = SANE_FIX(x * MM_PER_INCH / unit);
418 dev->fbf_y_range.max = SANE_FIX(y * MM_PER_INCH / unit);
426 SANE_UNFIX(dev->fbf_y_range.max), unit);
430 e2_set_adf_area(struct Epson_Scanner *s, int x, int y, int unit)
435 dev->adf_x_range.max = SANE_FIX(x * MM_PER_INCH / unit);
439 dev->adf_y_range.max = SANE_FIX(y * MM_PER_INCH / unit);
447 SANE_UNFIX(dev->adf_y_range.max), unit);
451 e2_set_tpu_area(struct Epson_Scanner *s, int x, int y, int unit)
456 dev->tpu_x_range.max = SANE_FIX(x * MM_PER_INCH / unit);
460 dev->tpu_y_range.max = SANE_FIX(y * MM_PER_INCH / unit);
468 SANE_UNFIX(dev->tpu_y_range.max), unit);
472 e2_set_tpu2_area(struct Epson_Scanner *s, int x, int y, int unit)
477 dev->tpu2_x_range.max = SANE_FIX(x * MM_PER_INCH / unit);
481 dev->tpu2_y_range.max = SANE_FIX(y * MM_PER_INCH / unit);
489 SANE_UNFIX(dev->tpu2_y_range.max), unit);
701 * for the same unit (i.e. LP-A500 vs CX11) .