Searched refs:sonet_stats (Results 1 – 5 of 5) sorted by relevance
/drivers/atm/ |
D | uPD98402.c | 27 struct k_sonet_stats sonet_stats;/* link diagnostics */ member 40 static int fetch_stats(struct atm_dev *dev,struct sonet_stats __user *arg,int zero) in fetch_stats() 42 struct sonet_stats tmp; in fetch_stats() 45 atomic_add(GET(HECCT),&PRIV(dev)->sonet_stats.uncorr_hcs); in fetch_stats() 46 sonet_copy_stats(&PRIV(dev)->sonet_stats,&tmp); in fetch_stats() 52 sonet_subtract_stats(&PRIV(dev)->sonet_stats,&tmp); in fetch_stats() 164 { atomic_add(GET(v),&PRIV(dev)->sonet_stats.s); \ 165 if (atomic_read(&PRIV(dev)->sonet_stats.s) < 0) \ 166 atomic_set(&PRIV(dev)->sonet_stats.s,INT_MAX); } 198 &PRIV(dev)->sonet_stats.uncorr_hcs); in uPD98402_int() [all …]
|
D | suni.c | 64 stats = &walk->sonet_stats; in suni_hz() 95 static int fetch_stats(struct atm_dev *dev,struct sonet_stats __user *arg,int zero) in fetch_stats() 97 struct sonet_stats tmp; in fetch_stats() 100 sonet_copy_stats(&PRIV(dev)->sonet_stats,&tmp); in fetch_stats() 102 if (zero && !error) sonet_subtract_stats(&PRIV(dev)->sonet_stats,&tmp); in fetch_stats() 317 memset(&PRIV(dev)->sonet_stats,0,sizeof(struct k_sonet_stats)); in suni_start()
|
D | suni.h | 231 struct k_sonet_stats sonet_stats; /* link diagnostics */ member
|
D | fore200e.c | 1925 fore200e_fetch_stats(struct fore200e* fore200e, struct sonet_stats __user *arg) in fore200e_fetch_stats() 1927 struct sonet_stats tmp; in fore200e_fetch_stats() 1947 return copy_to_user(arg, &tmp, sizeof(struct sonet_stats)) ? -EFAULT : 0; in fore200e_fetch_stats() 1963 return fore200e_fetch_stats(fore200e, (struct sonet_stats __user *)arg); in fore200e_ioctl()
|
D | iphase.c | 2828 stats = &PRIV(_ia_dev[board])->sonet_stats;
|