Lines Matching full:log
3 * PCIe TLP Log handling
16 * aer_tlp_log_len - Calculate AER Capability TLP Header/Prefix Log length
20 * Return: TLP Header/Prefix Log length
31 * dpc_tlp_log_len - Calculate DPC RP PIO TLP Header/Prefix Log length
34 * Return: TLP Header/Prefix Log length
38 /* Remove ImpSpec Log register from the count */ in dpc_tlp_log_len()
47 * pcie_read_tlp_log - read TLP Header Log
49 * @where: PCI Config offset of TLP Header Log
50 * @where2: PCI Config offset of TLP Prefix Log
51 * @tlp_len: TLP Log length (Header Log + TLP Prefix Log in DWORDs)
52 * @log: TLP Log structure to fill
54 * Fill @log from TLP Header Log registers, e.g., AER or DPC.
56 * Return: 0 on success and filled TLP Log structure, <0 on error.
59 unsigned int tlp_len, struct pcie_tlp_log *log) in pcie_read_tlp_log() argument
65 memset(log, 0, sizeof(*log)); in pcie_read_tlp_log()
70 to = &log->dw[i]; in pcie_read_tlp_log()
73 to = &log->prefix[i - PCIE_STD_NUM_TLP_HEADERLOG]; in pcie_read_tlp_log()
87 * pcie_print_tlp_log - Print TLP Header / Prefix Log contents
89 * @log: TLP Log structure
92 * Prints TLP Header and Prefix Log information held by @log.
95 const struct pcie_tlp_log *log, const char *pfx) in pcie_print_tlp_log() argument
97 char buf[11 * (PCIE_STD_NUM_TLP_HEADERLOG + ARRAY_SIZE(log->prefix)) + in pcie_print_tlp_log()
103 log->dw[0], log->dw[1], log->dw[2], log->dw[3]); in pcie_print_tlp_log()
105 if (log->prefix[0]) in pcie_print_tlp_log()
107 for (i = 0; i < ARRAY_SIZE(log->prefix); i++) { in pcie_print_tlp_log()
108 if (!log->prefix[i]) in pcie_print_tlp_log()
111 " %#010x", log->prefix[i]); in pcie_print_tlp_log()