Lines Matching defs:caps_ptr

103  *	and caps_ptr for MSI/X if these are found.
107 ushort_t *caps_ptr, ddi_acc_handle_t *h)
109 *msi_ctrl = *caps_ptr = 0;
119 if ((PCI_CAP_LOCATE(*h, PCI_CAP_ID_MSI, caps_ptr) == DDI_SUCCESS) &&
121 if ((*msi_ctrl = PCI_CAP_GET16(*h, NULL, *caps_ptr,
126 "caps_ptr=%x msi_ctrl=%x\n", *caps_ptr, *msi_ctrl));
131 if ((PCI_CAP_LOCATE(*h, PCI_CAP_ID_MSI_X, caps_ptr) == DDI_SUCCESS) &&
133 if ((*msi_ctrl = PCI_CAP_GET16(*h, NULL, *caps_ptr,
138 "caps_ptr=%x msi_ctrl=%x\n", *caps_ptr, *msi_ctrl));
157 ushort_t caps_ptr, msi_ctrl;
166 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
203 ushort_t caps_ptr, msi_ctrl;
211 &caps_ptr, &h) != DDI_SUCCESS)
217 PCI_CAP_PUT16(h, NULL, caps_ptr, PCI_MSI_CTRL, msi_ctrl);
220 PCI_CAP_GET16(h, NULL, caps_ptr, PCI_MSI_CTRL)));
223 PCI_CAP_PUT32(h, NULL, caps_ptr, PCI_MSI_ADDR_OFFSET, addr);
226 PCI_CAP_GET32(h, NULL, caps_ptr, PCI_MSI_ADDR_OFFSET)));
229 PCI_CAP_PUT32(h, NULL, caps_ptr, PCI_MSI_ADDR_OFFSET
234 caps_ptr, PCI_MSI_ADDR_OFFSET + 4)));
236 PCI_CAP_PUT16(h, NULL, caps_ptr, PCI_MSI_64BIT_DATA,
240 "= %x\n", PCI_CAP_GET16(h, NULL, caps_ptr,
243 PCI_CAP_PUT16(h, NULL, caps_ptr, PCI_MSI_32BIT_DATA,
247 "= %x\n", PCI_CAP_GET16(h, NULL, caps_ptr,
298 ushort_t msi_ctrl, caps_ptr;
304 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, &caps_ptr, &h) !=
310 PCI_CAP_PUT16(h, NULL, caps_ptr, PCI_MSI_CTRL, msi_ctrl);
312 PCI_CAP_PUT32(h, NULL, caps_ptr, PCI_MSI_ADDR_OFFSET, 0);
315 PCI_CAP_PUT16(h, NULL, caps_ptr, PCI_MSI_64BIT_DATA,
317 PCI_CAP_PUT32(h, NULL, caps_ptr, PCI_MSI_ADDR_OFFSET
320 PCI_CAP_PUT16(h, NULL, caps_ptr, PCI_MSI_32BIT_DATA,
325 "= %x\n", PCI_CAP_GET16(h, NULL, caps_ptr, PCI_MSI_CTRL)));
364 ushort_t caps_ptr, msi_ctrl;
372 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
399 ushort_t caps_ptr, msi_ctrl;
406 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
414 PCI_CAP_PUT16(cfg_hdle, NULL, caps_ptr, PCI_MSI_CTRL, msi_ctrl);
421 PCI_CAP_PUT16(cfg_hdle, NULL, caps_ptr, PCI_MSIX_CTRL,
447 ushort_t caps_ptr, msi_ctrl;
454 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
462 PCI_CAP_PUT16(cfg_hdle, NULL, caps_ptr, PCI_MSI_CTRL, msi_ctrl);
468 PCI_CAP_PUT16(cfg_hdle, NULL, caps_ptr, PCI_MSIX_CTRL,
492 ushort_t caps_ptr, msi_ctrl;
500 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
510 if ((mask_bits = PCI_CAP_GET32(cfg_hdle, NULL, caps_ptr,
516 PCI_CAP_PUT32(cfg_hdle, NULL, caps_ptr, offset, mask_bits);
554 ushort_t caps_ptr, msi_ctrl;
564 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
573 if ((mask_bits = PCI_CAP_GET32(cfg_hdle, NULL, caps_ptr,
579 PCI_CAP_PUT32(cfg_hdle, NULL, caps_ptr, offset, mask_bits);
616 ushort_t caps_ptr, msi_ctrl;
625 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
640 if ((pending_bits = PCI_CAP_GET32(cfg_hdle, NULL, caps_ptr,
675 ushort_t caps_ptr, msi_ctrl;
682 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
712 ushort_t caps_ptr, msi_ctrl;
724 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
730 PCI_CAP_PUT16(cfg_hdle, NULL, caps_ptr, PCI_MSI_CTRL, msi_ctrl);
749 ushort_t caps_ptr, msi_ctrl;
758 &caps_ptr, &cfg_hdle) == DDI_SUCCESS) {
764 &caps_ptr, &cfg_hdle) == DDI_SUCCESS) {
788 ushort_t caps_ptr, msix_ctrl;
798 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
812 msix_p->msix_tbl_offset = PCI_CAP_GET32(cfg_hdle, NULL, caps_ptr,
873 msix_p->msix_pba_offset = PCI_CAP_GET32(cfg_hdle, NULL, caps_ptr,