Home
last modified time | relevance | path

Searched refs:rom (Results 1 – 25 of 39) sorted by relevance

12

/drivers/gpu/drm/qxl/
Dqxl_kms.c38 struct qxl_rom *rom = qdev->rom; in qxl_check_device() local
40 if (rom->magic != 0x4f525851) { in qxl_check_device()
41 DRM_ERROR("bad rom signature %x\n", rom->magic); in qxl_check_device()
45 DRM_INFO("Device Version %d.%d\n", rom->id, rom->update_id); in qxl_check_device()
46 DRM_INFO("Compression level %d log level %d\n", rom->compression_level, in qxl_check_device()
47 rom->log_level); in qxl_check_device()
49 rom->num_io_pages, rom->pages_offset); in qxl_check_device()
51 rom->surface0_area_size, rom->draw_area_offset); in qxl_check_device()
53 qdev->vram_size = rom->surface0_area_size; in qxl_check_device()
54 DRM_INFO("RAM header offset: 0x%x\n", rom->ram_header_offset); in qxl_check_device()
[all …]
Dqxl_ioctl.c192 draw->mm_time = qdev->rom->mm_clock; in qxl_process_single_command()
352 param->value = qdev->rom->n_surfaces; in qxl_getparam_ioctl()
379 if (qdev->rom->client_capabilities[byte] & (1 << idx)) in qxl_clientcap_ioctl()
Dqxl_display.c82 num_monitors = qdev->rom->client_monitors_config.count; in qxl_display_copy_rom_client_monitors_config()
83 crc = crc32(0, (const uint8_t *)&qdev->rom->client_monitors_config, in qxl_display_copy_rom_client_monitors_config()
84 sizeof(qdev->rom->client_monitors_config)); in qxl_display_copy_rom_client_monitors_config()
85 if (crc != qdev->rom->client_monitors_config_crc) in qxl_display_copy_rom_client_monitors_config()
96 num_monitors = qdev->rom->client_monitors_config.count; in qxl_display_copy_rom_client_monitors_config()
110 &qdev->rom->client_monitors_config.heads[i]; in qxl_display_copy_rom_client_monitors_config()
Dqxl_cmd.c435 if (handle >= qdev->rom->n_surfaces) { in qxl_surface_id_alloc()
631 for (i = start; i < start + qdev->rom->n_surfaces; i++) { in qxl_reap_surface_id()
633 int surfid = i % qdev->rom->n_surfaces; in qxl_reap_surface_id()
Dqxl_ttm.c207 num_io_pages = qdev->rom->ram_header_offset / PAGE_SIZE; in qxl_ttm_init()
/drivers/scsi/isci/
Dprobe_roms.c44 struct isci_orom *rom = NULL; in isci_request_oprom() local
55 rom = devm_kzalloc(&pdev->dev, sizeof(*rom), GFP_KERNEL); in isci_request_oprom()
56 if (!rom) { in isci_request_oprom()
63 for (i = 0; i < len && rom; i += ISCI_OEM_SIG_SIZE) { in isci_request_oprom()
73 sizeof(*rom)); in isci_request_oprom()
75 memcpy_fromio(rom, in isci_request_oprom()
84 tmp = (u8 *)rom; in isci_request_oprom()
85 for (j = 0; j < sizeof(*rom); j++, tmp++) in isci_request_oprom()
95 if (memcmp(rom->hdr.signature, in isci_request_oprom()
108 rom = NULL; in isci_request_oprom()
[all …]
/drivers/pci/
Drom.c83 static size_t pci_get_rom_size(struct pci_dev *pdev, void __iomem *rom, in pci_get_rom_size() argument
90 image = rom; in pci_get_rom_size()
110 if (image >= rom + size) in pci_get_rom_size()
122 return min((size_t)(image - rom), size); in pci_get_rom_size()
140 void __iomem *rom; in pci_map_rom() local
155 rom = ioremap(start, *size); in pci_map_rom()
156 if (!rom) in pci_map_rom()
164 *size = pci_get_rom_size(pdev, rom, *size); in pci_map_rom()
168 return rom; in pci_map_rom()
171 iounmap(rom); in pci_map_rom()
[all …]
Dpci-sysfs.c1295 void __iomem *rom; in pci_read_rom() local
1301 rom = pci_map_rom(pdev, &size); /* size starts out as PCI window size */ in pci_read_rom()
1302 if (!rom || !size) in pci_read_rom()
1311 memcpy_fromio(buf, rom + off, count); in pci_read_rom()
1313 pci_unmap_rom(pdev, rom); in pci_read_rom()
1317 static BIN_ATTR(rom, 0600, pci_read_rom, pci_write_rom, 0);
DMakefile7 pci-sysfs.o rom.o setup-res.o irq.o vpd.o \
/drivers/w1/slaves/
Dw1_therm.c163 int (*convert)(u8 rom[9]);
185 uint8_t rom[9]; member
202 u8 rom[9]; member
649 info.rom[4] &= ~W1_THERM_RESOLUTION_MASK; in w1_DS18B20_set_resolution()
650 info.rom[4] |= val; in w1_DS18B20_set_resolution()
653 ret = w1_DS18B20_write_data(sl, info.rom + 2); in w1_DS18B20_set_resolution()
666 if ((info2.rom[4] & W1_THERM_RESOLUTION_MASK) == (info.rom[4] & W1_THERM_RESOLUTION_MASK)) in w1_DS18B20_set_resolution()
684 resolution = ((info.rom[4] & W1_THERM_RESOLUTION_MASK) >> W1_THERM_RESOLUTION_SHIFT) in w1_DS18B20_get_resolution()
705 static inline int w1_DS18B20_convert_temp(u8 rom[9]) in w1_DS18B20_convert_temp()
711 bv = le16_to_cpup((__le16 *)rom); in w1_DS18B20_convert_temp()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dshadowpci.c29 void __iomem *rom; member
38 memcpy_fromio(bios->data + offset, priv->rom + offset, length); in pcirom_read()
48 pci_unmap_rom(priv->pdev, priv->rom); in pcirom_fini()
70 (priv->rom = pci_map_rom(pdev, &priv->size))) { in pcirom_init()
104 if (!pdev->rom || pdev->romlen == 0) in platform_init()
110 (priv->rom = ioremap(pdev->rom, pdev->romlen))) in platform_init()
123 iounmap(priv->rom); in platform_fini()
/drivers/firmware/efi/libstub/
Dx86-stub.c45 struct pci_setup_rom *rom = NULL; in preserve_pci_rom_image() local
63 size = romsize + sizeof(*rom); in preserve_pci_rom_image()
66 (void **)&rom); in preserve_pci_rom_image()
72 memset(rom, 0, sizeof(*rom)); in preserve_pci_rom_image()
74 rom->data.type = SETUP_PCI; in preserve_pci_rom_image()
75 rom->data.len = size - sizeof(struct setup_data); in preserve_pci_rom_image()
76 rom->data.next = 0; in preserve_pci_rom_image()
77 rom->pcilen = romsize; in preserve_pci_rom_image()
78 *__rom = rom; in preserve_pci_rom_image()
81 PCI_VENDOR_ID, 1, &rom->vendor); in preserve_pci_rom_image()
[all …]
/drivers/firewire/
Dcore-device.c508 u32 *rom, *stack; in read_config_rom() local
512 rom = kmalloc(sizeof(*rom) * MAX_CONFIG_ROM_SIZE + in read_config_rom()
514 if (rom == NULL) in read_config_rom()
517 stack = &rom[MAX_CONFIG_ROM_SIZE]; in read_config_rom()
518 memset(rom, 0, sizeof(*rom) * MAX_CONFIG_ROM_SIZE); in read_config_rom()
524 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom()
535 if (i == 0 && rom[i] == 0) { in read_config_rom()
552 if ((rom[2] & 0x7) < device->max_speed || in read_config_rom()
594 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom()
597 end = i + (rom[i] >> 16) + 1; in read_config_rom()
[all …]
/drivers/video/
Dsticore.c603 static int sti_search_font(struct sti_cooked_rom *rom, int height, int width) in sti_search_font() argument
608 for (font = rom->font_start; font; font = font->next_font, i++) { in sti_search_font()
616 static struct sti_cooked_font *sti_select_font(struct sti_cooked_rom *rom) in sti_select_font() argument
623 font = sti_select_fbfont(rom, font_name); in sti_select_font()
629 font_index = sti_search_font(rom, in sti_select_font()
632 for (font = rom->font_start, i = font_index - 1; in sti_select_font()
639 return rom->font_start; in sti_select_font()
645 struct sti_rom *rom = sti->rom->raw; in sti_dump_rom() local
650 rom->graphics_id[0], in sti_dump_rom()
651 rom->graphics_id[1], in sti_dump_rom()
[all …]
/drivers/zorro/
Dzorro.c166 z->rom = zi->rom; in amiga_zorro_probe()
167 z->id = (be16_to_cpu(z->rom.er_Manufacturer) << 16) | in amiga_zorro_probe()
168 (z->rom.er_Product << 8); in amiga_zorro_probe()
184 if (error && !(z->rom.er_Type & ERTF_MEMLIST)) in amiga_zorro_probe()
191 switch (z->rom.er_Type & ERT_TYPEMASK) { in amiga_zorro_probe()
218 if (z->rom.er_Type & ERTF_MEMLIST) in amiga_zorro_probe()
Dzorro-sysfs.c37 zorro_config_attr(type, rom.er_Type, "0x%02x\n");
47 return sprintf(buf, "0x%08x\n", be32_to_cpu(z->rom.er_SerialNumber)); in serial_show()
92 cd.cd_Rom = z->rom; in zorro_read_config()
Dproc.c46 cd.cd_Rom = z->rom; in proc_bus_zorro_read()
87 z->rom.er_Type); in zorro_seq_show()
/drivers/usb/host/
Dxhci-pci-renesas.c54 const u32 *fw, size_t step, bool rom) in renesas_fw_download_image() argument
62 if (rom) in renesas_fw_download_image()
548 bool rom; in renesas_load_fw() local
551 rom = renesas_check_rom(pdev); in renesas_load_fw()
552 if (rom) { in renesas_load_fw()
557 rom = renesas_setup_rom(pdev, fw); in renesas_load_fw()
558 if (!rom) { in renesas_load_fw()
/drivers/video/backlight/
Dlp855x_bl.c345 struct lp855x_rom_data *rom; in lp855x_parse_dt() local
349 rom = devm_kcalloc(dev, rom_length, sizeof(*rom), GFP_KERNEL); in lp855x_parse_dt()
350 if (!rom) in lp855x_parse_dt()
354 of_property_read_u8(child, "rom-addr", &rom[i].addr); in lp855x_parse_dt()
355 of_property_read_u8(child, "rom-val", &rom[i].val); in lp855x_parse_dt()
360 pdata->rom_data = &rom[0]; in lp855x_parse_dt()
/drivers/gpu/drm/mgag200/
Dmgag200_g200.c368 unsigned char __iomem *rom; in mgag200_g200_init_refclk() local
376 rom = pci_map_rom(pdev, &size); in mgag200_g200_init_refclk()
377 if (!rom) in mgag200_g200_init_refclk()
383 memcpy_fromio(bios, rom, size); in mgag200_g200_init_refclk()
393 pci_unmap_rom(pdev, rom); in mgag200_g200_init_refclk()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_bios.c198 phys_addr_t rom = adev->pdev->rom; in amdgpu_read_platform_bios() local
204 if (!rom || romlen == 0) in amdgpu_read_platform_bios()
211 bios = ioremap(rom, romlen); in amdgpu_read_platform_bios()
/drivers/gpu/drm/radeon/
Dradeon_bios.c111 phys_addr_t rom = rdev->pdev->rom; in radeon_read_platform_bios() local
117 if (!rom || romlen == 0) in radeon_read_platform_bios()
124 bios = ioremap(rom, romlen); in radeon_read_platform_bios()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_minidump.c563 struct __mem *rom = &entry->region.mem; in qlcnic_read_rom() local
565 fl_addr = rom->addr; in qlcnic_read_rom()
566 size = rom->size / 4; in qlcnic_read_rom()
585 return rom->size; in qlcnic_read_rom()
1021 struct __mem *rom = &entry->region.mem; in qlcnic_83xx_dump_rom() local
1023 fl_addr = rom->addr; in qlcnic_83xx_dump_rom()
1024 size = rom->size / 4; in qlcnic_83xx_dump_rom()
1028 return rom->size; in qlcnic_83xx_dump_rom()
/drivers/mtd/maps/
DMakefile21 physmap-objs-$(CONFIG_MTD_PHYSMAP_BT1_ROM) += physmap-bt1-rom.o
/drivers/char/hw_random/
DMakefile20 obj-$(CONFIG_HW_RANDOM_OMAP3_ROM) += omap3-rom-rng.o

12