/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, (ax25_address *)ax25_dev->dev->dev_addr) == 0) { in ax25_addr_ax25dev() 39 res = ax25_dev; in ax25_addr_ax25dev() 52 ax25_dev *ax25_dev; in ax25_dev_device_up() local 54 if ((ax25_dev = kzalloc(sizeof(*ax25_dev), GFP_ATOMIC)) == NULL) { in ax25_dev_device_up() 59 dev->ax25_ptr = ax25_dev; in ax25_dev_device_up() 60 ax25_dev->dev = 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 81 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) in ax25_kill_by_device() 87 if (s->ax25_dev == ax25_dev) { in ax25_kill_by_device() 88 s->ax25_dev = NULL; in ax25_kill_by_device() 164 if (s->ax25_dev == NULL || s->ax25_dev->dev == dev) { in ax25_find_listener() 214 if (s->ax25_dev == NULL) in ax25_find_cb() 216 …source_addr, src_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->ax25_dev->dev == dev) { in ax25_find_cb() 249 s->ax25_dev->dev == skb->dev && in ax25_send_to_raw() 348 ax25_dev *ax25_dev; in ax25_ctl_ioctl() local 356 if ((ax25_dev = ax25_addr_ax25dev(&ax25_ctl.port_addr)) == NULL) in ax25_ctl_ioctl() [all …]
|
D | ax25_timer.c | 124 if (ax25->ax25_dev) in ax25_heartbeat_expiry() 125 proto = ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]; in ax25_heartbeat_expiry() 135 if (ax25->ax25_dev->dama.slave) in ax25_heartbeat_expiry() 148 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t1timer_expiry() 156 if (!ax25->ax25_dev->dama.slave) in ax25_t1timer_expiry() 167 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t2timer_expiry() 175 if (!ax25->ax25_dev->dama.slave) in ax25_t2timer_expiry() 186 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t3timer_expiry() 194 if (ax25->ax25_dev->dama.slave) in ax25_t3timer_expiry() 207 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_idletimer_expiry() [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_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_route.c | 75 ax25_dev *ax25_dev; in ax25_rt_add() local 78 if ((ax25_dev = ax25_addr_ax25dev(&route->port_addr)) == NULL) in ax25_rt_add() 88 ax25_rt->dev == ax25_dev->dev) { in ax25_rt_add() 116 ax25_rt->dev = ax25_dev->dev; in ax25_rt_add() 148 ax25_dev *ax25_dev; in ax25_rt_del() local 150 if ((ax25_dev = ax25_addr_ax25dev(&route->port_addr)) == NULL) in ax25_rt_del() 159 if (s->dev == ax25_dev->dev && in ax25_rt_del() 183 ax25_dev *ax25_dev; in ax25_rt_opt() local 186 if ((ax25_dev = ax25_addr_ax25dev(&rt_option->port_addr)) == NULL) in ax25_rt_opt() 193 if (ax25_rt->dev == ax25_dev->dev && in ax25_rt_opt() [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 | 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 | Makefile | 8 ax25-y := ax25_addr.o ax25_dev.o ax25_iface.o ax25_in.o ax25_ip.o ax25_out.o \
|
D | ax25_std_timer.c | 130 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_t1timer_expiry()
|
/net/netrom/ |
D | nr_route.c | 764 ax25->ax25_dev->dev, 0, in nr_route_frame()
|
/net/rose/ |
D | rose_route.c | 888 ax25->ax25_dev->dev == rose_neigh->dev) in rose_route_frame()
|