Lines Matching refs:m32
180 drm_map32_t m32; in compat_drm_getmap() local
184 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_getmap()
187 map.offset = m32.offset; in compat_drm_getmap()
192 m32.offset = map.offset; in compat_drm_getmap()
193 m32.size = map.size; in compat_drm_getmap()
194 m32.type = map.type; in compat_drm_getmap()
195 m32.flags = map.flags; in compat_drm_getmap()
196 m32.handle = ptr_to_compat((void __user *)map.handle); in compat_drm_getmap()
197 m32.mtrr = map.mtrr; in compat_drm_getmap()
198 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_getmap()
208 drm_map32_t m32; in compat_drm_addmap() local
212 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_addmap()
215 map.offset = m32.offset; in compat_drm_addmap()
216 map.size = m32.size; in compat_drm_addmap()
217 map.type = m32.type; in compat_drm_addmap()
218 map.flags = m32.flags; in compat_drm_addmap()
225 m32.offset = map.offset; in compat_drm_addmap()
226 m32.mtrr = map.mtrr; in compat_drm_addmap()
227 m32.handle = ptr_to_compat((void __user *)map.handle); in compat_drm_addmap()
228 if (map.handle != compat_ptr(m32.handle)) in compat_drm_addmap()
230 map.handle, m32.type, m32.offset); in compat_drm_addmap()
232 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_addmap()