Lines Matching refs:image
35 struct qxl_drm_image *image, in qxl_allocate_chunk() argument
51 list_add_tail(&chunk->head, &image->chunk_list); in qxl_allocate_chunk()
61 struct qxl_drm_image *image; in qxl_image_alloc_objects() local
64 image = kmalloc(sizeof(struct qxl_drm_image), GFP_KERNEL); in qxl_image_alloc_objects()
65 if (!image) in qxl_image_alloc_objects()
68 INIT_LIST_HEAD(&image->chunk_list); in qxl_image_alloc_objects()
70 ret = qxl_alloc_bo_reserved(qdev, release, sizeof(struct qxl_image), &image->bo); in qxl_image_alloc_objects()
72 kfree(image); in qxl_image_alloc_objects()
76 ret = qxl_allocate_chunk(qdev, release, image, sizeof(struct qxl_data_chunk) + stride * height); in qxl_image_alloc_objects()
78 qxl_bo_unref(&image->bo); in qxl_image_alloc_objects()
79 kfree(image); in qxl_image_alloc_objects()
82 *image_ptr = image; in qxl_image_alloc_objects()
109 struct qxl_image *image; in qxl_image_init_helper() local
191 image = ptr; in qxl_image_init_helper()
193 image->descriptor.id = 0; in qxl_image_init_helper()
194 image->descriptor.type = SPICE_IMAGE_TYPE_BITMAP; in qxl_image_init_helper()
196 image->descriptor.flags = 0; in qxl_image_init_helper()
197 image->descriptor.width = width; in qxl_image_init_helper()
198 image->descriptor.height = height; in qxl_image_init_helper()
203 image->u.bitmap.format = SPICE_BITMAP_FMT_1BIT_BE; in qxl_image_init_helper()
206 image->u.bitmap.format = SPICE_BITMAP_FMT_24BIT; in qxl_image_init_helper()
209 image->u.bitmap.format = SPICE_BITMAP_FMT_32BIT; in qxl_image_init_helper()
215 image->u.bitmap.flags = QXL_BITMAP_TOP_DOWN; in qxl_image_init_helper()
216 image->u.bitmap.x = width; in qxl_image_init_helper()
217 image->u.bitmap.y = height; in qxl_image_init_helper()
218 image->u.bitmap.stride = chunk_stride; in qxl_image_init_helper()
219 image->u.bitmap.palette = 0; in qxl_image_init_helper()
220 image->u.bitmap.data = qxl_bo_physical_address(qdev, chunk_bo, 0); in qxl_image_init_helper()