Lines Matching defs:count
774 /* try to get the exact sector count */
1325 * @count: how many bytes should be transfered
1329 * On success returns the number of bytes transfered (can be < @count) and on
1333 * - @pos, @buf, and @count must be aligned to geo_sector_size
1339 const s64 count, void *rbuf, const void *wbuf)
1347 ntfs_log_trace("pos = 0x%llx, count = 0x%llx, direction = %s.\n",
1348 (long long)pos, (long long)count, write ? "write" :
1371 &io_status, wbuf, count,
1376 &io_status, rbuf, count,
1392 res = WriteFile(handle, wbuf, count, &bt, NULL);
1394 res = ReadFile(handle, rbuf, count, &bt, NULL);
1416 * @count: how many bytes should be read
1419 * On success returns the number of bytes read (can be < @count) and on error
1423 * - @pos, @buf, and @count must be aligned to geo_sector_size.
1429 const s64 count, void *b)
1431 return ntfs_device_win32_pio(fd, pos, count, b, (void*)NULL);
1438 * @count: how many bytes should be read
1440 * On success returns the number of bytes actually read (can be < @count).
1443 static s64 ntfs_device_win32_read(struct ntfs_device *dev, void *b, s64 count)
1452 to_read = (ofs + count + fd->geo_sector_size - 1) &
1456 int delta = to_read - count;
1458 count = to_read - delta;
1460 ntfs_log_trace("fd = %p, b = %p, count = 0x%llx, pos = 0x%llx, "
1462 (long long)count, (long long)old_pos, ofs,
1465 !(count & (fd->geo_sector_size - 1)))
1478 if (count > vol_to_read) {
1508 if (br > count)
1509 br = count;
1608 * @count: how many bytes should be written
1615 * - @pos, @buf, and @count must be aligned to geo_sector_size.
1621 const s64 count, const void *b)
1623 return ntfs_device_win32_pio(fd, pos, count, (void*)NULL, b);
1630 * @count: how many bytes should be written
1636 s64 count)
1646 to_write = (ofs + count + fd->geo_sector_size - 1) &
1650 int delta = to_write - count;
1652 count = to_write - delta;
1654 ntfs_log_trace("fd = %p, b = %p, count = 0x%llx, pos = 0x%llx, "
1656 (long long)count, (long long)old_pos, ofs,
1663 if (!count)
1668 !(count & (fd->geo_sector_size - 1)))
1697 end = old_pos + count;
1711 memcpy(readbuffer + ofs, b, count);
1716 if (count > vol_to_write) {
1746 if (bw > count)
1747 bw = count;
1907 s64 count, s64 offset)
1914 if (!((count | offset) & (fd->geo_sector_size - 1))) {
1915 got = ntfs_device_win32_pio(fd, offset, count, b, (void*)NULL);
1920 got = ntfs_device_win32_read(dev, b, count);
1927 s64 count, s64 offset)
1934 if (!((count | offset) & (fd->geo_sector_size - 1))) {
1935 put = ntfs_device_win32_pio(fd, offset, count, (void*)NULL, b);
1940 put = ntfs_device_win32_write(dev, b, count);