Lines Matching defs:pos
914 /* TODO: Check that *val is really zero at pos and len. */
987 * @pos: position at which to make space
990 * @pos points to the attribute in front of which we want to make space.
1000 static int make_room_for_attribute(MFT_RECORD *m, char *pos, const u32 size)
1016 if (!m || !pos)
1018 if (pos < (char*)m || pos + size < (char*)m ||
1019 pos > (char*)m + le32_to_cpu(m->bytes_allocated) ||
1020 pos + size > (char*)m + le32_to_cpu(m->bytes_allocated))
1023 if (pos - (char*)m > (int)le32_to_cpu(m->bytes_in_use) - 8)
1030 /* Move everything after pos to pos + size. */
1031 memmove(pos + size, pos, biu - (pos - (char*)m));
2573 * Create space of @size bytes at position @pos inside the index block @idx.
2578 INDEX_ENTRY *pos, u32 size)
2594 if (!idx || !pos)
2596 if ((char*)pos < (char*)idx || (char*)pos + size < (char*)idx ||
2597 (char*)pos > (char*)idx + sizeof(INDEX_BLOCK) -
2600 (char*)pos + size > (char*)idx + sizeof(INDEX_BLOCK) -
2605 if ((char*)pos - (char*)&idx->index >
2614 /* Move everything after pos to pos + size. */
2615 memmove((char*)pos + size, (char*)pos, biu - ((char*)pos -
4970 long long lw, pos;
5119 pos = g_mft_lcn * g_vol->cluster_size;
5123 lw = ntfs_mst_pwrite(g_vol->dev, pos, 1, g_vol->mft_record_size, g_buf + i * g_vol->mft_record_size);
5129 pos += g_vol->mft_record_size;
5132 pos = g_mftmirr_lcn * g_vol->cluster_size;
5147 lw = ntfs_mst_pwrite(g_vol->dev, pos, 1, g_vol->mft_record_size, g_buf + i * g_vol->mft_record_size);
5153 pos += g_vol->mft_record_size;