Lines Matching refs:esw_stats

1060 		const u8 rx_tx, struct __qlcnic_esw_statistics *esw_stats) {  in qlcnic_get_port_stats()  argument
1070 if (esw_stats == NULL) in qlcnic_get_port_stats()
1100 esw_stats->context_id = le16_to_cpu(stats->context_id); in qlcnic_get_port_stats()
1101 esw_stats->version = le16_to_cpu(stats->version); in qlcnic_get_port_stats()
1102 esw_stats->size = le16_to_cpu(stats->size); in qlcnic_get_port_stats()
1103 esw_stats->multicast_frames = in qlcnic_get_port_stats()
1105 esw_stats->broadcast_frames = in qlcnic_get_port_stats()
1107 esw_stats->unicast_frames = le64_to_cpu(stats->unicast_frames); in qlcnic_get_port_stats()
1108 esw_stats->dropped_frames = le64_to_cpu(stats->dropped_frames); in qlcnic_get_port_stats()
1109 esw_stats->local_frames = le64_to_cpu(stats->local_frames); in qlcnic_get_port_stats()
1110 esw_stats->errors = le64_to_cpu(stats->errors); in qlcnic_get_port_stats()
1111 esw_stats->numbytes = le64_to_cpu(stats->numbytes); in qlcnic_get_port_stats()
1185 const u8 rx_tx, struct __qlcnic_esw_statistics *esw_stats) { in qlcnic_get_eswitch_stats() argument
1191 if (esw_stats == NULL) in qlcnic_get_eswitch_stats()
1198 memset(esw_stats, 0, sizeof(u64)); in qlcnic_get_eswitch_stats()
1199 esw_stats->unicast_frames = QLCNIC_STATS_NOT_AVAIL; in qlcnic_get_eswitch_stats()
1200 esw_stats->multicast_frames = QLCNIC_STATS_NOT_AVAIL; in qlcnic_get_eswitch_stats()
1201 esw_stats->broadcast_frames = QLCNIC_STATS_NOT_AVAIL; in qlcnic_get_eswitch_stats()
1202 esw_stats->dropped_frames = QLCNIC_STATS_NOT_AVAIL; in qlcnic_get_eswitch_stats()
1203 esw_stats->errors = QLCNIC_STATS_NOT_AVAIL; in qlcnic_get_eswitch_stats()
1204 esw_stats->local_frames = QLCNIC_STATS_NOT_AVAIL; in qlcnic_get_eswitch_stats()
1205 esw_stats->numbytes = QLCNIC_STATS_NOT_AVAIL; in qlcnic_get_eswitch_stats()
1206 esw_stats->context_id = eswitch; in qlcnic_get_eswitch_stats()
1217 esw_stats->size = port_stats.size; in qlcnic_get_eswitch_stats()
1218 esw_stats->version = port_stats.version; in qlcnic_get_eswitch_stats()
1219 QLCNIC_ADD_ESW_STATS(esw_stats->unicast_frames, in qlcnic_get_eswitch_stats()
1221 QLCNIC_ADD_ESW_STATS(esw_stats->multicast_frames, in qlcnic_get_eswitch_stats()
1223 QLCNIC_ADD_ESW_STATS(esw_stats->broadcast_frames, in qlcnic_get_eswitch_stats()
1225 QLCNIC_ADD_ESW_STATS(esw_stats->dropped_frames, in qlcnic_get_eswitch_stats()
1227 QLCNIC_ADD_ESW_STATS(esw_stats->errors, in qlcnic_get_eswitch_stats()
1229 QLCNIC_ADD_ESW_STATS(esw_stats->local_frames, in qlcnic_get_eswitch_stats()
1231 QLCNIC_ADD_ESW_STATS(esw_stats->numbytes, in qlcnic_get_eswitch_stats()