Lines Matching refs:PRIV
44 #define PRIV(dev) ((struct idt77105_priv *) dev->phy_data) macro
148 memcpy(&stats, &PRIV(dev)->stats, sizeof(struct idt77105_stats)); in fetch_stats()
150 memset(&PRIV(dev)->stats, 0, sizeof(struct idt77105_stats)); in fetch_stats()
184 PRIV(dev)->loop_mode = mode; in set_loopback()
201 return put_user(PRIV(dev)->loop_mode,(int __user *)arg) ? in idt77105_ioctl()
231 PRIV(dev)->old_mcr = GET(MCR); in idt77105_int()
233 (PRIV(dev)->old_mcr| in idt77105_int()
267 PRIV(dev)->dev = dev; in idt77105_start()
269 PRIV(dev)->next = idt77105_all; in idt77105_start()
270 idt77105_all = PRIV(dev); in idt77105_start()
272 memset(&PRIV(dev)->stats,0,sizeof(struct idt77105_stats)); in idt77105_start()
285 PRIV(dev)->loop_mode = ATM_LM_NONE; in idt77105_start()
288 PRIV(dev)->loop_mode = ATM_LM_LOC_ATM; in idt77105_start()
291 PRIV(dev)->loop_mode = ATM_LM_RMT_ATM; in idt77105_start()
296 PRIV(dev)->old_mcr = GET(MCR); in idt77105_start()
298 PRIV(dev)->old_mcr |= IDT77105_MCR_EIP; in idt77105_start()
299 PUT(PRIV(dev)->old_mcr, MCR); in idt77105_start()