Lines Matching refs:ofs
1448 int old_ofs, ofs; in ntfs_device_win32_read() local
1451 old_ofs = ofs = old_pos & (fd->geo_sector_size - 1); in ntfs_device_win32_read()
1452 to_read = (ofs + count + fd->geo_sector_size - 1) & in ntfs_device_win32_read()
1462 (long long)count, (long long)old_pos, ofs, in ntfs_device_win32_read()
1481 ofs + vol_to_read, alignedbuffer); in ntfs_device_win32_read()
1485 if (br < ofs) { in ntfs_device_win32_read()
1489 br -= ofs; in ntfs_device_win32_read()
1491 ofs = fd->pos & (fd->geo_sector_size - 1); in ntfs_device_win32_read()
1504 if (i < ofs) in ntfs_device_win32_read()
1506 i -= ofs; in ntfs_device_win32_read()
1642 int old_ofs, ofs; in ntfs_device_win32_write() local
1645 old_ofs = ofs = old_pos & (fd->geo_sector_size - 1); in ntfs_device_win32_write()
1646 to_write = (ofs + count + fd->geo_sector_size - 1) & in ntfs_device_win32_write()
1656 (long long)count, (long long)old_pos, ofs, in ntfs_device_win32_write()
1681 if (ofs) { in ntfs_device_win32_write()
1699 ((to_write > fd->geo_sector_size) || !ofs)) { in ntfs_device_win32_write()
1711 memcpy(readbuffer + ofs, b, count); in ntfs_device_win32_write()
1719 ofs + vol_to_write, alignedbuffer); in ntfs_device_win32_write()
1723 if (bw < ofs) { in ntfs_device_win32_write()
1727 bw -= ofs; in ntfs_device_win32_write()
1729 ofs = fd->pos & (fd->geo_sector_size - 1); in ntfs_device_win32_write()
1742 if (i < ofs) in ntfs_device_win32_write()
1744 i -= ofs; in ntfs_device_win32_write()