Lines Matching refs:lp
54 extern void isdn_net_writebuf_skb(isdn_net_local *lp, struct sk_buff *skb);
55 extern void isdn_net_write_super(isdn_net_local *lp, struct sk_buff *skb);
59 #define ISDN_MASTER_PRIV(lp) ((isdn_net_local *) netdev_priv(lp->master))
60 #define ISDN_SLAVE_PRIV(lp) ((isdn_net_local *) netdev_priv(lp->slave))
67 static __inline__ int isdn_net_lp_busy(isdn_net_local *lp)
69 if (atomic_read(&lp->frame_cnt) < ISDN_NET_MAX_QUEUE_LENGTH)
82 isdn_net_local *lp;
85 lp = nd->queue; /* get lp on top of queue */
88 if (nd->queue == lp) { /* not found -- should never happen */
89 lp = NULL;
93 lp = nd->queue;
96 spin_lock(&lp->xmit_lock);
98 return lp;
101 return lp;
109 isdn_net_local *lp;
114 lp = nd->queue;
115 // printk(KERN_DEBUG "%s: lp:%s(%p) nlp:%s(%p) last(%p)\n",
116 // __func__, lp->name, lp, nlp->name, nlp, lp->last);
117 nlp->last = lp->last;
118 lp->last->next = nlp;
119 lp->last = nlp;
120 nlp->next = lp;
128 static __inline__ void isdn_net_rm_from_bundle(isdn_net_local *lp)
130 isdn_net_local *master_lp = lp;
133 if (lp->master)
134 master_lp = ISDN_MASTER_PRIV(lp);
136 // printk(KERN_DEBUG "%s: lp:%s(%p) mlp:%s(%p) last(%p) next(%p) mndq(%p)\n",
137 // __func__, lp->name, lp, master_lp->name, master_lp, lp->last, lp->next, master_lp->netdev->queue);
139 lp->last->next = lp->next;
140 lp->next->last = lp->last;
141 if (master_lp->netdev->queue == lp) {
142 master_lp->netdev->queue = lp->next;
143 if (lp->next == lp) { /* last in queue */
147 lp->next = lp->last = lp; /* (re)set own pointers */