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,
189 u16 cap = pdev->dpc_cap, dpc_status, first_error;
193 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_STATUS, &status);
194 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_MASK, &mask);
198 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SEVERITY, &sev);
199 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SYSERROR, &syserr);
200 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_EXCEPTION, &exc);
205 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &dpc_status);
216 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG,
218 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG + 4,
220 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG + 8,
222 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG + 12,
229 pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_IMPSPEC_LOG, &log);
234 cap + PCI_EXP_DPC_RP_PIO_TLPPREFIX_LOG, &prefix);
238 pci_write_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_STATUS, status);
265 u16 cap = pdev->dpc_cap, status, source, reason, ext_reason;
268 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status);
269 pci_read_config_word(pdev, cap + PCI_EXP_DPC_SOURCE_ID, &source);
311 u16 cap = pdev->dpc_cap, status;
313 pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status);
318 pci_write_config_word(pdev, cap + PCI_EXP_DPC_STATUS,
327 u16 cap;
333 pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_CAP, &cap);
334 if (!(cap & PCI_EXP_DPC_CAP_RP_EXT))
338 pdev->dpc_rp_log_size = (cap & PCI_EXP_DPC_RP_PIO_LOG_SIZE) >> 8;
352 u16 ctl, cap;
366 pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_CAP, &cap);
374 cap & PCI_EXP_DPC_IRQ, FLAG(cap, PCI_EXP_DPC_CAP_RP_EXT),
375 FLAG(cap, PCI_EXP_DPC_CAP_POISONED_TLP),
376 FLAG(cap, PCI_EXP_DPC_CAP_SW_TRIGGER), pdev->dpc_rp_log_size,
377 FLAG(cap, PCI_EXP_DPC_CAP_DL_ACTIVE));