Lines Matching defs:count

1737 			     size_t count)
1742 for (i = 0; i < count; ++ i) {
1752 size_t count)
1758 while (count) {
1761 while (i < 16 && count) {
1763 count--; i++;
1831 DBG (dbg_level, "%s: roller count: %d\n",
1833 DBG (dbg_level, "%s: multifeed count: %d\n",
1835 DBG (dbg_level, "%s: jam count: %d\n",
1878 DBG (dbg_level, "%s: [3] line count: %d\n", func, result[3]);
1928 DBG (dbg_level, "%s: [0-1] acceleration step count: %d\n",
1930 DBG (dbg_level, "%s: [2-3] stable step count: %d\n",
1944 DBG (dbg_level, "%s: [17] table count: %d\n", func, result[17]);
2008 DBG (dbg_level, "%s: [47-48] line-count: %d\n", func,
2028 DBG (dbg_level, "%s: [60] line-count (MSB): %d\n",
2358 size_t count = 0;
2371 count == 0 &&
2377 count = sizeof (usb_status);
2381 &count);
2383 (u_long)count, valid_status(status, usb_status[0]));
2385 if (count > 0) {
2390 /* reset retry count ... */
2395 count == 0 &&
2401 count = sizeof (usb_status);
2405 &count);
2407 (u_long)count, valid_status(status, usb_status[0]));
2409 if (count > 0)
2416 if (count == 0)
2505 size_t i, count, out_count;
2550 DBG (1, "Max retry count reached: I/O error\n");
2554 count = cmd_size;
2557 DBG (8, "try to write cmd, count: %lu.\n", (u_long) count);
2558 status = sanei_usb_write_bulk (av_con->usb_dn, m_cmd, &count);
2560 DBG (8, "wrote %lu bytes\n", (u_long) count);
2561 if (status != SANE_STATUS_GOOD || count != cmd_size) {
2563 status, (long)count);
2585 count = src_size - i;
2586 /* if (count > max_usb_size)
2587 count = max_usb_size; */
2589 DBG (8, "try to write src, count: %lu.\n", (u_long) count);
2591 status = sanei_usb_write_bulk (av_con->usb_dn, &(m_src[i]), &count);
2593 DBG (8, "wrote %lu bytes\n", (u_long) count);
2595 i += count;
2607 count = (*dst_size - out_count);
2609 DBG (8, "try to read %lu bytes\n", (u_long) count);
2611 &count);
2612 DBG (8, "read %lu bytes\n", (u_long) count);
2614 if (count == 1 && (*dst_size - out_count > 1)) {
2618 else if (count > 0) {
2619 out_count += count;
2656 count = sizeof(sense_cmd);
2658 DBG (8, "try to write %lu bytes\n", (u_long) count);
2661 (uint8_t*) &sense_cmd, &count);
2662 DBG (8, "wrote %lu bytes\n", (u_long) count);
2668 count = sizeof (sense_buffer);
2670 DBG (8, "try to read %lu bytes sense data\n", (u_long) count);
2672 status = sanei_usb_read_bulk(av_con->usb_dn, sense_buffer, &count);
2673 DBG (8, "read %lu bytes sense data\n", (u_long) count);
2693 * 16bit big endian and the count is the count of the words - not
2697 bubble_sort (uint8_t* sort_data, size_t count)
2702 limit = count / 3;
2709 for (j = (i + 1); j < count; ++j)
2721 for (k = 0, i = limit; i < count; ++i) {
4343 int matches = 0, match_count = 0; /* count number of matches */
5211 /* firmware return R--RG--GB--B with 3 line count */
6150 /* count total steps in table */
6295 DBG (2, "set_window: interlaced duplex scan, doubled line count\n");
6316 /* scanner should use our line-width and count */
6929 read_data (Avision_Scanner* s, SANE_Byte* buf, size_t* count)
6934 DBG (9, "read_data: %lu\n", (u_long) *count);
6941 set_triple (rcmd.transferlen, *count);
6943 status = avision_cmd (&s->av_con, &rcmd, sizeof (rcmd), 0, 0, buf, count);