Lines Matching defs:id
47 #define PCI_CAP_BASE(h, id, base_p) (*base_p ? DDI_SUCCESS : \
48 (id ? PCI_CAP_LOCATE(h, id, base_p) : DDI_FAILURE))
59 uint32_t id, xcaps_hdr; /* Extended Caps Header Word */
71 if ((id = pci_config_get8(h, base)) == 0xff)
74 if (id == PCI_CAP_ID_PCI_E)
76 else if (id == PCI_CAP_ID_PCIX) {
86 if ((id = pci_config_get8(h, base)) != 0xff)
97 id = (xcaps_hdr >> PCIE_EXT_CAP_ID_SHIFT)
109 id = ((xcaps_hdr >> PCIE_EXT_CAP_ID_SHIFT) & PCIE_EXT_CAP_ID_MASK) |
112 PCI_CAP_DBG("pci_cap_probe: index=%x, id=%x, base=%x\n",
113 index, id, base);
115 *id_p = id;
125 pci_lcap_locate(ddi_acc_handle_t h, uint8_t id, uint16_t *base_p)
154 if (pci_config_get8(h, base) == id) {
168 pci_xcap_locate(ddi_acc_handle_t h, uint16_t id, uint16_t *base_p)
185 PCIE_EXT_CAP_ID_MASK) == id) {
253 uint32_t id, uint16_t base, uint16_t offset)
257 if (PCI_CAP_BASE(h, id, &base) != DDI_SUCCESS)
294 uint32_t id, uint16_t base, uint16_t offset,
301 if (PCI_CAP_BASE(h, id, &base) != DDI_SUCCESS)
329 pci_cap_read(ddi_acc_handle_t h, uint32_t id, uint16_t base,
338 if (PCI_CAP_BASE(h, id, &base) != DDI_SUCCESS)