Lines Matching defs:info
273 abi16_bo_info(struct nouveau_bo *bo, struct drm_nouveau_gem_info *info)
277 nvbo->map_handle = info->map_handle;
278 bo->handle = info->handle;
279 bo->size = info->size;
280 bo->offset = info->offset;
283 if (info->domain & NOUVEAU_GEM_DOMAIN_VRAM)
285 if (info->domain & NOUVEAU_GEM_DOMAIN_GART)
287 if (!(info->tile_flags & NOUVEAU_GEM_TILE_NONCONTIG))
293 bo->config.nvc0.memtype = (info->tile_flags & 0xff00) >> 8;
294 bo->config.nvc0.tile_mode = info->tile_mode;
297 bo->config.nv50.memtype = (info->tile_flags & 0x07f00) >> 8 |
298 (info->tile_flags & 0x30000) >> 9;
299 bo->config.nv50.tile_mode = info->tile_mode << 4;
301 bo->config.nv04.surf_flags = info->tile_flags & 7;
302 bo->config.nv04.surf_pitch = info->tile_mode;
313 struct drm_nouveau_gem_info *info = &req.info;
317 info->domain |= NOUVEAU_GEM_DOMAIN_VRAM;
319 info->domain |= NOUVEAU_GEM_DOMAIN_GART;
320 if (!info->domain)
321 info->domain |= NOUVEAU_GEM_DOMAIN_VRAM |
325 info->domain |= NOUVEAU_GEM_DOMAIN_MAPPABLE;
328 info->domain |= NOUVEAU_GEM_DOMAIN_COHERENT;
331 info->tile_flags = NOUVEAU_GEM_TILE_NONCONTIG;
333 info->size = bo->size;
338 info->tile_flags = (config->nvc0.memtype & 0xff) << 8;
339 info->tile_mode = config->nvc0.tile_mode;
342 info->tile_flags = (config->nv50.memtype & 0x07f) << 8 |
344 info->tile_mode = config->nv50.tile_mode >> 4;
346 info->tile_flags = config->nv04.surf_flags & 7;
347 info->tile_mode = config->nv04.surf_pitch;
352 info->tile_flags &= 0x0000ff00;
357 abi16_bo_info(bo, &req.info);