/net/lapb/ |
H A D | lapb_timer.c | 36 #include <net/lapb.h> 41 void lapb_start_t1timer(struct lapb_cb *lapb) argument 43 del_timer(&lapb->t1timer); 45 lapb->t1timer.data = (unsigned long)lapb; 46 lapb->t1timer.function = &lapb_t1timer_expiry; 47 lapb->t1timer.expires = jiffies + lapb->t1; 49 add_timer(&lapb->t1timer); 52 void lapb_start_t2timer(struct lapb_cb *lapb) argument 63 lapb_stop_t1timer(struct lapb_cb *lapb) argument 68 lapb_stop_t2timer(struct lapb_cb *lapb) argument 73 lapb_t1timer_running(struct lapb_cb *lapb) argument 80 struct lapb_cb *lapb = (struct lapb_cb *)param; local 90 struct lapb_cb *lapb = (struct lapb_cb *)param; local [all...] |
H A D | lapb_in.c | 38 #include <net/lapb.h> 44 static void lapb_state0_machine(struct lapb_cb *lapb, struct sk_buff *skb, argument 49 lapb_dbg(1, "(%p) S0 RX SABM(%d)\n", lapb->dev, frame->pf); 50 if (lapb->mode & LAPB_EXTENDED) { 52 lapb->dev, frame->pf); 53 lapb_send_control(lapb, LAPB_DM, frame->pf, 57 lapb->dev, frame->pf); 58 lapb_dbg(0, "(%p) S0 -> S3\n", lapb->dev); 59 lapb_send_control(lapb, LAPB_UA, frame->pf, 61 lapb_stop_t1timer(lapb); 115 lapb_state1_machine(struct lapb_cb *lapb, struct sk_buff *skb, struct lapb_frame *frame) argument 191 lapb_state2_machine(struct lapb_cb *lapb, struct sk_buff *skb, struct lapb_frame *frame) argument 251 lapb_state3_machine(struct lapb_cb *lapb, struct sk_buff *skb, struct lapb_frame *frame) argument 478 lapb_state4_machine(struct lapb_cb *lapb, struct sk_buff *skb, struct lapb_frame *frame) argument 539 lapb_data_input(struct lapb_cb *lapb, struct sk_buff *skb) argument [all...] |
H A D | lapb_iface.c | 42 #include <net/lapb.h> 48 * Free an allocated lapb control block. 50 static void lapb_free_cb(struct lapb_cb *lapb) argument 52 kfree(lapb); 55 static __inline__ void lapb_hold(struct lapb_cb *lapb) argument 57 atomic_inc(&lapb->refcnt); 60 static __inline__ void lapb_put(struct lapb_cb *lapb) argument 62 if (atomic_dec_and_test(&lapb->refcnt)) 63 lapb_free_cb(lapb); 69 static void __lapb_remove_cb(struct lapb_cb *lapb) argument 80 __lapb_insert_cb(struct lapb_cb *lapb) argument 89 struct lapb_cb *lapb, *use = NULL; local 120 struct lapb_cb *lapb = kzalloc(sizeof(*lapb), GFP_ATOMIC); local 146 struct lapb_cb *lapb; local 177 struct lapb_cb *lapb; local 202 struct lapb_cb *lapb = lapb_devtostruct(dev); local 234 struct lapb_cb *lapb = lapb_devtostruct(dev); local 268 struct lapb_cb *lapb = lapb_devtostruct(dev); local 296 struct lapb_cb *lapb = lapb_devtostruct(dev); local 340 struct lapb_cb *lapb = lapb_devtostruct(dev); local 361 struct lapb_cb *lapb = lapb_devtostruct(dev); local 373 lapb_connect_confirmation(struct lapb_cb *lapb, int reason) argument 379 lapb_connect_indication(struct lapb_cb *lapb, int reason) argument 385 lapb_disconnect_confirmation(struct lapb_cb *lapb, int reason) argument 391 lapb_disconnect_indication(struct lapb_cb *lapb, int reason) argument 397 lapb_data_indication(struct lapb_cb *lapb, struct sk_buff *skb) argument 406 lapb_data_transmit(struct lapb_cb *lapb, struct sk_buff *skb) argument [all...] |
H A D | lapb_out.c | 36 #include <net/lapb.h> 42 static void lapb_send_iframe(struct lapb_cb *lapb, struct sk_buff *skb, int poll_bit) argument 49 if (lapb->mode & LAPB_EXTENDED) { 53 frame[0] |= lapb->vs << 1; 55 frame[1] |= lapb->vr << 1; 61 *frame |= lapb->vr << 5; 62 *frame |= lapb->vs << 1; 66 lapb->dev, lapb->state, poll_bit, lapb 71 lapb_kick(struct lapb_cb *lapb) argument 119 lapb_transmit_buffer(struct lapb_cb *lapb, struct sk_buff *skb, int type) argument 159 lapb_establish_data_link(struct lapb_cb *lapb) argument 176 lapb_enquiry_response(struct lapb_cb *lapb) argument 186 lapb_timeout_response(struct lapb_cb *lapb) argument 195 lapb_check_iframes_acked(struct lapb_cb *lapb, unsigned short nr) argument 207 lapb_check_need_response(struct lapb_cb *lapb, int type, int pf) argument [all...] |
H A D | Makefile | 5 obj-$(CONFIG_LAPB) += lapb.o 7 lapb-y := lapb_in.o lapb_out.o lapb_subr.o lapb_timer.o lapb_iface.o
|
H A D | lapb_subr.c | 35 #include <net/lapb.h> 40 void lapb_clear_queues(struct lapb_cb *lapb) argument 42 skb_queue_purge(&lapb->write_queue); 43 skb_queue_purge(&lapb->ack_queue); 51 void lapb_frames_acked(struct lapb_cb *lapb, unsigned short nr) argument 56 modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; 61 if (lapb->va != nr) 62 while (skb_peek(&lapb->ack_queue) && lapb->va != nr) { 63 skb = skb_dequeue(&lapb 69 lapb_requeue_frames(struct lapb_cb *lapb) argument 91 lapb_validate_nr(struct lapb_cb *lapb, unsigned short nr) argument 111 lapb_decode(struct lapb_cb *lapb, struct sk_buff *skb, struct lapb_frame *frame) argument 228 lapb_send_control(struct lapb_cb *lapb, int frametype, int poll_bit, int type) argument 265 lapb_transmit_frmr(struct lapb_cb *lapb) argument [all...] |
H A D | Kconfig | 17 <file:Documentation/networking/lapb-module.txt> for technical 21 module will be called lapb. If unsure, say N.
|
/net/ |
H A D | Makefile | 30 obj-$(CONFIG_LAPB) += lapb/
|