Lines Matching full:log

3  * PCIe TLP Log handling
17 * aer_tlp_log_len - Calculate AER Capability TLP Header/Prefix Log length
21 * Return: TLP Header/Prefix Log length
35 * dpc_tlp_log_len - Calculate DPC RP PIO TLP Header/Prefix Log length
38 * Return: TLP Header/Prefix Log length
42 /* Remove ImpSpec Log register from the count */ in dpc_tlp_log_len()
51 * pcie_read_tlp_log - read TLP Header Log
53 * @where: PCI Config offset of TLP Header Log
54 * @where2: PCI Config offset of TLP Prefix Log
55 * @tlp_len: TLP Log length (Header Log + TLP Prefix Log in DWORDs)
57 * @log: TLP Log structure to fill
59 * Fill @log from TLP Header Log registers, e.g., AER or DPC.
61 * Return: 0 on success and filled TLP Log structure, <0 on error.
64 unsigned int tlp_len, bool flit, struct pcie_tlp_log *log) in pcie_read_tlp_log() argument
69 if (tlp_len > ARRAY_SIZE(log->dw)) in pcie_read_tlp_log()
70 tlp_len = ARRAY_SIZE(log->dw); in pcie_read_tlp_log()
72 memset(log, 0, sizeof(*log)); in pcie_read_tlp_log()
80 ret = pci_read_config_dword(dev, off, &log->dw[i]); in pcie_read_tlp_log()
89 log->header_len = flit ? tlp_len : 4; in pcie_read_tlp_log()
90 log->flit = flit; in pcie_read_tlp_log()
98 * pcie_print_tlp_log - Print TLP Header / Prefix Log contents
100 * @log: TLP Log structure
103 * Prints TLP Header and Prefix Log information held by @log.
106 const struct pcie_tlp_log *log, const char *pfx) in pcie_print_tlp_log() argument
114 log->dw[0], log->dw[1], log->dw[2], log->dw[3]); in pcie_print_tlp_log()
116 if (log->flit) { in pcie_print_tlp_log()
117 for (i = PCIE_STD_NUM_TLP_HEADERLOG; i < log->header_len; i++) { in pcie_print_tlp_log()
119 " %#010x", log->dw[i]); in pcie_print_tlp_log()
122 if (log->prefix[0]) in pcie_print_tlp_log()
125 for (i = 0; i < ARRAY_SIZE(log->prefix); i++) { in pcie_print_tlp_log()
126 if (!log->prefix[i]) in pcie_print_tlp_log()
129 " %#010x", log->prefix[i]); in pcie_print_tlp_log()
134 log->flit ? " (Flit)" : "", buf); in pcie_print_tlp_log()