Home
last modified time | relevance | path

Searched refs:vpci (Results 1 – 18 of 18) sorted by relevance

/xen/tools/tests/vpci/
A DMakefile13 $(TARGET): vpci.c vpci.h list.h main.c emul.h
14 $(HOSTCC) -g -o $@ vpci.c main.c
18 rm -rf $(TARGET) *.o *~ vpci.h vpci.c list.h
26 vpci.c: $(XEN_ROOT)/xen/drivers/vpci/vpci.c
31 vpci.h: $(XEN_ROOT)/xen/include/xen/vpci.h
32 list.h vpci.h:
A Dmain.c22 static struct vpci vpci; variable
27 .vpci = &vpci,
94 assert(!vpci_add_register(test_pdev.vpci, fread, fwrite, off, size, \
98 assert(vpci_add_register(test_pdev.vpci, fread, fwrite, off, size, NULL))
101 assert(!vpci_remove_register(test_pdev.vpci, off, size))
104 assert(vpci_remove_register(test_pdev.vpci, off, size))
160 INIT_LIST_HEAD(&vpci.handlers); in main()
161 spin_lock_init(&vpci.lock); in main()
A Demul.h47 struct vpci *vpci; member
/xen/xen/drivers/vpci/
A Dmsi.c197 pdev->vpci->msi = xzalloc(struct vpci_msi); in init_msi()
198 if ( !pdev->vpci->msi ) in init_msi()
221 pdev->vpci->msi->vectors = 1; in init_msi()
224 vpci_msi_arch_init(pdev->vpci->msi); in init_msi()
236 pdev->vpci->msi); in init_msi()
240 if ( pdev->vpci->msi->address64 ) in init_msi()
248 if ( pdev->vpci->msi->masking ) in init_msi()
286 if ( !pdev->vpci || !spin_trylock(&pdev->vpci->lock) ) in vpci_dump_msi()
289 msi = pdev->vpci->msi; in vpci_dump_msi()
305 msix = pdev->vpci->msix; in vpci_dump_msi()
[all …]
A Dmsix.c30 (addr) < vmsix_table_addr(vpci, nr) + vmsix_table_size(vpci, nr))
240 spin_lock(&msix->pdev->vpci->lock); in msix_read()
269 spin_unlock(&msix->pdev->vpci->lock); in msix_read()
312 spin_lock(&msix->pdev->vpci->lock); in msix_write()
388 spin_unlock(&msix->pdev->vpci->lock); in msix_write()
404 if ( !pdev->vpci->msix ) in vpci_make_msix_hole()
465 if ( !pdev->vpci->msix ) in init_msix()
468 pdev->vpci->msix->max_entries = max_entries; in init_msix()
469 pdev->vpci->msix->pdev = pdev; in init_msix()
471 pdev->vpci->msix->tables[VPCI_MSIX_TABLE] = in init_msix()
[all …]
A Dvpci.c51 xfree(pdev->vpci->msix); in vpci_remove_device()
52 xfree(pdev->vpci->msi); in vpci_remove_device()
53 xfree(pdev->vpci); in vpci_remove_device()
54 pdev->vpci = NULL; in vpci_remove_device()
65 pdev->vpci = xzalloc(struct vpci); in vpci_add_handlers()
66 if ( !pdev->vpci ) in vpci_add_handlers()
126 int vpci_add_register(struct vpci *vpci, vpci_read_t *read_handler, in vpci_add_register() argument
149 spin_lock(&vpci->lock); in vpci_add_register()
169 spin_unlock(&vpci->lock); in vpci_add_register()
174 int vpci_remove_register(struct vpci *vpci, unsigned int offset, in vpci_remove_register() argument
[all …]
A Dheader.c132 if ( v->vpci.mem ) in vpci_process_pending()
143 spin_lock(&v->vpci.pdev->vpci->lock); in vpci_process_pending()
145 modify_decoding(v->vpci.pdev, in vpci_process_pending()
146 rc ? v->vpci.cmd & ~PCI_COMMAND_MEMORY : v->vpci.cmd, in vpci_process_pending()
148 spin_unlock(&v->vpci.pdev->vpci->lock); in vpci_process_pending()
150 rangeset_destroy(v->vpci.mem); in vpci_process_pending()
151 v->vpci.mem = NULL; in vpci_process_pending()
192 curr->vpci.pdev = pdev; in defer_map()
193 curr->vpci.mem = mem; in defer_map()
194 curr->vpci.cmd = cmd; in defer_map()
[all …]
A DMakefile1 obj-y += vpci.o header.o msi.o msix.o
/xen/xen/include/xen/
A Dvpci.h33 int __must_check vpci_add_register(struct vpci *vpci,
38 int __must_check vpci_remove_register(struct vpci *vpci, unsigned int offset,
58 struct vpci { struct
183 static inline paddr_t vmsix_table_base(const struct vpci *vpci, unsigned int nr) in vmsix_table_base() argument
185 return vpci->header.bars[vpci->msix->tables[nr] & PCI_MSIX_BIRMASK].addr; in vmsix_table_base()
188 static inline paddr_t vmsix_table_addr(const struct vpci *vpci, unsigned int nr) in vmsix_table_addr() argument
190 return vmsix_table_base(vpci, nr) + in vmsix_table_addr()
191 (vpci->msix->tables[nr] & ~PCI_MSIX_BIRMASK); in vmsix_table_addr()
199 static inline size_t vmsix_table_size(const struct vpci *vpci, unsigned int nr) in vmsix_table_size() argument
202 (nr == VPCI_MSIX_TABLE) ? vpci->msix->max_entries * PCI_MSIX_ENTRY_SIZE in vmsix_table_size()
[all …]
A Dpci.h134 struct vpci *vpci; member
A Dsched.h256 struct vpci_vcpu vpci; member
/xen/xen/drivers/
A DMakefile4 obj-$(CONFIG_HAS_VPCI) += vpci/
/xen/tools/tests/
A DMakefile17 SUBDIRS-$(CONFIG_HAS_PCI) += vpci
/xen/xen/arch/arm/
A Dxen.lds.S64 *(SORT(.data.vpci.*))
194 *(SORT(.data.vpci.*))
/xen/xen/arch/x86/hvm/
A Dvmsi.c858 vmsix_entry_nr(pdev->vpci->msix, entry), in vpci_msix_arch_enable_entry()
907 spin_unlock(&msix->pdev->vpci->lock); in vpci_msix_arch_print()
910 if ( !pdev->vpci || !spin_trylock(&pdev->vpci->lock) ) in vpci_msix_arch_print()
912 if ( pdev->vpci->msix != msix ) in vpci_msix_arch_print()
914 spin_unlock(&pdev->vpci->lock); in vpci_msix_arch_print()
/xen/xen/arch/x86/
A Dxen.lds.S134 *(SORT(.data.vpci.*))
260 *(SORT(.data.vpci.*))
/xen/
A D.gitignore250 tools/tests/vpci/list.h
251 tools/tests/vpci/vpci.[hc]
252 tools/tests/vpci/test_vpci
A DMAINTAINERS507 F: xen/drivers/vpci/
508 F: xen/include/xen/vpci.h

Completed in 53 milliseconds