Lines Matching +full:rpc +full:- +full:if

1 // SPDX-License-Identifier: GPL-2.0
14 stat->u.old_reg_value_32 = rd32(fbd, reg); in fbnic_hw_stat_rst32()
23 stat->value += new_reg_value - stat->u.old_reg_value_32; in fbnic_hw_stat_rd32()
24 stat->u.old_reg_value_32 = new_reg_value; in fbnic_hw_stat_rd32()
35 diff = upper - prev_upper; in fbnic_stat_rd64()
36 if (!diff) in fbnic_stat_rd64()
39 if (diff > 1) in fbnic_stat_rd64()
40 dev_warn_once(fbd->dev, in fbnic_stat_rd64()
60 stat->u.old_reg_value_64 = fbnic_stat_rd64(fbd, reg, offset); in fbnic_hw_stat_rst64()
69 stat->value += new_reg_value - stat->u.old_reg_value_64; in fbnic_hw_stat_rd64()
70 stat->u.old_reg_value_64 = new_reg_value; in fbnic_hw_stat_rd64()
74 struct fbnic_rpc_stats *rpc) in fbnic_reset_rpc_stats() argument
78 &rpc->unkn_etype); in fbnic_reset_rpc_stats()
81 &rpc->unkn_ext_hdr); in fbnic_reset_rpc_stats()
82 fbnic_hw_stat_rst32(fbd, FBNIC_RPC_CNTR_IPV4_FRAG, &rpc->ipv4_frag); in fbnic_reset_rpc_stats()
83 fbnic_hw_stat_rst32(fbd, FBNIC_RPC_CNTR_IPV6_FRAG, &rpc->ipv6_frag); in fbnic_reset_rpc_stats()
84 fbnic_hw_stat_rst32(fbd, FBNIC_RPC_CNTR_IPV4_ESP, &rpc->ipv4_esp); in fbnic_reset_rpc_stats()
85 fbnic_hw_stat_rst32(fbd, FBNIC_RPC_CNTR_IPV6_ESP, &rpc->ipv6_esp); in fbnic_reset_rpc_stats()
86 fbnic_hw_stat_rst32(fbd, FBNIC_RPC_CNTR_TCP_OPT_ERR, &rpc->tcp_opt_err); in fbnic_reset_rpc_stats()
89 &rpc->out_of_hdr_err); in fbnic_reset_rpc_stats()
92 &rpc->ovr_size_err); in fbnic_reset_rpc_stats()
96 struct fbnic_rpc_stats *rpc) in fbnic_get_rpc_stats32() argument
100 &rpc->unkn_etype); in fbnic_get_rpc_stats32()
103 &rpc->unkn_ext_hdr); in fbnic_get_rpc_stats32()
105 fbnic_hw_stat_rd32(fbd, FBNIC_RPC_CNTR_IPV4_FRAG, &rpc->ipv4_frag); in fbnic_get_rpc_stats32()
106 fbnic_hw_stat_rd32(fbd, FBNIC_RPC_CNTR_IPV6_FRAG, &rpc->ipv6_frag); in fbnic_get_rpc_stats32()
108 fbnic_hw_stat_rd32(fbd, FBNIC_RPC_CNTR_IPV4_ESP, &rpc->ipv4_esp); in fbnic_get_rpc_stats32()
109 fbnic_hw_stat_rd32(fbd, FBNIC_RPC_CNTR_IPV6_ESP, &rpc->ipv6_esp); in fbnic_get_rpc_stats32()
111 fbnic_hw_stat_rd32(fbd, FBNIC_RPC_CNTR_TCP_OPT_ERR, &rpc->tcp_opt_err); in fbnic_get_rpc_stats32()
114 &rpc->out_of_hdr_err); in fbnic_get_rpc_stats32()
117 &rpc->ovr_size_err); in fbnic_get_rpc_stats32()
126 &pcie->ob_rd_tlp); in fbnic_reset_pcie_stats_asic()
130 &pcie->ob_rd_dword); in fbnic_reset_pcie_stats_asic()
134 &pcie->ob_cpl_tlp); in fbnic_reset_pcie_stats_asic()
138 &pcie->ob_cpl_dword); in fbnic_reset_pcie_stats_asic()
142 &pcie->ob_wr_tlp); in fbnic_reset_pcie_stats_asic()
146 &pcie->ob_wr_dword); in fbnic_reset_pcie_stats_asic()
151 &pcie->ob_rd_no_tag); in fbnic_reset_pcie_stats_asic()
155 &pcie->ob_rd_no_cpl_cred); in fbnic_reset_pcie_stats_asic()
159 &pcie->ob_rd_no_np_cred); in fbnic_reset_pcie_stats_asic()
168 &pcie->ob_rd_tlp); in fbnic_get_pcie_stats_asic64()
172 &pcie->ob_rd_dword); in fbnic_get_pcie_stats_asic64()
176 &pcie->ob_wr_tlp); in fbnic_get_pcie_stats_asic64()
180 &pcie->ob_wr_dword); in fbnic_get_pcie_stats_asic64()
184 &pcie->ob_cpl_tlp); in fbnic_get_pcie_stats_asic64()
188 &pcie->ob_cpl_dword); in fbnic_get_pcie_stats_asic64()
193 &pcie->ob_rd_no_tag); in fbnic_get_pcie_stats_asic64()
197 &pcie->ob_rd_no_cpl_cred); in fbnic_get_pcie_stats_asic64()
201 &pcie->ob_rd_no_np_cred); in fbnic_get_pcie_stats_asic64()
206 fbnic_reset_rpc_stats(fbd, &fbd->hw_stats.rpc); in fbnic_reset_hw_stats()
207 fbnic_reset_pcie_stats_asic(fbd, &fbd->hw_stats.pcie); in fbnic_reset_hw_stats()
212 fbnic_get_rpc_stats32(fbd, &fbd->hw_stats.rpc); in fbnic_get_hw_stats32()
219 fbnic_get_pcie_stats_asic64(fbd, &fbd->hw_stats.pcie); in fbnic_get_hw_stats()