Lines Matching defs:count
671 static int io_all(void *fd, void *buf, int count, int do_write)
676 while (count > 0) {
679 i = count;
682 i = fwrite(buf, 1, count, stream_out);
686 buf, count);
689 i = write(*(int *)fd, buf, count);
692 i = read(*(int *)fd, buf, count);
694 i = dev->d_ops->read(dev, buf, count);
701 count -= i;
897 sle64 count;
898 char buf[1 + sizeof(count)];
901 count = cpu_to_sle64(gap);
903 memcpy(&buf[1], &count, sizeof(count));
909 static void image_skip_clusters(s64 count)
911 if (opt.save_image && count > 0) {
913 char buff[1 + sizeof(count)];
916 count_buf = cpu_to_sle64(count);
999 static void write_empty_clusters(s32 csize, s64 count,
1011 for (i = 0; i < count; i++) {
1021 s64 pos = 0, count;
1057 count = sle64_to_cpu(lecount);
1060 if (read_all(&fd_in, &count,
1061 sizeof(count)) == -1)
1064 if (!count)
1068 if ((!p_counter && count) || (count < 0))
1072 write_empty_clusters(csize, count,
1075 if (((pos + count) < 0)
1076 || ((pos + count)
1083 && (lseek_out(fd_out, count * csize,
1088 pos += count;
1854 s64 i, pos, count;
1865 count = ntfs_attr_pread(vol->lcnbmp_na, pos, NTFS_BUF_SIZE, bm);
1866 if (count == -1)
1869 if (count == 0) {
1878 for (i = 0; i < count; i++, pos++) {
2092 /* include the alternate boot sector in the bitmap count */