Lines Matching defs:cap_ptr

271 static uint32_t pci_generic_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr,
273 static uint32_t pci_msi_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr,
275 static uint32_t pci_pcix_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr,
277 static uint32_t pci_pcie_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr,
279 static uint32_t pci_ht_addrmap_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr,
281 static uint32_t pci_ht_funcext_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr,
283 static void pci_fill_buf(ddi_acc_handle_t confhdl, uint16_t cap_ptr,
386 uint8_t cap_ptr, cap_id;
427 cap_ptr = pci_config_get8(confhdl, PCI_BCNF_CAP_PTR);
431 while (cap_ptr != PCI_CAP_NEXT_PTR_NULL) {
433 cap_ptr + PCI_CAP_ID);
438 cap_ptr = pci_config_get8(confhdl,
439 cap_ptr + PCI_CAP_NEXT_PTR);
585 uint16_t cap_ptr = PCI_CAP_NEXT_PTR_NULL;
599 cap_ptr = pci_config_get8(confhdl, PCI_BCNF_CAP_PTR);
603 while (cap_ptr != PCI_CAP_NEXT_PTR_NULL) {
604 cap_id = CAP_ID(confhdl, cap_ptr, xspace);
610 cap_ptr + PCI_CAP_ID_REGS_OFF);
622 offset = cap_ptr;
623 cap_ptr = NEXT_CAP(confhdl, cap_ptr, xspace);
648 pci_fill_buf(ddi_acc_handle_t confhdl, uint16_t cap_ptr,
654 *regbuf = pci_config_get32(confhdl, cap_ptr);
656 cap_ptr += 4;
661 pci_generic_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr, uint32_t *regbuf,
664 pci_fill_buf(confhdl, cap_ptr, regbuf, nwords);
670 pci_msi_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr, uint32_t *regbuf,
677 msi_ctrl = pci_config_get16(confhdl, cap_ptr + PCI_MSI_CTRL);
684 pci_fill_buf(confhdl, cap_ptr, regbuf, nwords);
691 pci_pcix_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr, uint32_t *regbuf,
698 pcix_command = pci_config_get16(confhdl, cap_ptr + PCI_PCIX_COMMAND);
703 pci_fill_buf(confhdl, cap_ptr, regbuf, nwords);
710 pci_pcie_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr, uint32_t *regbuf,
718 pci_ht_addrmap_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr,
724 reg = pci_config_get16(confhdl, cap_ptr + PCI_CAP_ID_REGS_OFF);
740 pci_fill_buf(confhdl, cap_ptr, regbuf, nwords);
746 pci_ht_funcext_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr,
752 reg = pci_config_get16(confhdl, cap_ptr + PCI_CAP_ID_REGS_OFF);
757 pci_fill_buf(confhdl, cap_ptr, regbuf, nwords);
931 uint8_t cap_ptr;
949 cap_ptr = pci_config_get8(conf_hdl, PCI_CONF_CAP_PTR);
954 while (cap_ptr != PCI_CAP_NEXT_PTR_NULL) {
955 cap_id = pci_config_get8(conf_hdl, cap_ptr + PCI_CAP_ID);
959 cap_ptr = pci_config_get8(conf_hdl,
960 cap_ptr + PCI_CAP_NEXT_PTR);
963 if (cap_ptr == PCI_CAP_NEXT_PTR_NULL) {
966 *pmcap_offsetp = cap_ptr;