Home
last modified time | relevance | path

Searched refs:ax25 (Results 1 – 25 of 43) sorted by relevance

12

/openbmc/linux/net/ax25/
H A Dax25_std_in.c44 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state1_machine()
50 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_std_state1_machine()
74 ax25->sk->sk_state_change(ax25->sk); in ax25_std_state1_machine()
86 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state1_machine()
150 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state3_machine()
153 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_std_state3_machine()
224 ax25->vr = (ax25->vr + 1) % ax25->modulus; in ax25_std_state3_machine()
275 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state4_machine()
314 if (ax25->vs == ax25->va) { in ax25_std_state4_machine()
343 if (ax25->vs == ax25->va) { in ax25_std_state4_machine()
[all …]
H A Dax25_ds_in.c37 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_ds_state1_machine()
43 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_ds_state1_machine()
56 ax25->vs = 0; in ax25_ds_state1_machine()
57 ax25->va = 0; in ax25_ds_state1_machine()
58 ax25->vr = 0; in ax25_ds_state1_machine()
60 ax25->n2count = 0; in ax25_ds_state1_machine()
69 ax25->sk->sk_state_change(ax25->sk); in ax25_ds_state1_machine()
72 ax25_dama_on(ax25); in ax25_ds_state1_machine()
154 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_ds_state3_machine()
157 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_ds_state3_machine()
[all …]
H A Dax25_std_timer.c36 switch (ax25->state) { in ax25_std_heartbeat_expiry()
89 ax25->n2count = 0; in ax25_std_t3timer_expiry()
98 ax25->n2count = 0; in ax25_std_idletimer_expiry()
113 ax25->sk->sk_state_change(ax25->sk); in ax25_std_idletimer_expiry()
124 if (ax25->n2count == ax25->n2) { in ax25_std_t1timer_expiry()
130 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_t1timer_expiry()
135 ax25->n2count++; in ax25_std_t1timer_expiry()
144 if (ax25->n2count == ax25->n2) { in ax25_std_t1timer_expiry()
150 ax25->n2count++; in ax25_std_t1timer_expiry()
162 if (ax25->n2count == ax25->n2) { in ax25_std_t1timer_expiry()
[all …]
H A Dax25_timer.c55 mod_timer(&ax25->t1timer, jiffies + ax25->t1); in ax25_start_t1timer()
60 mod_timer(&ax25->t2timer, jiffies + ax25->t2); in ax25_start_t2timer()
65 if (ax25->t3 > 0) in ax25_start_t3timer()
66 mod_timer(&ax25->t3timer, jiffies + ax25->t3); in ax25_start_t3timer()
73 if (ax25->idle > 0) in ax25_start_idletimer()
74 mod_timer(&ax25->idletimer, jiffies + ax25->idle); in ax25_start_idletimer()
124 ax25_cb *ax25 = from_timer(ax25, t, timer); in ax25_heartbeat_expiry() local
148 ax25_cb *ax25 = from_timer(ax25, t, t1timer); in ax25_t1timer_expiry() local
167 ax25_cb *ax25 = from_timer(ax25, t, t2timer); in ax25_t2timer_expiry() local
186 ax25_cb *ax25 = from_timer(ax25, t, t3timer); in ax25_t3timer_expiry() local
[all …]
H A Dax25_ds_timer.c68 ax25_cb *ax25; in ax25_ds_timeout() local
148 ax25_dama_off(ax25); in ax25_ds_t3timer_expiry()
160 ax25->n2count = 0; in ax25_ds_idletimer_expiry()
173 ax25->sk->sk_state_change(ax25->sk); in ax25_ds_idletimer_expiry()
192 if (ax25->n2count == ax25->n2) { in ax25_ds_t1_timeout()
198 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_ds_t1_timeout()
203 ax25->n2count++; in ax25_ds_t1_timeout()
212 if (ax25->n2count == ax25->n2) { in ax25_ds_t1_timeout()
218 ax25->n2count++; in ax25_ds_t1_timeout()
223 if (ax25->n2count == ax25->n2) { in ax25_ds_t1_timeout()
[all …]
H A Dax25_subr.c53 if (ax25->va != nr) { in ax25_frames_acked()
54 while (skb_peek(&ax25->ack_queue) != NULL && ax25->va != nr) { in ax25_frames_acked()
57 ax25->va = (ax25->va + 1) % ax25->modulus; in ax25_frames_acked()
83 while (vc != ax25->vs) { in ax25_validate_nr()
239 ax25->t1 = t * ax25->rtt; in ax25_calculate_t1()
247 if (ax25->backoff == 0) in ax25_calculate_rtt()
250 if (ax25_t1timer_running(ax25) && ax25->n2count == 0) in ax25_calculate_rtt()
251 ax25->rtt = (9 * ax25->rtt + ax25->t1 - ax25_display_timer(&ax25->t1timer)) / 10; in ax25_calculate_rtt()
271 if (ax25->sk && !sock_flag(ax25->sk, SOCK_DESTROY)) in ax25_disconnect()
283 if (ax25->sk != NULL) { in ax25_disconnect()
[all …]
H A Dax25_out.c35 ax25_cb *ax25; in ax25_send_frame() local
95 ax25_cb_hold(ax25); in ax25_send_frame()
97 ax25_cb_add(ax25); in ax25_send_frame()
192 ax25_kick(ax25); in ax25_output()
201 if (!ax25->ax25_dev->dama.slave) ax25_kick(ax25); in ax25_output()
247 if (ax25->state != AX25_STATE_3 && ax25->state != AX25_STATE_4) in ax25_kick()
256 start = (skb_peek(&ax25->ack_queue) == NULL) ? ax25->va : ax25->vs; in ax25_kick()
257 end = (ax25->va + ax25->window) % ax25->modulus; in ax25_kick()
276 ax25->vs = start; in ax25_kick()
287 next = (ax25->vs + 1) % ax25->modulus; in ax25_kick()
[all …]
H A Dax25_std_subr.c32 ax25_std_establish_data_link(ax25); in ax25_std_nr_error_recovery()
37 ax25->condition = 0x00; in ax25_std_establish_data_link()
38 ax25->n2count = 0; in ax25_std_establish_data_link()
40 if (ax25->modulus == AX25_MODULUS) in ax25_std_establish_data_link()
45 ax25_calculate_t1(ax25); in ax25_std_establish_data_link()
46 ax25_stop_idletimer(ax25); in ax25_std_establish_data_link()
47 ax25_stop_t3timer(ax25); in ax25_std_establish_data_link()
48 ax25_stop_t2timer(ax25); in ax25_std_establish_data_link()
49 ax25_start_t1timer(ax25); in ax25_std_establish_data_link()
61 ax25_calculate_t1(ax25); in ax25_std_transmit_enquiry()
[all …]
H A Daf_ax25.c290 ax25_cb *ax25 = from_timer(ax25, t, dtimer); in ax25_destroy_timer() local
293 sk=ax25->sk; in ax25_destroy_timer()
391 if (!ax25) { in ax25_ctl_ioctl()
531 if ((ax25 = kzalloc(sizeof(*ax25), GFP_ATOMIC)) == NULL) in ax25_create_cb()
547 return ax25; in ax25_create_cb()
694 ax25_fillin_cb(ax25, ax25->ax25_dev); in ax25_setsockopt()
1276 ax25_fillin_cb(ax25, ax25->ax25_dev); in ax25_connect()
1638 ax25_output(ax25, ax25->paclen, skb); in ax25_sendmsg()
1962 ax25, in ax25_info_show()
1976 ax25->vs, ax25->vr, ax25->va, in ax25_info_show()
[all …]
H A Dax25_ds_subr.c67 ax25_kick(ax25); in ax25_ds_enquiry_response()
70 …if (ax25->state == AX25_STATE_1 || ax25->state == AX25_STATE_2 || skb_peek(&ax25->ack_queue) != NU… in ax25_ds_enquiry_response()
73 ax25->n2count = 0; in ax25_ds_enquiry_response()
75 ax25_start_t3timer(ax25); in ax25_ds_enquiry_response()
80 if (ax25o == ax25) in ax25_ds_enquiry_response()
110 ax25->n2count = 0; in ax25_ds_establish_data_link()
111 ax25_calculate_t1(ax25); in ax25_ds_establish_data_link()
112 ax25_start_t1timer(ax25); in ax25_ds_establish_data_link()
113 ax25_stop_t2timer(ax25); in ax25_ds_establish_data_link()
156 ax25_cb *ax25; in ax25_check_dama_slave() local
[all …]
H A Dax25_in.c38 if (ax25->fragno != 0) { in ax25_rx_fragment()
50 ax25->fraglen, in ax25_rx_fragment()
71 ax25->fraglen = 0; in ax25_rx_fragment()
141 if (ax25->sk != NULL && ax25->ax25_dev->values[AX25_VALUES_CONMODE] == 2) { in ax25_rx_iframe()
142 if ((!ax25->pidincl && ax25->sk->sk_protocol == pid) || in ax25_rx_iframe()
143 ax25->pidincl) { in ax25_rx_iframe()
190 ax25_cb *ax25; in ax25_rcv() local
313 ax25_cb_put(ax25); in ax25_rcv()
389 kfree(ax25->digipeat); in ax25_rcv()
408 ax25_dama_on(ax25); in ax25_rcv()
[all …]
H A DMakefile6 obj-$(CONFIG_AX25) += ax25.o
8 ax25-y := ax25_addr.o ax25_dev.o ax25_iface.o ax25_in.o ax25_ip.o ax25_out.o \
11 ax25-$(CONFIG_AX25_DAMA_SLAVE) += ax25_ds_in.o ax25_ds_subr.o ax25_ds_timer.o
12 ax25-$(CONFIG_SYSCTL) += sysctl_net_ax25.o
H A Dax25_route.c397 int ax25_rt_autobind(ax25_cb *ax25, ax25_address *addr) in ax25_rt_autobind() argument
409 if ((ax25->ax25_dev = ax25_dev_ax25dev(ax25_rt->dev)) == NULL) { in ax25_rt_autobind()
416 ax25->source_addr = user->call; in ax25_rt_autobind()
423 ax25->source_addr = *(ax25_address *)ax25->ax25_dev->dev->dev_addr; in ax25_rt_autobind()
427 ax25->digipeat = kmemdup(ax25_rt->digipeat, sizeof(ax25_digi), in ax25_rt_autobind()
429 if (ax25->digipeat == NULL) { in ax25_rt_autobind()
433 ax25_adjust_path(addr, ax25->digipeat); in ax25_rt_autobind()
436 if (ax25->sk != NULL) { in ax25_rt_autobind()
438 bh_lock_sock(ax25->sk); in ax25_rt_autobind()
439 sock_reset_flag(ax25->sk, SOCK_ZAPPED); in ax25_rt_autobind()
[all …]
H A Dax25_ip.c108 ax25_cb *ax25; in ax25_ip_xmit() local
173 ax25=ax25_send_frame( in ax25_ip_xmit()
178 if (ax25) { in ax25_ip_xmit()
179 ax25_cb_put(ax25); in ax25_ip_xmit()
H A DKconfig13 <https://linux-ax25.in-berlin.de>.
43 check out the file <file:Documentation/networking/ax25.rst> in the
49 module will be called ax25.
64 <https://linux-ax25.in-berlin.de>. If unsure, say Y.
90 <https://linux-ax25.in-berlin.de>. You also might want to check out
91 the file <file:Documentation/networking/ax25.rst>. More information
109 <https://linux-ax25.in-berlin.de>. You also might want to check out
110 the file <file:Documentation/networking/ax25.rst>. More information
H A Dax25_iface.c190 void ax25_link_failed(ax25_cb *ax25, int reason) in ax25_link_failed() argument
196 lf->func(ax25, reason); in ax25_link_failed()
/openbmc/linux/net/netrom/
H A Dnr_route.c152 nr_neigh->callsign = *ax25; in nr_add_node()
154 nr_neigh->ax25 = NULL; in nr_add_node()
397 nr_neigh->ax25 = NULL; in nr_add_neigh()
712 if (s->ax25 == ax25) { in nr_link_failed()
723 nr_neigh->ax25 = NULL; in nr_link_failed()
724 ax25_cb_put(ax25); in nr_link_failed()
761 if (ax25 != NULL) { in nr_route_frame()
762 ret = nr_add_node(nr_src, "", &ax25->dest_addr, ax25->digipeat, in nr_route_frame()
763 ax25->ax25_dev->dev, 0, in nr_route_frame()
821 ax25s = nr_neigh->ax25; in nr_route_frame()
[all …]
/openbmc/u-boot/board/AndesTech/ax25-ae350/
H A DKconfig4 default "ax25"
7 default "ax25-ae350"
16 default "ax25-ae350"
H A DMAINTAINERS4 F: board/AndesTech/ax25-ae350/
5 F: include/configs/ax25-ae350.h
H A DMakefile6 obj-y := ax25-ae350.o
/openbmc/linux/net/rose/
H A Drose_link.c105 ax25s = neigh->ax25; in rose_send_frame()
106 neigh->ax25 = ax25_send_frame(skb, 260, rose_call, &neigh->callsign, neigh->digipeat, neigh->dev); in rose_send_frame()
110 return neigh->ax25 != NULL; in rose_send_frame()
128 ax25s = neigh->ax25; in rose_link_up()
129 neigh->ax25 = ax25_find_cb(rose_call, &neigh->callsign, neigh->digipeat, neigh->dev); in rose_link_up()
133 return neigh->ax25 != NULL; in rose_link_up()
H A Drose_route.c93 rose_neigh->ax25 = NULL; in rose_add_node()
237 if (rose_neigh->ax25) in rose_remove_neigh()
238 ax25_cb_put(rose_neigh->ax25); in rose_remove_neigh()
247 if (rose_neigh->ax25) in rose_remove_neigh()
248 ax25_cb_put(rose_neigh->ax25); in rose_remove_neigh()
381 sn->ax25 = NULL; in rose_add_loopback_neigh()
822 if (rose_neigh->ax25 == ax25) in rose_link_failed()
828 rose_neigh->ax25 = NULL; in rose_link_failed()
829 ax25_cb_put(ax25); in rose_link_failed()
874 if (!ax25) in rose_route_frame()
[all …]
/openbmc/linux/include/net/
H A Dax25.h171 #define ax25_uid_hold(ax25) \ argument
172 refcount_inc(&((ax25)->refcount))
276 static __inline__ void ax25_cb_put(ax25_cb *ax25) in ax25_cb_put() argument
278 if (refcount_dec_and_test(&ax25->refcount)) { in ax25_cb_put()
279 kfree(ax25->digipeat); in ax25_cb_put()
280 kfree(ax25); in ax25_cb_put()
H A Dnetrom.h93 ax25_cb *ax25; member
140 if (nr_neigh->ax25) in nr_neigh_put()
141 ax25_cb_put(nr_neigh->ax25); in nr_neigh_put()
/openbmc/u-boot/arch/riscv/
H A DKconfig12 bool "Support ax25-ae350"
23 source "board/AndesTech/ax25-ae350/Kconfig"
28 source "arch/riscv/cpu/ax25/Kconfig"

12