/net/ax25/ |
D | ax25_dev.c | 32 ax25_dev *ax25_dev_list; 35 ax25_dev *ax25_addr_ax25dev(ax25_address *addr) in ax25_addr_ax25dev() 37 ax25_dev *ax25_dev, *res = NULL; in ax25_addr_ax25dev() local 40 for (ax25_dev = ax25_dev_list; ax25_dev != NULL; ax25_dev = ax25_dev->next) in ax25_addr_ax25dev() 41 if (ax25cmp(addr, (ax25_address *)ax25_dev->dev->dev_addr) == 0) { in ax25_addr_ax25dev() 42 res = ax25_dev; in ax25_addr_ax25dev() 55 ax25_dev *ax25_dev; in ax25_dev_device_up() local 57 if ((ax25_dev = kzalloc(sizeof(*ax25_dev), GFP_ATOMIC)) == NULL) { in ax25_dev_device_up() 62 dev->ax25_ptr = ax25_dev; in ax25_dev_device_up() 63 ax25_dev->dev = dev; in ax25_dev_device_up() [all …]
|
D | ax25_ds_subr.c | 79 ax25_ds_set_timer(ax25->ax25_dev); in ax25_ds_enquiry_response() 86 if (ax25o->ax25_dev != ax25->ax25_dev) in ax25_ds_enquiry_response() 127 static void ax25_kiss_cmd(ax25_dev *ax25_dev, unsigned char cmd, unsigned char param) in ax25_kiss_cmd() argument 132 if (ax25_dev->dev == NULL) in ax25_kiss_cmd() 144 skb->protocol = ax25_type_trans(skb, ax25_dev->dev); in ax25_kiss_cmd() 157 static int ax25_check_dama_slave(ax25_dev *ax25_dev) in ax25_check_dama_slave() argument 164 …if (ax25->ax25_dev == ax25_dev && (ax25->condition & AX25_COND_DAMA_MODE) && ax25->state > AX25_ST… in ax25_check_dama_slave() 173 static void ax25_dev_dama_on(ax25_dev *ax25_dev) in ax25_dev_dama_on() argument 175 if (ax25_dev == NULL) in ax25_dev_dama_on() 178 if (ax25_dev->dama.slave == 0) in ax25_dev_dama_on() [all …]
|
D | ax25_ds_timer.c | 42 void ax25_ds_setup_timer(ax25_dev *ax25_dev) in ax25_ds_setup_timer() argument 44 setup_timer(&ax25_dev->dama.slave_timer, ax25_ds_timeout, in ax25_ds_setup_timer() 45 (unsigned long)ax25_dev); in ax25_ds_setup_timer() 48 void ax25_ds_del_timer(ax25_dev *ax25_dev) in ax25_ds_del_timer() argument 50 if (ax25_dev) in ax25_ds_del_timer() 51 del_timer(&ax25_dev->dama.slave_timer); in ax25_ds_del_timer() 54 void ax25_ds_set_timer(ax25_dev *ax25_dev) in ax25_ds_set_timer() argument 56 if (ax25_dev == NULL) /* paranoia */ in ax25_ds_set_timer() 59 ax25_dev->dama.slave_timeout = in ax25_ds_set_timer() 60 msecs_to_jiffies(ax25_dev->values[AX25_VALUES_DS_TIMEOUT]) / 10; in ax25_ds_set_timer() [all …]
|
D | af_ax25.c | 81 ax25_dev *ax25_dev; in ax25_kill_by_device() local 84 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) in ax25_kill_by_device() 90 if (s->ax25_dev == ax25_dev) { in ax25_kill_by_device() 93 s->ax25_dev = NULL; in ax25_kill_by_device() 169 if (s->ax25_dev == NULL || s->ax25_dev->dev == dev) { in ax25_find_listener() 219 if (s->ax25_dev == NULL) in ax25_find_cb() 221 …source_addr, src_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->ax25_dev->dev == dev) { in ax25_find_cb() 254 s->ax25_dev->dev == skb->dev && in ax25_send_to_raw() 354 ax25_dev *ax25_dev; in ax25_ctl_ioctl() local 362 if ((ax25_dev = ax25_addr_ax25dev(&ax25_ctl.port_addr)) == NULL) in ax25_ctl_ioctl() [all …]
|
D | ax25_timer.c | 128 if (ax25->ax25_dev) in ax25_heartbeat_expiry() 129 proto = ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]; in ax25_heartbeat_expiry() 139 if (ax25->ax25_dev->dama.slave) in ax25_heartbeat_expiry() 152 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t1timer_expiry() 160 if (!ax25->ax25_dev->dama.slave) in ax25_t1timer_expiry() 171 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t2timer_expiry() 179 if (!ax25->ax25_dev->dama.slave) in ax25_t2timer_expiry() 190 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t3timer_expiry() 198 if (ax25->ax25_dev->dama.slave) in ax25_t3timer_expiry() 211 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_idletimer_expiry() [all …]
|
D | sysctl_net_ax25.c | 151 int ax25_register_dev_sysctl(ax25_dev *ax25_dev) in ax25_register_dev_sysctl() argument 162 table[k].data = &ax25_dev->values[k]; in ax25_register_dev_sysctl() 164 snprintf(path, sizeof(path), "net/ax25/%s", ax25_dev->dev->name); in ax25_register_dev_sysctl() 165 ax25_dev->sysheader = register_net_sysctl(&init_net, path, table); in ax25_register_dev_sysctl() 166 if (!ax25_dev->sysheader) { in ax25_register_dev_sysctl() 173 void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev) in ax25_unregister_dev_sysctl() argument 175 struct ctl_table_header *header = ax25_dev->sysheader; in ax25_unregister_dev_sysctl() 179 ax25_dev->sysheader = NULL; in ax25_unregister_dev_sysctl()
|
D | ax25_out.c | 37 ax25_dev *ax25_dev; in ax25_send_frame() local 45 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) in ax25_send_frame() 48 paclen = ax25_dev->values[AX25_VALUES_PACLEN]; in ax25_send_frame() 59 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) in ax25_send_frame() 65 ax25_fillin_cb(ax25, ax25_dev); in ax25_send_frame() 78 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_send_frame() 86 if (ax25_dev->dama.slave) in ax25_send_frame() 192 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_output() 204 if (!ax25->ax25_dev->dama.slave) ax25_kick(ax25); in ax25_output() 298 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_kick() [all …]
|
D | ax25_in.c | 62 skbn->dev = ax25->ax25_dev->dev; in ax25_rx_fragment() 128 skb->dev = ax25->ax25_dev->dev; in ax25_rx_iframe() 144 if (ax25->sk != NULL && ax25->ax25_dev->values[AX25_VALUES_CONMODE] == 2) { in ax25_rx_iframe() 167 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_process_rx_frame() 175 if (dama || ax25->ax25_dev->dama.slave) in ax25_process_rx_frame() 194 ax25_dev *ax25_dev; in ax25_rcv() local 202 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) in ax25_rcv() 297 if (ax25_dev->values[AX25_VALUES_CONMODE] == 0) in ax25_rcv() 346 (make = ax25_make_new(sk, ax25_dev)) == NULL) { in ax25_rcv() 373 ax25_fillin_cb(ax25, ax25_dev); in ax25_rcv() [all …]
|
D | ax25_route.c | 78 ax25_dev *ax25_dev; in ax25_rt_add() local 81 if ((ax25_dev = ax25_addr_ax25dev(&route->port_addr)) == NULL) in ax25_rt_add() 91 ax25_rt->dev == ax25_dev->dev) { in ax25_rt_add() 119 ax25_rt->dev = ax25_dev->dev; in ax25_rt_add() 151 ax25_dev *ax25_dev; in ax25_rt_del() local 153 if ((ax25_dev = ax25_addr_ax25dev(&route->port_addr)) == NULL) in ax25_rt_del() 162 if (s->dev == ax25_dev->dev && in ax25_rt_del() 186 ax25_dev *ax25_dev; in ax25_rt_opt() local 189 if ((ax25_dev = ax25_addr_ax25dev(&rt_option->port_addr)) == NULL) in ax25_rt_opt() 196 if (ax25_rt->dev == ax25_dev->dev && in ax25_rt_opt() [all …]
|
D | ax25_ip.c | 110 ax25_dev *ax25_dev; in ax25_ip_xmit() local 128 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) { in ax25_ip_xmit() 134 if (ip_mode == 'V' || (ip_mode == ' ' && ax25_dev->values[AX25_VALUES_IPDEFMODE])) { in ax25_ip_xmit() 178 ax25_dev->values[AX25_VALUES_PACLEN], in ax25_ip_xmit()
|
D | ax25_std_in.c | 47 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state1_machine() 53 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_std_state1_machine() 89 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state1_machine() 153 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state3_machine() 156 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_std_state3_machine() 278 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state4_machine() 281 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_std_state4_machine()
|
D | ax25_ds_in.c | 40 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_ds_state1_machine() 46 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_ds_state1_machine() 157 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_ds_state3_machine() 160 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_ds_state3_machine()
|
D | ax25_subr.c | 155 if ((skb = alloc_skb(ax25->ax25_dev->dev->hard_header_len + 2, GFP_ATOMIC)) == NULL) in ax25_send_control() 158 skb_reserve(skb, ax25->ax25_dev->dev->hard_header_len); in ax25_send_control()
|
D | Makefile | 7 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 | 133 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_t1timer_expiry()
|
/net/netrom/ |
D | nr_route.c | 792 ax25->ax25_dev->dev, 0, in nr_route_frame()
|
/net/rose/ |
D | rose_route.c | 889 ax25->ax25_dev->dev == rose_neigh->dev) in rose_route_frame()
|