Home
last modified time | relevance | path

Searched refs:PRIV (Results 1 – 8 of 8) sorted by relevance

/drivers/atm/
DuPD98402.c34 #define PRIV(dev) ((struct uPD98402_priv *) dev->phy_data) macro
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()
75 spin_lock_irqsave(&PRIV(dev)->lock, flags); in set_framing()
81 spin_unlock_irqrestore(&PRIV(dev)->lock, flags); in set_framing()
91 spin_lock_irqsave(&PRIV(dev)->lock, flags); in get_sense()
95 spin_unlock_irqrestore(&PRIV(dev)->lock, flags); in get_sense()
130 PRIV(dev)->loop_mode = mode; in set_loopback()
145 return put_user(PRIV(dev)->framing,(int __user *)arg) ? in uPD98402_ioctl()
[all …]
Didt77105.c43 #define PRIV(dev) ((struct idt77105_priv *) dev->phy_data) macro
147 memcpy(&stats, &PRIV(dev)->stats, sizeof(struct idt77105_stats)); in fetch_stats()
149 memset(&PRIV(dev)->stats, 0, sizeof(struct idt77105_stats)); in fetch_stats()
183 PRIV(dev)->loop_mode = mode; in set_loopback()
200 return put_user(PRIV(dev)->loop_mode,(int __user *)arg) ? in idt77105_ioctl()
230 PRIV(dev)->old_mcr = GET(MCR); in idt77105_int()
232 (PRIV(dev)->old_mcr| in idt77105_int()
266 PRIV(dev)->dev = dev; in idt77105_start()
268 PRIV(dev)->next = idt77105_all; in idt77105_start()
269 idt77105_all = PRIV(dev); in idt77105_start()
[all …]
Dsuni.c38 #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()
[all …]
Datmtcp.c20 #define PRIV(dev) ((struct atmtcp_dev_data *) ((dev)->dev_data)) macro
52 out_vcc = PRIV(vcc->dev) ? PRIV(vcc->dev)->vcc : NULL; in atmtcp_send_control()
57 out_vcc = PRIV(vcc->dev) ? PRIV(vcc->dev)->vcc : NULL; in atmtcp_send_control()
74 out_vcc = PRIV(vcc->dev) ? PRIV(vcc->dev)->vcc : NULL; in atmtcp_send_control()
204 dev_data = PRIV(vcc->dev); in atmtcp_v_send()
237 struct atmtcp_dev_data *dev_data = PRIV(dev); in atmtcp_v_proc()
252 dev_data = PRIV(atmtcp_dev); in atmtcp_c_close()
377 PRIV(dev)->vcc = NULL; in atmtcp_create()
378 PRIV(dev)->persist = persist; in atmtcp_create()
395 if (PRIV(dev)->vcc) { in atmtcp_attach()
[all …]
Diphase.c70 #define PRIV(dev) ((struct suni_priv *) dev->phy_data) macro
2828 stats = &PRIV(_ia_dev[board])->sonet_stats;
/drivers/net/ethernet/natsemi/
Dns83820.c465 static inline struct ns83820 *PRIV(struct net_device *dev) in PRIV() function
474 struct ns83820 *dev = PRIV(ndev); in kick_rx()
556 struct ns83820 *dev = PRIV(ndev); in rx_refill()
615 struct ns83820 *dev = PRIV(ndev); in phy_intr()
722 struct ns83820 *dev = PRIV(ndev); in ns83820_setup_rx()
812 struct ns83820 *dev = PRIV(ndev); in ns83820_rx_kick()
833 struct ns83820 *dev = PRIV(ndev);
944 struct ns83820 *dev = PRIV(ndev);
971 struct ns83820 *dev = PRIV(ndev);
1062 struct ns83820 *dev = PRIV(ndev);
[all …]
/drivers/net/ethernet/8390/
Dpcnet_cs.c216 static inline pcnet_dev_t *PRIV(struct net_device *dev) in PRIV() function
249 info = PRIV(dev); in pcnet_probe()
498 pcnet_dev_t *info = PRIV(dev); in pcnet_try_config()
557 pcnet_dev_t *info = PRIV(dev); in pcnet_config()
640 pcnet_dev_t *info = PRIV(link->priv); in pcnet_release()
837 pcnet_dev_t *info = PRIV(dev); in set_misc_reg()
874 pcnet_dev_t *info = PRIV(dev); in mii_phy_probe()
899 pcnet_dev_t *info = PRIV(dev); in pcnet_open()
932 pcnet_dev_t *info = PRIV(dev); in pcnet_close()
983 pcnet_dev_t *info = PRIV(dev); in set_config()
[all …]
Daxnet_cs.c123 static inline axnet_dev_t *PRIV(struct net_device *dev) in PRIV() function
157 info = PRIV(dev); in axnet_probe()
276 axnet_dev_t *info = PRIV(dev); in axnet_config()
391 axnet_dev_t *info = PRIV(dev); in axnet_resume()
469 axnet_dev_t *info = PRIV(dev); in axnet_open()
499 axnet_dev_t *info = PRIV(dev); in axnet_close()
549 PRIV(dev)->stale = 0; in ei_irq_wrapper()
556 axnet_dev_t *info = PRIV(dev); in ei_watchdog()
612 axnet_dev_t *info = PRIV(dev); in axnet_ioctl()
1473 axnet_dev_t *info = PRIV(dev); in ei_rx_overrun()
[all …]