Lines Matching refs:request
153 drm_buf_desc_t request; in drm_addbufs() local
170 if (copy_from_user(&request, in drm_addbufs()
172 sizeof(request))) in drm_addbufs()
175 count = request.count; in drm_addbufs()
176 order = drm_order(request.size); in drm_addbufs()
180 request.count, request.size, size, order, dev->queue_count); in drm_addbufs()
185 alignment = (request.flags & _DRM_PAGE_ALIGN) ? PAGE_ALIGN(size):size; in drm_addbufs()
302 request.count = entry->buf_count; in drm_addbufs()
303 request.size = size; in drm_addbufs()
306 &request, in drm_addbufs()
307 sizeof(request))) in drm_addbufs()
320 drm_buf_info_t request; in drm_infobufs() local
334 if (copy_from_user(&request, in drm_infobufs()
336 sizeof(request))) in drm_infobufs()
345 if (request.count >= count) { in drm_infobufs()
348 if (copy_to_user(&request.list[count].count, in drm_infobufs()
352 copy_to_user(&request.list[count].size, in drm_infobufs()
355 copy_to_user(&request.list[count].low_mark, in drm_infobufs()
360 copy_to_user(&request.list[count] in drm_infobufs()
378 request.count = count; in drm_infobufs()
381 &request, in drm_infobufs()
382 sizeof(request))) in drm_infobufs()
394 drm_buf_desc_t request; in drm_markbufs() local
400 if (copy_from_user(&request, in drm_markbufs()
402 sizeof(request))) in drm_markbufs()
406 request.size, request.low_mark, request.high_mark); in drm_markbufs()
407 order = drm_order(request.size); in drm_markbufs()
411 if (request.low_mark < 0 || request.low_mark > entry->buf_count) in drm_markbufs()
413 if (request.high_mark < 0 || request.high_mark > entry->buf_count) in drm_markbufs()
416 entry->freelist.low_mark = request.low_mark; in drm_markbufs()
417 entry->freelist.high_mark = request.high_mark; in drm_markbufs()
428 drm_buf_free_t request; in drm_freebufs() local
435 if (copy_from_user(&request, in drm_freebufs()
437 sizeof(request))) in drm_freebufs()
440 DRM_DEBUG("%d\n", request.count); in drm_freebufs()
441 for (i = 0; i < request.count; i++) { in drm_freebufs()
443 &request.list[i], in drm_freebufs()
473 drm_buf_map_t request; in drm_mapbufs() local
488 if (copy_from_user(&request, in drm_mapbufs()
490 sizeof(request))) in drm_mapbufs()
493 if (request.count >= dma->buf_count) { in drm_mapbufs()
503 request.virtual = (void *)virtual; in drm_mapbufs()
506 if (copy_to_user(&request.list[i].idx, in drm_mapbufs()
508 sizeof(request.list[0].idx))) { in drm_mapbufs()
512 if (copy_to_user(&request.list[i].total, in drm_mapbufs()
514 sizeof(request.list[0].total))) { in drm_mapbufs()
518 if (copy_to_user(&request.list[i].used, in drm_mapbufs()
525 if (copy_to_user(&request.list[i].address, in drm_mapbufs()
534 request.count = dma->buf_count; in drm_mapbufs()
535 DRM_DEBUG("%d buffers, retcode = %d\n", request.count, retcode); in drm_mapbufs()
538 &request, in drm_mapbufs()
539 sizeof(request))) in drm_mapbufs()