Lines Matching refs:set
109 if (set) PUT(GET(reg) | bit,reg); \
115 static int change_diag(struct atm_dev *dev,void __user *arg,int set) in change_diag() argument
137 int set; in get_diag() local
139 set = 0; in get_diag()
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()
148 return put_user(set,(int __user *)arg) ? -EFAULT : 0; in get_diag()