Lines Matching defs:count
1075 int count;
1079 count = write (ss->wpipe, buf, size);
1080 if (count == -1 && errno != EINTR)
1082 if (count == -1 && errno == EINTR)
1084 buf += count;
1085 size -= count;
1096 int count = 0;
1104 count = PIXMA_ENOMEM;
1108 count = pixma_activate_connection (ss->s);
1109 if (count < 0)
1129 count = PIXMA_ECANCELED;
1139 count = PIXMA_ECANCELED;
1144 count = pixma_scan (ss->s, &ss->sp);
1145 if (count >= 0)
1147 while ((count = pixma_read_image (ss->s, buf, bufsize)) > 0)
1149 if (write_all (ss, buf, count) != count)
1160 if (count >= 0)
1167 (2, "Reader task terminated: %s\n", pixma_strerror (count)));
1169 return map_error (count);
1548 int count, status;
1584 count = -1;
1585 pixma_jpeg_read(ss, buf, size, &count);
1588 count = read (ss->rpipe, buf, size);
1590 while (count == -1 && errno == EINTR);
1592 if (count == -1)
1609 /* here count >= 0 */
1610 ss->image_bytes_read += count;
1623 else if (count == 0)
1645 *readlen = count;
1675 config.count = 0;