Lines Matching refs:sonet_stats
28 struct k_sonet_stats sonet_stats;/* link diagnostics */ member
41 static int fetch_stats(struct atm_dev *dev,struct sonet_stats __user *arg,int zero) in fetch_stats()
43 struct sonet_stats tmp; in fetch_stats()
46 atomic_add(GET(HECCT),&PRIV(dev)->sonet_stats.uncorr_hcs); in fetch_stats()
47 sonet_copy_stats(&PRIV(dev)->sonet_stats,&tmp); in fetch_stats()
53 sonet_subtract_stats(&PRIV(dev)->sonet_stats,&tmp); in fetch_stats()
165 { atomic_add(GET(v),&PRIV(dev)->sonet_stats.s); \
166 if (atomic_read(&PRIV(dev)->sonet_stats.s) < 0) \
167 atomic_set(&PRIV(dev)->sonet_stats.s,INT_MAX); }
199 &PRIV(dev)->sonet_stats.uncorr_hcs); in uPD98402_int()
217 memset(&PRIV(dev)->sonet_stats,0,sizeof(struct k_sonet_stats)); in uPD98402_start()
226 atomic_set(&PRIV(dev)->sonet_stats.corr_hcs,-1); in uPD98402_start()
227 atomic_set(&PRIV(dev)->sonet_stats.tx_cells,-1); in uPD98402_start()
228 atomic_set(&PRIV(dev)->sonet_stats.rx_cells,-1); in uPD98402_start()