Lines Matching refs:pci_dev
25 …dw0 = pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, … in __msi_read_msix_cap_list()
32 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_msix_cap_list()
34 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_msix_cap_list()
42 …dw0 = pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, … in __msi_read_cap_list()
48 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_cap_list()
53 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_cap_list()
61 …cap_list.msg_data = pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->p… in __msi_read_cap_list()
66 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_cap_list()
68 …pci_read_config(msi_desc->pci_dev->bus, msi_desc->pci_dev->device, msi_desc->pci_dev->func, cap_of… in __msi_read_cap_list()
80 static __always_inline int __msix_map_table(struct pci_device_structure_header_t *pci_dev, in __msix_map_table() argument
87 pci_dev->msix_offset = msix_cap->dword1 & (~0x7); in __msix_map_table()
88 pci_dev->msix_table_size = (msix_cap->msg_ctrl & 0x7ff) + 1; in __msix_map_table()
89 pci_dev->msix_mmio_size = pci_dev->msix_table_size * 16 + pci_dev->msix_offset; in __msix_map_table()
92 …mmio_create(pci_dev->msix_mmio_size, VM_IO | VM_DONTCOPY, &pci_dev->msix_mmio_vaddr, &pci_dev->msi… in __msix_map_table()
93 pci_dev->msix_mmio_vaddr &= (~0xf); in __msix_map_table()
94 uint32_t bar = pci_read_config(pci_dev->bus, pci_dev->device, pci_dev->func, bar_off); in __msix_map_table()
99 mm_map(&initial_mm, pci_dev->msix_mmio_vaddr, pci_dev->msix_mmio_size, bar); in __msix_map_table()
112 …(uint64_t *)(msi_desc->pci_dev->msix_mmio_vaddr + msi_desc->pci_dev->msix_offset + msi_desc->msi_i… in __msix_set_entry()
127 static __always_inline void __msix_clear_entry(struct pci_device_structure_header_t *pci_dev, uint1… in __msix_clear_entry() argument
129 uint64_t *ptr = (uint64_t *)(pci_dev->msix_mmio_vaddr + pci_dev->msix_offset + msi_index * 16); in __msix_clear_entry()
148 struct pci_device_structure_header_t *ptr = msi_desc->pci_dev; in pci_enable_msi()
182 __msix_map_table(msi_desc->pci_dev, &cap); in pci_enable_msi()