Home
last modified time | relevance | path

Searched refs:caps_ptr (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/uts/common/io/
H A Dpci_intr_lib.c107 ushort_t *caps_ptr, ddi_acc_handle_t *h) in pci_get_msi_ctrl() argument
109 *msi_ctrl = *caps_ptr = 0; in pci_get_msi_ctrl()
119 if ((PCI_CAP_LOCATE(*h, PCI_CAP_ID_MSI, caps_ptr) == DDI_SUCCESS) && in pci_get_msi_ctrl()
121 if ((*msi_ctrl = PCI_CAP_GET16(*h, 0, *caps_ptr, in pci_get_msi_ctrl()
126 "caps_ptr=%x msi_ctrl=%x\n", *caps_ptr, *msi_ctrl)); in pci_get_msi_ctrl()
131 if ((PCI_CAP_LOCATE(*h, PCI_CAP_ID_MSI_X, caps_ptr) == DDI_SUCCESS) && in pci_get_msi_ctrl()
133 if ((*msi_ctrl = PCI_CAP_GET16(*h, 0, *caps_ptr, in pci_get_msi_ctrl()
138 "caps_ptr=%x msi_ctrl=%x\n", *caps_ptr, *msi_ctrl)); in pci_get_msi_ctrl()
157 ushort_t caps_ptr, msi_ctrl; in pci_msi_get_cap() local
166 &caps_ptr, &cfg_hdle) != DDI_SUCCESS) in pci_msi_get_cap()
[all …]
/illumos-gate/usr/src/uts/common/io/sata/adapters/ahci/
H A Dahci.c4159 ushort_t caps_ptr, cap_count, cap; in ahci_config_space_init() local
4287 caps_ptr = P2ALIGN(pci_config_get8( in ahci_config_space_init()
4291 caps_ptr = PCI_CAP_NEXT_PTR_NULL; in ahci_config_space_init()
4297 for (cap_count = 0; caps_ptr != PCI_CAP_NEXT_PTR_NULL; ) { in ahci_config_space_init()
4308 if (caps_ptr < PCI_CAP_PTR_OFF) { in ahci_config_space_init()
4311 caps_ptr); in ahci_config_space_init()
4320 caps_ptr); in ahci_config_space_init()
4328 ahci_ctlp->ahcictl_pmcsr_offset = caps_ptr + PCI_PMCSR; in ahci_config_space_init()
4333 caps_ptr + PCI_PMCAP); in ahci_config_space_init()
4351 caps_ptr + PCI_MSI_CTRL); in ahci_config_space_init()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas.c13385 ushort_t caps_ptr, cap, cap_count; in mptsas_get_pci_cap() local
13395 caps_ptr = P2ALIGN(pci_config_get8(mpt->m_config_handle, in mptsas_get_pci_cap()
13398 caps_ptr = PCI_CAP_NEXT_PTR_NULL; in mptsas_get_pci_cap()
13404 for (cap_count = 0; caps_ptr != PCI_CAP_NEXT_PTR_NULL; ) { in mptsas_get_pci_cap()
13415 if (caps_ptr < 64) { in mptsas_get_pci_cap()
13418 caps_ptr); in mptsas_get_pci_cap()
13426 cap = pci_config_get8(mpt->m_config_handle, caps_ptr); in mptsas_get_pci_cap()
13435 mpt->m_pmcsr_offset = caps_ptr + PCI_PMCSR; in mptsas_get_pci_cap()
13457 caps_ptr = P2ALIGN(pci_config_get8(mpt->m_config_handle, in mptsas_get_pci_cap()
13458 (caps_ptr + PCI_CAP_NEXT_PTR)), 4); in mptsas_get_pci_cap()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_api.c875 ushort_t caps_ptr, cap; in ql_attach() local
1450 caps_ptr = (uint8_t)ql_pci_config_get8(ha, PCI_CONF_CAP_PTR); in ql_attach()
1452 while (caps_ptr != PCI_CAP_NEXT_PTR_NULL) { in ql_attach()
1453 cap = (uint8_t)ql_pci_config_get8(ha, caps_ptr); in ql_attach()
1458 caps_ptr = (uint8_t)ql_pci_config_get8(ha, caps_ptr + in ql_attach()