Lines Matching refs:x25_neigh

46 static struct x25_neigh *x25_neigh_list /* = NULL initially */;
53 static void x25_start_t20timer(struct x25_neigh *neigh) in x25_start_t20timer()
66 struct x25_neigh *neigh = (struct x25_neigh *)param; in x25_t20timer_expiry()
73 static void x25_stop_t20timer(struct x25_neigh *neigh) in x25_stop_t20timer()
78 static int x25_t20timer_pending(struct x25_neigh *neigh) in x25_t20timer_pending()
86 void x25_link_control(struct sk_buff *skb, struct x25_neigh *neigh, unsigned short frametype) in x25_link_control()
122 void x25_transmit_restart_request(struct x25_neigh *neigh) in x25_transmit_restart_request()
151 void x25_transmit_restart_confirmation(struct x25_neigh *neigh) in x25_transmit_restart_confirmation()
178 void x25_transmit_diagnostic(struct x25_neigh *neigh, unsigned char diag) in x25_transmit_diagnostic()
207 void x25_transmit_clear_request(struct x25_neigh *neigh, unsigned int lci, unsigned char cause) in x25_transmit_clear_request()
233 void x25_transmit_link(struct sk_buff *skb, struct x25_neigh *neigh) in x25_transmit_link()
254 void x25_link_established(struct x25_neigh *neigh) in x25_link_established()
273 void x25_link_terminated(struct x25_neigh *neigh) in x25_link_terminated()
285 struct x25_neigh *x25_neigh; in x25_link_device_up() local
288 if ((x25_neigh = kmalloc(sizeof(*x25_neigh), GFP_ATOMIC)) == NULL) in x25_link_device_up()
291 skb_queue_head_init(&x25_neigh->queue); in x25_link_device_up()
293 init_timer(&x25_neigh->t20timer); in x25_link_device_up()
296 x25_neigh->dev = dev; in x25_link_device_up()
297 x25_neigh->state = X25_LINK_STATE_0; in x25_link_device_up()
298 x25_neigh->extended = 0; in x25_link_device_up()
299x25_neigh->global_facil_mask = (X25_MASK_REVERSE | X25_MASK_THROUGHPUT | X25_MASK_PACKET_SIZE | X2… in x25_link_device_up()
300 x25_neigh->t20 = sysctl_x25_restart_request_timeout; in x25_link_device_up()
303 x25_neigh->next = x25_neigh_list; in x25_link_device_up()
304 x25_neigh_list = x25_neigh; in x25_link_device_up()
308 static void x25_remove_neigh(struct x25_neigh *x25_neigh) in x25_remove_neigh() argument
310 struct x25_neigh *s; in x25_remove_neigh()
313 skb_queue_purge(&x25_neigh->queue); in x25_remove_neigh()
315 x25_stop_t20timer(x25_neigh); in x25_remove_neigh()
319 if ((s = x25_neigh_list) == x25_neigh) { in x25_remove_neigh()
320 x25_neigh_list = x25_neigh->next; in x25_remove_neigh()
322 kfree(x25_neigh); in x25_remove_neigh()
327 if (s->next == x25_neigh) { in x25_remove_neigh()
328 s->next = x25_neigh->next; in x25_remove_neigh()
330 kfree(x25_neigh); in x25_remove_neigh()
345 struct x25_neigh *neigh, *x25_neigh = x25_neigh_list; in x25_link_device_down() local
347 while (x25_neigh != NULL) { in x25_link_device_down()
348 neigh = x25_neigh; in x25_link_device_down()
349 x25_neigh = x25_neigh->next; in x25_link_device_down()
361 struct x25_neigh *x25_get_neigh(struct net_device *dev) in x25_get_neigh()
363 struct x25_neigh *x25_neigh; in x25_get_neigh() local
365 for (x25_neigh = x25_neigh_list; x25_neigh != NULL; x25_neigh = x25_neigh->next) in x25_get_neigh()
366 if (x25_neigh->dev == dev) in x25_get_neigh()
367 return x25_neigh; in x25_get_neigh()
378 struct x25_neigh *x25_neigh; in x25_subscr_ioctl() local
388 if ((x25_neigh = x25_get_neigh(dev)) == NULL) { in x25_subscr_ioctl()
393 x25_subscr.extended = x25_neigh->extended; in x25_subscr_ioctl()
394 x25_subscr.global_facil_mask = x25_neigh->global_facil_mask; in x25_subscr_ioctl()
404 if ((x25_neigh = x25_get_neigh(dev)) == NULL) { in x25_subscr_ioctl()
411 x25_neigh->extended = x25_subscr.extended; in x25_subscr_ioctl()
412 x25_neigh->global_facil_mask = x25_subscr.global_facil_mask; in x25_subscr_ioctl()
428 struct x25_neigh *neigh, *x25_neigh = x25_neigh_list; in x25_link_free() local
430 while (x25_neigh != NULL) { in x25_link_free()
431 neigh = x25_neigh; in x25_link_free()
432 x25_neigh = x25_neigh->next; in x25_link_free()