Home
last modified time | relevance | path

Searched refs:sonet_stats (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/atm/
DuPD98402.c28 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()
[all …]
Dsuni.c65 stats = &walk->sonet_stats; in suni_hz()
96 static int fetch_stats(struct atm_dev *dev,struct sonet_stats __user *arg,int zero) in fetch_stats()
98 struct sonet_stats tmp; in fetch_stats()
101 sonet_copy_stats(&PRIV(dev)->sonet_stats,&tmp); in fetch_stats()
103 if (zero && !error) sonet_subtract_stats(&PRIV(dev)->sonet_stats,&tmp); in fetch_stats()
318 memset(&PRIV(dev)->sonet_stats,0,sizeof(struct k_sonet_stats)); in suni_start()
Dsuni.h232 struct k_sonet_stats sonet_stats; /* link diagnostics */ member
Dfore200e.c1827 fore200e_fetch_stats(struct fore200e* fore200e, struct sonet_stats __user *arg) in fore200e_fetch_stats()
1829 struct sonet_stats tmp; in fore200e_fetch_stats()
1849 return copy_to_user(arg, &tmp, sizeof(struct sonet_stats)) ? -EFAULT : 0; in fore200e_fetch_stats()
1865 return fore200e_fetch_stats(fore200e, (struct sonet_stats __user *)arg); in fore200e_ioctl()
Diphase.c2834 stats = &PRIV(_ia_dev[board])->sonet_stats;
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dsonet.h22 struct sonet_stats { struct
27 #define SONET_GETSTAT _IOR('a', ATMIOC_PHYTYP, struct sonet_stats)
28 #define SONET_GETSTATZ _IOR('a', ATMIOC_PHYTYP + 1, struct sonet_stats)
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dsonet.h20 struct sonet_stats { struct
25 #define SONET_GETSTAT _IOR('a',ATMIOC_PHYTYP,struct sonet_stats)
27 #define SONET_GETSTATZ _IOR('a',ATMIOC_PHYTYP+1,struct sonet_stats)
/kernel/linux/linux-5.10/include/uapi/linux/
Dsonet.h21 struct sonet_stats { struct
28 #define SONET_GETSTAT _IOR('a',ATMIOC_PHYTYP,struct sonet_stats)
30 #define SONET_GETSTATZ _IOR('a',ATMIOC_PHYTYP+1,struct sonet_stats)
/kernel/linux/linux-5.10/include/linux/
Dsonet.h16 extern void sonet_copy_stats(struct k_sonet_stats *from,struct sonet_stats *to);
18 struct sonet_stats *to);
/kernel/linux/linux-5.10/net/atm/
Datm_misc.c88 void sonet_copy_stats(struct k_sonet_stats *from, struct sonet_stats *to) in sonet_copy_stats()
96 void sonet_subtract_stats(struct k_sonet_stats *from, struct sonet_stats *to) in sonet_subtract_stats()