Lines Matching refs:PRIV
39 #define PRIV(dev) ((struct suni_priv *) dev->phy_data) macro
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()
158 if (PRIV(dev)->type == SUNI_MRI_TYPE_PM5355) { in set_loopback()
182 PRIV(dev)->loop_mode = mode; in set_loopback()
198 if (PRIV(dev)->type == SUNI_MRI_TYPE_PM5355) { in set_sonet()
212 if (PRIV(dev)->type == SUNI_MRI_TYPE_PM5355) { in set_sdh()
281 return put_user(PRIV(dev)->loop_mode,(int __user *)arg) ? in suni_ioctl()
315 PRIV(dev)->next = sunis; in suni_start()
316 sunis = PRIV(dev); in suni_start()
318 memset(&PRIV(dev)->sonet_stats,0,sizeof(struct k_sonet_stats)); in suni_start()
325 PRIV(dev)->loop_mode = ATM_LM_NONE; in suni_start()
348 for (walk = &sunis; *walk != PRIV(dev); in suni_stop()
349 walk = &PRIV((*walk)->dev)->next); in suni_stop()
350 *walk = PRIV((*walk)->dev)->next; in suni_stop()
353 kfree(PRIV(dev)); in suni_stop()
373 PRIV(dev)->dev = dev; in suni_init()
376 PRIV(dev)->type = (mri & SUNI_MRI_TYPE) >> SUNI_MRI_TYPE_SHIFT; in suni_init()