Lines Matching defs:cntrs

79  * @cntrs: pointer to destination summary counters structure
85 struct opa_veswport_summary_counters *cntrs)
96 cntrs->vp_instance = cpu_to_be16(adapter->vport_num);
97 cntrs->vesw_id = cpu_to_be16(adapter->info.vesw.vesw_id);
98 cntrs->veswport_num = cpu_to_be32(adapter->port_num);
100 cntrs->tx_errors = cpu_to_be64(vstats.netstats.tx_errors);
101 cntrs->rx_errors = cpu_to_be64(vstats.netstats.rx_errors);
102 cntrs->tx_packets = cpu_to_be64(vstats.netstats.tx_packets);
103 cntrs->rx_packets = cpu_to_be64(vstats.netstats.rx_packets);
104 cntrs->tx_bytes = cpu_to_be64(vstats.netstats.tx_bytes);
105 cntrs->rx_bytes = cpu_to_be64(vstats.netstats.rx_bytes);
111 for (dst = &cntrs->tx_unicast, src = &vstats.tx_grp.unicast;
112 dst < &cntrs->reserved[0]; dst++, src++) {
120 * @cntrs: pointer to destination error counters structure
126 struct opa_veswport_error_counters *cntrs)
135 cntrs->vp_instance = cpu_to_be16(adapter->vport_num);
136 cntrs->vesw_id = cpu_to_be16(adapter->info.vesw.vesw_id);
137 cntrs->veswport_num = cpu_to_be32(adapter->port_num);
139 cntrs->tx_errors = cpu_to_be64(vstats.netstats.tx_errors);
140 cntrs->rx_errors = cpu_to_be64(vstats.netstats.rx_errors);
141 cntrs->tx_dlid_zero = cpu_to_be64(vstats.tx_dlid_zero);
142 cntrs->tx_drop_state = cpu_to_be64(vstats.tx_drop_state);
143 cntrs->tx_logic = cpu_to_be64(vstats.netstats.tx_fifo_errors +
146 cntrs->rx_bad_veswid = cpu_to_be64(vstats.netstats.rx_nohandler);
147 cntrs->rx_runt = cpu_to_be64(vstats.rx_runt);
148 cntrs->rx_oversize = cpu_to_be64(vstats.rx_oversize);
149 cntrs->rx_drop_state = cpu_to_be64(vstats.rx_drop_state);
150 cntrs->rx_logic = cpu_to_be64(vstats.netstats.rx_fifo_errors);