Lines Matching refs:mem
86 drm_sis_mem_t *mem = data; in sis_drm_alloc() local
108 mem->size = (mem->size + SIS_MM_ALIGN_MASK) >> SIS_MM_ALIGN_SHIFT; in sis_drm_alloc()
112 mem->size, 0, in sis_drm_alloc()
117 item->req.size = mem->size; in sis_drm_alloc()
125 mem->size, 0, in sis_drm_alloc()
141 mem->offset = ((pool == 0) ? in sis_drm_alloc()
144 mem->free = user_key; in sis_drm_alloc()
145 mem->size = mem->size << SIS_MM_ALIGN_SHIFT; in sis_drm_alloc()
155 mem->offset = 0; in sis_drm_alloc()
156 mem->size = 0; in sis_drm_alloc()
157 mem->free = 0; in sis_drm_alloc()
159 DRM_DEBUG("alloc %d, size = %ld, offset = %ld\n", pool, mem->size, in sis_drm_alloc()
160 mem->offset); in sis_drm_alloc()
168 drm_sis_mem_t *mem = data; in sis_drm_free() local
172 obj = idr_find(&dev_priv->object_idr, mem->free); in sis_drm_free()
178 idr_remove(&dev_priv->object_idr, mem->free); in sis_drm_free()
188 DRM_DEBUG("free = 0x%lx\n", mem->free); in sis_drm_free()