Lines Matching defs:offset

58 		 * Because the kernel-userspace ABI is fixed at a 32-bit offset
60 * lower 32 bits of the map offset for maps of type
76 if ((entry->map->offset & 0xffffffff) ==
77 (map->offset & 0xffffffff))
83 if (entry->map->offset == map->offset)
143 * Adjusts the memory offset to its absolute value according to the mapping
147 static int drm_addmap_core(struct drm_device *dev, resource_size_t offset,
161 map->offset = offset;
174 DRM_DEBUG("offset = 0x%08llx, size = 0x%08lx, type = %d\n",
175 (unsigned long long)map->offset, map->size, map->type);
184 if ((map->offset & (~(resource_size_t)PAGE_MASK)) || (map->size & (~PAGE_MASK))) {
195 if (map->offset + (map->size-1) < map->offset ||
196 map->offset < virt_to_phys(high_memory)) {
223 arch_phys_wc_add(map->offset, map->size);
227 map->handle = ioremap_wc(map->offset,
230 map->handle = ioremap(map->offset, map->size);
259 map->offset = (unsigned long)map->handle;
279 map->offset += dev->hose->mem_space->start;
284 * address if the map's offset isn't already within the
287 if (map->offset < dev->agp->base ||
288 map->offset > dev->agp->base +
290 map->offset += dev->agp->base;
301 if ((map->offset >= entry->bound) &&
302 (map->offset + map->size <= entry->bound + entry->pages * PAGE_SIZE)) {
311 DRM_DEBUG("AGP offset = 0x%08llx, size = 0x%08lx\n",
312 (unsigned long long)map->offset, map->size);
321 map->offset += (unsigned long)dev->sg->virtual;
331 &map->offset,
358 map->offset;
379 int drm_legacy_addmap(struct drm_device *dev, resource_size_t offset,
386 rc = drm_addmap_core(dev, offset, size, type, flags, &list);
429 err = drm_addmap_core(dev, map->offset, map->size, map->type,
459 * Searches for the mapping with the specified offset and copies its information
474 idx = map->offset;
492 map->offset = r_list->map->offset;
560 map->offset);
721 unsigned long offset;
804 offset = 0;
813 buf->offset = (dma->byte_count + offset);
814 buf->bus_address = agp_offset + offset;
815 buf->address = (void *)(agp_offset + offset);
834 offset += alignment;
891 unsigned long offset;
1020 for (offset = 0;
1021 offset + size <= total && entry->buf_count < count;
1022 offset += alignment, ++entry->buf_count) {
1028 buf->offset = (dma->byte_count + byte_count + offset);
1029 buf->address = (void *)(dmah->vaddr + offset);
1030 buf->bus_address = dmah->busaddr + offset;
1106 unsigned long offset;
1182 offset = 0;
1191 buf->offset = (dma->byte_count + offset);
1192 buf->bus_address = agp_offset + offset;
1193 buf->address = (void *)(agp_offset + offset
1213 offset += alignment;
1501 * offset equal to 0, which drm_mmap() interprets as PCI buffers and calls
1577 unsigned long address = virtual + buf->offset; /* *** */