Lines Matching refs:PRIV
38 #define PRIV(dev) ((struct suni_priv *) dev->phy_data) macro
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()
157 if (PRIV(dev)->type == SUNI_MRI_TYPE_PM5355) { in set_loopback()
181 PRIV(dev)->loop_mode = mode; in set_loopback()
197 if (PRIV(dev)->type == SUNI_MRI_TYPE_PM5355) { in set_sonet()
211 if (PRIV(dev)->type == SUNI_MRI_TYPE_PM5355) { in set_sdh()
280 return put_user(PRIV(dev)->loop_mode,(int __user *)arg) ? in suni_ioctl()
314 PRIV(dev)->next = sunis; in suni_start()
315 sunis = PRIV(dev); in suni_start()
317 memset(&PRIV(dev)->sonet_stats,0,sizeof(struct k_sonet_stats)); in suni_start()
324 PRIV(dev)->loop_mode = ATM_LM_NONE; in suni_start()
347 for (walk = &sunis; *walk != PRIV(dev); in suni_stop()
348 walk = &PRIV((*walk)->dev)->next); in suni_stop()
349 *walk = PRIV((*walk)->dev)->next; in suni_stop()
352 kfree(PRIV(dev)); in suni_stop()
372 PRIV(dev)->dev = dev; in suni_init()
375 PRIV(dev)->type = (mri & SUNI_MRI_TYPE) >> SUNI_MRI_TYPE_SHIFT; in suni_init()