Searched refs:rom (Results 1 - 25 of 54) sorted by relevance

123

/linux-master/arch/x86/include/asm/
H A Dprobe_roms.h7 extern void pci_unmap_biosrom(void __iomem *rom);
/linux-master/drivers/pci/
H A Drom.c75 * @rom: kernel virtual pointer to image of ROM
83 static size_t pci_get_rom_size(struct pci_dev *pdev, void __iomem *rom, argument
90 image = rom;
110 if (image >= rom + size)
122 return min((size_t)(image - rom), size);
140 void __iomem *rom; local
155 rom = ioremap(start, *size);
156 if (!rom)
164 *size = pci_get_rom_size(pdev, rom, *size);
168 return rom;
187 pci_unmap_rom(struct pci_dev *pdev, void __iomem *rom) argument
[all...]
H A DMakefile7 rom.o setup-res.o irq.o vpd.o \
/linux-master/arch/x86/kernel/
H A Dprobe_roms.c123 const void *rom; local
128 rom = isa_bus_to_virt(res->start);
129 if (get_kernel_nofault(offset, rom + 0x18) != 0)
132 if (get_kernel_nofault(vendor, rom + offset + 0x4) != 0)
135 if (get_kernel_nofault(device, rom + offset + 0x6) != 0)
143 if (get_kernel_nofault(list, rom + offset + 0x8) == 0 &&
144 get_kernel_nofault(rev, rom + offset + 0xc) == 0 &&
146 probe_list(pdev, vendor, rom + offset + list)) {
182 static int __init romsignature(const unsigned char *rom) argument
184 const unsigned short * const ptr = (const unsigned short *)rom;
190 romchecksum(const unsigned char *rom, unsigned long length) argument
202 const unsigned char *rom; local
[all...]
/linux-master/drivers/gpu/drm/qxl/
H A Dqxl_kms.c38 struct qxl_rom *rom = qdev->rom; local
40 if (rom->magic != 0x4f525851) {
41 DRM_ERROR("bad rom signature %x\n", rom->magic);
45 DRM_INFO("Device Version %d.%d\n", rom->id, rom->update_id);
46 DRM_INFO("Compression level %d log level %d\n", rom->compression_level,
47 rom->log_level);
49 rom
[all...]
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dshadowpci.c29 void __iomem *rom; member in struct:priv
38 memcpy_fromio(bios->data + offset, priv->rom + offset, length);
48 pci_unmap_rom(priv->pdev, priv->rom);
70 (priv->rom = pci_map_rom(pdev, &priv->size))) {
104 if (!pdev->rom || pdev->romlen == 0)
110 (priv->rom = ioremap(pdev->rom, pdev->romlen)))
123 iounmap(priv->rom);
/linux-master/drivers/scsi/isci/
H A Dprobe_roms.c44 struct isci_orom *rom = NULL; local
55 rom = devm_kzalloc(&pdev->dev, sizeof(*rom), GFP_KERNEL);
56 if (!rom) {
63 for (i = 0; i < len && rom; i += ISCI_OEM_SIG_SIZE) {
73 sizeof(*rom));
75 memcpy_fromio(rom,
84 tmp = (u8 *)rom;
85 for (j = 0; j < sizeof(*rom); j++, tmp++)
95 if (memcmp(rom
170 struct isci_orom *rom; local
[all...]
/linux-master/sound/isa/gus/
H A Dgus_dram.c52 int rom)
62 snd_gf1_write8(gus, SNDRV_GF1_GB_MEMORY_CONTROL, rom ? 0x03 : 0x01);
84 int rom)
86 return snd_gus_dram_peek(gus, buffer, address, size, rom);
50 snd_gus_dram_peek(struct snd_gus_card *gus, char __user *_buffer, unsigned int address, unsigned int size, int rom) argument
82 snd_gus_dram_read(struct snd_gus_card *gus, char __user *buffer, unsigned int address, unsigned int size, int rom) argument
H A Dgus_mem_proc.c13 int rom; /* data are in ROM */ member in struct:gus_proc_private
28 err = snd_gus_dram_read(gus, buf, pos, count, priv->rom);
73 priv->rom = 1;
75 sprintf(name, "gus-rom-%i", idx);
/linux-master/drivers/zorro/
H A Dzorro.c166 z->rom = zi->rom;
167 z->id = (be16_to_cpu(z->rom.er_Manufacturer) << 16) |
168 (z->rom.er_Product << 8);
184 if (error && !(z->rom.er_Type & ERTF_MEMLIST))
191 switch (z->rom.er_Type & ERT_TYPEMASK) {
218 if (z->rom.er_Type & ERTF_MEMLIST)
H A 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));
92 cd.cd_Rom = z->rom;
H A Dproc.c46 cd.cd_Rom = z->rom;
87 z->rom.er_Type);
/linux-master/drivers/w1/slaves/
H A Dw1_therm.c163 int (*convert)(u8 rom[9]);
173 * @rom: ROM device id (64bit Lasered ROM code + 1 CRC byte)
185 uint8_t rom[9]; member in struct:w1_therm_family_data
197 * @rom: read device data (8 data bytes + 1 CRC byte)
198 * @crc: computed crc from rom
202 u8 rom[9]; member in struct:therm_info
649 info.rom[4] &= ~W1_THERM_RESOLUTION_MASK;
650 info.rom[4] |= val;
653 ret = w1_DS18B20_write_data(sl, info.rom + 2);
666 if ((info2.rom[
705 w1_DS18B20_convert_temp(u8 rom[9]) argument
733 w1_DS18S20_convert_temp(u8 rom[9]) argument
765 w1_DS1825_convert_temp(u8 rom[9]) argument
949 temperature_from_RAM(struct w1_slave *sl, u8 rom[9]) argument
[all...]
/linux-master/arch/m68k/amiga/
H A Dplatform.c71 const struct ExpansionRom *rom = &zorro_autocon_init[i].rom; local
72 if (be16_to_cpu(rom->er_Manufacturer) == ZORRO_MANUF(id) &&
73 rom->er_Product == ZORRO_PROD(id))
/linux-master/arch/x86/pci/
H A Dcommon.c580 } else if (!strcmp(str, "rom")) {
645 struct pci_setup_rom *rom; local
652 data = memremap(pa_data, sizeof(*rom), MEMREMAP_WB);
657 rom = (struct pci_setup_rom *)data;
659 if ((pci_domain_nr(dev->bus) == rom->segment) &&
660 (dev->bus->number == rom->bus) &&
661 (PCI_SLOT(dev->devfn) == rom->device) &&
662 (PCI_FUNC(dev->devfn) == rom->function) &&
663 (dev->vendor == rom->vendor) &&
664 (dev->device == rom
[all...]
/linux-master/include/linux/
H A Dzorro.h30 struct ExpansionRom rom; member in struct:zorro_dev
77 struct ExpansionRom rom; member in struct:zorro_dev_init
/linux-master/drivers/video/
H A Dsticore.c603 static int sti_search_font(struct sti_cooked_rom *rom, int height, int width) argument
608 for (font = rom->font_start; font; font = font->next_font, i++) {
616 static struct sti_cooked_font *sti_select_font(struct sti_cooked_rom *rom) argument
623 font = sti_select_fbfont(rom, font_name);
629 font_index = sti_search_font(rom,
632 for (font = rom->font_start, i = font_index - 1;
639 return rom->font_start;
645 struct sti_rom *rom = sti->rom->raw; local
650 rom
[all...]
/linux-master/drivers/firmware/efi/libstub/
H A Dx86-stub.c45 struct pci_setup_rom *rom = NULL; local
63 size = romsize + sizeof(*rom);
66 (void **)&rom);
68 efi_err("Failed to allocate memory for 'rom'\n");
72 memset(rom, 0, sizeof(*rom));
74 rom->data.type = SETUP_PCI;
75 rom->data.len = size - sizeof(struct setup_data);
76 rom->data.next = 0;
77 rom
155 struct pci_setup_rom *rom; local
[all...]
/linux-master/drivers/firewire/
H A Dcore-device.c588 u32 *rom, *stack; local
592 rom = kmalloc(sizeof(*rom) * MAX_CONFIG_ROM_SIZE +
594 if (rom == NULL)
597 stack = &rom[MAX_CONFIG_ROM_SIZE];
598 memset(rom, 0, sizeof(*rom) * MAX_CONFIG_ROM_SIZE);
604 ret = read_rom(device, generation, i, &rom[i]);
610 * rom to indicate that they are booting (for example,
615 if (i == 0 && rom[
[all...]
/linux-master/drivers/usb/host/
H A Dxhci-pci-renesas.c54 const u32 *fw, size_t step, bool rom)
62 if (rom)
449 "setting external rom failed: %x\n", status);
548 bool rom; local
551 rom = renesas_check_rom(pdev);
552 if (rom) {
557 rom = renesas_setup_rom(pdev, fw);
558 if (!rom) {
53 renesas_fw_download_image(struct pci_dev *dev, const u32 *fw, size_t step, bool rom) argument
/linux-master/drivers/mtd/maps/
H A DMakefile21 physmap-objs-$(CONFIG_MTD_PHYSMAP_BT1_ROM) += physmap-bt1-rom.o
/linux-master/drivers/gpu/drm/mgag200/
H A Dmgag200_g200.c368 unsigned char __iomem *rom; local
376 rom = pci_map_rom(pdev, &size);
377 if (!rom)
383 memcpy_fromio(bios, rom, size);
393 pci_unmap_rom(pdev, rom);
/linux-master/drivers/video/backlight/
H A Dlp855x_bl.c345 struct lp855x_rom_data *rom; local
349 rom = devm_kcalloc(dev, rom_length, sizeof(*rom), GFP_KERNEL);
350 if (!rom)
354 of_property_read_u8(child, "rom-addr", &rom[i].addr);
355 of_property_read_u8(child, "rom-val", &rom[i].val);
360 pdata->rom_data = &rom[0];
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_bios.c86 * the IGP rom is not accessible via the rom bar as the IGP rom is
88 * copy of the igp rom at the start of vram if a discrete card is
134 /* XXX: some cards may return 0 for rom size? ddx has a workaround */
198 phys_addr_t rom = adev->pdev->rom; local
204 if (!rom || romlen == 0)
211 bios = ioremap(rom, romlen);
462 /* helper function for soc15 and onwards to read bios from rom */
[all...]
/linux-master/sound/pci/ctxfi/
H A Dctsrc.h58 int (*set_rom)(struct src *src, unsigned int rom);

Completed in 1433 milliseconds

123