Lines Matching defs:count
105 size_t count = 5 /* = sizeof(cmd_buffer) */ ;
122 status = sanei_usb_write_bulk (fd, cmd_buffer, &count);
139 size_t count = 4; /* = sizeof(cmd_buffer) */
146 status = sanei_usb_write_bulk (fd, cmd_buffer, &count);
156 count = 1;
157 status = sanei_usb_read_bulk (fd, data, &count);
173 size_t count = 4; /* = sizeof(cmd_buffer) */
180 status = sanei_usb_write_bulk (fd, cmd_buffer, &count);
190 count = size;
191 status = sanei_usb_read_bulk (fd, data, &count);
195 DBG (1, "cp2155_read: sanei_usb_read_bulk error %lu\n", (u_long) count);
207 size_t count = 0x100;
209 while ((count & 0x0f) != 0)
211 count++;
214 byte pgLO = (count) & 0xff;
215 byte pgHI = (count >> 8) & 0xff;
218 (u_long) count);
233 count = count + 4;
234 sanei_usb_write_bulk (fd, data, &count);
297 size_t count, position;
305 count = buf[2] + 256 * buf[3];
307 DBG (1, "count = %ld top_value = %d\n", count, top_value);
308 while (position < count + 4)
325 make_constant_buf (size_t count, unsigned int hiword, unsigned int loword,
335 buf[2] = (count - 4) & 0xff;
336 buf[3] = ((count - 4) >> 8) & 0xff;
337 while (i < count)
351 make_slope_table (size_t count, unsigned int word, size_t start_descent,
359 buf[2] = (count - 4) & 0xff;
360 buf[3] = ((count - 4) >> 8) & 0xff;
372 write_buf (int fd, size_t count, unsigned char *buf,
376 value_72 = ((count - 4) >> 8) & 0xff;
377 value_73 = (count - 4) & 0xff;
390 sanei_usb_write_bulk (fd, buf, &count);
394 big_write (int fd, size_t count, unsigned char *buf)
396 make_constant_buf (count, 62756, 20918, buf);
397 write_buf (fd, count, buf, 0x00, 0x00);
398 write_buf (fd, count, buf, 0x00, 0xb0);
399 write_buf (fd, count, buf, 0x01, 0x60);
400 write_buf (fd, count, buf, 0x02, 0x10);
404 big_write_2224 (int fd, size_t count, unsigned char *buf)
406 make_constant_buf (count, 62756, 30918, buf);
407 write_buf (fd, count, buf, 0x00, 0x00);
408 write_buf (fd, count, buf, 0x00, 0xb0);
409 write_buf (fd, count, buf, 0x01, 0x60);
410 write_buf (fd, count, buf, 0x02, 0x10);
414 big_write_film (int fd, size_t count, unsigned char *buf)
416 make_constant_buf (count, 62756, 20918, buf);
417 write_buf (fd, count, buf, 0x00, 0x00);
418 write_buf (fd, count, buf, 0x02, 0x00);
419 write_buf (fd, count, buf, 0x04, 0x00);
420 write_buf (fd, count, buf, 0x06, 0x00);
555 size_t count;
648 count = 260;
649 make_slope_table (count, top_value, 0x6a, 0.021739, buf);
651 write_buf (fd, count, buf, 0x03, 0x00);
652 write_buf (fd, count, buf, 0x03, 0x02);
653 write_buf (fd, count, buf, 0x03, 0x06);
655 count = 36;
656 make_slope_table (count, top_value, 0x06, 0.15217, buf);
658 write_buf (fd, count, buf, 0x03, 0x04);
659 write_buf (fd, count, buf, 0x03, 0x08);
670 size_t count;
762 count = 260;
763 make_slope_table (count, top_value, 0x06, 0.0089185, buf);
765 write_buf (fd, count, buf, 0x03, 0x00);
766 write_buf (fd, count, buf, 0x03, 0x02);
767 write_buf (fd, count, buf, 0x03, 0x06);
769 count = 36;
770 make_slope_table (count, top_value, 0x06, 0.102968, buf);
772 write_buf (fd, count, buf, 0x03, 0x04);
773 write_buf (fd, count, buf, 0x03, 0x08);
784 size_t count;
875 count = 52;
876 make_slope_table (count, top_value, 0x06, 0.0038363, buf);
878 write_buf (fd, count, buf, 0x03, 0x00);
879 write_buf (fd, count, buf, 0x03, 0x02);
880 write_buf (fd, count, buf, 0x03, 0x06);
882 count = 36;
883 make_slope_table (count, top_value, 0x06, 0.0080213, buf);
885 write_buf (fd, count, buf, 0x03, 0x04);
886 write_buf (fd, count, buf, 0x03, 0x08);
897 size_t count;
985 count = 84;
986 make_slope_table (count, top_value, 0x06, 0.0020408, buf);
988 write_buf (fd, count, buf, 0x03, 0x00);
989 write_buf (fd, count, buf, 0x03, 0x02);
990 write_buf (fd, count, buf, 0x03, 0x06);
992 count = 36;
993 make_slope_table (count, top_value, 0x06, 0.0064935, buf);
995 write_buf (fd, count, buf, 0x03, 0x04);
996 write_buf (fd, count, buf, 0x03, 0x08);
1007 size_t count;
1098 count = 36;
1099 make_slope_table (count, top_value, 0x06, 0.0, buf);
1101 write_buf (fd, count, buf, 0x03, 0x00);
1102 write_buf (fd, count, buf, 0x03, 0x02);
1103 write_buf (fd, count, buf, 0x03, 0x06);
1104 write_buf (fd, count, buf, 0x03, 0x04);
1105 write_buf (fd, count, buf, 0x03, 0x08);
1116 size_t count;
1210 count = 516;
1211 make_slope_table (count, top_value, 0x6a, 0.0084116, buf);
1213 write_buf (fd, count, buf, 0x03, 0x00);
1214 write_buf (fd, count, buf, 0x03, 0x02);
1215 write_buf (fd, count, buf, 0x03, 0x06);
1217 count = 36;
1218 make_slope_table (count, top_value, 0x06, 0.15217, buf);
1220 write_buf (fd, count, buf, 0x03, 0x04);
1221 write_buf (fd, count, buf, 0x03, 0x08);
1233 size_t count;
1327 count = 260;
1328 make_slope_table (count, top_value, 0x86, 0.017979, buf);
1330 write_buf (fd, count, buf, 0x03, 0x00);
1331 write_buf (fd, count, buf, 0x03, 0x02);
1332 write_buf (fd, count, buf, 0x03, 0x06);
1334 count = 36;
1335 make_slope_table (count, top_value, 0x06, 0.102968, buf);
1337 write_buf (fd, count, buf, 0x03, 0x04);
1338 write_buf (fd, count, buf, 0x03, 0x08);
1349 size_t count;
1440 count = 260;
1441 make_slope_table (count, top_value, 0x66, 0.0129596, buf);
1443 write_buf (fd, count, buf, 0x03, 0x00);
1444 write_buf (fd, count, buf, 0x03, 0x02);
1445 write_buf (fd, count, buf, 0x03, 0x06);
1447 count = 36;
1448 make_slope_table (count, top_value, 0x06, 0.09307359, buf);
1450 write_buf (fd, count, buf, 0x03, 0x04);
1451 write_buf (fd, count, buf, 0x03, 0x08);
1463 size_t count;
1557 count = 36;
1558 make_slope_table (count, top_value, 0x06, 0.0, buf);
1560 write_buf (fd, count, buf, 0x03, 0x00);
1561 write_buf (fd, count, buf, 0x03, 0x02);
1562 write_buf (fd, count, buf, 0x03, 0x06);
1563 write_buf (fd, count, buf, 0x03, 0x04);
1564 write_buf (fd, count, buf, 0x03, 0x08);
1578 size_t count;
1685 count = 324;
1686 make_slope_table (count, top_value, 0x06, 0.0, buf);
1688 write_buf (fd, count, buf, 0x03, 0x00);
1689 write_buf (fd, count, buf, 0x03, 0x02);
1690 write_buf (fd, count, buf, 0x03, 0x06);
1692 count = 36;
1693 make_slope_table (count, top_value, 0x06, 0.0, buf);
1695 write_buf (fd, count, buf, 0x03, 0x04);
1696 write_buf (fd, count, buf, 0x03, 0x08);
1708 size_t count;
1823 count = 324;
1824 make_slope_table (count, top_value, 0x06, 0.0, buf);
1826 write_buf (fd, count, buf, 0x03, 0x00);
1827 write_buf (fd, count, buf, 0x03, 0x02);
1828 write_buf (fd, count, buf, 0x03, 0x06);
1830 count = 36;
1831 make_slope_table (count, top_value, 0x06, 0.0, buf);
1833 write_buf (fd, count, buf, 0x03, 0x04);
1834 write_buf (fd, count, buf, 0x03, 0x08);
1846 size_t count;
1961 count = 324;
1962 make_slope_table (count, top_value, 0x06, 0.0, buf);
1964 write_buf (fd, count, buf, 0x03, 0x00);
1965 write_buf (fd, count, buf, 0x03, 0x02);
1966 write_buf (fd, count, buf, 0x03, 0x06);
1968 count = 36;
1969 make_slope_table (count, top_value, 0x06, 0.0, buf);
1971 write_buf (fd, count, buf, 0x03, 0x04);
1972 write_buf (fd, count, buf, 0x03, 0x08);
1984 size_t count;
2099 count = 324;
2100 make_slope_table (count, top_value, 0x06, 0.0, buf);
2102 write_buf (fd, count, buf, 0x03, 0x00);
2103 write_buf (fd, count, buf, 0x03, 0x02);
2104 write_buf (fd, count, buf, 0x03, 0x06);
2106 count = 36;
2107 make_slope_table (count, top_value, 0x06, 0.0, buf);
2109 write_buf (fd, count, buf, 0x03, 0x04);
2110 write_buf (fd, count, buf, 0x03, 0x08);
2473 size_t count;
2561 count = 260;
2562 make_slope_table (count, top_value, 0x6a, 0.021739, buf);
2564 write_buf (fd, count, buf, 0x03, 0x00);
2565 write_buf (fd, count, buf, 0x03, 0x02);
2566 write_buf (fd, count, buf, 0x03, 0x06);
2568 count = 36;
2569 make_slope_table (count, top_value, 0x06, 0.15217, buf);
2571 write_buf (fd, count, buf, 0x03, 0x04);
2572 write_buf (fd, count, buf, 0x03, 0x08);
2585 size_t count;
2676 count = 516;
2677 make_slope_table (count, top_value, 0x06, 0.0067225, buf);
2679 write_buf (fd, count, buf, 0x03, 0x00);
2680 write_buf (fd, count, buf, 0x03, 0x02);
2681 write_buf (fd, count, buf, 0x03, 0x06);
2683 count = 36;
2684 make_slope_table (count, top_value, 0x06, 0.15217, buf);
2686 write_buf (fd, count, buf, 0x03, 0x04);
2687 write_buf (fd, count, buf, 0x03, 0x08);