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()
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()
234 if (s->ax25_dev == NULL) in ax25_find_cb()
236 …source_addr, src_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->ax25_dev->dev == dev) { in ax25_find_cb()
269 s->ax25_dev->dev == skb->dev && in ax25_send_to_raw()
368 ax25_dev *ax25_dev; in ax25_ctl_ioctl() local
382 ax25_dev = ax25_addr_ax25dev(&ax25_ctl.port_addr); in ax25_ctl_ioctl()
383 if (!ax25_dev) in ax25_ctl_ioctl()
390 ax25 = ax25_find_cb(&ax25_ctl.source_addr, &ax25_ctl.dest_addr, &digi, ax25_dev->dev); in ax25_ctl_ioctl()
392 ax25_dev_put(ax25_dev); in ax25_ctl_ioctl()
400 if (ax25_dev->dama.slave && ax25->ax25_dev->values[AX25_VALUES_PROTOCOL] == AX25_PROTO_DAMA_SLAVE) in ax25_ctl_ioctl()
461 ax25_dev_put(ax25_dev); in ax25_ctl_ioctl()
470 static void ax25_fillin_cb_from_dev(ax25_cb *ax25, ax25_dev *ax25_dev) in ax25_fillin_cb_from_dev() argument
472 ax25->rtt = msecs_to_jiffies(ax25_dev->values[AX25_VALUES_T1]) / 2; in ax25_fillin_cb_from_dev()
473 ax25->t1 = msecs_to_jiffies(ax25_dev->values[AX25_VALUES_T1]); in ax25_fillin_cb_from_dev()
474 ax25->t2 = msecs_to_jiffies(ax25_dev->values[AX25_VALUES_T2]); in ax25_fillin_cb_from_dev()
475 ax25->t3 = msecs_to_jiffies(ax25_dev->values[AX25_VALUES_T3]); in ax25_fillin_cb_from_dev()
476 ax25->n2 = ax25_dev->values[AX25_VALUES_N2]; in ax25_fillin_cb_from_dev()
477 ax25->paclen = ax25_dev->values[AX25_VALUES_PACLEN]; in ax25_fillin_cb_from_dev()
478 ax25->idle = msecs_to_jiffies(ax25_dev->values[AX25_VALUES_IDLE]); in ax25_fillin_cb_from_dev()
479 ax25->backoff = ax25_dev->values[AX25_VALUES_BACKOFF]; in ax25_fillin_cb_from_dev()
481 if (ax25_dev->values[AX25_VALUES_AXDEFMODE]) { in ax25_fillin_cb_from_dev()
483 ax25->window = ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_fillin_cb_from_dev()
486 ax25->window = ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_fillin_cb_from_dev()
494 void ax25_fillin_cb(ax25_cb *ax25, ax25_dev *ax25_dev) in ax25_fillin_cb() argument
496 ax25->ax25_dev = ax25_dev; in ax25_fillin_cb()
498 if (ax25->ax25_dev != NULL) { in ax25_fillin_cb()
499 ax25_fillin_cb_from_dev(ax25, ax25_dev); in ax25_fillin_cb()
688 ax25->ax25_dev = ax25_dev_ax25dev(dev); in ax25_setsockopt()
689 if (!ax25->ax25_dev) { in ax25_setsockopt()
694 ax25_fillin_cb(ax25, ax25->ax25_dev); in ax25_setsockopt()
711 struct ax25_dev *ax25_dev; in ax25_getsockopt() local
778 ax25_dev = ax25->ax25_dev; in ax25_getsockopt()
780 if (ax25_dev != NULL && ax25_dev->dev != NULL) { in ax25_getsockopt()
781 strscpy(devname, ax25_dev->dev->name, sizeof(devname)); in ax25_getsockopt()
914 struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev) in ax25_make_new() argument
964 ax25->ax25_dev = ax25_dev; in ax25_make_new()
988 ax25_dev *ax25_dev; in ax25_release() local
997 ax25_dev = ax25->ax25_dev; in ax25_release()
1025 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_release()
1061 if (ax25_dev) { in ax25_release()
1062 if (!ax25_dev->device_up) { in ax25_release()
1069 netdev_put(ax25_dev->dev, &ax25->dev_tracker); in ax25_release()
1070 ax25_dev_put(ax25_dev); in ax25_release()
1090 ax25_dev *ax25_dev = NULL; in ax25_bind() local
1132 if (ax25->ax25_dev != NULL) in ax25_bind()
1137 (ax25_dev = ax25_addr_ax25dev(&addr->fsa_digipeater[0])) == NULL) { in ax25_bind()
1142 if ((ax25_dev = ax25_addr_ax25dev(&addr->fsa_ax25.sax25_call)) == NULL) { in ax25_bind()
1148 if (ax25_dev) { in ax25_bind()
1149 ax25_fillin_cb(ax25, ax25_dev); in ax25_bind()
1150 netdev_hold(ax25_dev->dev, &ax25->dev_tracker, GFP_ATOMIC); in ax25_bind()
1276 ax25_fillin_cb(ax25, ax25->ax25_dev); in ax25_connect()
1279 if (ax25->ax25_dev == NULL) { in ax25_connect()
1288 ax25->ax25_dev->dev))) { in ax25_connect()
1309 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_connect()
1318 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_connect()
1319 if (ax25->ax25_dev->dama.slave) in ax25_connect()
1477 if (ax25->ax25_dev != NULL) { in ax25_getname()
1479 ax25->ax25_dev->dev->dev_addr, AX25_ADDR_LEN); in ax25_getname()
1520 if (ax25->ax25_dev == NULL) { in ax25_sendmsg()
1525 if (len > ax25->ax25_dev->dev->mtu) { in ax25_sendmsg()
1602 size = len + ax25->ax25_dev->dev->hard_header_len; in ax25_sendmsg()
1651 ax25_queue_xmit(skb, ax25->ax25_dev->dev); in ax25_sendmsg()
1957 ax25->ax25_dev == NULL? "???" : ax25->ax25_dev->dev->name, in ax25_info_show()