Lines Matching refs:count
525 static int io_all(void *fd, void *buf, int count, int do_write)
530 while (count > 0) {
532 i = write(*(int *)fd, buf, count);
534 i = read(*(int *)fd, buf, count);
536 i = dev->d_ops->read(dev, buf, count);
541 count -= i;
636 static void image_skip_clusters(s64 count)
638 if (opt.save_image && count > 0) {
642 typeof(count) count_buf;
644 char buff[1 + sizeof(count)];
647 count_buf = cpu_to_sle64(count);
718 static void write_empty_clusters(s32 csize, s64 count,
726 for (i = 0; i < count; i++) {
735 s64 pos = 0, count;
753 if (read_all(&fd_in, &count, sizeof(count)) == -1)
756 count = sle64_to_cpu(count);
758 write_empty_clusters(csize, count,
761 if (lseek(fd_out, count * csize, SEEK_CUR) ==
765 pos += count;
1089 s64 i, pos, count;
1097 count = ntfs_attr_pread(vol->lcnbmp_na, pos, NTFS_BUF_SIZE, bm);
1098 if (count == -1)
1101 if (count == 0) {
1108 for (i = 0; i < count; i++, pos++) {