Lines Matching refs:request
215 drm_map_t request;
228 request.offset = request32.offset;
229 request.size = request32.size;
230 request.type = request32.type;
231 request.flags = request32.flags;
232 request.mtrr = request32.mtrr;
235 DRM_COPYFROM_WITH_RETURN(&request,
236 (void *)data, sizeof (request));
238 err = drm_addmap(dev, request.offset, request.size, request.type,
239 request.flags, &map);
244 request.offset = map->offset;
245 request.size = map->size;
246 request.type = map->type;
247 request.flags = map->flags;
248 request.mtrr = map->mtrr;
249 request.handle = (uintptr_t)map->handle;
254 request32.offset = request.offset;
255 request32.size = (uint32_t)request.size;
256 request32.type = request.type;
257 request32.flags = request.flags;
258 request32.handle = request.handle;
259 request32.mtrr = request.mtrr;
265 &request, sizeof (request));
321 drm_map_t request;
328 request.offset = request32.offset;
329 request.size = request32.size;
330 request.type = request32.type;
331 request.flags = request32.flags;
332 request.handle = request32.handle;
333 request.mtrr = request32.mtrr;
336 DRM_COPYFROM_WITH_RETURN(&request,
337 (void *)data, sizeof (request));
341 if (((uintptr_t)map->handle == (request.handle & 0xffffffff)) &&
410 drm_do_addbufs_agp(drm_device_t *dev, drm_buf_desc_t *request)
429 count = request->count;
430 order = drm_order(request->size);
433 alignment = (request->flags & _DRM_PAGE_ALIGN)
438 agp_offset = dev->agp->base + request->agp_start;
510 request->count = entry->buf_count;
511 request->size = size;
519 drm_do_addbufs_sg(drm_device_t *dev, drm_buf_desc_t *request)
535 count = request->count;
536 order = drm_order(request->size);
539 alignment = (request->flags & _DRM_PAGE_ALIGN)
544 agp_offset = request->agp_start;
602 request->count = entry->buf_count;
603 request->size = size;
610 drm_addbufs_agp(drm_device_t *dev, drm_buf_desc_t *request)
616 if (request->count < 0 || request->count > 4096) {
621 order = drm_order(request->size);
638 ret = drm_do_addbufs_agp(dev, request);
646 drm_addbufs_sg(drm_device_t *dev, drm_buf_desc_t *request)
652 if (request->count < 0 || request->count > 4096) {
657 order = drm_order(request->size);
675 ret = drm_do_addbufs_sg(dev, request);
685 drm_buf_desc_t request;
693 request.count = request32.count;
694 request.size = request32.size;
695 request.low_mark = request32.low_mark;
696 request.high_mark = request32.high_mark;
697 request.flags = request32.flags;
698 request.agp_start = request32.agp_start;
701 DRM_COPYFROM_WITH_RETURN(&request,
702 (void *)data, sizeof (request));
704 if (request.flags & _DRM_AGP_BUFFER)
705 err = drm_addbufs_agp(dev, &request);
706 else if (request.flags & _DRM_SG_BUFFER)
707 err = drm_addbufs_sg(dev, &request);
712 request32.count = request.count;
713 request32.size = request.size;
714 request32.low_mark = request.low_mark;
715 request32.high_mark = request.high_mark;
716 request32.flags = request.flags;
717 request32.agp_start = (uint32_t)request.agp_start;
723 &request, sizeof (request));
734 drm_buf_free_t request;
745 request.count = request32.count;
746 request.list = (int *)(uintptr_t)request32.list;
749 DRM_COPYFROM_WITH_RETURN(&request,
750 (void *)data, sizeof (request));
752 for (i = 0; i < request.count; i++) {
753 if (DRM_COPY_FROM_USER(&idx, &request.list[i], sizeof (idx))) {
795 drm_buf_map_t request;
813 request.count = request32.count;
814 request.virtual = (void *)(uintptr_t)request32.virtual;
815 request.list = (drm_buf_pub_t *)(uintptr_t)request32.list;
816 request.fd = request32.fd;
819 DRM_COPYFROM_WITH_RETURN(&request,
820 (void *)data, sizeof (request));
824 if (request.count < dma->buf_count)
838 request.virtual = drm_smmap(NULL, size, PROT_READ | PROT_WRITE,
839 MAP_SHARED, request.fd, foff);
840 if (request.virtual == NULL) {
841 DRM_ERROR("drm_mapbufs: request.virtual is NULL");
845 vaddr = (unsigned long) request.virtual;
875 if (DRM_COPY_TO_USER(&request.list[i].idx,
876 &dma->buflist[i]->idx, sizeof (request.list[0].idx))) {
879 if (DRM_COPY_TO_USER(&request.list[i].total,
880 &dma->buflist[i]->total, sizeof (request.list[0].total))) {
883 if (DRM_COPY_TO_USER(&request.list[i].used, &zero,
889 ret_tmp = DRM_COPY_TO_USER(&request.list[i].address,
900 request32.virtual = (caddr32_t)(uintptr_t)request.virtual;
905 request.count = dma->buf_count;
907 &request, sizeof (request));