Lines Matching refs:netdev
94 netif_wake_queue(&lp->netdev->dev); in isdn_net_device_wake_queue()
106 netif_stop_queue(&lp->netdev->dev); in isdn_net_device_stop_queue()
124 nd = ((isdn_net_local *) lp->master->priv)->netdev; in isdn_net_device_busy()
126 nd = lp->netdev; in isdn_net_device_busy()
220 ( (isdn_net_local *) dev->priv ) -> netdev -> cprot; in isdn_net_reset()
285 dev->rx_netdev[idx] = lp->netdev; in isdn_net_bind_channel()
286 dev->st_netdev[idx] = lp->netdev; in isdn_net_bind_channel()
307 qdisc_reset(lp->netdev->dev.qdisc); in isdn_net_unbind_channel()
338 isdn_net_dev *p = dev->netdev; in isdn_net_autohup()
417 struct concap_proto *cprot = lp -> netdev -> cprot; in isdn_net_stat_callback()
505 isdn_net_dev *nd = ((isdn_net_local *)lp->master->priv)->netdev; in isdn_net_stat_callback()
576 isdn_net_dev *p = dev->netdev; in isdn_net_dial()
859 struct concap_proto *cprot = lp -> netdev -> cprot; in isdn_net_hangup()
1102 nd = ((isdn_net_local *) ndev->priv)->netdev; in isdn_net_xmit()
1202 struct concap_proto * cprot = lp -> netdev -> cprot; in isdn_net_start_xmit()
1351 ( (isdn_net_local *) dev->priv ) -> netdev -> cprot; in isdn_net_close()
1364 -> netdev -> cprot; in isdn_net_close()
1655 if ((in_dev = lp->netdev->dev.ip_ptr) != NULL) { in isdn_net_ciscohdlck_slarp_send_reply()
1807 struct concap_proto *cprot = lp -> netdev -> cprot; in isdn_net_receive()
1866 isdn_ppp_receive(lp->netdev, olp, skb); in isdn_net_receive()
1999 if( lp-> netdev -> cprot ){ in isdn_net_header()
2102 p = dev->netdev; in isdn_net_swapbind()
2195 p = dev->netdev; in isdn_net_find_icall()
2449 dev->st_netdev[idx] = lp->netdev; in isdn_net_find_icall()
2488 isdn_net_dev *p = dev->netdev; in isdn_net_findif()
2582 isdn_net_dev *netdev; in isdn_net_new() local
2589 if (!(netdev = (isdn_net_dev *) kmalloc(sizeof(isdn_net_dev), GFP_KERNEL))) { in isdn_net_new()
2593 memset(netdev, 0, sizeof(isdn_net_dev)); in isdn_net_new()
2594 if (!(netdev->local = (isdn_net_local *) kmalloc(sizeof(isdn_net_local), GFP_KERNEL))) { in isdn_net_new()
2596 kfree(netdev); in isdn_net_new()
2599 memset(netdev->local, 0, sizeof(isdn_net_local)); in isdn_net_new()
2601 strcpy(netdev->local->name, " "); in isdn_net_new()
2603 strcpy(netdev->local->name, name); in isdn_net_new()
2604 strcpy(netdev->dev.name, netdev->local->name); in isdn_net_new()
2605 netdev->dev.priv = netdev->local; in isdn_net_new()
2606 netdev->dev.init = isdn_net_init; in isdn_net_new()
2607 netdev->local->p_encap = ISDN_NET_ENCAP_RAWIP; in isdn_net_new()
2613 netdev->local->master = master; in isdn_net_new()
2619 ((isdn_net_local *) q->priv)->slave = &(netdev->dev); in isdn_net_new()
2625 netdev->dev.tx_timeout = isdn_net_tx_timeout; in isdn_net_new()
2626 netdev->dev.watchdog_timeo = ISDN_NET_TX_TIMEOUT; in isdn_net_new()
2627 if (register_netdev(&netdev->dev) != 0) { in isdn_net_new()
2629 kfree(netdev->local); in isdn_net_new()
2630 kfree(netdev); in isdn_net_new()
2634 netdev->local->magic = ISDN_NET_MAGIC; in isdn_net_new()
2636 netdev->queue = netdev->local; in isdn_net_new()
2637 spin_lock_init(&netdev->queue_lock); in isdn_net_new()
2639 netdev->local->last = netdev->local; in isdn_net_new()
2640 netdev->local->netdev = netdev; in isdn_net_new()
2641 netdev->local->next = netdev->local; in isdn_net_new()
2643 netdev->local->tqueue.sync = 0; in isdn_net_new()
2644 netdev->local->tqueue.routine = isdn_net_softint; in isdn_net_new()
2645 netdev->local->tqueue.data = netdev->local; in isdn_net_new()
2646 spin_lock_init(&netdev->local->xmit_lock); in isdn_net_new()
2648 netdev->local->isdn_device = -1; in isdn_net_new()
2649 netdev->local->isdn_channel = -1; in isdn_net_new()
2650 netdev->local->pre_device = -1; in isdn_net_new()
2651 netdev->local->pre_channel = -1; in isdn_net_new()
2652 netdev->local->exclusive = -1; in isdn_net_new()
2653 netdev->local->ppp_slot = -1; in isdn_net_new()
2654 netdev->local->pppbind = -1; in isdn_net_new()
2655 skb_queue_head_init(&netdev->local->super_tx_queue); in isdn_net_new()
2656 netdev->local->l2_proto = ISDN_PROTO_L2_X75I; in isdn_net_new()
2657 netdev->local->l3_proto = ISDN_PROTO_L3_TRANS; in isdn_net_new()
2658 netdev->local->triggercps = 6000; in isdn_net_new()
2659 netdev->local->slavedelay = 10 * HZ; in isdn_net_new()
2660 netdev->local->hupflags = ISDN_INHUP; /* Do hangup even on incoming calls */ in isdn_net_new()
2661 netdev->local->onhtime = 10; /* Default hangup-time for saving costs in isdn_net_new()
2663 netdev->local->dialmax = 1; in isdn_net_new()
2664 …netdev->local->flags = ISDN_NET_CBHUP | ISDN_NET_DM_MANUAL; /* Hangup before Callback, manual dial… in isdn_net_new()
2665 netdev->local->cbdelay = 25; /* Wait 5 secs before Callback */ in isdn_net_new()
2666 netdev->local->dialtimeout = -1; /* Infinite Dial-Timeout */ in isdn_net_new()
2667 netdev->local->dialwait = 5 * HZ; /* Wait 5 sec. after failed dial */ in isdn_net_new()
2668 netdev->local->dialstarted = 0; /* Jiffies of last dial-start */ in isdn_net_new()
2669 netdev->local->dialwait_timer = 0; /* Jiffies of earliest next dial-start */ in isdn_net_new()
2672 netdev->next = (void *) dev->netdev; in isdn_net_new()
2673 dev->netdev = netdev; in isdn_net_new()
2674 return netdev->dev.name; in isdn_net_new()
3207 dev->netdev = p->next; in isdn_net_realrm()
3211 isdn_net_dev *n = dev->netdev; in isdn_net_realrm()
3223 if (dev->netdev == NULL) in isdn_net_realrm()
3242 p = dev->netdev; in isdn_net_rm()
3251 if (dev->netdev == NULL) in isdn_net_rm()
3268 while (dev->netdev) { in isdn_net_rmall()
3269 if (!dev->netdev->local->master) { in isdn_net_rmall()
3271 if ((ret = isdn_net_realrm(dev->netdev, NULL))) { in isdn_net_rmall()
3277 dev->netdev = NULL; in isdn_net_rmall()