Lines Matching refs:rom
40 struct qxl_rom *rom = qdev->rom; in qxl_check_device() local
42 if (rom->magic != 0x4f525851) { in qxl_check_device()
43 DRM_ERROR("bad rom signature %x\n", rom->magic); in qxl_check_device()
47 DRM_INFO("Device Version %d.%d\n", rom->id, rom->update_id); in qxl_check_device()
48 DRM_INFO("Compression level %d log level %d\n", rom->compression_level, in qxl_check_device()
49 rom->log_level); in qxl_check_device()
51 rom->num_io_pages, rom->pages_offset); in qxl_check_device()
53 rom->surface0_area_size, rom->draw_area_offset); in qxl_check_device()
55 qdev->vram_size = rom->surface0_area_size; in qxl_check_device()
56 DRM_INFO("RAM header offset: 0x%x\n", rom->ram_header_offset); in qxl_check_device()
64 qxl_io_memslot_add(qdev, qdev->rom->slots_start + slot->index); in setup_hw_slot()
83 slot->generation = qdev->rom->slot_generation; in setup_slot()
84 high_bits = (qdev->rom->slots_start + slot->index) in setup_slot()
85 << qdev->rom->slot_gen_bits; in setup_slot()
87 high_bits <<= (64 - (qdev->rom->slot_gen_bits + qdev->rom->slot_id_bits)); in setup_slot()
168 qdev->rom = ioremap(qdev->rom_base, qdev->rom_size); in qxl_device_init()
169 if (!qdev->rom) { in qxl_device_init()
187 qdev->rom->ram_header_offset, in qxl_device_init()
259 (unsigned long)qdev->rom->ram_header_offset); in qxl_device_init()
279 iounmap(qdev->rom); in qxl_device_init()
324 iounmap(qdev->rom); in qxl_device_fini()
325 qdev->rom = NULL; in qxl_device_fini()