• Home
  • Raw
  • Download

Lines Matching refs:ax25_dev

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()
88 if (s->ax25_dev == ax25_dev) { in ax25_kill_by_device()
93 s->ax25_dev = NULL; in ax25_kill_by_device()
101 s->ax25_dev = NULL; in ax25_kill_by_device()
103 dev_put(ax25_dev->dev); in ax25_kill_by_device()
104 ax25_dev_put(ax25_dev); in ax25_kill_by_device()
180 if (s->ax25_dev == NULL || s->ax25_dev->dev == dev) { in ax25_find_listener()
230 if (s->ax25_dev == NULL) in ax25_find_cb()
232 …source_addr, src_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->ax25_dev->dev == dev) { in ax25_find_cb()
265 s->ax25_dev->dev == skb->dev && in ax25_send_to_raw()
364 ax25_dev *ax25_dev; in ax25_ctl_ioctl() local
378 ax25_dev = ax25_addr_ax25dev(&ax25_ctl.port_addr); in ax25_ctl_ioctl()
379 if (!ax25_dev) in ax25_ctl_ioctl()
386 ax25 = ax25_find_cb(&ax25_ctl.source_addr, &ax25_ctl.dest_addr, &digi, ax25_dev->dev); in ax25_ctl_ioctl()
388 ax25_dev_put(ax25_dev); in ax25_ctl_ioctl()
396 if (ax25_dev->dama.slave && ax25->ax25_dev->values[AX25_VALUES_PROTOCOL] == AX25_PROTO_DAMA_SLAVE) in ax25_ctl_ioctl()
457 ax25_dev_put(ax25_dev); in ax25_ctl_ioctl()
466 static void ax25_fillin_cb_from_dev(ax25_cb *ax25, ax25_dev *ax25_dev) in ax25_fillin_cb_from_dev() argument
468 ax25->rtt = msecs_to_jiffies(ax25_dev->values[AX25_VALUES_T1]) / 2; in ax25_fillin_cb_from_dev()
469 ax25->t1 = msecs_to_jiffies(ax25_dev->values[AX25_VALUES_T1]); in ax25_fillin_cb_from_dev()
470 ax25->t2 = msecs_to_jiffies(ax25_dev->values[AX25_VALUES_T2]); in ax25_fillin_cb_from_dev()
471 ax25->t3 = msecs_to_jiffies(ax25_dev->values[AX25_VALUES_T3]); in ax25_fillin_cb_from_dev()
472 ax25->n2 = ax25_dev->values[AX25_VALUES_N2]; in ax25_fillin_cb_from_dev()
473 ax25->paclen = ax25_dev->values[AX25_VALUES_PACLEN]; in ax25_fillin_cb_from_dev()
474 ax25->idle = msecs_to_jiffies(ax25_dev->values[AX25_VALUES_IDLE]); in ax25_fillin_cb_from_dev()
475 ax25->backoff = ax25_dev->values[AX25_VALUES_BACKOFF]; in ax25_fillin_cb_from_dev()
477 if (ax25_dev->values[AX25_VALUES_AXDEFMODE]) { in ax25_fillin_cb_from_dev()
479 ax25->window = ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_fillin_cb_from_dev()
482 ax25->window = ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_fillin_cb_from_dev()
490 void ax25_fillin_cb(ax25_cb *ax25, ax25_dev *ax25_dev) in ax25_fillin_cb() argument
492 ax25->ax25_dev = ax25_dev; in ax25_fillin_cb()
494 if (ax25->ax25_dev != NULL) { in ax25_fillin_cb()
495 ax25_fillin_cb_from_dev(ax25, ax25_dev); in ax25_fillin_cb()
684 ax25->ax25_dev = ax25_dev_ax25dev(dev); in ax25_setsockopt()
685 if (!ax25->ax25_dev) { in ax25_setsockopt()
690 ax25_fillin_cb(ax25, ax25->ax25_dev); in ax25_setsockopt()
707 struct ax25_dev *ax25_dev; in ax25_getsockopt() local
774 ax25_dev = ax25->ax25_dev; in ax25_getsockopt()
776 if (ax25_dev != NULL && ax25_dev->dev != NULL) { in ax25_getsockopt()
777 strlcpy(devname, ax25_dev->dev->name, sizeof(devname)); in ax25_getsockopt()
909 struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev) in ax25_make_new() argument
959 ax25->ax25_dev = ax25_dev; in ax25_make_new()
983 ax25_dev *ax25_dev; in ax25_release() local
992 ax25_dev = ax25->ax25_dev; in ax25_release()
1018 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_release()
1054 if (ax25_dev) { in ax25_release()
1060 dev_put(ax25_dev->dev); in ax25_release()
1061 ax25_dev_put(ax25_dev); in ax25_release()
1081 ax25_dev *ax25_dev = NULL; in ax25_bind() local
1123 if (ax25->ax25_dev != NULL) in ax25_bind()
1128 (ax25_dev = ax25_addr_ax25dev(&addr->fsa_digipeater[0])) == NULL) { in ax25_bind()
1133 if ((ax25_dev = ax25_addr_ax25dev(&addr->fsa_ax25.sax25_call)) == NULL) { in ax25_bind()
1139 if (ax25_dev) { in ax25_bind()
1140 ax25_fillin_cb(ax25, ax25_dev); in ax25_bind()
1141 dev_hold(ax25_dev->dev); in ax25_bind()
1267 ax25_fillin_cb(ax25, ax25->ax25_dev); in ax25_connect()
1270 if (ax25->ax25_dev == NULL) { in ax25_connect()
1279 ax25->ax25_dev->dev))) { in ax25_connect()
1300 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_connect()
1309 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_connect()
1310 if (ax25->ax25_dev->dama.slave) in ax25_connect()
1468 if (ax25->ax25_dev != NULL) { in ax25_getname()
1470 ax25->ax25_dev->dev->dev_addr, AX25_ADDR_LEN); in ax25_getname()
1511 if (ax25->ax25_dev == NULL) { in ax25_sendmsg()
1516 if (len > ax25->ax25_dev->dev->mtu) { in ax25_sendmsg()
1593 size = len + ax25->ax25_dev->dev->hard_header_len; in ax25_sendmsg()
1642 ax25_queue_xmit(skb, ax25->ax25_dev->dev); in ax25_sendmsg()
1926 ax25->ax25_dev == NULL? "???" : ax25->ax25_dev->dev->name, in ax25_info_show()