Lines Matching full:get

41 #define GET(reg) dev->ops->phy_get(dev,SUNI_##reg)  macro
43 PUT((GET(reg) & ~(mask)) | ((value) << (shift)),reg)
67 ADD_LIMITED(section_bip,(GET(RSOP_SBL) & 0xff) | in suni_hz()
68 ((GET(RSOP_SBM) & 0xff) << 8)); in suni_hz()
69 ADD_LIMITED(line_bip,(GET(RLOP_LBL) & 0xff) | in suni_hz()
70 ((GET(RLOP_LB) & 0xff) << 8) | in suni_hz()
71 ((GET(RLOP_LBM) & 0xf) << 16)); in suni_hz()
72 ADD_LIMITED(path_bip,(GET(RPOP_PBL) & 0xff) | in suni_hz()
73 ((GET(RPOP_PBM) & 0xff) << 8)); in suni_hz()
74 ADD_LIMITED(line_febe,(GET(RLOP_LFL) & 0xff) | in suni_hz()
75 ((GET(RLOP_LF) & 0xff) << 8) | in suni_hz()
76 ((GET(RLOP_LFM) & 0xf) << 16)); in suni_hz()
77 ADD_LIMITED(path_febe,(GET(RPOP_PFL) & 0xff) | in suni_hz()
78 ((GET(RPOP_PFM) & 0xff) << 8)); in suni_hz()
79 ADD_LIMITED(corr_hcs,GET(RACP_CHEC) & 0xff); in suni_hz()
80 ADD_LIMITED(uncorr_hcs,GET(RACP_UHEC) & 0xff); in suni_hz()
81 ADD_LIMITED(rx_cells,(GET(RACP_RCCL) & 0xff) | in suni_hz()
82 ((GET(RACP_RCC) & 0xff) << 8) | in suni_hz()
83 ((GET(RACP_RCCM) & 7) << 16)); in suni_hz()
84 ADD_LIMITED(tx_cells,(GET(TACP_TCCL) & 0xff) | in suni_hz()
85 ((GET(TACP_TCC) & 0xff) << 8) | in suni_hz()
86 ((GET(TACP_TCCM) & 7) << 16)); in suni_hz()
109 if (set) PUT(GET(reg) | bit,reg); \
110 else PUT(GET(reg) & ~bit,reg); \
140 if (GET(TSOP_DIAG) & SUNI_TSOP_DIAG_DBIP8) set |= SONET_INS_SBIP; in get_diag()
141 if (GET(TLOP_DIAG) & SUNI_TLOP_DIAG_DBIP) set |= SONET_INS_LBIP; in get_diag()
142 if (GET(TPOP_CD) & SUNI_TPOP_DIAG_DB3) set |= SONET_INS_PBIP; in get_diag()
144 if (GET(TSOP_CTRL) & SUNI_TSOP_CTRL_LAIS) set |= SONET_INS_LAIS; in get_diag()
145 if (GET(TPOP_CD) & SUNI_TPOP_DIAG_PAIS) set |= SONET_INS_PAIS; in get_diag()
146 if (GET(TSOP_DIAG) & SUNI_TSOP_DIAG_DLOS) set |= SONET_INS_LOS; in get_diag()
147 if (GET(TACP_CS) & SUNI_TACP_CS_DHCS) set |= SONET_INS_HCS; in get_diag()
198 PUT(GET(RPOP_RC) & ~SUNI_RPOP_RC_ENSS, RPOP_RC); in set_sonet()
199 PUT(GET(SSTB_CTRL) & ~SUNI_SSTB_CTRL_LEN16, SSTB_CTRL); in set_sonet()
200 PUT(GET(SPTB_CTRL) & ~SUNI_SPTB_CTRL_LEN16, SPTB_CTRL); in set_sonet()
212 PUT(GET(RPOP_RC) | SUNI_RPOP_RC_ENSS, RPOP_RC); in set_sdh()
213 PUT(GET(SSTB_CTRL) | SUNI_SSTB_CTRL_LEN16, SSTB_CTRL); in set_sdh()
214 PUT(GET(SPTB_CTRL) | SUNI_SPTB_CTRL_LEN16, SPTB_CTRL); in set_sdh()
230 s = (GET(TPOP_APM) & SUNI_TPOP_APM_S) >> SUNI_TPOP_APM_S_SHIFT; in get_framing()
294 GET(RSOP_SIS) & SUNI_RSOP_SIS_LOSV ? in poll_los()
318 PUT(GET(RSOP_CIE) | SUNI_RSOP_CIE_LOSE,RSOP_CIE); in suni_start()
374 mri = GET(MRI); /* reset SUNI */ in suni_init()
378 PUT((GET(MT) & SUNI_MT_DS27_53),MT); /* disable all tests */ in suni_init()