Lines Matching refs:cap
45 u16 *cap;
54 cap = (u16 *)&save_state->cap.data[0];
55 pci_read_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, cap);
61 u16 *cap;
70 cap = (u16 *)&save_state->cap.data[0];
71 pci_write_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, *cap);
129 u16 cap = pdev->dpc_cap, status;
131 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status);
135 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status);
147 u16 cap;
155 cap = pdev->dpc_cap;
170 pci_write_config_word(pdev, cap + PCI_EXP_DPC_STATUS,
188 u16 cap = pdev->dpc_cap, dpc_status, first_error;
192 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_STATUS, &status);
193 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_MASK, &mask);
197 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SEVERITY, &sev);
198 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SYSERROR, &syserr);
199 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_EXCEPTION, &exc);
204 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &dpc_status);
215 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG,
217 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG + 4,
219 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG + 8,
221 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG + 12,
228 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_IMPSPEC_LOG, &log);
233 cap + PCI_EXP_DPC_RP_PIO_TLPPREFIX_LOG + i * 4, &prefix);
237 pci_write_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_STATUS, status);
264 u16 cap = pdev->dpc_cap, status, source, reason, ext_reason;
267 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status);
268 pci_read_config_word(pdev, cap + PCI_EXP_DPC_SOURCE_ID, &source);
310 u16 cap = pdev->dpc_cap, status;
312 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status);
317 pci_write_config_word(pdev, cap + PCI_EXP_DPC_STATUS,
326 u16 cap;
332 pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_CAP, &cap);
333 if (!(cap & PCI_EXP_DPC_CAP_RP_EXT))
341 (cap & PCI_EXP_DPC_RP_PIO_LOG_SIZE) >> 8;
356 u16 ctl, cap;
370 pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_CAP, &cap);
378 cap & PCI_EXP_DPC_IRQ, FLAG(cap, PCI_EXP_DPC_CAP_RP_EXT),
379 FLAG(cap, PCI_EXP_DPC_CAP_POISONED_TLP),
380 FLAG(cap, PCI_EXP_DPC_CAP_SW_TRIGGER), pdev->dpc_rp_log_size,
381 FLAG(cap, PCI_EXP_DPC_CAP_DL_ACTIVE));