Searched refs:cap_ptr (Results 1 – 1 of 1) sorted by relevance
/DragonOS-0.1.2/kernel/src/driver/pci/ |
D | msi.c | 149 uint32_t cap_ptr; in pci_enable_msi() local 157 cap_ptr = pci_enumerate_capability_list(ptr, 0x11); in pci_enable_msi() 158 if (((int32_t)cap_ptr) < 0) in pci_enable_msi() 160 cap_ptr = pci_enumerate_capability_list(ptr, 0x05); in pci_enable_msi() 161 if (((int32_t)cap_ptr) < 0) in pci_enable_msi() 168 cap_ptr = pci_enumerate_capability_list(ptr, 0x05); in pci_enable_msi() 169 if (((int32_t)cap_ptr) < 0) in pci_enable_msi() 180 struct pci_msix_cap_t cap = __msi_read_msix_cap_list(msi_desc, cap_ptr); in pci_enable_msi() 190 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_enable_msi() 192 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr, tmp); in pci_enable_msi() [all …]
|