Lines Matching refs:cap_ptr
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()
197 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_enable_msi()
202 …pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr + 0x4, (uint32_t)(message_addr & 0xffff… in pci_enable_msi()
205 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr + 0x8, in pci_enable_msi()
212 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr + 0xc, tmp); in pci_enable_msi()
214 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr + 0x8, tmp); in pci_enable_msi()
217 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_enable_msi()
219 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr, tmp); in pci_enable_msi()
234 uint32_t cap_ptr; in pci_start_msi() local
242 cap_ptr = ((struct pci_device_structure_general_device_t *)ptr)->Capabilities_Pointer; in pci_start_msi()
244 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_start_msi()
250 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_start_msi()
252 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr, tmp); in pci_start_msi()
259 cap_ptr = ((struct pci_device_structure_pci_to_pci_bridge_t *)ptr)->Capability_Pointer; in pci_start_msi()
261 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_start_msi()
267 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_start_msi()
269 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr, tmp); in pci_start_msi()
292 uint32_t cap_ptr; in pci_disable_msi() local
300 cap_ptr = ((struct pci_device_structure_general_device_t *)ptr)->Capabilities_Pointer; in pci_disable_msi()
302 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_disable_msi()
308 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_disable_msi()
310 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr, tmp); in pci_disable_msi()
317 cap_ptr = ((struct pci_device_structure_pci_to_pci_bridge_t *)ptr)->Capability_Pointer; in pci_disable_msi()
319 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_disable_msi()
325 tmp = pci_read_config(ptr->bus, ptr->device, ptr->func, cap_ptr); // 读取cap+0x0处的值 in pci_disable_msi()
327 pci_write_config(ptr->bus, ptr->device, ptr->func, cap_ptr, tmp); in pci_disable_msi()