Home
last modified time | relevance | path

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

/titanic_41/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, NULL, *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, NULL, *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 …]
/titanic_41/usr/src/uts/common/io/drm/
H A Ddrm_sunmod.c989 uint16_t caps_ptr; in drm_supp_device_capability() local
1000 caps_ptr = pci_config_get8(mstate->mis_cfg_hdl, PCI_CONF_CAP_PTR); in drm_supp_device_capability()
1001 while (caps_ptr != PCI_CAP_NEXT_PTR_NULL) { in drm_supp_device_capability()
1002 cap = pci_config_get32(mstate->mis_cfg_hdl, caps_ptr); in drm_supp_device_capability()
1005 caps_ptr = pci_config_get8(mstate->mis_cfg_hdl, in drm_supp_device_capability()
1006 caps_ptr + PCI_CAP_NEXT_PTR); in drm_supp_device_capability()
/titanic_41/usr/src/uts/common/io/sata/adapters/ahci/
H A Dahci.c4054 ushort_t caps_ptr, cap_count, cap; in ahci_config_space_init() local
4182 caps_ptr = P2ALIGN(pci_config_get8( in ahci_config_space_init()
4186 caps_ptr = PCI_CAP_NEXT_PTR_NULL; in ahci_config_space_init()
4192 for (cap_count = 0; caps_ptr != PCI_CAP_NEXT_PTR_NULL; ) { in ahci_config_space_init()
4203 if (caps_ptr < PCI_CAP_PTR_OFF) { in ahci_config_space_init()
4206 caps_ptr); in ahci_config_space_init()
4215 caps_ptr); in ahci_config_space_init()
4223 ahci_ctlp->ahcictl_pmcsr_offset = caps_ptr + PCI_PMCSR; in ahci_config_space_init()
4228 caps_ptr + PCI_PMCAP); in ahci_config_space_init()
4246 caps_ptr + PCI_MSI_CTRL); in ahci_config_space_init()
[all …]
/titanic_41/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas.c13102 ushort_t caps_ptr, cap, cap_count; in mptsas_get_pci_cap() local
13112 caps_ptr = P2ALIGN(pci_config_get8(mpt->m_config_handle, in mptsas_get_pci_cap()
13115 caps_ptr = PCI_CAP_NEXT_PTR_NULL; in mptsas_get_pci_cap()
13121 for (cap_count = 0; caps_ptr != PCI_CAP_NEXT_PTR_NULL; ) { in mptsas_get_pci_cap()
13132 if (caps_ptr < 64) { in mptsas_get_pci_cap()
13135 caps_ptr); in mptsas_get_pci_cap()
13143 cap = pci_config_get8(mpt->m_config_handle, caps_ptr); in mptsas_get_pci_cap()
13152 mpt->m_pmcsr_offset = caps_ptr + PCI_PMCSR; in mptsas_get_pci_cap()
13174 caps_ptr = P2ALIGN(pci_config_get8(mpt->m_config_handle, in mptsas_get_pci_cap()
13175 (caps_ptr + PCI_CAP_NEXT_PTR)), 4); in mptsas_get_pci_cap()
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_api.c817 ushort_t caps_ptr, cap; in ql_attach() local
1283 caps_ptr = (uint8_t)ql_pci_config_get8(ha, PCI_CONF_CAP_PTR); in ql_attach()
1285 while (caps_ptr != PCI_CAP_NEXT_PTR_NULL) { in ql_attach()
1286 cap = (uint8_t)ql_pci_config_get8(ha, caps_ptr); in ql_attach()
1291 caps_ptr = (uint8_t)ql_pci_config_get8(ha, caps_ptr + in ql_attach()