Lines Matching defs:pos
609 /* TODO: Check that *val is really zero at pos and len. */
669 * @pos: position at which to make space
672 * @pos points to the attribute in front of which we want to make space.
682 static int make_room_for_attribute(MFT_RECORD *m, char *pos, const u32 size)
698 if (!m || !pos)
700 if (pos < (char*)m || pos + size < (char*)m ||
701 pos > (char*)m + le32_to_cpu(m->bytes_allocated) ||
702 pos + size > (char*)m + le32_to_cpu(m->bytes_allocated))
705 if (pos - (char*)m > (int)le32_to_cpu(m->bytes_in_use) - 8)
712 /* Move everything after pos to pos + size. */
713 memmove(pos + size, pos, biu - (pos - (char*)m));
2187 * Create space of @size bytes at position @pos inside the index block @idx.
2192 INDEX_ENTRY *pos, u32 size)
2208 if (!idx || !pos)
2210 if ((char*)pos < (char*)idx || (char*)pos + size < (char*)idx ||
2211 (char*)pos > (char*)idx + sizeof(INDEX_BLOCK) -
2214 (char*)pos + size > (char*)idx + sizeof(INDEX_BLOCK) -
2219 if ((char*)pos - (char*)&idx->index >
2228 /* Move everything after pos to pos + size. */
2229 memmove((char*)pos + size, (char*)pos, biu - ((char*)pos -
4538 long long lw, pos;
4675 pos = g_mft_lcn * g_vol->cluster_size;
4679 lw = ntfs_mst_pwrite(g_vol->u.dev, pos, 1, g_vol->mft_record_size, g_buf + i * g_vol->mft_record_size);
4685 pos += g_vol->mft_record_size;
4688 pos = g_mftmirr_lcn * g_vol->cluster_size;
4703 lw = ntfs_mst_pwrite(g_vol->u.dev, pos, 1, g_vol->mft_record_size, g_buf + i * g_vol->mft_record_size);
4709 pos += g_vol->mft_record_size;