/Linux-v6.1/net/ax25/ |
D | ax25_dev.c | 29 ax25_dev *ax25_dev_list; 32 ax25_dev *ax25_addr_ax25dev(ax25_address *addr) in ax25_addr_ax25dev() 34 ax25_dev *ax25_dev, *res = NULL; in ax25_addr_ax25dev() local 37 for (ax25_dev = ax25_dev_list; ax25_dev != NULL; ax25_dev = ax25_dev->next) in ax25_addr_ax25dev() 38 if (ax25cmp(addr, (const ax25_address *)ax25_dev->dev->dev_addr) == 0) { in ax25_addr_ax25dev() 39 res = ax25_dev; in ax25_addr_ax25dev() 40 ax25_dev_hold(ax25_dev); in ax25_addr_ax25dev() 53 ax25_dev *ax25_dev; in ax25_dev_device_up() local 55 ax25_dev = kzalloc(sizeof(*ax25_dev), GFP_KERNEL); in ax25_dev_device_up() 56 if (!ax25_dev) { in ax25_dev_device_up() [all …]
|
D | ax25_ds_subr.c | 76 ax25_ds_set_timer(ax25->ax25_dev); in ax25_ds_enquiry_response() 83 if (ax25o->ax25_dev != ax25->ax25_dev) in ax25_ds_enquiry_response() 124 static void ax25_kiss_cmd(ax25_dev *ax25_dev, unsigned char cmd, unsigned char param) in ax25_kiss_cmd() argument 129 if (ax25_dev->dev == NULL) in ax25_kiss_cmd() 141 skb->protocol = ax25_type_trans(skb, ax25_dev->dev); in ax25_kiss_cmd() 154 static int ax25_check_dama_slave(ax25_dev *ax25_dev) in ax25_check_dama_slave() argument 161 …if (ax25->ax25_dev == ax25_dev && (ax25->condition & AX25_COND_DAMA_MODE) && ax25->state > AX25_ST… in ax25_check_dama_slave() 170 static void ax25_dev_dama_on(ax25_dev *ax25_dev) in ax25_dev_dama_on() argument 172 if (ax25_dev == NULL) in ax25_dev_dama_on() 175 if (ax25_dev->dama.slave == 0) in ax25_dev_dama_on() [all …]
|
D | ax25_ds_timer.c | 39 void ax25_ds_setup_timer(ax25_dev *ax25_dev) in ax25_ds_setup_timer() argument 41 timer_setup(&ax25_dev->dama.slave_timer, ax25_ds_timeout, 0); in ax25_ds_setup_timer() 44 void ax25_ds_del_timer(ax25_dev *ax25_dev) in ax25_ds_del_timer() argument 46 if (ax25_dev) in ax25_ds_del_timer() 47 del_timer(&ax25_dev->dama.slave_timer); in ax25_ds_del_timer() 50 void ax25_ds_set_timer(ax25_dev *ax25_dev) in ax25_ds_set_timer() argument 52 if (ax25_dev == NULL) /* paranoia */ in ax25_ds_set_timer() 55 ax25_dev->dama.slave_timeout = in ax25_ds_set_timer() 56 msecs_to_jiffies(ax25_dev->values[AX25_VALUES_DS_TIMEOUT]) / 10; in ax25_ds_set_timer() 57 mod_timer(&ax25_dev->dama.slave_timer, jiffies + HZ); in ax25_ds_set_timer() [all …]
|
D | af_ax25.c | 78 ax25_dev *ax25_dev; in ax25_kill_by_device() local 82 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) in ax25_kill_by_device() 84 ax25_dev->device_up = false; in ax25_kill_by_device() 89 if (s->ax25_dev == ax25_dev) { in ax25_kill_by_device() 94 s->ax25_dev = NULL; in ax25_kill_by_device() 103 s->ax25_dev = NULL; in ax25_kill_by_device() 105 netdev_put(ax25_dev->dev, in ax25_kill_by_device() 106 &ax25_dev->dev_tracker); in ax25_kill_by_device() 107 ax25_dev_put(ax25_dev); in ax25_kill_by_device() 184 if (s->ax25_dev == NULL || s->ax25_dev->dev == dev) { in ax25_find_listener() [all …]
|
D | ax25_route.c | 75 ax25_dev *ax25_dev; in ax25_rt_add() local 81 ax25_dev = ax25_addr_ax25dev(&route->port_addr); in ax25_rt_add() 82 if (!ax25_dev) in ax25_rt_add() 90 ax25_rt->dev == ax25_dev->dev) { in ax25_rt_add() 96 ax25_dev_put(ax25_dev); in ax25_rt_add() 107 ax25_dev_put(ax25_dev); in ax25_rt_add() 115 ax25_dev_put(ax25_dev); in ax25_rt_add() 120 ax25_rt->dev = ax25_dev->dev; in ax25_rt_add() 127 ax25_dev_put(ax25_dev); in ax25_rt_add() 140 ax25_dev_put(ax25_dev); in ax25_rt_add() [all …]
|
D | sysctl_net_ax25.c | 148 int ax25_register_dev_sysctl(ax25_dev *ax25_dev) in ax25_register_dev_sysctl() argument 159 table[k].data = &ax25_dev->values[k]; in ax25_register_dev_sysctl() 161 snprintf(path, sizeof(path), "net/ax25/%s", ax25_dev->dev->name); in ax25_register_dev_sysctl() 162 ax25_dev->sysheader = register_net_sysctl(&init_net, path, table); in ax25_register_dev_sysctl() 163 if (!ax25_dev->sysheader) { in ax25_register_dev_sysctl() 170 void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev) in ax25_unregister_dev_sysctl() argument 172 struct ctl_table_header *header = ax25_dev->sysheader; in ax25_unregister_dev_sysctl() 176 ax25_dev->sysheader = NULL; in ax25_unregister_dev_sysctl()
|
D | ax25_timer.c | 126 if (ax25->ax25_dev) in ax25_heartbeat_expiry() 127 proto = ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]; in ax25_heartbeat_expiry() 137 if (ax25->ax25_dev->dama.slave) in ax25_heartbeat_expiry() 150 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t1timer_expiry() 158 if (!ax25->ax25_dev->dama.slave) in ax25_t1timer_expiry() 169 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t2timer_expiry() 177 if (!ax25->ax25_dev->dama.slave) in ax25_t2timer_expiry() 188 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t3timer_expiry() 196 if (ax25->ax25_dev->dama.slave) in ax25_t3timer_expiry() 209 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_idletimer_expiry() [all …]
|
D | ax25_out.c | 34 ax25_dev *ax25_dev; in ax25_send_frame() local 42 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) in ax25_send_frame() 45 paclen = ax25_dev->values[AX25_VALUES_PACLEN]; in ax25_send_frame() 56 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) in ax25_send_frame() 62 ax25_fillin_cb(ax25, ax25_dev); in ax25_send_frame() 75 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_send_frame() 83 if (ax25_dev->dama.slave) in ax25_send_frame() 189 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_output() 201 if (!ax25->ax25_dev->dama.slave) ax25_kick(ax25); in ax25_output() 295 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_kick() [all …]
|
D | ax25_in.c | 59 skbn->dev = ax25->ax25_dev->dev; in ax25_rx_fragment() 125 skb->dev = ax25->ax25_dev->dev; in ax25_rx_iframe() 141 if (ax25->sk != NULL && ax25->ax25_dev->values[AX25_VALUES_CONMODE] == 2) { in ax25_rx_iframe() 164 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_process_rx_frame() 172 if (dama || ax25->ax25_dev->dama.slave) in ax25_process_rx_frame() 191 ax25_dev *ax25_dev; in ax25_rcv() local 199 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) in ax25_rcv() 294 if (ax25_dev->values[AX25_VALUES_CONMODE] == 0) in ax25_rcv() 343 (make = ax25_make_new(sk, ax25_dev)) == NULL) { in ax25_rcv() 370 ax25_fillin_cb(ax25, ax25_dev); in ax25_rcv() [all …]
|
D | ax25_ip.c | 107 ax25_dev *ax25_dev; in ax25_ip_xmit() local 125 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) { in ax25_ip_xmit() 131 if (ip_mode == 'V' || (ip_mode == ' ' && ax25_dev->values[AX25_VALUES_IPDEFMODE])) { in ax25_ip_xmit() 175 ax25_dev->values[AX25_VALUES_PACLEN], in ax25_ip_xmit()
|
D | ax25_std_in.c | 44 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() 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() 275 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state4_machine() 278 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_std_state4_machine()
|
D | ax25_ds_in.c | 37 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() 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()
|
D | Makefile | 8 ax25-y := ax25_addr.o ax25_dev.o ax25_iface.o ax25_in.o ax25_ip.o ax25_out.o \
|
D | ax25_subr.c | 152 if ((skb = alloc_skb(ax25->ax25_dev->dev->hard_header_len + 2, GFP_ATOMIC)) == NULL) in ax25_send_control() 155 skb_reserve(skb, ax25->ax25_dev->dev->hard_header_len); in ax25_send_control()
|
D | ax25_std_timer.c | 130 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_t1timer_expiry()
|
/Linux-v6.1/include/net/ |
D | ax25.h | 218 typedef struct ax25_dev { struct 219 struct ax25_dev *next; argument 232 } ax25_dev; argument 238 ax25_dev *ax25_dev; member 287 static inline void ax25_dev_hold(ax25_dev *ax25_dev) in ax25_dev_hold() argument 289 refcount_inc(&ax25_dev->refcount); in ax25_dev_hold() 292 static inline void ax25_dev_put(ax25_dev *ax25_dev) in ax25_dev_put() argument 294 if (refcount_dec_and_test(&ax25_dev->refcount)) { in ax25_dev_put() 295 kfree(ax25_dev); in ax25_dev_put() 317 void ax25_fillin_cb(ax25_cb *, ax25_dev *); [all …]
|
/Linux-v6.1/net/netrom/ |
D | nr_route.c | 768 ax25->ax25_dev->dev, 0, in nr_route_frame()
|
/Linux-v6.1/net/rose/ |
D | rose_route.c | 893 ax25->ax25_dev->dev == rose_neigh->dev) in rose_route_frame()
|
/Linux-v6.1/ |
D | MAINTAINERS | 5716 F: net/ax25/ax25_dev.c
|