Lines Matching defs:reg

52 static SANE_Int cfg_buttons_get(struct st_buttons *reg);
61 static SANE_Int cfg_motor_get(struct st_motorcfg *reg);
67 static SANE_Int cfg_sensor_get(struct st_sensorcfg *reg);
82 static void cfg_autoref_get(struct st_autoref *reg);
92 static SANE_Int cfg_gainoffset_get(SANE_Int sensortype, struct st_gain_offset *reg);
128 static SANE_Int cfg_timing_get(SANE_Int sensortype, SANE_Int tm, struct st_timing *reg);
129 static SANE_Int bq5550_timing_get(SANE_Int tm, struct st_timing *reg);
130 static SANE_Int ua4900_timing_get(SANE_Int tm, struct st_timing *reg);
131 static SANE_Int hp3800_timing_get(SANE_Int tm, struct st_timing *reg);
132 static SANE_Int hp3970_timing_get(SANE_Int sensortype, SANE_Int tm, struct st_timing *reg);
133 static SANE_Int hp4370_timing_get(SANE_Int tm, struct st_timing *reg);
136 static SANE_Int cfg_motormove_get(SANE_Int sensortype, SANE_Int mm, struct st_motormove *reg);
137 static SANE_Int bq5550_motormove(SANE_Int item, struct st_motormove *reg);
138 static SANE_Int hp3800_motormove(SANE_Int item, struct st_motormove *reg);
139 static SANE_Int hp3970_motormove(SANE_Int usb, SANE_Int ccd, SANE_Int item, struct st_motormove *reg);
477 static SANE_Int cfg_buttons_get(struct st_buttons *reg)
482 if (reg != NULL)
511 memcpy(reg, &myreg[a].value, sizeof(struct st_buttons));
576 static SANE_Int cfg_motor_get(struct st_motorcfg *reg)
580 if (reg != NULL)
606 memset(reg, 0, sizeof(struct st_motorcfg));
607 reg->type = -1;
613 memcpy(reg, &myreg[a].motor, sizeof(struct st_motorcfg));
626 static SANE_Int cfg_sensor_get(struct st_sensorcfg *reg)
630 if (reg != NULL)
656 memset(reg, 0, sizeof(struct st_sensorcfg));
657 reg->type = -1;
663 memcpy(reg, &myreg[a].sensor, sizeof(struct st_sensorcfg));
1003 struct st_reg reg[] =
1022 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1026 if (reg[a].device == RTS_Debug->dev_model)
1028 memcpy(constrain, &reg[a].constrain, sizeof(struct st_constrains));
1079 static void cfg_autoref_get(struct st_autoref *reg)
1081 if (reg != NULL)
1111 memcpy(reg, &myreg[a].value, sizeof(struct st_autoref));
1126 struct st_reg reg[] =
1138 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1143 if (reg[a].resolution == resolution)
1145 rst = reg[a].pixel;
1161 struct st_reg reg[] =
1173 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1178 if (reg[a].resolution == resolution)
1180 rst = (sensor == CCD_SENSOR)? reg[a].pixel[0] : reg[a].pixel[1];
1196 struct st_reg reg[] =
1208 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1213 if (reg[a].resolution == resolution)
1215 rst = reg[a].pixel;
1231 struct st_reg reg[] =
1243 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1248 if (reg[a].resolution == resolution)
1250 rst = reg[a].pixel;
1297 struct st_reg reg[] =
1309 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1313 if (reg[a].usb == usb)
1315 memcpy(myreg, &reg[a].values, sizeof(struct st_gain_offset));
1333 struct st_reg reg[] =
1345 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1349 if (reg[a].usb == usb)
1351 memcpy(myreg, &reg[a].values, sizeof(struct st_gain_offset));
1370 struct st_reg reg[] =
1385 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1389 if ((reg[a].usb == usb)&&(reg[a].sensor == sensor))
1391 memcpy(myreg, &reg[a].values, sizeof(struct st_gain_offset));
1409 struct st_reg reg[] =
1421 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1425 if (reg[a].usb == usb)
1427 memcpy(myreg, &reg[a].values, sizeof(struct st_gain_offset));
1445 struct st_reg reg[] =
1457 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1461 if (reg[a].usb == usb)
1463 memcpy(myreg, &reg[a].values, sizeof(struct st_gain_offset));
1473 static SANE_Int cfg_gainoffset_get(SANE_Int sensortype, struct st_gain_offset *reg)
1480 rst = bq5550_gainoffset(RTS_Debug->usbtype, reg);
1484 rst = ua4900_gainoffset(RTS_Debug->usbtype, reg);
1489 rst = hp3800_gainoffset(RTS_Debug->usbtype, reg);
1495 rst = hp4370_gainoffset(RTS_Debug->usbtype, reg);
1499 rst = hp3970_gainoffset(RTS_Debug->usbtype, sensortype, reg);
1516 struct st_reg reg[] =
1527 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1531 if (reg[a].lamp == lamp)
1533 memcpy(check, &reg[a].values, sizeof(struct st_checkstable));
1550 struct st_reg reg[] =
1561 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1565 if (reg[a].lamp == lamp)
1567 memcpy(check, &reg[a].values, sizeof(struct st_checkstable));
1584 struct st_reg reg[] =
1595 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1599 if (reg[a].lamp == lamp)
1601 memcpy(check, &reg[a].values, sizeof(struct st_checkstable));
1618 struct st_reg reg[] =
1629 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1633 if (reg[a].lamp == lamp)
1635 memcpy(check, &reg[a].values, sizeof(struct st_checkstable));
1683 struct st_reg reg[] =
1691 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1695 if (reg[a].usb == usb)
1700 rst = reg[a].pwm[scantype - 1];
1717 struct st_reg reg[] =
1728 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1732 if ((reg[a].usb == usb)&&(reg[a].sensor == sensor))
1737 rst = reg[a].pwm[scantype - 1];
1753 struct st_reg reg[] =
1761 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1765 if (reg[a].usb == usb)
1770 rst = reg[a].pwm[scantype - 1];
1786 struct st_reg reg[] =
1794 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1798 if (reg[a].usb == usb)
1803 rst = reg[a].pwm[scantype - 1];
1871 struct st_reg reg[] =
1884 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1891 if (reg[a].resolution == res)
1893 *ser = reg[a].vref[0];
1894 *ler = reg[a].vref[1];
1915 struct st_reg reg[] =
1953 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1960 if ((reg[a].usb == usb)&&(reg[a].sensor == sensor)&&(reg[a].resolution == res))
1962 *ser = reg[a].vref[0];
1963 *ler = reg[a].vref[1];
1978 struct st_reg reg[] =
1992 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1999 if (reg[a].resolution == res)
2001 *ser = reg[a].vref[0];
2002 *ler = reg[a].vref[1];
2011 static SANE_Int cfg_motormove_get(SANE_Int sensortype, SANE_Int item, struct st_motormove *reg)
2018 rst = bq5550_motormove(item, reg);
2022 rst = hp3800_motormove(item, reg);
2026 rst = hp3970_motormove(RTS_Debug->usbtype, sensortype, item, reg);
2033 static SANE_Int bq5550_motormove(SANE_Int item, struct st_motormove *reg)
2039 if (reg != NULL)
2051 memcpy(reg, &mv[item], sizeof(struct st_motormove));
2058 static SANE_Int hp3800_motormove(SANE_Int item, struct st_motormove *reg)
2064 if (reg != NULL)
2076 memcpy(reg, &mv[item], sizeof(struct st_motormove));
2083 static SANE_Int hp3970_motormove(SANE_Int usb, SANE_Int ccd, SANE_Int item, struct st_motormove *reg)
2094 if (reg != NULL)
2123 memcpy(reg, &mv[a].move, sizeof(struct st_motormove));
2179 struct st_modes reg[] =
2367 SANE_Int total = sizeof(reg) / sizeof(struct st_modes);
2373 md = &reg[a];
2399 struct st_modes reg[] =
2497 SANE_Int total = sizeof(reg) / sizeof(struct st_modes);
2503 md = &reg[a];
2529 struct st_modes reg[] =
2615 SANE_Int total = sizeof(reg) / sizeof(struct st_modes);
2621 md = &reg[a];
2647 struct st_modes reg[] =
2715 SANE_Int total = sizeof(reg) / sizeof(struct st_modes);
2721 md = &reg[a];
2744 struct st_modes reg[] =
2791 SANE_Int total = sizeof(reg) / sizeof(struct st_modes);
2797 md = &reg[a];
3586 static SANE_Int bq5550_timing_get(SANE_Int tm, struct st_timing *reg)
3590 if ((tm < 7)&&(reg != NULL))
3605 memcpy(reg, &data[tm], sizeof(struct st_timing));
3613 static SANE_Int hp3800_timing_get(SANE_Int tm, struct st_timing *reg)
3617 if ((tm < 20)&&(reg != NULL))
3649 memcpy(reg, &data[tm], sizeof(struct st_timing));
3657 static SANE_Int hp3970_timing_get(SANE_Int sensortype, SANE_Int tm, struct st_timing *reg)
3661 if ((tm < 12)&&(reg != NULL))
3684 memcpy(reg, &data[tm], sizeof(struct st_timing));
3706 memcpy(reg, &data[tm], sizeof(struct st_timing));
3714 static SANE_Int hp4370_timing_get(SANE_Int tm, struct st_timing *reg)
3718 if ((reg != NULL)&&(tm < 14))
3741 memcpy(reg, &data[tm], sizeof(struct st_timing));
3749 static SANE_Int ua4900_timing_get(SANE_Int tm, struct st_timing *reg)
3753 if ((tm < 10)&&(reg != NULL))
3771 memcpy(reg, &data[tm], sizeof(struct st_timing));
3778 static SANE_Int cfg_timing_get(SANE_Int sensortype, SANE_Int tm, struct st_timing *reg)
3787 rst = bq5550_timing_get(tm, reg);
3791 rst = ua4900_timing_get(tm, reg);
3797 rst = hp4370_timing_get(tm, reg);
3802 rst = hp3800_timing_get(tm, reg);
3807 rst = hp3970_timing_get(sensortype, tm, reg);