Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/arch/x86/kernel/
Dprobe_roms.c122 const void *rom; in find_oprom() local
127 rom = isa_bus_to_virt(res->start); in find_oprom()
128 if (get_kernel_nofault(offset, rom + 0x18) != 0) in find_oprom()
131 if (get_kernel_nofault(vendor, rom + offset + 0x4) != 0) in find_oprom()
134 if (get_kernel_nofault(device, rom + offset + 0x6) != 0) in find_oprom()
142 if (get_kernel_nofault(list, rom + offset + 0x8) == 0 && in find_oprom()
143 get_kernel_nofault(rev, rom + offset + 0xc) == 0 && in find_oprom()
145 probe_list(pdev, vendor, rom + offset + list)) { in find_oprom()
181 static int __init romsignature(const unsigned char *rom) in romsignature() argument
183 const unsigned short * const ptr = (const unsigned short *)rom; in romsignature()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_kms.c40 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()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/backlight/
Dlp855x.txt13 - rom-addr: Register address of ROM area to be updated (u8)
14 - rom-val: Register value to be updated (u8)
30 rom-addr = /bits/ 8 <0x14>;
31 rom-val = /bits/ 8 <0xcf>;
36 rom-addr = /bits/ 8 <0x15>;
37 rom-val = /bits/ 8 <0xc7>;
42 rom-addr = /bits/ 8 <0x19>;
43 rom-val = /bits/ 8 <0x0f>;
69 rom-addr = /bits/ 8 <0x14>;
70 rom-val = /bits/ 8 <0xcf>;
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dqcom-msm8974-sony-xperia-castor.dts540 rom-addr = /bits/ 8 <0xa0>;
541 rom-val = /bits/ 8 <0xff>;
544 rom-addr = /bits/ 8 <0xa1>;
545 rom-val = /bits/ 8 <0x3f>;
548 rom-addr = /bits/ 8 <0xa2>;
549 rom-val = /bits/ 8 <0x20>;
552 rom-addr = /bits/ 8 <0xa3>;
553 rom-val = /bits/ 8 <0x5e>;
556 rom-addr = /bits/ 8 <0xa4>;
557 rom-val = /bits/ 8 <0x02>;
[all …]
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/
Dx86-stub.c31 struct pci_setup_rom *rom = NULL; in preserve_pci_rom_image() local
49 size = romsize + sizeof(*rom); in preserve_pci_rom_image()
52 (void **)&rom); in preserve_pci_rom_image()
58 memset(rom, 0, sizeof(*rom)); in preserve_pci_rom_image()
60 rom->data.type = SETUP_PCI; in preserve_pci_rom_image()
61 rom->data.len = size - sizeof(struct setup_data); in preserve_pci_rom_image()
62 rom->data.next = 0; in preserve_pci_rom_image()
63 rom->pcilen = pci->romsize; in preserve_pci_rom_image()
64 *__rom = rom; in preserve_pci_rom_image()
67 PCI_VENDOR_ID, 1, &rom->vendor); in preserve_pci_rom_image()
[all …]
/kernel/linux/linux-5.10/drivers/w1/slaves/
Dw1_therm.c163 int (*convert)(u8 rom[9]);
185 uint8_t rom[9]; member
202 u8 rom[9]; member
613 info.rom[4] &= ~W1_THERM_RESOLUTION_MASK; in w1_DS18B20_set_resolution()
614 info.rom[4] |= val; in w1_DS18B20_set_resolution()
617 ret = w1_DS18B20_write_data(sl, info.rom + 2); in w1_DS18B20_set_resolution()
630 if ((info2.rom[4] & W1_THERM_RESOLUTION_MASK) == (info.rom[4] & W1_THERM_RESOLUTION_MASK)) in w1_DS18B20_set_resolution()
648 resolution = ((info.rom[4] & W1_THERM_RESOLUTION_MASK) >> W1_THERM_RESOLUTION_SHIFT) in w1_DS18B20_get_resolution()
668 static inline int w1_DS18B20_convert_temp(u8 rom[9]) in w1_DS18B20_convert_temp()
674 bv = le16_to_cpup((__le16 *)rom); in w1_DS18B20_convert_temp()
[all …]
/kernel/linux/linux-5.10/drivers/video/console/
Dsticore.c553 static int sti_search_font(struct sti_cooked_rom *rom, int height, int width) in sti_search_font() argument
558 for (font = rom->font_start; font; font = font->next_font, i++) { in sti_search_font()
566 static struct sti_cooked_font *sti_select_font(struct sti_cooked_rom *rom) in sti_select_font() argument
573 font = sti_select_fbfont(rom, font_name); in sti_select_font()
579 font_index = sti_search_font(rom, in sti_select_font()
582 for (font = rom->font_start, i = font_index - 1; in sti_select_font()
589 return rom->font_start; in sti_select_font()
595 struct sti_rom *rom = sti->rom->raw; in sti_dump_rom() local
600 rom->graphics_id[0], in sti_dump_rom()
601 rom->graphics_id[1], in sti_dump_rom()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/firewire/
Dcore-device.c511 u32 *rom, *stack; in read_config_rom() local
515 rom = kmalloc(sizeof(*rom) * MAX_CONFIG_ROM_SIZE + in read_config_rom()
517 if (rom == NULL) in read_config_rom()
520 stack = &rom[MAX_CONFIG_ROM_SIZE]; in read_config_rom()
521 memset(rom, 0, sizeof(*rom) * MAX_CONFIG_ROM_SIZE); in read_config_rom()
527 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom()
538 if (i == 0 && rom[i] == 0) { in read_config_rom()
555 if ((rom[2] & 0x7) < device->max_speed || in read_config_rom()
597 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom()
600 end = i + (rom[i] >> 16) + 1; in read_config_rom()
[all …]
/kernel/linux/linux-5.10/sound/isa/gus/
Dgus_dram.c52 int rom) in snd_gus_dram_peek() argument
62 snd_gf1_write8(gus, SNDRV_GF1_GB_MEMORY_CONTROL, rom ? 0x03 : 0x01); in snd_gus_dram_peek()
84 int rom) in snd_gus_dram_read() argument
86 return snd_gus_dram_peek(gus, buffer, address, size, rom); in snd_gus_dram_read()
Dgus_mem_proc.c13 int rom; /* data are in ROM */ member
28 err = snd_gus_dram_read(gus, buf, pos, count, priv->rom); in snd_gf1_mem_proc_dump()
73 priv->rom = 1; in snd_gf1_mem_proc_init()
/kernel/linux/linux-5.10/arch/x86/pci/
Dcommon.c637 struct pci_setup_rom *rom; in pcibios_add_device() local
644 data = memremap(pa_data, sizeof(*rom), MEMREMAP_WB); in pcibios_add_device()
649 rom = (struct pci_setup_rom *)data; in pcibios_add_device()
651 if ((pci_domain_nr(dev->bus) == rom->segment) && in pcibios_add_device()
652 (dev->bus->number == rom->bus) && in pcibios_add_device()
653 (PCI_SLOT(dev->devfn) == rom->device) && in pcibios_add_device()
654 (PCI_FUNC(dev->devfn) == rom->function) && in pcibios_add_device()
655 (dev->vendor == rom->vendor) && in pcibios_add_device()
656 (dev->device == rom->devid)) { in pcibios_add_device()
657 dev->rom = pa_data + in pcibios_add_device()
[all …]
/kernel/linux/linux-5.10/arch/m68k/amiga/
Dplatform.c71 const struct ExpansionRom *rom = &zorro_autocon_init[i].rom; in z_dev_present() local
72 if (be16_to_cpu(rom->er_Manufacturer) == ZORRO_MANUF(id) && in z_dev_present()
73 rom->er_Product == ZORRO_PROD(id)) in z_dev_present()
/kernel/linux/linux-5.10/arch/arm64/boot/dts/nvidia/
Dtegra210-p2371-2180.dts71 rom-addr = /bits/ 8 <0x14>;
72 rom-val = /bits/ 8 <0x87>;
77 rom-addr = /bits/ 8 <0x13>;
78 rom-val = /bits/ 8 <0x01>;
/kernel/linux/linux-5.10/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()
552 bool rom; in renesas_load_fw() local
555 rom = renesas_check_rom(pdev); in renesas_load_fw()
556 if (rom) { in renesas_load_fw()
561 rom = renesas_setup_rom(pdev, fw); in renesas_load_fw()
562 if (!rom) { in renesas_load_fw()
/kernel/linux/linux-5.10/drivers/video/backlight/
Dlp855x_bl.c369 struct lp855x_rom_data *rom; in lp855x_parse_dt() local
373 rom = devm_kcalloc(dev, rom_length, sizeof(*rom), GFP_KERNEL); in lp855x_parse_dt()
374 if (!rom) in lp855x_parse_dt()
378 of_property_read_u8(child, "rom-addr", &rom[i].addr); in lp855x_parse_dt()
379 of_property_read_u8(child, "rom-val", &rom[i].val); in lp855x_parse_dt()
384 pdata->rom_data = &rom[0]; in lp855x_parse_dt()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/rng/
Domap3_rom_rng.txt9 Definition: must be "nokia,n900-rom-rng"
24 compatible = "nokia,n900-rom-rng";
/kernel/linux/linux-5.10/drivers/gpu/drm/mgag200/
Dmgag200_drv.c222 unsigned char __iomem *rom; in mgag200_g200_init_refclk() local
230 rom = pci_map_rom(dev->pdev, &size); in mgag200_g200_init_refclk()
231 if (!rom) in mgag200_g200_init_refclk()
237 memcpy_fromio(bios, rom, size); in mgag200_g200_init_refclk()
248 pci_unmap_rom(dev->pdev, rom); in mgag200_g200_init_refclk()
/kernel/linux/linux-5.10/include/linux/
Dzorro.h30 struct ExpansionRom rom; member
78 struct ExpansionRom rom; member
/kernel/linux/linux-5.10/Documentation/w1/masters/
Dds2490.rst36 1 reset bus, 2 write the match rom command and slave rom id, 3 block
37 write and read data. The write buffer needs to have the match rom
38 command and slave rom id prepended to the front of the requested
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_bios.c195 phys_addr_t rom = adev->pdev->rom; in amdgpu_read_platform_bios() local
201 if (!rom || romlen == 0) in amdgpu_read_platform_bios()
208 bios = ioremap(rom, romlen); in amdgpu_read_platform_bios()

1234