Lines Matching refs:hw

362 	if (s->hw->connection == SANE_EPSON_NET) {
365 } else if (s->hw->connection == SANE_EPSON_SCSI) {
367 } else if (s->hw->connection == SANE_EPSON_PIO) {
369 } else if (s->hw->connection == SANE_EPSON_USB) {
438 DBG(7, "%s: %s\n", __func__, s->hw->sane.name);
445 if (s->hw->connection == SANE_EPSON_NET) {
449 status = sanei_tcp_open(&s->hw->sane.name[4], 1865, &s->fd);
477 DBG(1, "%s cannot lock scanner: %s\n", s->hw->sane.name,
489 } else if (s->hw->connection == SANE_EPSON_SCSI)
490 status = sanei_scsi_open(s->hw->sane.name, &s->fd,
493 else if (s->hw->connection == SANE_EPSON_PIO)
495 status = sanei_pio_open(&s->hw->sane.name[4], &s->fd);
497 else if (s->hw->connection == SANE_EPSON_USB)
498 status = sanei_usb_open(s->hw->sane.name, &s->fd);
507 DBG(1, "%s open failed: %s\n", s->hw->sane.name,
518 struct Epson_Device *dev = s->hw;
600 s->hw->sane.name, vendor);
619 s->hw->sane.name, product);
646 s->hw = dev;
993 s->opt[OPT_BIT_DEPTH].constraint.word_list = s->hw->depth_list;
1009 if (s->hw->level >= 7)
1011 else if (s->hw->level >= 4)
1018 if (!s->hw->cmd->set_halftoning)
1041 s->opt[OPT_BRIGHTNESS].constraint.range = &s->hw->cmd->bright_range;
1044 if (!s->hw->cmd->set_bright)
1058 if (!s->hw->cmd->set_outline_emphasis)
1076 if (s->hw->cmd->level[0] == 'D') {
1094 if (!s->hw->cmd->set_gamma)
1134 if (s->hw->cmd->set_gamma_table
1176 if (!s->hw->cmd->set_color_correction)
1187 s->opt[OPT_RESOLUTION].constraint.word_list = s->hw->resolution_list;
1188 s->val[OPT_RESOLUTION].w = s->hw->dpi_range.min;
1201 if (!s->hw->cmd->set_threshold)
1239 /* if (!s->hw->cmd->set_color_correction)
1251 if (!s->hw->cmd->mirror_image)
1263 if (!s->hw->cmd->control_auto_area_segmentation)
1294 s->opt[OPT_TL_X].constraint.range = s->hw->x_range;
1305 s->opt[OPT_TL_Y].constraint.range = s->hw->y_range;
1316 s->opt[OPT_BR_X].constraint.range = s->hw->x_range;
1317 s->val[OPT_BR_X].w = s->hw->x_range->max;
1327 s->opt[OPT_BR_Y].constraint.range = s->hw->y_range;
1328 s->val[OPT_BR_Y].w = s->hw->y_range->max;
1355 if (s->hw->focusSupport == SANE_TRUE) {
1380 if (!s->hw->extension)
1396 if (!s->hw->cmd->set_bay)
1405 if ((!s->hw->ADF) && (!s->hw->cmd->set_bay)) { /* Hack: Using set_bay to indicate. */
1419 if (!s->hw->ADF)
1433 if ((!s->hw->ADF) || (s->hw->duplex == SANE_FALSE))
1446 if (!s->hw->cmd->set_bay)
1460 if (!s->hw->cmd->request_push_button_status)
1705 if (!s->hw->cmd->control_auto_area_segmentation)
1739 if (s->hw->need_reset_on_source_change)
1747 if (s->val[OPT_TL_X].w == s->hw->x_range->min
1748 && s->val[OPT_TL_Y].w == s->hw->y_range->min
1749 && s->val[OPT_BR_X].w == s->hw->x_range->max
1750 && s->val[OPT_BR_Y].w == s->hw->y_range->max) {
1755 s->hw->x_range = &s->hw->adf_x_range;
1756 s->hw->y_range = &s->hw->adf_y_range;
1757 s->hw->use_extension = SANE_TRUE;
1761 if (s->hw->duplex) {
1769 s->hw->use_extension,
1770 s->hw->duplex);
1774 s->hw->x_range = &s->hw->tpu_x_range;
1775 s->hw->y_range = &s->hw->tpu_y_range;
1776 s->hw->TPU2 = SANE_FALSE;
1779 s->hw->x_range = &s->hw->tpu2_x_range;
1780 s->hw->y_range = &s->hw->tpu2_y_range;
1781 s->hw->TPU2 = SANE_TRUE;
1783 s->hw->use_extension = SANE_TRUE;
1786 if (s->hw->cmd->set_film_type != 0)
1792 if (s->hw->focusSupport)
1800 s->hw->x_range = &s->hw->fbf_x_range;
1801 s->hw->y_range = &s->hw->fbf_y_range;
1802 s->hw->use_extension = SANE_FALSE;
1811 if (s->hw->cmd->level[0] == 'F')
1814 s->opt[OPT_BR_X].constraint.range = s->hw->x_range;
1815 s->opt[OPT_BR_Y].constraint.range = s->hw->y_range;
1817 if (s->val[OPT_TL_X].w < s->hw->x_range->min || force_max)
1818 s->val[OPT_TL_X].w = s->hw->x_range->min;
1820 if (s->val[OPT_TL_Y].w < s->hw->y_range->min || force_max)
1821 s->val[OPT_TL_Y].w = s->hw->y_range->min;
1823 if (s->val[OPT_BR_X].w > s->hw->x_range->max || force_max)
1824 s->val[OPT_BR_X].w = s->hw->x_range->max;
1826 if (s->val[OPT_BR_Y].w > s->hw->y_range->max || force_max)
1827 s->val[OPT_BR_Y].w = s->hw->y_range->max;
1829 setOptionState(s, s->hw->ADF
1830 && s->hw->use_extension, OPT_AUTO_EJECT, &dummy);
1831 setOptionState(s, s->hw->ADF
1832 && s->hw->use_extension, OPT_EJECT, &dummy);
1923 if (s->hw->cmd->set_halftoning != 0)
1930 if (s->hw->cmd->set_color_correction)
1939 if (s->hw->depth_list[0] == 1) {
2075 s->cct_table[0] = SANE_FIX(s->hw->cct_profile->cct[index][0]);
2076 s->cct_table[1] = SANE_FIX(s->hw->cct_profile->cct[index][1]);
2077 s->cct_table[2] = SANE_FIX(s->hw->cct_profile->cct[index][2]);
2078 s->cct_table[3] = SANE_FIX(s->hw->cct_profile->cct[index][3]);
2079 s->cct_table[4] = SANE_FIX(s->hw->cct_profile->cct[index][4]);
2080 s->cct_table[5] = SANE_FIX(s->hw->cct_profile->cct[index][5]);
2081 s->cct_table[6] = SANE_FIX(s->hw->cct_profile->cct[index][6]);
2082 s->cct_table[7] = SANE_FIX(s->hw->cct_profile->cct[index][7]);
2083 s->cct_table[8] = SANE_FIX(s->hw->cct_profile->cct[index][8]);
2095 Epson_Device *dev = s->hw;
2141 if (s->hw->focusSupport == SANE_TRUE) {
2187 if (s->hw->cmd->set_color_correction_coefficients
2261 if (s->hw->focusSupport == SANE_TRUE && s->val[OPT_AUTOFOCUS].w) {
2320 if (s->hw->extended_commands)