Lines Matching refs:cntrs

1437 	struct qib_verbs_counters cntrs;  in pma_get_portcounters()  local
1440 qib_get_counters(ppd, &cntrs); in pma_get_portcounters()
1443 cntrs.symbol_error_counter -= ibp->z_symbol_error_counter; in pma_get_portcounters()
1444 cntrs.link_error_recovery_counter -= in pma_get_portcounters()
1446 cntrs.link_downed_counter -= ibp->z_link_downed_counter; in pma_get_portcounters()
1447 cntrs.port_rcv_errors -= ibp->z_port_rcv_errors; in pma_get_portcounters()
1448 cntrs.port_rcv_remphys_errors -= ibp->z_port_rcv_remphys_errors; in pma_get_portcounters()
1449 cntrs.port_xmit_discards -= ibp->z_port_xmit_discards; in pma_get_portcounters()
1450 cntrs.port_xmit_data -= ibp->z_port_xmit_data; in pma_get_portcounters()
1451 cntrs.port_rcv_data -= ibp->z_port_rcv_data; in pma_get_portcounters()
1452 cntrs.port_xmit_packets -= ibp->z_port_xmit_packets; in pma_get_portcounters()
1453 cntrs.port_rcv_packets -= ibp->z_port_rcv_packets; in pma_get_portcounters()
1454 cntrs.local_link_integrity_errors -= in pma_get_portcounters()
1456 cntrs.excessive_buffer_overrun_errors -= in pma_get_portcounters()
1458 cntrs.vl15_dropped -= ibp->z_vl15_dropped; in pma_get_portcounters()
1459 cntrs.vl15_dropped += ibp->rvp.n_vl15_dropped; in pma_get_portcounters()
1467 if (cntrs.symbol_error_counter > 0xFFFFUL) in pma_get_portcounters()
1471 cpu_to_be16((u16)cntrs.symbol_error_counter); in pma_get_portcounters()
1472 if (cntrs.link_error_recovery_counter > 0xFFUL) in pma_get_portcounters()
1476 (u8)cntrs.link_error_recovery_counter; in pma_get_portcounters()
1477 if (cntrs.link_downed_counter > 0xFFUL) in pma_get_portcounters()
1480 p->link_downed_counter = (u8)cntrs.link_downed_counter; in pma_get_portcounters()
1481 if (cntrs.port_rcv_errors > 0xFFFFUL) in pma_get_portcounters()
1485 cpu_to_be16((u16) cntrs.port_rcv_errors); in pma_get_portcounters()
1486 if (cntrs.port_rcv_remphys_errors > 0xFFFFUL) in pma_get_portcounters()
1490 cpu_to_be16((u16)cntrs.port_rcv_remphys_errors); in pma_get_portcounters()
1491 if (cntrs.port_xmit_discards > 0xFFFFUL) in pma_get_portcounters()
1495 cpu_to_be16((u16)cntrs.port_xmit_discards); in pma_get_portcounters()
1496 if (cntrs.local_link_integrity_errors > 0xFUL) in pma_get_portcounters()
1497 cntrs.local_link_integrity_errors = 0xFUL; in pma_get_portcounters()
1498 if (cntrs.excessive_buffer_overrun_errors > 0xFUL) in pma_get_portcounters()
1499 cntrs.excessive_buffer_overrun_errors = 0xFUL; in pma_get_portcounters()
1500 p->link_overrun_errors = (cntrs.local_link_integrity_errors << 4) | in pma_get_portcounters()
1501 cntrs.excessive_buffer_overrun_errors; in pma_get_portcounters()
1502 if (cntrs.vl15_dropped > 0xFFFFUL) in pma_get_portcounters()
1505 p->vl15_dropped = cpu_to_be16((u16)cntrs.vl15_dropped); in pma_get_portcounters()
1506 if (cntrs.port_xmit_data > 0xFFFFFFFFUL) in pma_get_portcounters()
1509 p->port_xmit_data = cpu_to_be32((u32)cntrs.port_xmit_data); in pma_get_portcounters()
1510 if (cntrs.port_rcv_data > 0xFFFFFFFFUL) in pma_get_portcounters()
1513 p->port_rcv_data = cpu_to_be32((u32)cntrs.port_rcv_data); in pma_get_portcounters()
1514 if (cntrs.port_xmit_packets > 0xFFFFFFFFUL) in pma_get_portcounters()
1518 cpu_to_be32((u32)cntrs.port_xmit_packets); in pma_get_portcounters()
1519 if (cntrs.port_rcv_packets > 0xFFFFFFFFUL) in pma_get_portcounters()
1523 cpu_to_be32((u32) cntrs.port_rcv_packets); in pma_get_portcounters()
1534 struct qib_verbs_counters cntrs; in pma_get_portcounters_cong() local
1551 qib_get_counters(ppd, &cntrs); in pma_get_portcounters_cong()
1557 cntrs.symbol_error_counter -= ibp->z_symbol_error_counter; in pma_get_portcounters_cong()
1558 cntrs.link_error_recovery_counter -= in pma_get_portcounters_cong()
1560 cntrs.link_downed_counter -= ibp->z_link_downed_counter; in pma_get_portcounters_cong()
1561 cntrs.port_rcv_errors -= ibp->z_port_rcv_errors; in pma_get_portcounters_cong()
1562 cntrs.port_rcv_remphys_errors -= in pma_get_portcounters_cong()
1564 cntrs.port_xmit_discards -= ibp->z_port_xmit_discards; in pma_get_portcounters_cong()
1565 cntrs.local_link_integrity_errors -= in pma_get_portcounters_cong()
1567 cntrs.excessive_buffer_overrun_errors -= in pma_get_portcounters_cong()
1569 cntrs.vl15_dropped -= ibp->z_vl15_dropped; in pma_get_portcounters_cong()
1570 cntrs.vl15_dropped += ibp->rvp.n_vl15_dropped; in pma_get_portcounters_cong()
1571 cntrs.port_xmit_data -= ibp->z_port_xmit_data; in pma_get_portcounters_cong()
1572 cntrs.port_rcv_data -= ibp->z_port_rcv_data; in pma_get_portcounters_cong()
1573 cntrs.port_xmit_packets -= ibp->z_port_xmit_packets; in pma_get_portcounters_cong()
1574 cntrs.port_rcv_packets -= ibp->z_port_rcv_packets; in pma_get_portcounters_cong()
1589 p->port_xmit_data = cpu_to_be64(cntrs.port_xmit_data); in pma_get_portcounters_cong()
1590 p->port_rcv_data = cpu_to_be64(cntrs.port_rcv_data); in pma_get_portcounters_cong()
1592 cpu_to_be64(cntrs.port_xmit_packets); in pma_get_portcounters_cong()
1594 cpu_to_be64(cntrs.port_rcv_packets); in pma_get_portcounters_cong()
1595 if (cntrs.symbol_error_counter > 0xFFFFUL) in pma_get_portcounters_cong()
1600 (u16)cntrs.symbol_error_counter); in pma_get_portcounters_cong()
1601 if (cntrs.link_error_recovery_counter > 0xFFUL) in pma_get_portcounters_cong()
1605 (u8)cntrs.link_error_recovery_counter; in pma_get_portcounters_cong()
1606 if (cntrs.link_downed_counter > 0xFFUL) in pma_get_portcounters_cong()
1610 (u8)cntrs.link_downed_counter; in pma_get_portcounters_cong()
1611 if (cntrs.port_rcv_errors > 0xFFFFUL) in pma_get_portcounters_cong()
1615 cpu_to_be16((u16) cntrs.port_rcv_errors); in pma_get_portcounters_cong()
1616 if (cntrs.port_rcv_remphys_errors > 0xFFFFUL) in pma_get_portcounters_cong()
1621 (u16)cntrs.port_rcv_remphys_errors); in pma_get_portcounters_cong()
1622 if (cntrs.port_xmit_discards > 0xFFFFUL) in pma_get_portcounters_cong()
1626 cpu_to_be16((u16)cntrs.port_xmit_discards); in pma_get_portcounters_cong()
1627 if (cntrs.local_link_integrity_errors > 0xFUL) in pma_get_portcounters_cong()
1628 cntrs.local_link_integrity_errors = 0xFUL; in pma_get_portcounters_cong()
1629 if (cntrs.excessive_buffer_overrun_errors > 0xFUL) in pma_get_portcounters_cong()
1630 cntrs.excessive_buffer_overrun_errors = 0xFUL; in pma_get_portcounters_cong()
1631 p->link_overrun_errors = (cntrs.local_link_integrity_errors << 4) | in pma_get_portcounters_cong()
1632 cntrs.excessive_buffer_overrun_errors; in pma_get_portcounters_cong()
1633 if (cntrs.vl15_dropped > 0xFFFFUL) in pma_get_portcounters_cong()
1636 p->vl15_dropped = cpu_to_be16((u16)cntrs.vl15_dropped); in pma_get_portcounters_cong()
1712 struct qib_verbs_counters cntrs; in pma_set_portcounters() local
1718 qib_get_counters(ppd, &cntrs); in pma_set_portcounters()
1721 ibp->z_symbol_error_counter = cntrs.symbol_error_counter; in pma_set_portcounters()
1725 cntrs.link_error_recovery_counter; in pma_set_portcounters()
1728 ibp->z_link_downed_counter = cntrs.link_downed_counter; in pma_set_portcounters()
1731 ibp->z_port_rcv_errors = cntrs.port_rcv_errors; in pma_set_portcounters()
1735 cntrs.port_rcv_remphys_errors; in pma_set_portcounters()
1738 ibp->z_port_xmit_discards = cntrs.port_xmit_discards; in pma_set_portcounters()
1742 cntrs.local_link_integrity_errors; in pma_set_portcounters()
1746 cntrs.excessive_buffer_overrun_errors; in pma_set_portcounters()
1750 ibp->z_vl15_dropped = cntrs.vl15_dropped; in pma_set_portcounters()
1754 ibp->z_port_xmit_data = cntrs.port_xmit_data; in pma_set_portcounters()
1757 ibp->z_port_rcv_data = cntrs.port_rcv_data; in pma_set_portcounters()
1760 ibp->z_port_xmit_packets = cntrs.port_xmit_packets; in pma_set_portcounters()
1763 ibp->z_port_rcv_packets = cntrs.port_rcv_packets; in pma_set_portcounters()
1774 struct qib_verbs_counters cntrs; in pma_set_portcounters_cong() local
1779 qib_get_counters(ppd, &cntrs); in pma_set_portcounters_cong()
1791 ibp->z_port_xmit_data = cntrs.port_xmit_data; in pma_set_portcounters_cong()
1792 ibp->z_port_rcv_data = cntrs.port_rcv_data; in pma_set_portcounters_cong()
1793 ibp->z_port_xmit_packets = cntrs.port_xmit_packets; in pma_set_portcounters_cong()
1794 ibp->z_port_rcv_packets = cntrs.port_rcv_packets; in pma_set_portcounters_cong()
1798 cntrs.symbol_error_counter; in pma_set_portcounters_cong()
1800 cntrs.link_error_recovery_counter; in pma_set_portcounters_cong()
1802 cntrs.link_downed_counter; in pma_set_portcounters_cong()
1803 ibp->z_port_rcv_errors = cntrs.port_rcv_errors; in pma_set_portcounters_cong()
1805 cntrs.port_rcv_remphys_errors; in pma_set_portcounters_cong()
1807 cntrs.port_xmit_discards; in pma_set_portcounters_cong()
1809 cntrs.local_link_integrity_errors; in pma_set_portcounters_cong()
1811 cntrs.excessive_buffer_overrun_errors; in pma_set_portcounters_cong()
1813 ibp->z_vl15_dropped = cntrs.vl15_dropped; in pma_set_portcounters_cong()