Lines Matching refs:ptr

111     uint64_t *ptr =  in __msix_set_entry()  local
113 *ptr = ((uint64_t)(msi_desc->msg.address_hi) << 32) | (msi_desc->msg.address_lo); in __msix_set_entry()
115 ++ptr; in __msix_set_entry()
117 *ptr = ((uint64_t)(msi_desc->msg.vector_control) << 32) | (msi_desc->msg.data); in __msix_set_entry()
129 uint64_t *ptr = (uint64_t *)(pci_dev->msix_mmio_vaddr + pci_dev->msix_offset + msi_index * 16); in __msix_clear_entry() local
130 *ptr = 0; in __msix_clear_entry()
131 ++ptr; in __msix_clear_entry()
132 *ptr = 0; in __msix_clear_entry()
148 struct pci_device_structure_header_t *ptr = msi_desc->pci_dev; in pci_enable_msi() local
157 cap_ptr = pci_enumerate_capability_list(ptr, 0x11); in pci_enable_msi()
160 cap_ptr = pci_enumerate_capability_list(ptr, 0x05); in pci_enable_msi()
168 cap_ptr = pci_enumerate_capability_list(ptr, 0x05); 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()
233 struct pci_device_structure_header_t *ptr = (struct pci_device_structure_header_t *)header; in pci_start_msi() local
237 switch (ptr->HeaderType) in pci_start_msi()
240 if (!(ptr->Status & 0x10)) in pci_start_msi()
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()
257 if (!(ptr->Status & 0x10)) 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()
291 struct pci_device_structure_header_t *ptr = (struct pci_device_structure_header_t *)header; in pci_disable_msi() local
295 switch (ptr->HeaderType) in pci_disable_msi()
298 if (!(ptr->Status & 0x10)) in pci_disable_msi()
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()
315 if (!(ptr->Status & 0x10)) 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()