Lines Matching refs:token

103 static lapb_cb *lapb_tokentostruct(void *token)  in lapb_tokentostruct()  argument
108 if (lapb->token == token) in lapb_tokentostruct()
144 int lapb_register(void *token, struct lapb_register_struct *callbacks) in lapb_register() argument
148 if (lapb_tokentostruct(token) != NULL) in lapb_register()
154 lapb->token = token; in lapb_register()
164 int lapb_unregister(void *token) in lapb_unregister() argument
168 if ((lapb = lapb_tokentostruct(token)) == NULL) in lapb_unregister()
183 int lapb_getparms(void *token, struct lapb_parms_struct *parms) in lapb_getparms() argument
187 if ((lapb = lapb_tokentostruct(token)) == NULL) in lapb_getparms()
211 int lapb_setparms(void *token, struct lapb_parms_struct *parms) in lapb_setparms() argument
215 if ((lapb = lapb_tokentostruct(token)) == NULL) in lapb_setparms()
247 int lapb_connect_request(void *token) in lapb_connect_request() argument
251 if ((lapb = lapb_tokentostruct(token)) == NULL) in lapb_connect_request()
265 printk(KERN_DEBUG "lapb: (%p) S0 -> S1\n", lapb->token); in lapb_connect_request()
273 int lapb_disconnect_request(void *token) in lapb_disconnect_request() argument
277 if ((lapb = lapb_tokentostruct(token)) == NULL) in lapb_disconnect_request()
286 printk(KERN_DEBUG "lapb: (%p) S1 TX DISC(1)\n", lapb->token); in lapb_disconnect_request()
289 printk(KERN_DEBUG "lapb: (%p) S1 -> S0\n", lapb->token); in lapb_disconnect_request()
308 printk(KERN_DEBUG "lapb: (%p) S3 DISC(1)\n", lapb->token); in lapb_disconnect_request()
311 printk(KERN_DEBUG "lapb: (%p) S3 -> S2\n", lapb->token); in lapb_disconnect_request()
317 int lapb_data_request(void *token, struct sk_buff *skb) in lapb_data_request() argument
321 if ((lapb = lapb_tokentostruct(token)) == NULL) in lapb_data_request()
334 int lapb_data_received(void *token, struct sk_buff *skb) in lapb_data_received() argument
338 if ((lapb = lapb_tokentostruct(token)) == NULL) in lapb_data_received()
349 (lapb->callbacks.connect_confirmation)(lapb->token, reason); in lapb_connect_confirmation()
355 (lapb->callbacks.connect_indication)(lapb->token, reason); in lapb_connect_indication()
361 (lapb->callbacks.disconnect_confirmation)(lapb->token, reason); in lapb_disconnect_confirmation()
367 (lapb->callbacks.disconnect_indication)(lapb->token, reason); in lapb_disconnect_indication()
373 return (lapb->callbacks.data_indication)(lapb->token, skb); in lapb_data_indication()
384 (lapb->callbacks.data_transmit)(lapb->token, skb); in lapb_data_transmit()