Lines Matching refs:ndev

147 	struct net_device	*ndev;  member
217 struct device *dev = &self->ndev->dev; in sh_irda_rcv_ctrl()
225 struct device *dev = &self->ndev->dev; in sh_irda_set_timeout()
241 struct device *dev = &self->ndev->dev; in sh_irda_set_baudrate()
276 struct device *dev = &self->ndev->dev; in sh_irda_xir_fre()
283 struct device *dev = &self->ndev->dev; in sh_irda_xir_trov()
290 struct device *dev = &self->ndev->dev; in sh_irda_xir_9()
297 struct device *dev = &self->ndev->dev; in sh_irda_xir_8()
304 struct device *dev = &self->ndev->dev; in sh_irda_xir_fte()
338 struct device *dev = &self->ndev->dev; in sh_irda_sir_fre()
354 async_unwrap_char(self->ndev, &self->ndev->stats, in sh_irda_sir_fre()
357 self->ndev->last_rx = jiffies; in sh_irda_sir_fre()
366 struct device *dev = &self->ndev->dev; in sh_irda_sir_trov()
375 struct device *dev = &self->ndev->dev; in sh_irda_sir_tot()
385 struct device *dev = &self->ndev->dev; in sh_irda_sir_fer()
394 struct device *dev = &self->ndev->dev; in sh_irda_sir_fte()
397 netif_wake_queue(self->ndev); in sh_irda_sir_fte()
412 struct device *dev = &self->ndev->dev; in sh_irda_set_mode()
543 struct device *dev = &self->ndev->dev; in sh_irda_crc_init()
595 dev_err(&self->ndev->dev, "iobuff has already existed."); in sh_irda_init_iobuf()
623 static int sh_irda_hard_xmit(struct sk_buff *skb, struct net_device *ndev) in sh_irda_hard_xmit() argument
625 struct sh_irda_self *self = netdev_priv(ndev); in sh_irda_hard_xmit()
626 struct device *dev = &self->ndev->dev; in sh_irda_hard_xmit()
632 netif_stop_queue(ndev); in sh_irda_hard_xmit()
663 netif_wake_queue(self->ndev); in sh_irda_hard_xmit()
671 static int sh_irda_ioctl(struct net_device *ndev, struct ifreq *ifreq, int cmd) in sh_irda_ioctl() argument
682 static struct net_device_stats *sh_irda_stats(struct net_device *ndev) in sh_irda_stats() argument
684 struct sh_irda_self *self = netdev_priv(ndev); in sh_irda_stats()
686 return &self->ndev->stats; in sh_irda_stats()
689 static int sh_irda_open(struct net_device *ndev) in sh_irda_open() argument
691 struct sh_irda_self *self = netdev_priv(ndev); in sh_irda_open()
703 self->irlap = irlap_open(ndev, &self->qos, DRIVER_NAME); in sh_irda_open()
709 netif_start_queue(ndev); in sh_irda_open()
713 dev_info(&ndev->dev, "opened\n"); in sh_irda_open()
723 static int sh_irda_stop(struct net_device *ndev) in sh_irda_stop() argument
725 struct sh_irda_self *self = netdev_priv(ndev); in sh_irda_stop()
733 netif_stop_queue(ndev); in sh_irda_stop()
736 dev_info(&ndev->dev, "stopped\n"); in sh_irda_stop()
758 struct net_device *ndev; in sh_irda_probe() local
771 ndev = alloc_irdadev(sizeof(*self)); in sh_irda_probe()
772 if (!ndev) in sh_irda_probe()
775 self = netdev_priv(ndev); in sh_irda_probe()
792 ndev->netdev_ops = &sh_irda_ndo; in sh_irda_probe()
793 ndev->irq = irq; in sh_irda_probe()
795 self->ndev = ndev; in sh_irda_probe()
802 err = register_netdev(ndev); in sh_irda_probe()
806 platform_set_drvdata(pdev, ndev); in sh_irda_probe()
823 free_netdev(ndev); in sh_irda_probe()
830 struct net_device *ndev = platform_get_drvdata(pdev); in sh_irda_remove() local
831 struct sh_irda_self *self = netdev_priv(ndev); in sh_irda_remove()
836 unregister_netdev(ndev); in sh_irda_remove()
840 free_netdev(ndev); in sh_irda_remove()