| /pciutils/lib/ |
| H A D | ecam.c | 89 u64 addr; member 140 if (addr + sizeof(*sdt) < addr) in check_and_map_sdt() 232 u64 addr; in find_rsdp_address() local 329 for (addr = ebda & (pagesize-1); addr < (ebda & (pagesize-1)) + 1024; addr += 16) in find_rsdp_address() 358 for (addr = 0x0; addr < 0x20000; addr += 16) in find_rsdp_address() 596 if (addr) 688 if (addr) 689 *addr = ullnum; 818 u64 addr; local 825 addr = cache->addr; [all …]
|
| H A D | i386-ports.c | 137 int addr = 0xcfc + (pos&3); in conf1_read() local 152 buf[0] = intel_inb(addr); in conf1_read() 155 ((u16 *) buf)[0] = cpu_to_le16(intel_inw(addr)); in conf1_read() 169 int addr = 0xcfc + (pos&3); in conf1_write() local 184 intel_outb(buf[0], addr); in conf1_write() 228 int addr = 0xc000 | (d->dev << 8) | pos; in conf2_read() local 246 buf[0] = intel_inb(addr); in conf2_read() 264 int addr = 0xc000 | (d->dev << 8) | pos; in conf2_write() local 282 intel_outb(buf[0], addr); in conf2_write() 285 intel_outw(le16_to_cpu(* (u16 *) buf), addr); in conf2_write() [all …]
|
| H A D | physmem-djgpp.c | 386 physmem_map(struct physmem *physmem, u64 addr, size_t length, int w) in physmem_map() argument 406 if (addr >= 0xffffffffUL || addr + length > 0xffffffffUL) in physmem_map() 502 if (__dpmi_map_device_in_memory_block(&mi, addr + offset) != 0) in physmem_map() 525 if (__dpmi_error == 0x8003 && addr + offset < 1*1024*1024UL) in physmem_map() 528 if (addr + offset + (mi.size << pagesize_shift) > 1*1024*1024UL) in physmem_map() 529 mi.size = (1*1024*1024UL - addr - offset) >> pagesize_shift; in physmem_map() 530 if (__dpmi_map_conventional_memory_in_memory_block(&mi, addr + offset) != 0) in physmem_map() 654 mi.address = addr; in physmem_map() 668 if ((__dpmi_error == 0x0800 || __dpmi_error == 0x8021) && addr < 1*1024*1024UL) in physmem_map() 677 if (addr + length > 1*1024*1024UL) in physmem_map() [all …]
|
| H A D | mmio-ports.c | 53 mmap_regs(struct pci_access *a, u64 addr_reg, u64 data_reg, int data_off, volatile void **addr, vol… in mmap_regs() argument 105 *addr = (unsigned char *)addr_map + (addr_reg & (pagesize-1)); in mmap_regs() 300 volatile void *addr, *data; in conf1_ext_read() local 312 if (!mmap_regs(d->access, addr_reg, data_reg, pos&3, &addr, &data)) in conf1_ext_read() 315 … 0xf00) << 16) | ((d->bus & 0xff) << 16) | (PCI_DEVFN(d->dev, d->func) << 8) | (pos & 0xfc), addr); in conf1_ext_read() 316 physmem_readl(addr); /* write barrier for address */ in conf1_ext_read() 348 volatile void *addr, *data; in conf1_ext_write() local 360 if (!mmap_regs(d->access, addr_reg, data_reg, pos&3, &addr, &data)) in conf1_ext_write() 363 … 0xf00) << 16) | ((d->bus & 0xff) << 16) | (PCI_DEVFN(d->dev, d->func) << 8) | (pos & 0xfc), addr); in conf1_ext_write() 364 physmem_readl(addr); /* write barrier for address */ in conf1_ext_write() [all …]
|
| H A D | emulated.c | 35 baseres_to_pcires(pciaddr_t addr, pciaddr_t ioflg, int *have_sec, u32 *sec_val) in baseres_to_pcires() argument 42 if ((val & PCI_BASE_ADDRESS_SPACE) == PCI_BASE_ADDRESS_SPACE_IO && addr <= 0xffffffff) in baseres_to_pcires() 43 val |= addr & PCI_BASE_ADDRESS_IO_MASK; in baseres_to_pcires() 46 val |= addr & PCI_BASE_ADDRESS_MEM_MASK; in baseres_to_pcires() 50 *sec_val = addr >> 32; in baseres_to_pcires() 58 even_baseres_to_pcires(pciaddr_t addr, pciaddr_t ioflg) in even_baseres_to_pcires() argument 60 return baseres_to_pcires(addr, ioflg, NULL, NULL); in even_baseres_to_pcires() 64 odd_baseres_to_pcires(pciaddr_t addr0, pciaddr_t ioflg0, pciaddr_t addr, pciaddr_t ioflg) in odd_baseres_to_pcires() argument 70 val = baseres_to_pcires(addr, ioflg, NULL, NULL); in odd_baseres_to_pcires()
|
| H A D | physmem-windows.c | 598 DWORD addr; in init_physmem_vxdcall() local 635 success = vdxcall_physical_address_mapping(physmem, 0x0, 0x0, &addr); in init_physmem_vxdcall() 636 if (success && addr == 0x0) in init_physmem_vxdcall() 857 physmem_map(struct physmem *physmem, u64 addr, size_t length, int w) in physmem_map() argument 875 section_offset.QuadPart = addr; in physmem_map() 924 if (addr >= 0xffffffffUL || addr + length > 0xffffffffUL) in physmem_map() 931 success = vdxcall_physical_address_mapping(physmem, (DWORD)addr, length, &virt); in physmem_map() 933 success = w32skrnl_physical_address_mapping(physmem, (DWORD)addr, length, &virt); in physmem_map()
|
| H A D | caps.c | 16 pci_add_cap(struct pci_dev *d, unsigned int addr, unsigned int id, unsigned int type) in pci_add_cap() argument 26 cap->addr = addr; in pci_add_cap() 30 d->domain, d->bus, d->dev, d->func, id, type, addr); in pci_add_cap()
|
| H A D | physmem-posix.c | 81 physmem_map(struct physmem *physmem, u64 addr, size_t length, int w) in physmem_map() argument 83 if (addr > OFF_MAX) in physmem_map() 88 return mmap(NULL, length, PROT_READ | (w ? PROT_WRITE : 0), MAP_SHARED, physmem->fd, addr); in physmem_map()
|
| H A D | i386-io-beos.h | 12 extern int read_isa_io(int pci_bus, void *addr, int size); 13 extern int write_isa_io(int pci_bus, void *addr, int size, u32 value);
|
| H A D | generic.c | 128 d->subsys_vendor_id = pci_read_word(d, cap->addr + PCI_SSVID_VENDOR); in pci_generic_fill_info() 129 d->subsys_id = pci_read_word(d, cap->addr + PCI_SSVID_DEVICE); in pci_generic_fill_info()
|
| H A D | physmem.h | 29 void *physmem_map(struct physmem *physmem, u64 addr, size_t length, int w);
|
| H A D | pci.h | 254 unsigned int addr; /* Position in the config space */ member
|
| /pciutils/ |
| H A D | setpci.c | 40 unsigned int addr; member 117 int addr = 0; in exec_op() local 129 addr = cap->addr; in exec_op() 142 addr += op->addr; in exec_op() 143 trace("@%02x", addr); in exec_op() 146 if (addr & (width-1)) in exec_op() 199 addr += width; in exec_op() 645 op->addr = 0; in parse_register() 655 op->addr = 0; in parse_register() 742 op->addr += off; in parse_op() [all …]
|
| H A D | ls-ecaps.c | 426 u32 addr; in cap_sriov() local 435 addr = l & PCI_ADDR_MEM_MASK; in cap_sriov() 444 addr, in cap_sriov()
|
| /pciutils/lmr/ |
| H A D | margin_hw.c | 118 .lmr_cap_addr = pci_find_cap(dev, PCI_EXT_CAP_ID_LMR, PCI_CAP_EXTENDED)->addr, in fill_dev_wrapper() 149 u16 lnk_ctl = pci_read_word(dev->dev, pcie->addr + PCI_EXP_LNKCTL); in margin_prep_dev() 153 pci_write_word(dev->dev, pcie->addr + PCI_EXP_LNKCTL, lnk_ctl); in margin_prep_dev() 154 if (pci_read_word(dev->dev, pcie->addr + PCI_EXP_LNKCTL) & PCI_EXP_LNKCTL_ASPM) in margin_prep_dev() 158 pci_write_word(dev->dev, pcie->addr + PCI_EXP_LNKCTL, lnk_ctl); in margin_prep_dev() 160 u16 lnk_ctl2 = pci_read_word(dev->dev, pcie->addr + PCI_EXP_LNKCTL2); in margin_prep_dev() 163 pci_write_word(dev->dev, pcie->addr + PCI_EXP_LNKCTL2, lnk_ctl2); in margin_prep_dev() 176 u16 lnk_ctl = pci_read_word(dev->dev, pcie->addr + PCI_EXP_LNKCTL); in margin_restore_dev() 179 pci_write_word(dev->dev, pcie->addr + PCI_EXP_LNKCTL, lnk_ctl); in margin_restore_dev() 181 u16 lnk_ctl2 = pci_read_word(dev->dev, pcie->addr + PCI_EXP_LNKCTL2); in margin_restore_dev() [all …]
|