Lines Matching refs:SANE_Int
43 static SANE_Int cfg_device_get(SANE_Int product, SANE_Int vendor);
46 static SANE_Int cfg_chipset_get(SANE_Int model, struct st_chip *chipset);
49 static SANE_Int cfg_chipset_model_get(SANE_Int device);
52 static SANE_Int cfg_buttons_get(struct st_buttons *reg);
55 static SANE_Int cfg_constrains_get(struct st_constrains *constrain);
58 static SANE_Int cfg_sscg_get(SANE_Int *enable, SANE_Int *mode, SANE_Int *clock);
61 static SANE_Int cfg_motor_get(struct st_motorcfg *reg);
67 static SANE_Int cfg_sensor_get(struct st_sensorcfg *reg);
70 static void cfg_refvoltages_get(SANE_Int sensortype, SANE_Byte *vrts, SANE_Byte *vrms, SANE_Byte *vrbs);
71 static void hp3800_refvoltages(SANE_Int usb, SANE_Int sensor, SANE_Byte *vrts, SANE_Byte *vrms, SANE_Byte *vrbs);
72 static void hp3970_refvoltages(SANE_Int usb, SANE_Int sensor, SANE_Byte *vrts, SANE_Byte *vrms, SANE_Byte *vrbs);
75 static void cfg_offset_get(SANE_Int sensortype, SANE_Int resolution, SANE_Int scantype, SANE_Int *left, SANE_Int *width);
76 static void ua4900_offset(SANE_Int resolution, SANE_Int scantype, SANE_Int *left, SANE_Int *width);
77 static void hp3800_offset(SANE_Int resolution, SANE_Int scantype, SANE_Int *left, SANE_Int *width);
78 static void hp3970_offset(SANE_Int sensor, SANE_Int resolution, SANE_Int scantype, SANE_Int *left, SANE_Int *width);
79 static void hp4370_offset(SANE_Int resolution, SANE_Int scantype, SANE_Int *left, SANE_Int *width);
85 static SANE_Int cfg_effectivepixel_get(SANE_Int sensortype, SANE_Int resolution);
86 static SANE_Int ua4900_effectivepixel(SANE_Int resolution);
87 static SANE_Int hp3800_effectivepixel(SANE_Int resolution);
88 static SANE_Int hp3970_effectivepixel(SANE_Int sensor, SANE_Int resolution);
89 static SANE_Int hp4370_effectivepixel(SANE_Int resolution);
92 static SANE_Int cfg_gainoffset_get(SANE_Int sensortype, struct st_gain_offset *reg);
93 static SANE_Int bq5550_gainoffset(SANE_Int usb, struct st_gain_offset *myreg);
94 static SANE_Int ua4900_gainoffset(SANE_Int usb, struct st_gain_offset *myreg);
95 static SANE_Int hp3800_gainoffset(SANE_Int usb, struct st_gain_offset *myreg);
96 static SANE_Int hp3970_gainoffset(SANE_Int usb, SANE_Int sensor, struct st_gain_offset *myreg);
97 static SANE_Int hp4370_gainoffset(SANE_Int usb, struct st_gain_offset *myreg);
100 static SANE_Int cfg_checkstable_get(SANE_Int lamp, struct st_checkstable *check);
101 static SANE_Int ua4900_checkstable(SANE_Int lamp, struct st_checkstable *check);
102 static SANE_Int hp3800_checkstable(SANE_Int lamp, struct st_checkstable *check);
103 static SANE_Int hp3970_checkstable(SANE_Int lamp, struct st_checkstable *check);
104 static SANE_Int hp4370_checkstable(SANE_Int lamp, struct st_checkstable *check);
107 static SANE_Int cfg_fixedpwm_get(SANE_Int sensortype, SANE_Int scantype);
108 static SANE_Int ua4900_fixedpwm(SANE_Int scantype, SANE_Int usb);
109 static SANE_Int hp3800_fixedpwm(SANE_Int scantype, SANE_Int usb);
110 static SANE_Int hp3970_fixedpwm(SANE_Int scantype, SANE_Int usb, SANE_Int sensor);
111 static SANE_Int hp4370_fixedpwm(SANE_Int scantype, SANE_Int usb);
114 static void cfg_vrefs_get(SANE_Int sensortype, SANE_Int res, SANE_Int *ser, SANE_Int *ler);
115 static void hp3800_vrefs(SANE_Int res, SANE_Int *ser, SANE_Int *ler);
116 static void hp3970_vrefs(SANE_Int usb, SANE_Int sensor, SANE_Int res, SANE_Int *ser, SANE_Int *ler);
117 static void hp4370_vrefs(SANE_Int res, SANE_Int *ser, SANE_Int *ler);
120 static SANE_Int cfg_scanmode_get(SANE_Int sensortype, SANE_Int sm, struct st_scanmode *mymode);
121 static SANE_Int bq5550_scanmodes(SANE_Int usb, SANE_Int sm, struct st_scanmode *mymode);
122 static SANE_Int ua4900_scanmodes(SANE_Int usb, SANE_Int sm, struct st_scanmode *mymode);
123 static SANE_Int hp3800_scanmodes(SANE_Int usb, SANE_Int sm, struct st_scanmode *mymode);
124 static SANE_Int hp3970_scanmodes(SANE_Int usb, SANE_Int ccd, SANE_Int sm, struct st_scanmode *mymode);
125 static SANE_Int hp4370_scanmodes(SANE_Int usb, SANE_Int sm, struct st_scanmode *mymode);
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);
142 static SANE_Int *cfg_motorcurve_get(void);
143 static SANE_Int *bq5550_motor(void);
144 static SANE_Int *hp3800_motor(void);
145 static SANE_Int *hp3970_motor(void);
146 static SANE_Int *hp4370_motor(void);
149 static void cfg_shading_cut_get(SANE_Int sensortype, SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue);
150 static void ua4900_shading_cut(SANE_Int usb, SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue);
151 static void hp3800_shading_cut(SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue);
152 static void hp3970_shading_cut(SANE_Int usb, SANE_Int ccd, SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue);
153 static void hp4370_shading_cut(SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue);
156 static void cfg_wrefs_get(SANE_Int sensortype, SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue);
157 static void ua4900_wrefs(SANE_Int usb, SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue);
158 static void hp3800_wrefs(SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue);
159 static void hp3970_wrefs(SANE_Int usb, SANE_Int ccd, SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue);
160 static void hp4370_wrefs(SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue);
360 static SANE_Int cfg_device_get(SANE_Int product, SANE_Int vendor)
364 SANE_Int vendor, product, device;
381 SANE_Int rst = -1; /* default */
382 SANE_Int a;
383 SANE_Int count = sizeof(myreg) / sizeof(struct st_myreg);
398 static SANE_Int cfg_chipset_model_get(SANE_Int device)
403 SANE_Int device, chipset;
420 SANE_Int rst = RTS8822L_01H; /* default */
421 SANE_Int a;
422 SANE_Int count = sizeof(myreg) / sizeof(struct st_myreg);
437 static SANE_Int cfg_chipset_get(SANE_Int model, struct st_chip *chipset)
440 SANE_Int rst = ERROR;
453 SANE_Int a;
477 static SANE_Int cfg_buttons_get(struct st_buttons *reg)
480 SANE_Int rst = ERROR;
486 SANE_Int device;
504 SANE_Int a;
505 SANE_Int count = sizeof(myreg) / sizeof(struct st_myreg);
524 static SANE_Int cfg_sscg_get(SANE_Int *enable, SANE_Int *mode, SANE_Int *clock)
526 SANE_Int rst = ERROR;
532 SANE_Int device;
533 SANE_Int value[3];
550 SANE_Int a;
551 SANE_Int count = sizeof(myreg) / sizeof(struct st_myreg);
576 static SANE_Int cfg_motor_get(struct st_motorcfg *reg)
578 SANE_Int rst = ERROR;
584 SANE_Int device;
602 SANE_Int a;
603 SANE_Int count = sizeof(myreg) / sizeof(struct st_myreg);
626 static SANE_Int cfg_sensor_get(struct st_sensorcfg *reg)
628 SANE_Int rst = ERROR;
634 SANE_Int device;
652 SANE_Int a;
653 SANE_Int count = sizeof(myreg) / sizeof(struct st_myreg);
676 static void hp3800_refvoltages(SANE_Int usb, SANE_Int sensor, SANE_Byte *vrts, SANE_Byte *vrms, SANE_Byte *vrbs)
681 SANE_Int usb;
682 SANE_Int sensor;
695 SANE_Int a;
696 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
712 static void hp3970_refvoltages(SANE_Int usb, SANE_Int sensor, SANE_Byte *vrts, SANE_Byte *vrms, SANE_Byte *vrbs)
717 SANE_Int usb;
718 SANE_Int sensor;
733 SANE_Int a;
734 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
750 static void cfg_refvoltages_get(SANE_Int sensortype, SANE_Byte *vrts, SANE_Byte *vrms, SANE_Byte *vrbs)
768 static void hp3800_offset(SANE_Int resolution, SANE_Int scantype, SANE_Int *left, SANE_Int *width)
776 SANE_Int left;
777 SANE_Int width;
782 SANE_Int resolution;
798 SANE_Int a;
799 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
816 static void hp3970_offset(SANE_Int sensor, SANE_Int resolution, SANE_Int scantype, SANE_Int *left, SANE_Int *width)
822 SANE_Int left;
823 SANE_Int width;
828 SANE_Int sensor;
829 SANE_Int resolution;
854 SANE_Int a;
855 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
872 static void hp4370_offset(SANE_Int resolution, SANE_Int scantype, SANE_Int *left, SANE_Int *width)
878 SANE_Int left;
879 SANE_Int width;
884 SANE_Int resolution;
901 SANE_Int a;
902 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
919 static void ua4900_offset(SANE_Int resolution, SANE_Int scantype, SANE_Int *left, SANE_Int *width)
925 SANE_Int left;
926 SANE_Int width;
931 SANE_Int resolution;
948 SANE_Int a;
949 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
966 static void cfg_offset_get(SANE_Int sensortype, SANE_Int resolution, SANE_Int scantype, SANE_Int *left, SANE_Int *width)
993 static SANE_Int cfg_constrains_get(struct st_constrains *constrain)
995 SANE_Int rst = ERROR;
999 SANE_Int device;
1021 SANE_Int a;
1022 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1085 SANE_Int device;
1104 SANE_Int a;
1105 SANE_Int count = sizeof(myreg) / sizeof(struct st_reg);
1118 static SANE_Int hp3800_effectivepixel(SANE_Int resolution)
1122 SANE_Int resolution;
1123 SANE_Int pixel;
1137 SANE_Int a;
1138 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1139 SANE_Int rst = 230; /* default */
1153 static SANE_Int hp3970_effectivepixel(SANE_Int sensor, SANE_Int resolution)
1157 SANE_Int resolution;
1158 SANE_Int pixel[2];
1172 SANE_Int a;
1173 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1174 SANE_Int rst = 230; /* default */
1188 static SANE_Int hp4370_effectivepixel(SANE_Int resolution)
1192 SANE_Int resolution;
1193 SANE_Int pixel;
1207 SANE_Int a;
1208 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1209 SANE_Int rst = 230; /* default */
1223 static SANE_Int ua4900_effectivepixel(SANE_Int resolution)
1227 SANE_Int resolution;
1228 SANE_Int pixel;
1242 SANE_Int a;
1243 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1244 SANE_Int rst = 230; /* default */
1258 static SANE_Int cfg_effectivepixel_get(SANE_Int sensortype, SANE_Int resolution)
1260 SANE_Int rst;
1289 static SANE_Int bq5550_gainoffset(SANE_Int usb, struct st_gain_offset *myreg)
1293 SANE_Int usb;
1304 SANE_Int rst = ERROR;
1308 SANE_Int a;
1309 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1325 static SANE_Int hp3800_gainoffset(SANE_Int usb, struct st_gain_offset *myreg)
1329 SANE_Int usb;
1340 SANE_Int rst = ERROR;
1344 SANE_Int a;
1345 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1361 static SANE_Int hp3970_gainoffset(SANE_Int usb, SANE_Int sensor, struct st_gain_offset *myreg)
1365 SANE_Int usb;
1366 SANE_Int sensor;
1380 SANE_Int rst = ERROR;
1384 SANE_Int a;
1385 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1401 static SANE_Int hp4370_gainoffset(SANE_Int usb, struct st_gain_offset *myreg)
1405 SANE_Int usb;
1416 SANE_Int rst = ERROR;
1420 SANE_Int a;
1421 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1437 static SANE_Int ua4900_gainoffset(SANE_Int usb, struct st_gain_offset *myreg)
1441 SANE_Int usb;
1452 SANE_Int rst = ERROR;
1456 SANE_Int a;
1457 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1473 static SANE_Int cfg_gainoffset_get(SANE_Int sensortype, struct st_gain_offset *reg)
1475 SANE_Int rst;
1508 static SANE_Int hp3800_checkstable(SANE_Int lamp, struct st_checkstable *check)
1512 SANE_Int lamp;
1524 SANE_Int rst = ERROR;
1526 SANE_Int a;
1527 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1542 static SANE_Int hp3970_checkstable(SANE_Int lamp, struct st_checkstable *check)
1546 SANE_Int lamp;
1558 SANE_Int rst = ERROR;
1560 SANE_Int a;
1561 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1576 static SANE_Int hp4370_checkstable(SANE_Int lamp, struct st_checkstable *check)
1580 SANE_Int lamp;
1592 SANE_Int rst = ERROR;
1594 SANE_Int a;
1595 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1610 static SANE_Int ua4900_checkstable(SANE_Int lamp, struct st_checkstable *check)
1614 SANE_Int lamp;
1626 SANE_Int rst = ERROR;
1628 SANE_Int a;
1629 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1644 static SANE_Int cfg_checkstable_get(SANE_Int lamp, struct st_checkstable *check)
1646 SANE_Int rst;
1675 static SANE_Int hp3800_fixedpwm(SANE_Int scantype, SANE_Int usb)
1679 SANE_Int usb;
1680 SANE_Int pwm[3];
1690 SANE_Int a, rst = 0x16;
1691 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1708 static SANE_Int hp3970_fixedpwm(SANE_Int scantype, SANE_Int usb, SANE_Int sensor)
1712 SANE_Int usb;
1713 SANE_Int sensor;
1714 SANE_Int pwm[3];
1727 SANE_Int a, rst = 0x16;
1728 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1745 static SANE_Int hp4370_fixedpwm(SANE_Int scantype, SANE_Int usb)
1749 SANE_Int usb;
1750 SANE_Int pwm[3];
1760 SANE_Int a, rst = 0x16;
1761 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1778 static SANE_Int ua4900_fixedpwm(SANE_Int scantype, SANE_Int usb)
1782 SANE_Int usb;
1783 SANE_Int pwm[3];
1793 SANE_Int a, rst = 0x16;
1794 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1811 static SANE_Int cfg_fixedpwm_get(SANE_Int sensortype, SANE_Int scantype)
1813 SANE_Int rst;
1842 static void cfg_vrefs_get(SANE_Int sensortype, SANE_Int res, SANE_Int *ser, SANE_Int *ler)
1863 static void hp3800_vrefs(SANE_Int res, SANE_Int *ser, SANE_Int *ler)
1867 SANE_Int resolution;
1868 SANE_Int vref[2];
1883 SANE_Int a;
1884 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1901 static void hp3970_vrefs(SANE_Int usb, SANE_Int sensor, SANE_Int res, SANE_Int *ser, SANE_Int *ler)
1905 SANE_Int usb;
1906 SANE_Int sensor;
1907 SANE_Int resolution;
1908 SANE_Int vref[2];
1952 SANE_Int a;
1953 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
1970 static void hp4370_vrefs(SANE_Int res, SANE_Int *ser, SANE_Int *ler)
1974 SANE_Int resolution;
1975 SANE_Int vref[2];
1991 SANE_Int a;
1992 SANE_Int count = sizeof(reg) / sizeof(struct st_reg);
2011 static SANE_Int cfg_motormove_get(SANE_Int sensortype, SANE_Int item, struct st_motormove *reg)
2013 SANE_Int rst = ERROR;
2033 static SANE_Int bq5550_motormove(SANE_Int item, struct st_motormove *reg)
2035 SANE_Int rst = ERROR;
2058 static SANE_Int hp3800_motormove(SANE_Int item, struct st_motormove *reg)
2060 SANE_Int rst = ERROR;
2083 static SANE_Int hp3970_motormove(SANE_Int usb, SANE_Int ccd, SANE_Int item, struct st_motormove *reg)
2085 SANE_Int rst = ERROR;
2089 SANE_Int usbtype;
2090 SANE_Int sensor;
2114 SANE_Int a, count = 0;
2115 SANE_Int total = sizeof(mv) / sizeof(struct st_mtmove);
2137 static SANE_Int cfg_scanmode_get(SANE_Int sensortype, SANE_Int sm, struct st_scanmode *mymode)
2139 SANE_Int rst = ERROR;
2170 static SANE_Int hp3970_scanmodes(SANE_Int usb, SANE_Int ccd, SANE_Int sm, struct st_scanmode *mymode)
2174 SANE_Int usb;
2175 SANE_Int sensor;
2362 SANE_Int rst = ERROR;
2366 SANE_Int a;
2367 SANE_Int total = sizeof(reg) / sizeof(struct st_modes);
2368 SANE_Int count = 0;
2391 static SANE_Int hp4370_scanmodes(SANE_Int usb, SANE_Int sm, struct st_scanmode *mymode)
2395 SANE_Int usb;
2492 SANE_Int rst = ERROR;
2496 SANE_Int a;
2497 SANE_Int total = sizeof(reg) / sizeof(struct st_modes);
2498 SANE_Int count = 0;
2521 static SANE_Int hp3800_scanmodes(SANE_Int usb, SANE_Int sm, struct st_scanmode *mymode)
2525 SANE_Int usb;
2610 SANE_Int rst = ERROR;
2614 SANE_Int a;
2615 SANE_Int total = sizeof(reg) / sizeof(struct st_modes);
2616 SANE_Int count = 0;
2639 static SANE_Int bq5550_scanmodes(SANE_Int usb, SANE_Int sm, struct st_scanmode *mymode)
2643 SANE_Int usb;
2707 SANE_Int rst = ERROR;
2714 SANE_Int a;
2715 SANE_Int total = sizeof(reg) / sizeof(struct st_modes);
2716 SANE_Int count = 0;
2736 static SANE_Int ua4900_scanmodes(SANE_Int usb, SANE_Int sm, struct st_scanmode *mymode)
2740 SANE_Int usb;
2786 SANE_Int rst = ERROR;
2790 SANE_Int a;
2791 SANE_Int total = sizeof(reg) / sizeof(struct st_modes);
2792 SANE_Int count = 0;
2817 static void hp3970_wrefs(SANE_Int usb, SANE_Int ccd, SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue)
2821 SANE_Int usb;
2822 SANE_Int sensor;
2823 SANE_Int depth;
2824 SANE_Int res;
2825 SANE_Int transparent[3];
2826 SANE_Int negative[3];
2910 SANE_Int a;
2911 SANE_Int count = sizeof(wrefs) / sizeof(struct st_wref);
2944 static void ua4900_wrefs(SANE_Int usb, SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue)
2948 SANE_Int usb;
2949 SANE_Int depth;
2950 SANE_Int res;
2951 SANE_Int transparent[3];
2952 SANE_Int negative[3];
3000 SANE_Int a;
3001 SANE_Int count = sizeof(wrefs) / sizeof(struct st_wref);
3034 static void hp3800_wrefs(SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue)
3039 SANE_Int res;
3040 SANE_Int transparent[3];
3041 SANE_Int negative[3];
3070 SANE_Int a;
3071 SANE_Int count = sizeof(wrefs) / sizeof(struct st_wref);
3104 static void hp4370_wrefs(SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue)
3108 SANE_Int res;
3109 SANE_Int transparent[3];
3110 SANE_Int negative[3];
3128 SANE_Int a;
3146 SANE_Int count = sizeof(wrefs) / sizeof(struct st_wref);
3179 static void cfg_wrefs_get(SANE_Int sensortype, SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue)
3205 static void hp3800_shading_cut(SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue)
3210 SANE_Int res;
3211 SANE_Int reflective[3];
3212 SANE_Int transparent[3];
3213 SANE_Int negative[3];
3228 SANE_Int a;
3229 SANE_Int count = sizeof(cuts) / sizeof(struct st_cut);
3271 static void hp3970_shading_cut(SANE_Int usb, SANE_Int ccd, SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue)
3275 SANE_Int usb;
3276 SANE_Int sensor;
3277 SANE_Int depth;
3278 SANE_Int res;
3279 SANE_Int reflective[3];
3280 SANE_Int transparent[3];
3281 SANE_Int negative[3];
3349 SANE_Int a;
3350 SANE_Int count = sizeof(cuts) / sizeof(struct st_cut);
3394 static void hp4370_shading_cut(SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue)
3398 SANE_Int depth;
3399 SANE_Int res;
3400 SANE_Int reflective[3];
3401 SANE_Int transparent[3];
3402 SANE_Int negative[3];
3426 SANE_Int a;
3427 SANE_Int count = sizeof(cuts) / sizeof(struct st_cut);
3471 static void ua4900_shading_cut(SANE_Int usb, SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue)
3475 SANE_Int usb;
3476 SANE_Int depth;
3477 SANE_Int res;
3478 SANE_Int reflective[3];
3479 SANE_Int transparent[3];
3480 SANE_Int negative[3];
3514 SANE_Int a;
3515 SANE_Int count = sizeof(cuts) / sizeof(struct st_cut);
3557 static void cfg_shading_cut_get(SANE_Int sensortype, SANE_Int depth, SANE_Int res, SANE_Int scantype, SANE_Int *red, SANE_Int *green, SANE_Int *blue)
3586 static SANE_Int bq5550_timing_get(SANE_Int tm, struct st_timing *reg)
3588 SANE_Int rst = ERROR;
3613 static SANE_Int hp3800_timing_get(SANE_Int tm, struct st_timing *reg)
3615 SANE_Int rst = ERROR;
3657 static SANE_Int hp3970_timing_get(SANE_Int sensortype, SANE_Int tm, struct st_timing *reg)
3659 SANE_Int rst = ERROR;
3714 static SANE_Int hp4370_timing_get(SANE_Int tm, struct st_timing *reg)
3716 SANE_Int rst = ERROR;
3749 static SANE_Int ua4900_timing_get(SANE_Int tm, struct st_timing *reg)
3751 SANE_Int rst = ERROR;
3778 static SANE_Int cfg_timing_get(SANE_Int sensortype, SANE_Int tm, struct st_timing *reg)
3782 SANE_Int rst = ERROR;
3816 static SANE_Int *bq5550_motor()
3818 SANE_Int *rst = NULL;
3819 SANE_Int steps[] =
3831 rst = (SANE_Int *)malloc(sizeof(steps));
3838 static SANE_Int *hp4370_motor()
3840 SANE_Int *rst = NULL;
3841 SANE_Int steps[] =
3932 rst = (SANE_Int *)malloc(sizeof(steps));
3939 static SANE_Int *hp3970_motor()
3941 SANE_Int *rst = NULL;
3942 SANE_Int steps[] =
4033 rst = (SANE_Int *)malloc(sizeof(steps));
4040 static SANE_Int *hp3800_motor()
4042 SANE_Int *rst = NULL;
4043 SANE_Int steps[] =
4178 rst = (SANE_Int *)malloc(sizeof(steps));
4185 static SANE_Int *cfg_motorcurve_get()
4189 SANE_Int *rst = NULL;