Home | History | Annotate | Download | only in netbsd32

Lines Matching defs:req32

435 	drm_buf_free32_t req32;
439 if ((error = copyin(&req32, arg, sizeof(req32))) != 0)
442 req64.count = req32.count;
443 req64.list = NETBSD32PTR64(req32.list);
456 drm_ctx_priv_map32_t req32;
460 if ((error = copyin(&req32, arg, sizeof(req32))) != 0)
463 req64.ctx_id = req32.ctx_id;
464 req64.handle = NETBSD32PTR64(req32.handle);
470 req32.ctx_id = req64.ctx_id;
471 NETBSD32PTR32(req32.handle, req64.handle);
480 drm_ctx_priv_map32_t req32;
483 if ((error = copyin(&req32, arg, sizeof(req32))) != 0)
486 req64.ctx_id = req32.ctx_id;
492 NETBSD32PTR32(req32.handle, req64.handle);
495 return copyout(arg, &req32, sizeof(req32));
657 drm_agp_buffer32_t req32;
661 if ((error = copyin(&req32, arg, sizeof(req32))) != 0)
664 req64.size = req32.size;
665 req64.type = req32.type;
671 req32.handle = req64.handle;
672 req32.physical = req64.physical;
676 return copyout(arg, &req32, sizeof(req32));
682 drm_agp_buffer32_t req32;
687 if ((error = copyin(&req32, arg, sizeof(req32))) != 0)
690 handle = req32.handle;
704 drm_agp_binding32_t req32;
708 if ((error = copyin(&req32, arg, sizeof(req32))) !=0 )
711 req64.handle = req32.handle;
712 req64.offset = req32.offset;
721 drm_agp_binding32_t req32;
725 if ((error = copyin(&req32, arg, sizeof(req32))) != 0)
728 handle = req32.handle;
744 drm_scatter_gather32_t req32;
747 if ((error = copyin(&req32, arg, sizeof(req32))) != 0)
750 req64.size = req32.size;
757 req32.handle = req64.handle >> PAGE_SHIFT;
767 drm_scatter_gather32_t req32;
770 if((error = copyin(&req32, arg, sizeof(req32))) != 0)
773 x = req32.handle;
832 req32to64(union drm_wait_vblank *req64, const drm_wait_vblank32_t *req32)
834 req64->request.type = req32->request.type;
835 req64->request.sequence = req32->request.sequence;
836 req64->request.signal = req32->request.signal;
840 req64to32(drm_wait_vblank32_t *req32, const union drm_wait_vblank *req64)
842 req32->reply.sequence = req64->reply.sequence;
843 req32->reply.tval_sec = req64->reply.tval_sec;
844 req32->reply.tval_usec = req64->reply.tval_usec;
850 drm_wait_vblank32_t req32;
854 if ((error = copyin(&req32, arg, sizeof(req32))) != 0)
857 req32to64(&req64, &req32);
863 req64to32(&req32, &req64);
865 return copyout(arg, &req32, sizeof(req32));
882 map_req32to64(struct drm_mode_fb_cmd2 *req64, struct drm_mode_fb_cmd232 *req32)
884 req64->width = req32->width;
885 req64->height = req32->height;
886 req64->pixel_format = req32->pixel_format;
887 req64->flags = req32->flags;
893 struct drm_mode_fb_cmd232 req32;
897 if ((error = copyin(&req32, arg, sizeof(req32))) != 0)
900 map_req32to64(&req64, &req32);
903 req64.handles[i] = req32.handles[i];
904 req64.pitches[i] = req32.pitches[i];
905 req64.offsets[i] = req32.offsets[i];
906 req64.modifier[i] = req32.modifier[i];
913 req32.fb_id = req64.fb_id;
915 return copyout(arg, &req32, sizeof(req32));