Lines Matching defs:caps_ptr
102 * and caps_ptr for MSI/X if these are found.
106 ushort_t *caps_ptr, ddi_acc_handle_t *h)
108 *msi_ctrl = *caps_ptr = 0;
118 if ((PCI_CAP_LOCATE(*h, PCI_CAP_ID_MSI, caps_ptr) == DDI_SUCCESS) &&
120 if ((*msi_ctrl = PCI_CAP_GET16(*h, NULL, *caps_ptr,
125 "caps_ptr=%x msi_ctrl=%x\n", *caps_ptr, *msi_ctrl));
130 if ((PCI_CAP_LOCATE(*h, PCI_CAP_ID_MSI_X, caps_ptr) == DDI_SUCCESS) &&
132 if ((*msi_ctrl = PCI_CAP_GET16(*h, NULL, *caps_ptr,
137 "caps_ptr=%x msi_ctrl=%x\n", *caps_ptr, *msi_ctrl));
156 ushort_t caps_ptr, msi_ctrl;
165 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
202 ushort_t caps_ptr, msi_ctrl;
210 &caps_ptr, &h) != DDI_SUCCESS)
216 PCI_CAP_PUT16(h, NULL, caps_ptr, PCI_MSI_CTRL, msi_ctrl);
219 PCI_CAP_GET16(h, NULL, caps_ptr, PCI_MSI_CTRL)));
222 PCI_CAP_PUT32(h, NULL, caps_ptr, PCI_MSI_ADDR_OFFSET, addr);
225 PCI_CAP_GET32(h, NULL, caps_ptr, PCI_MSI_ADDR_OFFSET)));
228 PCI_CAP_PUT32(h, NULL, caps_ptr, PCI_MSI_ADDR_OFFSET
233 caps_ptr, PCI_MSI_ADDR_OFFSET + 4)));
235 PCI_CAP_PUT16(h, NULL, caps_ptr, PCI_MSI_64BIT_DATA,
239 "= %x\n", PCI_CAP_GET16(h, NULL, caps_ptr,
242 PCI_CAP_PUT16(h, NULL, caps_ptr, PCI_MSI_32BIT_DATA,
246 "= %x\n", PCI_CAP_GET16(h, NULL, caps_ptr,
287 ushort_t msi_ctrl, caps_ptr;
293 if (pci_get_msi_ctrl(rdip, type, &msi_ctrl, &caps_ptr, &h) !=
299 PCI_CAP_PUT16(h, NULL, caps_ptr, PCI_MSI_CTRL, msi_ctrl);
301 PCI_CAP_PUT32(h, NULL, caps_ptr, PCI_MSI_ADDR_OFFSET, 0);
304 PCI_CAP_PUT16(h, NULL, caps_ptr, PCI_MSI_64BIT_DATA,
306 PCI_CAP_PUT32(h, NULL, caps_ptr, PCI_MSI_ADDR_OFFSET
309 PCI_CAP_PUT16(h, NULL, caps_ptr, PCI_MSI_32BIT_DATA,
314 "= %x\n", PCI_CAP_GET16(h, NULL, caps_ptr, PCI_MSI_CTRL)));
346 ushort_t caps_ptr, msi_ctrl;
354 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
381 ushort_t caps_ptr, msi_ctrl;
388 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
396 PCI_CAP_PUT16(cfg_hdle, NULL, caps_ptr, PCI_MSI_CTRL, msi_ctrl);
403 PCI_CAP_PUT16(cfg_hdle, NULL, caps_ptr, PCI_MSIX_CTRL,
429 ushort_t caps_ptr, msi_ctrl;
436 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
444 PCI_CAP_PUT16(cfg_hdle, NULL, caps_ptr, PCI_MSI_CTRL, msi_ctrl);
450 PCI_CAP_PUT16(cfg_hdle, NULL, caps_ptr, PCI_MSIX_CTRL,
474 ushort_t caps_ptr, msi_ctrl;
482 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
492 if ((mask_bits = PCI_CAP_GET32(cfg_hdle, NULL, caps_ptr,
498 PCI_CAP_PUT32(cfg_hdle, NULL, caps_ptr, offset, mask_bits);
536 ushort_t caps_ptr, msi_ctrl;
546 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
555 if ((mask_bits = PCI_CAP_GET32(cfg_hdle, NULL, caps_ptr,
561 PCI_CAP_PUT32(cfg_hdle, NULL, caps_ptr, offset, mask_bits);
598 ushort_t caps_ptr, msi_ctrl;
607 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
622 if ((pending_bits = PCI_CAP_GET32(cfg_hdle, NULL, caps_ptr,
657 ushort_t caps_ptr, msi_ctrl;
664 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
694 ushort_t caps_ptr, msi_ctrl;
706 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
712 PCI_CAP_PUT16(cfg_hdle, NULL, caps_ptr, PCI_MSI_CTRL, msi_ctrl);
731 ushort_t caps_ptr, msi_ctrl;
740 &caps_ptr, &cfg_hdle) == DDI_SUCCESS) {
746 &caps_ptr, &cfg_hdle) == DDI_SUCCESS) {
770 ushort_t caps_ptr, msix_ctrl;
780 &caps_ptr, &cfg_hdle) != DDI_SUCCESS)
794 msix_p->msix_tbl_offset = PCI_CAP_GET32(cfg_hdle, NULL, caps_ptr,
855 msix_p->msix_pba_offset = PCI_CAP_GET32(cfg_hdle, NULL, caps_ptr,