/illumos-gate/usr/src/uts/common/io/igb/ |
H A D | igb_debug.c | 42 uint8_t cap_ptr; local 131 cap_ptr = pci_config_get8(handle, PCI_CONF_CAP_PTR); 134 "PCI_CONF_CAP_PTR:\t0x%x\n", cap_ptr); 149 offset = cap_ptr;
|
/illumos-gate/usr/src/uts/common/io/ixgbe/ |
H A D | ixgbe_debug.c | 167 uint8_t cap_ptr; local 256 cap_ptr = pci_config_get8(handle, PCI_CONF_CAP_PTR); 259 "PCI_CONF_CAP_PTR:\t0x%x\n", cap_ptr); 274 offset = cap_ptr;
|
/illumos-gate/usr/src/uts/i86xpv/io/psm/ |
H A D | xpv_intr.c | 244 int cap_ptr = i_ddi_get_msi_msix_cap_ptr(dip); local 251 ASSERT((handle != NULL) && (cap_ptr != 0)); 266 msi_ctrl = pci_config_get16(handle, cap_ptr + PCI_MSI_CTRL); 270 pci_config_put16(handle, cap_ptr + PCI_MSI_CTRL, msi_ctrl); 282 int cap_ptr = i_ddi_get_msi_msix_cap_ptr(rdip); local 285 ASSERT((handle != NULL) && (cap_ptr != 0)); 288 msi_ctrl = pci_config_get16(handle, cap_ptr + PCI_MSI_CTRL); 293 pci_config_put16(handle, cap_ptr + PCI_MSI_CTRL, msi_ctrl); 296 msi_ctrl = pci_config_get16(handle, cap_ptr + PCI_MSIX_CTRL); 299 pci_config_put16(handle, cap_ptr 313 int cap_ptr = i_ddi_get_msi_msix_cap_ptr(rdip); local [all...] |
H A D | xpv_psm.c | 1107 int cap_ptr = i_ddi_get_msi_msix_cap_ptr(dip); local 1112 ASSERT((handle != NULL) && (cap_ptr != 0)); 1114 msi_ctrl = pci_config_get16(handle, cap_ptr + PCI_MSI_CTRL); 1120 cap_ptr + PCI_MSI_64BIT_DATA); 1123 cap_ptr + PCI_MSI_32BIT_DATA);
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | io.c | 482 struct scsi_capacity_16 *cap_ptr, int buf_len) 490 if ((fd < 0) || (cap_ptr == NULL) || 516 ret = scsi_read_capacity_16_cmd(fd, cap_ptr, buf_len); 518 cap_ptr->sc_capacity = cap_old.capacity; 519 cap_ptr->sc_lbasize = cap_old.lbasize; 526 struct scsi_capacity_16 *cap_ptr, int buf_len) 532 if ((fd < 0) || (cap_ptr == NULL) || 537 (void) memset((char *)cap_ptr, 0, buf_len); 543 ucmd.uscsi_bufaddr = (caddr_t)cap_ptr; 481 g_scsi_read_capacity_1016_cmd(int fd, struct scsi_capacity_16 *cap_ptr, int buf_len) argument 525 scsi_read_capacity_16_cmd(int fd, struct scsi_capacity_16 *cap_ptr, int buf_len) argument
|
/illumos-gate/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_debug.c | 373 uint8_t cap_ptr; local 438 cap_ptr = pci_config_get8(handle, PCI_CONF_CAP_PTR); 441 "PCI_CONF_CAP_PTR:\t0x%x\n", cap_ptr); 456 offset = cap_ptr;
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ddi_intr_impl.c | 570 i_ddi_set_msi_msix_cap_ptr(dev_info_t *dip, int cap_ptr) argument 575 intr_p->devi_cap_ptr = cap_ptr;
|
H A D | sunpci.c | 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; local 427 cap_ptr = pci_config_get8(confhdl, PCI_BCNF_CAP_PTR); 431 while (cap_ptr ! 585 uint16_t cap_ptr = PCI_CAP_NEXT_PTR_NULL; local 648 pci_fill_buf(ddi_acc_handle_t confhdl, uint16_t cap_ptr, uint32_t *regbuf, uint32_t nwords) argument 661 pci_generic_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr, uint32_t *regbuf, uint32_t nwords) argument 670 pci_msi_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr, uint32_t *regbuf, uint32_t notused) argument 691 pci_pcix_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr, uint32_t *regbuf, uint32_t notused) argument 710 pci_pcie_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr, uint32_t *regbuf, uint32_t notused) argument 718 pci_ht_addrmap_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr, uint32_t *regbuf, uint32_t notused) argument 746 pci_ht_funcext_save(ddi_acc_handle_t confhdl, uint16_t cap_ptr, uint32_t *regbuf, uint32_t notused) argument 931 uint8_t cap_ptr; local [all...] |
/illumos-gate/usr/src/uts/i86pc/io/pcplusmp/ |
H A D | apic_introp.c | 64 int cap_ptr = i_ddi_get_msi_msix_cap_ptr(dip); local 74 ASSERT((handle != NULL) && (cap_ptr != 0)); 106 msi_ctrl = pci_config_get16(handle, cap_ptr + PCI_MSI_CTRL); 110 pci_config_put16(handle, cap_ptr + PCI_MSI_CTRL, msi_ctrl); 116 cap_ptr + PCI_MSI_ADDR_OFFSET, msi_addr); 120 cap_ptr + PCI_MSI_ADDR_OFFSET + 4, msi_addr >> 32); 122 cap_ptr + PCI_MSI_64BIT_DATA, msi_data); 125 cap_ptr + PCI_MSI_32BIT_DATA, msi_data); 413 int cap_ptr = i_ddi_get_msi_msix_cap_ptr(rdip); local 416 ASSERT((handle != NULL) && (cap_ptr ! 507 int cap_ptr; local [all...] |
H A D | apic_common.c | 1657 int cap_ptr = i_ddi_get_msi_msix_cap_ptr(rdip); local 1660 ASSERT((handle != NULL) && (cap_ptr != 0)); 1663 msi_ctrl = pci_config_get16(handle, cap_ptr + PCI_MSI_CTRL); 1665 pci_config_put16(handle, cap_ptr + PCI_MSI_CTRL, msi_ctrl); 1666 pci_config_put32(handle, cap_ptr + PCI_MSI_ADDR_OFFSET, 0); 1670 cap_ptr + PCI_MSI_64BIT_DATA, 0); 1672 cap_ptr + PCI_MSI_ADDR_OFFSET + 4, 0); 1675 cap_ptr + PCI_MSI_32BIT_DATA, 0); 1711 int cap_ptr = i_ddi_get_msi_msix_cap_ptr(rdip); local 1714 ASSERT((handle != NULL) && (cap_ptr ! [all...] |
/illumos-gate/usr/src/uts/sparc/io/pciex/ |
H A D | pcieb_sparc.c | 125 uint16_t cap_ptr; local 126 if ((PCI_CAP_LOCATE(config_handle, PCI_CAP_ID_PCI_HOTPLUG, &cap_ptr)) !=
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/opl/common/ |
H A D | opl_picl.c | 646 uint_t cap_ptr, cap_reg, link_status, link_cap, capid; local 673 cap_ptr = read_byte(fd, bus, dev, func, PCI_CONF_CAP_PTR, &ret); 679 cap_reg = read_word(fd, bus, dev, func, cap_ptr, &ret); 687 while (cap_ptr != 0) { 690 link_cap = read_long(fd, bus, dev, func, cap_ptr + 697 cap_ptr + PCIE_LINKSTS, &ret); 724 cap_ptr + PCI_PCIX_SEC_STATUS, &ret); 752 cap_ptr + PCI_PCIX_STATUS, &ret); 770 cap_ptr = (cap_reg >> PCI_REG_FUNC_SHIFT); 771 cap_reg = read_word(fd, bus, dev, func, cap_ptr, [all...] |
/illumos-gate/usr/src/uts/common/io/atge/ |
H A D | atge_main.c | 1057 uint16_t cap_ptr; local 1199 &cap_ptr); 1207 cap_ptr + 0x08);
|
/illumos-gate/usr/src/uts/i86pc/io/apix/ |
H A D | apix_utils.c | 305 int i, cap_ptr = i_ddi_get_msi_msix_cap_ptr(dip); local 314 ASSERT((handle != NULL) && (cap_ptr != 0)); 341 msi_ctrl = pci_config_get16(handle, cap_ptr + PCI_MSI_CTRL); 345 pci_config_put16(handle, cap_ptr + PCI_MSI_CTRL, msi_ctrl); 348 APIX_WRITE_MSI_DATA(handle, cap_ptr, msi_ctrl, 352 cap_ptr + PCI_MSI_ADDR_OFFSET, msi_addr); 355 cap_ptr + PCI_MSI_ADDR_OFFSET + 4, msi_addr >> 32); 357 APIX_WRITE_MSI_DATA(handle, cap_ptr, msi_ctrl, msi_data); 380 int cap_ptr = i_ddi_get_msi_msix_cap_ptr(dip); local 383 ASSERT((handle != NULL) && (cap_ptr ! 1634 int i, cap_ptr, rcount = count; local [all...] |
H A D | apix.c | 1593 int inum, cap_ptr; local 1620 cap_ptr = i_ddi_get_msi_msix_cap_ptr(dip); 1621 msix_ctrl = pci_config_get16(handle, cap_ptr + PCI_MSIX_CTRL); 1656 int i, num_vectors, cap_ptr, msi_mask_off; local 1713 cap_ptr = i_ddi_get_msi_msix_cap_ptr(dip); 1715 msi_ctrl = pci_config_get16(handle, cap_ptr + PCI_MSI_CTRL); 1720 msi_mask_off = cap_ptr + PCI_MSI_64BIT_MASKBITS; 1722 msi_mask_off = cap_ptr + PCI_MSI_32BIT_MASK;
|
/illumos-gate/usr/src/uts/i86pc/io/pci/ |
H A D | pci_common.c | 202 int cap_ptr; local 336 * Cache in the config handle and cap_ptr 346 cap_ptr = 0; 357 cap_ptr = ddi_prop_get_int(DDI_DEV_T_ANY, rdip, 359 if (cap_ptr == 0) { 367 i_ddi_set_msi_msix_cap_ptr(rdip, cap_ptr); 437 if (cap_ptr = i_ddi_get_msi_msix_cap_ptr(rdip))
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_nexus.c | 2173 uint8_t cap_ptr, cap_id; local 2179 t4_os_pci_read_cfg1(sc, PCI_CONF_CAP_PTR, &cap_ptr); 2180 while (cap_ptr) { 2181 t4_os_pci_read_cfg1(sc, cap_ptr + PCI_CAP_ID, &cap_id); 2183 return (cap_ptr); /* found */ 2184 t4_os_pci_read_cfg1(sc, cap_ptr + PCI_CAP_NEXT_PTR, &cap_ptr);
|
/illumos-gate/usr/src/uts/common/io/pciex/ |
H A D | pcie.c | 1893 uint16_t cap_ptr; local 1932 if ((PCI_CAP_LOCATE(config_handle, PCI_CAP_ID_PCI_E, &cap_ptr)) == 1937 max_supported = PCI_CAP_GET16(config_handle, NULL, cap_ptr, 1966 uint16_t cap_ptr; local 1980 &cap_ptr)) == DDI_FAILURE) { 1985 port_type = PCI_CAP_GET16(config_handle, NULL, cap_ptr, 2235 uint16_t cap_ptr; local 2251 if ((PCI_CAP_LOCATE(handle, PCI_CAP_ID_PCI_E, &cap_ptr)) 2260 &cap_ptr)) == DDI_FAILURE) { 2276 uint16_t cap_ptr, next_functio local [all...] |
H A D | pcieb.c | 307 uint16_t sdip_dev_ctrl, sdip_mrrs_mps, cap_ptr; local 321 if (PCI_CAP_LOCATE(cfg_hdl, PCI_CAP_ID_PCI_E, &cap_ptr) 328 sdip_dev_ctrl = PCI_CAP_GET16(cfg_hdl, NULL, cap_ptr, 347 PCI_CAP_PUT16(cfg_hdl, NULL, cap_ptr, PCIE_DEVCTL, 1541 uint16_t pmcap, cap_ptr; local 1565 if ((PCI_CAP_LOCATE(conf_hdl, PCI_CAP_ID_PM, &cap_ptr)) == 1575 pwr_p->pwr_pmcsr_offset = cap_ptr + PCI_PMCSR; 1576 pmcap = PCI_CAP_GET16(conf_hdl, NULL, cap_ptr, PCI_PMCAP); 1733 uint16_t cap_ptr; local 1754 PCI_CAP_ID_SLOT_ID, &cap_ptr)) ! [all...] |
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/ |
H A D | ql_xioctl.c | 7853 uint8_t cap_ptr; local 7866 cap_ptr = (uint8_t)ql_pci_config_get8(ha, PCI_CONF_CAP_PTR); 7867 while (cap_ptr != PCI_CAP_NEXT_PTR_NULL) { 7871 cap_id = (uint8_t)ql_pci_config_get8(ha, cap_ptr); 7876 cap_ptr = (uint8_t)ql_pci_config_get8(ha, 7877 (cap_ptr + PCI_CAP_NEXT_PTR));
|
/illumos-gate/usr/src/uts/intel/io/pci/ |
H A D | pci_boot.c | 901 int rv, cap_ptr, physhi; local 933 cap_ptr = get_pci_cap(bus, dev, func, PCI_CAP_ID_PCI_E); 934 if (cap_ptr != -1) { 936 (uint16_t)cap_ptr + PCIE_LINKCTL); 1821 uint8_t cap_ptr; local 1831 cap_ptr = pci_getb(bus, dev, func, PCI_CBUS_CAP_PTR); 1833 cap_ptr = pci_getb(bus, dev, func, PCI_CONF_CAP_PTR); 1837 while (cap_ptr != PCI_CAP_NEXT_PTR_NULL && cap_ptr >= PCI_CAP_PTR_OFF) { 1838 cap_ptr [all...] |
/illumos-gate/usr/src/uts/sun4/io/ |
H A D | pcicfg.c | 574 uint16_t cap_ptr; local 577 &cap_ptr)) == DDI_SUCCESS) { 580 PCI_CAP_PUT8(handle, NULL, cap_ptr, PCI_HP_DWORD_SELECT_OFF, 582 config = PCI_CAP_GET32(handle, NULL, cap_ptr, 585 } else if ((PCI_CAP_LOCATE(handle, PCI_CAP_ID_SLOT_ID, &cap_ptr)) 588 cap_ptr, PCI_CAP_ID_REGS_OFF); 591 } else if ((PCI_CAP_LOCATE(handle, PCI_CAP_ID_PCI_E, &cap_ptr)) 593 int port_type = PCI_CAP_GET16(handle, NULL, cap_ptr, 597 (PCI_CAP_GET16(handle, NULL, cap_ptr, PCIE_PCIECAP) 612 uint16_t cap_ptr; local 664 uint16_t cap_ptr; local 3410 uint16_t val, cap_ptr; local 3965 uint16_t cap_ptr; local [all...] |