Lines Matching refs:address
53 static SANE_Int usb_ctl_write (USB_Handle usb_handle, SANE_Int address,
56 static SANE_Int usb_ctl_read (USB_Handle usb_handle, SANE_Int address,
62 static SANE_Int IRead_Byte (USB_Handle usb_handle, SANE_Int address,
64 static SANE_Int IRead_Word (USB_Handle usb_handle, SANE_Int address,
66 static SANE_Int IRead_Integer (USB_Handle usb_handle, SANE_Int address,
68 static SANE_Int IRead_Buffer (USB_Handle usb_handle, SANE_Int address,
71 static SANE_Int IWrite_Byte (USB_Handle usb_handle, SANE_Int address,
74 static SANE_Int IWrite_Word (USB_Handle usb_handle, SANE_Int address,
76 static SANE_Int IWrite_Integer (USB_Handle usb_handle, SANE_Int address,
78 static SANE_Int IWrite_Buffer (USB_Handle usb_handle, SANE_Int address,
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,
86 static SANE_Int Read_Integer (USB_Handle usb_handle, SANE_Int address,
88 static SANE_Int Read_Buffer (USB_Handle usb_handle, SANE_Int address,
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,
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,
108 IWrite_Byte (USB_Handle usb_handle, SANE_Int address, SANE_Byte data,
114 if (usb_ctl_read (usb_handle, address + 1, buffer, 0x02, index1) == 2)
119 if (usb_ctl_write (usb_handle, address, buffer, 0x02, index2) == 2)
127 IWrite_Word (USB_Handle usb_handle, SANE_Int address, SANE_Int data,
136 if (usb_ctl_write (usb_handle, address, buffer, 0x02, index) == 2)
143 IWrite_Integer (USB_Handle usb_handle, SANE_Int address, SANE_Int data,
154 if (usb_ctl_write (usb_handle, address, buffer, 0x04, index) == 4)
161 IWrite_Buffer (USB_Handle usb_handle, SANE_Int address, SANE_Byte * buffer,
167 if (usb_ctl_write (usb_handle, address, buffer, size, index) == size)
174 IRead_Byte (USB_Handle usb_handle, SANE_Int address, SANE_Byte * data,
181 if (usb_ctl_read (usb_handle, address, buffer, 0x02, index) == 2)
191 IRead_Word (USB_Handle usb_handle, SANE_Int address, SANE_Int * data,
198 if (usb_ctl_read (usb_handle, address, buffer, 0x02, index) == 2)
208 IRead_Integer (USB_Handle usb_handle, SANE_Int address, SANE_Int * data,
217 if (usb_ctl_read (usb_handle, address, buffer, 0x04, index) == 4)
230 IRead_Buffer (USB_Handle usb_handle, SANE_Int address, SANE_Byte * buffer,
236 if (usb_ctl_read (usb_handle, address, buffer, size, index) == size)
243 Write_Byte (USB_Handle usb_handle, SANE_Int address, SANE_Byte data)
245 return IWrite_Byte (usb_handle, address, data, 0x100, 0);
249 Write_Word (USB_Handle usb_handle, SANE_Int address, SANE_Int data)
251 return IWrite_Word (usb_handle, address, data, 0);
254 /*static SANE_Int Write_Integer(USB_Handle usb_handle, SANE_Int address, SANE_Int data)
256 return IWrite_Integer(usb_handle, address, data, 0);
260 Write_Buffer (USB_Handle usb_handle, SANE_Int address, SANE_Byte * buffer,
263 return IWrite_Buffer (usb_handle, address, buffer, size, 0);
267 Read_Byte (USB_Handle usb_handle, SANE_Int address, SANE_Byte * data)
269 return IRead_Byte (usb_handle, address, data, 0x100);
273 Read_Word (USB_Handle usb_handle, SANE_Int address, SANE_Int * data)
275 return IRead_Word (usb_handle, address, data, 0x100);
279 Read_Integer (USB_Handle usb_handle, SANE_Int address, SANE_Int * data)
281 return IRead_Integer (usb_handle, address, data, 0x100);
285 Read_Buffer (USB_Handle usb_handle, SANE_Int address, SANE_Byte * buffer,
288 return IRead_Buffer (usb_handle, address, buffer, size, 0x100);
358 usb_ctl_write (USB_Handle usb_handle, SANE_Int address, SANE_Byte * buffer,
365 dataline_count, address & 0xffff, index, size);
372 address, /* Value */
382 address, /* Value */
400 usb_ctl_read (USB_Handle usb_handle, SANE_Int address, SANE_Byte * buffer,
409 dataline_count, address & 0xffff, index, size);
415 address, /* Value */
425 address, /* Value */