Lines Matching refs:stats
203 } stats; member
298 (GET_STATUS(sc->stats.phy.state) == 2) : \
299 (sc->stats.phy.state == 7))
1319 sc->stats.phy.dsrate == dsrate) in uea_set_bulk_timeout()
1341 data = sc->stats.phy.state; in uea_stat_e1()
1343 ret = uea_read_cmv_e1(sc, E1_SA_STAT, 0, &sc->stats.phy.state); in uea_stat_e1()
1347 switch (GET_STATUS(sc->stats.phy.state)) { in uea_stat_e1()
1376 GET_STATUS(sc->stats.phy.state)); in uea_stat_e1()
1399 ret = uea_read_cmv_e1(sc, E1_SA_DIAG, 2, &sc->stats.phy.flags); in uea_stat_e1()
1402 sc->stats.phy.mflags |= sc->stats.phy.flags; in uea_stat_e1()
1407 if (sc->stats.phy.flags) { in uea_stat_e1()
1409 sc->stats.phy.flags); in uea_stat_e1()
1418 sc->stats.phy.dsrate = (data >> 16) * 32; in uea_stat_e1()
1419 sc->stats.phy.usrate = (data & 0xffff) * 32; in uea_stat_e1()
1420 UPDATE_ATM_STAT(link_rate, sc->stats.phy.dsrate * 1000 / 424); in uea_stat_e1()
1425 sc->stats.phy.dsattenuation = (data & 0xff) / 2; in uea_stat_e1()
1430 sc->stats.phy.usattenuation = (data & 0xff) / 2; in uea_stat_e1()
1432 ret = uea_read_cmv_e1(sc, E1_SA_DIAG, 25, &sc->stats.phy.dsmargin); in uea_stat_e1()
1436 ret = uea_read_cmv_e1(sc, E1_SA_DIAG, 49, &sc->stats.phy.usmargin); in uea_stat_e1()
1440 ret = uea_read_cmv_e1(sc, E1_SA_DIAG, 51, &sc->stats.phy.rxflow); in uea_stat_e1()
1444 ret = uea_read_cmv_e1(sc, E1_SA_DIAG, 52, &sc->stats.phy.txflow); in uea_stat_e1()
1448 ret = uea_read_cmv_e1(sc, E1_SA_DIAG, 54, &sc->stats.phy.dsunc); in uea_stat_e1()
1453 ret = uea_read_cmv_e1(sc, E1_SA_DIAG, 58, &sc->stats.phy.usunc); in uea_stat_e1()
1457 ret = uea_read_cmv_e1(sc, E1_SA_DIAG, 53, &sc->stats.phy.dscorr); in uea_stat_e1()
1462 ret = uea_read_cmv_e1(sc, E1_SA_DIAG, 57, &sc->stats.phy.uscorr); in uea_stat_e1()
1466 ret = uea_read_cmv_e1(sc, E1_SA_INFO, 8, &sc->stats.phy.vidco); in uea_stat_e1()
1470 ret = uea_read_cmv_e1(sc, E1_SA_INFO, 13, &sc->stats.phy.vidcpe); in uea_stat_e1()
1484 data = sc->stats.phy.state; in uea_stat_e4()
1487 ret = uea_read_cmv_e4(sc, 1, E4_SA_STAT, 0, 0, &sc->stats.phy.state); in uea_stat_e4()
1491 switch (sc->stats.phy.state) { in uea_stat_e4()
1513 sc->stats.phy.state); in uea_stat_e4()
1541 ret = uea_read_cmv_e4(sc, 1, E4_SA_DIAG, 0, 0, &sc->stats.phy.flags); in uea_stat_e4()
1544 sc->stats.phy.mflags |= sc->stats.phy.flags; in uea_stat_e4()
1549 if (sc->stats.phy.flags) { in uea_stat_e4()
1551 sc->stats.phy.flags); in uea_stat_e4()
1552 if (sc->stats.phy.flags & 1) /* delineation LOSS */ in uea_stat_e4()
1554 if (sc->stats.phy.flags & 0x4000) /* Reset Flag */ in uea_stat_e4()
1564 sc->stats.phy.usrate = data / 1000; in uea_stat_e4()
1571 sc->stats.phy.dsrate = data / 1000; in uea_stat_e4()
1572 UPDATE_ATM_STAT(link_rate, sc->stats.phy.dsrate * 1000 / 424); in uea_stat_e4()
1577 sc->stats.phy.dsattenuation = data / 10; in uea_stat_e4()
1582 sc->stats.phy.usattenuation = data / 10; in uea_stat_e4()
1587 sc->stats.phy.dsmargin = data / 2; in uea_stat_e4()
1592 sc->stats.phy.usmargin = data / 10; in uea_stat_e4()
1731 ret = uea_read_cmv_e1(sc, E1_SA_INFO, 10, &sc->stats.phy.firmid); in uea_send_cmvs_e1()
1735 sc->stats.phy.firmid); in uea_send_cmvs_e1()
1798 ret = uea_read_cmv_e4(sc, 2, E4_SA_INFO, 55, 0, &sc->stats.phy.firmid); in uea_send_cmvs_e4()
1802 sc->stats.phy.firmid); in uea_send_cmvs_e4()
1863 memset(&sc->stats, 0, sizeof(struct uea_stats)); in uea_start_reset()
2297 ret = snprintf(buf, 10, "%08x\n", sc->stats.phy.state); in read_status()
2335 switch (sc->stats.phy.state) { in read_human_status()
2359 modem_state = GET_STATUS(sc->stats.phy.state); in read_human_status()
2398 if (sc->stats.phy.flags & 0x4000) in read_delin()
2400 else if (sc->stats.phy.flags & 0x0001) in read_delin()
2403 if (sc->stats.phy.flags & 0x0C00) in read_delin()
2405 else if (sc->stats.phy.flags & 0x0030) in read_delin()
2429 ret = snprintf(buf, 10, "%08x\n", sc->stats.phy.name); \
2431 sc->stats.phy.name = 0; \