Lines Matching refs:port

57     /* 'newest' convention - shmem2 contains the size of the port stats */
71 * Older convention - all BCs support the port stats fields up until
271 if (!sc->port.pmf || !sc->port.port_stx) {
282 dmae->src_addr_lo = (sc->port.port_stx >> 2);
293 dmae->src_addr_lo = ((sc->port.port_stx >> 2) + DMAE_LEN32_RD_MAX);
314 int port = SC_PORT(sc);
321 if (!sc->link_vars.link_up || !sc->port.pmf) {
332 if (sc->port.port_stx) {
337 dmae->dst_addr_lo = sc->port.port_stx >> 2;
364 mac_addr = (port ? GRCBASE_EMAC1 : GRCBASE_EMAC0);
416 mac_addr = (port) ? NIG_REG_INGRESS_BMAC1_MEM :
446 mac_addr = (port) ? GRCBASE_MSTAT1 : GRCBASE_MSTAT0;
488 (port ? NIG_REG_STAT1_EGRESS_MAC_PKT0 :
505 (port ? NIG_REG_STAT1_EGRESS_MAC_PKT1 :
524 (port ? NIG_REG_STAT1_BRB_DISCARD :
578 if (sc->port.pmf) {
856 struct nig_stats *old = &(sc->port.old_nig_stats);
982 &sc->fw_stats_data->port.tstorm_port_statistics;
1149 if (sc->port.pmf) {
1306 if (sc->port.pmf) {
1351 if (sc->port.port_stx) {
1362 dmae->dst_addr_lo = sc->port.port_stx >> 2;
1401 if (sc->port.pmf) {
1410 if (sc->port.pmf) {
1473 if (!sc->port.pmf || !sc->port.port_stx) {
1485 dmae->dst_addr_lo = (sc->port.port_stx >> 2);
1536 offsetof(struct bxe_fw_stats_data, port));
1541 /* For port query index is a DONT CARE */
1543 /* For port query funcID is a DONT CARE */
1588 int /*abs*/port = SC_PORT(sc);
1596 /* port and func stats for management */
1598 sc->port.port_stx = SHMEM_RD(sc, port_mb[port].port_stx);
1601 sc->port.port_stx = 0;
1606 sc->port.port_stx, sc->func_stx);
1608 /* pmf should retrieve port statistics from SP on a non-init*/
1609 if (!sc->stats_init && sc->port.pmf && sc->port.port_stx) {
1613 port = SC_PORT(sc);
1614 /* port stats */
1615 memset(&(sc->port.old_nig_stats), 0, sizeof(struct nig_stats));
1616 sc->port.old_nig_stats.brb_discard =
1617 REG_RD(sc, NIG_REG_STAT0_BRB_DISCARD + port*0x38);
1618 sc->port.old_nig_stats.brb_truncate =
1619 REG_RD(sc, NIG_REG_STAT0_BRB_TRUNCATE + port*0x38);
1621 REG_RD_DMAE(sc, NIG_REG_STAT0_EGRESS_MAC_PKT0 + port*0x50,
1622 &(sc->port.old_nig_stats.egress_mac_pkt0_lo), 2);
1623 REG_RD_DMAE(sc, NIG_REG_STAT0_EGRESS_MAC_PKT1 + port*0x50,
1624 &(sc->port.old_nig_stats.egress_mac_pkt1_lo), 2);
1670 if (sc->port.pmf && sc->port.port_stx) {
1708 /* store port firmware statistics */
1709 if (sc->port.pmf) {
1833 * If port stats are requested, add them to the PMF
1837 if ((sc->port.pmf) && (stats_type == VICSTATST_UIF_INDEX)) {