Lines Matching refs:request
46 drm_buf_desc_t request; in radeon_addbufs_agp() local
62 if (copy_from_user(&request, (drm_buf_desc_t *)arg, sizeof(request))) in radeon_addbufs_agp()
65 count = request.count; in radeon_addbufs_agp()
66 order = drm_order(request.size); in radeon_addbufs_agp()
69 alignment = (request.flags & _DRM_PAGE_ALIGN) ? PAGE_ALIGN(size):size; in radeon_addbufs_agp()
74 agp_offset = dev->agp->base + request.agp_start; in radeon_addbufs_agp()
184 request.count = entry->buf_count; in radeon_addbufs_agp()
185 request.size = size; in radeon_addbufs_agp()
187 if (copy_to_user((drm_buf_desc_t *)arg, &request, sizeof(request))) in radeon_addbufs_agp()
203 drm_buf_desc_t request; in radeon_addbufs() local
207 if (copy_from_user(&request, (drm_buf_desc_t *)arg, sizeof(request))) in radeon_addbufs()
211 if (request.flags & _DRM_AGP_BUFFER) in radeon_addbufs()
229 drm_buf_map_t request; in radeon_mapbufs() local
244 if (copy_from_user(&request, (drm_buf_map_t *)arg, sizeof(request))) in radeon_mapbufs()
247 if (request.count >= dma->buf_count) { in radeon_mapbufs()
274 request.virtual = (void *)virtual; in radeon_mapbufs()
277 if (copy_to_user(&request.list[i].idx, in radeon_mapbufs()
279 sizeof(request.list[0].idx))) { in radeon_mapbufs()
283 if (copy_to_user(&request.list[i].total, in radeon_mapbufs()
285 sizeof(request.list[0].total))) { in radeon_mapbufs()
289 if (copy_to_user(&request.list[i].used, in radeon_mapbufs()
296 if (copy_to_user(&request.list[i].address, in radeon_mapbufs()
305 request.count = dma->buf_count; in radeon_mapbufs()
306 DRM_DEBUG("%d buffers, retcode = %d\n", request.count, retcode); in radeon_mapbufs()
308 if (copy_to_user((drm_buf_map_t *)arg, &request, sizeof(request))) in radeon_mapbufs()