Lines Matching refs:request

451 	struct drm_map *request = data;
459 r_list->user_token == (unsigned long)request->handle &&
530 * \param request pointer to a struct drm_buf_desc describing the request.
538 int drm_addbufs_agp(struct drm_device * dev, struct drm_buf_desc * request, cred_t *credp)
558 count = request->count;
559 order = drm_order(request->size);
562 alignment = (request->flags & _DRM_PAGE_ALIGN)
568 agp_offset = dev->agp->base + request->agp_start;
680 request->count = entry->buf_count;
681 request->size = size;
689 static int drm_addbufs_sg(struct drm_device * dev, struct drm_buf_desc * request, cred_t *credp)
715 count = request->count;
716 order = drm_order(request->size);
719 alignment = (request->flags & _DRM_PAGE_ALIGN)
725 agp_offset = request->agp_start;
835 request->count = entry->buf_count;
836 request->size = size;
850 * \param arg pointer to a struct drm_buf_desc request.
861 struct drm_buf_desc *request = data;
867 if (request->flags & _DRM_AGP_BUFFER)
868 ret = drm_addbufs_agp(dev, request, credp);
870 if (request->flags & _DRM_SG_BUFFER)
871 ret = drm_addbufs_sg(dev, request, credp);
897 struct drm_buf_info *request = data;
922 if (request->count >= count) {
926 &request->list[count];
953 request->count = count;
976 struct drm_buf_desc *request = data;
987 request->size, request->low_mark, request->high_mark);
988 order = drm_order(request->size);
993 if (request->low_mark < 0 || request->low_mark > entry->buf_count)
995 if (request->high_mark < 0 || request->high_mark > entry->buf_count)
998 entry->freelist.low_mark = request->low_mark;
999 entry->freelist.high_mark = request->high_mark;
1020 struct drm_buf_free *request = data;
1031 DRM_DEBUG("%d\n", request->count);
1032 for (i = 0; i < request->count; i++) {
1033 if (DRM_COPY_FROM_USER(&idx, &request->list[i], sizeof (idx)))
1074 struct drm_buf_map *request = data;
1097 if (request->count >= dma->buf_count) {
1113 request->virtual = drm_smmap(NULL, size, PROT_READ | PROT_WRITE,
1114 MAP_SHARED, request->fd, foff);
1115 if (request->virtual == NULL) {
1116 DRM_ERROR("request->virtual is NULL");
1121 virtual = (unsigned long) request->virtual;
1125 list32 = (drm_buf_pub_32_t *)(uintptr_t)request->list;
1154 if (DRM_COPY_TO_USER(&request->list[i].idx,
1156 sizeof (request->list[0].idx))) {
1160 if (DRM_COPY_TO_USER(&request->list[i].total,
1162 sizeof (request->list[0].total))) {
1166 if (DRM_COPY_TO_USER(&request->list[i].used, &zero,
1173 if (DRM_COPY_TO_USER(&request->list[i].address,
1184 request->count = dma->buf_count;
1185 DRM_DEBUG("%d buffers, retcode = %d\n", request->count, retcode);