Lines Matching refs:SANE_Int
50 SANE_Int dataline_count = 0;
53 static SANE_Int usb_ctl_write (USB_Handle usb_handle, SANE_Int address,
54 SANE_Byte * buffer, SANE_Int size,
55 SANE_Int index);
56 static SANE_Int usb_ctl_read (USB_Handle usb_handle, SANE_Int address,
57 SANE_Byte * buffer, SANE_Int size,
58 SANE_Int index);
62 static SANE_Int IRead_Byte (USB_Handle usb_handle, SANE_Int address,
63 SANE_Byte * data, SANE_Int index);
64 static SANE_Int IRead_Word (USB_Handle usb_handle, SANE_Int address,
65 SANE_Int * data, SANE_Int index);
66 static SANE_Int IRead_Integer (USB_Handle usb_handle, SANE_Int address,
67 SANE_Int * data, SANE_Int index);
68 static SANE_Int IRead_Buffer (USB_Handle usb_handle, SANE_Int address,
69 SANE_Byte * buffer, SANE_Int size,
70 SANE_Int index);
71 static SANE_Int IWrite_Byte (USB_Handle usb_handle, SANE_Int address,
72 SANE_Byte data, SANE_Int index1,
73 SANE_Int index2);
74 static SANE_Int IWrite_Word (USB_Handle usb_handle, SANE_Int address,
75 SANE_Int data, SANE_Int index);
76 static SANE_Int IWrite_Integer (USB_Handle usb_handle, SANE_Int address,
77 SANE_Int data, SANE_Int index);
78 static SANE_Int IWrite_Buffer (USB_Handle usb_handle, SANE_Int address,
79 SANE_Byte * buffer, SANE_Int size,
80 SANE_Int index);
82 static SANE_Int Read_Byte (USB_Handle usb_handle, SANE_Int address,
84 static SANE_Int Read_Word (USB_Handle usb_handle, SANE_Int address,
85 SANE_Int * data);
86 static SANE_Int Read_Integer (USB_Handle usb_handle, SANE_Int address,
87 SANE_Int * data);
88 static SANE_Int Read_Buffer (USB_Handle usb_handle, SANE_Int address,
89 SANE_Byte * buffer, SANE_Int size);
90 static SANE_Int Read_Bulk (USB_Handle usb_handle, SANE_Byte * buffer,
92 static SANE_Int Write_Byte (USB_Handle usb_handle, SANE_Int address,
94 static SANE_Int Write_Word (USB_Handle usb_handle, SANE_Int address,
95 SANE_Int data);
96 /*static SANE_Int Write_Integer (USB_Handle usb_handle, SANE_Int address, SANE_Int data);*/
97 static SANE_Int Write_Buffer (USB_Handle usb_handle, SANE_Int address,
98 SANE_Byte * buffer, SANE_Int size);
99 static SANE_Int Write_Bulk (USB_Handle usb_handle, SANE_Byte * buffer,
100 SANE_Int size);
102 static SANE_Int show_buffer (SANE_Int level, SANE_Byte * buffer,
103 SANE_Int size);
107 static SANE_Int
108 IWrite_Byte (USB_Handle usb_handle, SANE_Int address, SANE_Byte data,
109 SANE_Int index1, SANE_Int index2)
111 SANE_Int rst = ERROR;
126 static SANE_Int
127 IWrite_Word (USB_Handle usb_handle, SANE_Int address, SANE_Int data,
128 SANE_Int index)
130 SANE_Int rst = ERROR;
142 static SANE_Int
143 IWrite_Integer (USB_Handle usb_handle, SANE_Int address, SANE_Int data,
144 SANE_Int index)
146 SANE_Int rst = ERROR;
160 static SANE_Int
161 IWrite_Buffer (USB_Handle usb_handle, SANE_Int address, SANE_Byte * buffer,
162 SANE_Int size, SANE_Int index)
164 SANE_Int ret = ERROR;
173 static SANE_Int
174 IRead_Byte (USB_Handle usb_handle, SANE_Int address, SANE_Byte * data,
175 SANE_Int index)
178 SANE_Int ret = ERROR;
190 static SANE_Int
191 IRead_Word (USB_Handle usb_handle, SANE_Int address, SANE_Int * data,
192 SANE_Int index)
195 SANE_Int ret = ERROR;
207 static SANE_Int
208 IRead_Integer (USB_Handle usb_handle, SANE_Int address, SANE_Int * data,
209 SANE_Int index)
212 SANE_Int ret = ERROR;
219 SANE_Int C;
229 static SANE_Int
230 IRead_Buffer (USB_Handle usb_handle, SANE_Int address, SANE_Byte * buffer,
231 SANE_Int size, SANE_Int index)
233 SANE_Int ret = ERROR;
242 static SANE_Int
243 Write_Byte (USB_Handle usb_handle, SANE_Int address, SANE_Byte data)
248 static SANE_Int
249 Write_Word (USB_Handle usb_handle, SANE_Int address, SANE_Int data)
254 /*static SANE_Int Write_Integer(USB_Handle usb_handle, SANE_Int address, SANE_Int data)
259 static SANE_Int
260 Write_Buffer (USB_Handle usb_handle, SANE_Int address, SANE_Byte * buffer,
261 SANE_Int size)
266 static SANE_Int
267 Read_Byte (USB_Handle usb_handle, SANE_Int address, SANE_Byte * data)
272 static SANE_Int
273 Read_Word (USB_Handle usb_handle, SANE_Int address, SANE_Int * data)
278 static SANE_Int
279 Read_Integer (USB_Handle usb_handle, SANE_Int address, SANE_Int * data)
284 static SANE_Int
285 Read_Buffer (USB_Handle usb_handle, SANE_Int address, SANE_Byte * buffer,
286 SANE_Int size)
291 static SANE_Int
292 Write_Bulk (USB_Handle usb_handle, SANE_Byte * buffer, SANE_Int size)
294 SANE_Int rst = ERROR;
325 static SANE_Int
328 SANE_Int rst = ERROR;
357 static SANE_Int
358 usb_ctl_write (USB_Handle usb_handle, SANE_Int address, SANE_Byte * buffer,
359 SANE_Int size, SANE_Int index)
361 SANE_Int rst = ERROR;
399 static SANE_Int
400 usb_ctl_read (USB_Handle usb_handle, SANE_Int address, SANE_Byte * buffer,
401 SANE_Int size, SANE_Int index)
403 SANE_Int rst;
444 static SANE_Int
445 show_buffer (SANE_Int level, SANE_Byte * buffer, SANE_Int size)
451 SANE_Int cont, data, offset = 0, col = 0;