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)) argument
60 #define ISDN_SLAVE_PRIV(lp) ((isdn_net_local *) netdev_priv(lp->slave)) argument
67 static __inline__ int isdn_net_lp_busy(isdn_net_local *lp) in isdn_net_lp_busy() argument
69 if (atomic_read(&lp->frame_cnt) < ISDN_NET_MAX_QUEUE_LENGTH) in isdn_net_lp_busy()
82 isdn_net_local *lp; in isdn_net_get_locked_lp() local
85 lp = nd->queue; /* get lp on top of queue */ in isdn_net_get_locked_lp()
88 if (nd->queue == lp) { /* not found -- should never happen */ in isdn_net_get_locked_lp()
89 lp = NULL; in isdn_net_get_locked_lp()
93 lp = nd->queue; in isdn_net_get_locked_lp()
96 spin_lock(&lp->xmit_lock); in isdn_net_get_locked_lp()
98 return lp; in isdn_net_get_locked_lp()
101 return lp; in isdn_net_get_locked_lp()
109 isdn_net_local *lp; in isdn_net_add_to_bundle() local
114 lp = nd->queue; in isdn_net_add_to_bundle()
117 nlp->last = lp->last; in isdn_net_add_to_bundle()
118 lp->last->next = nlp; in isdn_net_add_to_bundle()
119 lp->last = nlp; in isdn_net_add_to_bundle()
120 nlp->next = lp; in isdn_net_add_to_bundle()
128 static __inline__ void isdn_net_rm_from_bundle(isdn_net_local *lp) in isdn_net_rm_from_bundle() argument
130 isdn_net_local *master_lp = lp; in isdn_net_rm_from_bundle()
133 if (lp->master) in isdn_net_rm_from_bundle()
134 master_lp = ISDN_MASTER_PRIV(lp); in isdn_net_rm_from_bundle()
139 lp->last->next = lp->next; in isdn_net_rm_from_bundle()
140 lp->next->last = lp->last; in isdn_net_rm_from_bundle()
141 if (master_lp->netdev->queue == lp) { in isdn_net_rm_from_bundle()
142 master_lp->netdev->queue = lp->next; in isdn_net_rm_from_bundle()
143 if (lp->next == lp) { /* last in queue */ in isdn_net_rm_from_bundle()
147 lp->next = lp->last = lp; /* (re)set own pointers */ in isdn_net_rm_from_bundle()