• Home
  • Raw
  • Download

Lines Matching full:so

164 	struct isotp_sock *so = container_of(hrtimer, struct isotp_sock,  in isotp_rx_timer_handler()  local
166 struct sock *sk = &so->sk; in isotp_rx_timer_handler()
168 if (so->rx.state == ISOTP_WAIT_DATA) { in isotp_rx_timer_handler()
177 so->rx.state = ISOTP_IDLE; in isotp_rx_timer_handler()
188 struct isotp_sock *so = isotp_sk(sk); in isotp_send_fc() local
191 nskb = alloc_skb(so->ll.mtu + sizeof(struct can_skb_priv), gfp_any()); in isotp_send_fc()
195 dev = dev_get_by_index(sock_net(sk), so->ifindex); in isotp_send_fc()
208 skb_put_zero(nskb, so->ll.mtu); in isotp_send_fc()
211 ncf->can_id = so->txid; in isotp_send_fc()
213 if (so->opt.flags & CAN_ISOTP_TX_PADDING) { in isotp_send_fc()
214 memset(ncf->data, so->opt.txpad_content, CAN_MAX_DLEN); in isotp_send_fc()
221 ncf->data[ae + 1] = so->rxfc.bs; in isotp_send_fc()
222 ncf->data[ae + 2] = so->rxfc.stmin; in isotp_send_fc()
225 ncf->data[0] = so->opt.ext_address; in isotp_send_fc()
227 ncf->flags = so->ll.tx_flags; in isotp_send_fc()
237 so->rx.bs = 0; in isotp_send_fc()
240 so->lastrxcf_tstamp = ktime_set(0, 0); in isotp_send_fc()
243 hrtimer_start(&so->rxtimer, ktime_set(1, 0), HRTIMER_MODE_REL_SOFT); in isotp_send_fc()
301 static int check_pad(struct isotp_sock *so, struct canfd_frame *cf, in check_pad() argument
307 if (!(so->opt.flags & CAN_ISOTP_RX_PADDING)) { in check_pad()
308 if (so->opt.flags & CAN_ISOTP_CHK_PAD_LEN) in check_pad()
316 if ((so->opt.flags & CAN_ISOTP_CHK_PAD_LEN) && in check_pad()
321 if (so->opt.flags & CAN_ISOTP_CHK_PAD_DATA) { in check_pad()
329 static int isotp_rcv_fc(struct isotp_sock *so, struct canfd_frame *cf, int ae) in isotp_rcv_fc() argument
331 struct sock *sk = &so->sk; in isotp_rcv_fc()
333 if (so->tx.state != ISOTP_WAIT_FC && in isotp_rcv_fc()
334 so->tx.state != ISOTP_WAIT_FIRST_FC) in isotp_rcv_fc()
337 hrtimer_cancel(&so->txtimer); in isotp_rcv_fc()
340 ((so->opt.flags & ISOTP_CHECK_PADDING) && in isotp_rcv_fc()
341 check_pad(so, cf, ae + FC_CONTENT_SZ, so->opt.rxpad_content))) { in isotp_rcv_fc()
347 so->tx.state = ISOTP_IDLE; in isotp_rcv_fc()
348 wake_up_interruptible(&so->wait); in isotp_rcv_fc()
353 if (so->tx.state == ISOTP_WAIT_FIRST_FC) { in isotp_rcv_fc()
354 so->txfc.bs = cf->data[ae + 1]; in isotp_rcv_fc()
355 so->txfc.stmin = cf->data[ae + 2]; in isotp_rcv_fc()
358 if (so->txfc.stmin > 0x7F && in isotp_rcv_fc()
359 (so->txfc.stmin < 0xF1 || so->txfc.stmin > 0xF9)) in isotp_rcv_fc()
360 so->txfc.stmin = 0x7F; in isotp_rcv_fc()
362 so->tx_gap = ktime_set(0, 0); in isotp_rcv_fc()
364 so->tx_gap = ktime_add_ns(so->tx_gap, so->frame_txtime); in isotp_rcv_fc()
366 if (so->opt.flags & CAN_ISOTP_FORCE_TXSTMIN) in isotp_rcv_fc()
367 so->tx_gap = ktime_add_ns(so->tx_gap, in isotp_rcv_fc()
368 so->force_tx_stmin); in isotp_rcv_fc()
369 else if (so->txfc.stmin < 0x80) in isotp_rcv_fc()
370 so->tx_gap = ktime_add_ns(so->tx_gap, in isotp_rcv_fc()
371 so->txfc.stmin * 1000000); in isotp_rcv_fc()
373 so->tx_gap = ktime_add_ns(so->tx_gap, in isotp_rcv_fc()
374 (so->txfc.stmin - 0xF0) in isotp_rcv_fc()
376 so->tx.state = ISOTP_WAIT_FC; in isotp_rcv_fc()
381 so->tx.bs = 0; in isotp_rcv_fc()
382 so->tx.state = ISOTP_SENDING; in isotp_rcv_fc()
384 hrtimer_start(&so->txtimer, so->tx_gap, in isotp_rcv_fc()
390 hrtimer_start(&so->txtimer, ktime_set(1, 0), in isotp_rcv_fc()
403 so->tx.state = ISOTP_IDLE; in isotp_rcv_fc()
404 wake_up_interruptible(&so->wait); in isotp_rcv_fc()
412 struct isotp_sock *so = isotp_sk(sk); in isotp_rcv_sf() local
415 hrtimer_cancel(&so->rxtimer); in isotp_rcv_sf()
416 so->rx.state = ISOTP_IDLE; in isotp_rcv_sf()
421 if ((so->opt.flags & ISOTP_CHECK_PADDING) && in isotp_rcv_sf()
422 check_pad(so, cf, pcilen + len, so->opt.rxpad_content)) { in isotp_rcv_sf()
444 struct isotp_sock *so = isotp_sk(sk); in isotp_rcv_ff() local
449 hrtimer_cancel(&so->rxtimer); in isotp_rcv_ff()
450 so->rx.state = ISOTP_IDLE; in isotp_rcv_ff()
453 so->rx.ll_dl = padlen(cf->len); in isotp_rcv_ff()
456 if (cf->len != so->rx.ll_dl) in isotp_rcv_ff()
460 so->rx.len = (cf->data[ae] & 0x0F) << 8; in isotp_rcv_ff()
461 so->rx.len += cf->data[ae + 1]; in isotp_rcv_ff()
464 if (so->rx.len) { in isotp_rcv_ff()
468 so->rx.len = cf->data[ae + 2] << 24; in isotp_rcv_ff()
469 so->rx.len += cf->data[ae + 3] << 16; in isotp_rcv_ff()
470 so->rx.len += cf->data[ae + 4] << 8; in isotp_rcv_ff()
471 so->rx.len += cf->data[ae + 5]; in isotp_rcv_ff()
476 off = (so->rx.ll_dl > CAN_MAX_DLEN) ? 1 : 0; in isotp_rcv_ff()
478 if (so->rx.len + ae + off + ff_pci_sz < so->rx.ll_dl) in isotp_rcv_ff()
481 if (so->rx.len > MAX_MSG_LENGTH) { in isotp_rcv_ff()
488 so->rx.idx = 0; in isotp_rcv_ff()
489 for (i = ae + ff_pci_sz; i < so->rx.ll_dl; i++) in isotp_rcv_ff()
490 so->rx.buf[so->rx.idx++] = cf->data[i]; in isotp_rcv_ff()
493 so->rx.sn = 1; in isotp_rcv_ff()
494 so->rx.state = ISOTP_WAIT_DATA; in isotp_rcv_ff()
497 if (so->opt.flags & CAN_ISOTP_LISTEN_MODE) in isotp_rcv_ff()
508 struct isotp_sock *so = isotp_sk(sk); in isotp_rcv_cf() local
512 if (so->rx.state != ISOTP_WAIT_DATA) in isotp_rcv_cf()
516 if (so->opt.flags & CAN_ISOTP_FORCE_RXSTMIN) { in isotp_rcv_cf()
517 if (ktime_to_ns(ktime_sub(skb->tstamp, so->lastrxcf_tstamp)) < in isotp_rcv_cf()
518 so->force_rx_stmin) in isotp_rcv_cf()
521 so->lastrxcf_tstamp = skb->tstamp; in isotp_rcv_cf()
524 hrtimer_cancel(&so->rxtimer); in isotp_rcv_cf()
527 if (cf->len > so->rx.ll_dl) in isotp_rcv_cf()
531 if (cf->len < so->rx.ll_dl) { in isotp_rcv_cf()
533 if (so->rx.len - so->rx.idx > so->rx.ll_dl - ae - N_PCI_SZ) in isotp_rcv_cf()
537 if ((cf->data[ae] & 0x0F) != so->rx.sn) { in isotp_rcv_cf()
544 so->rx.state = ISOTP_IDLE; in isotp_rcv_cf()
547 so->rx.sn++; in isotp_rcv_cf()
548 so->rx.sn %= 16; in isotp_rcv_cf()
551 so->rx.buf[so->rx.idx++] = cf->data[i]; in isotp_rcv_cf()
552 if (so->rx.idx >= so->rx.len) in isotp_rcv_cf()
556 if (so->rx.idx >= so->rx.len) { in isotp_rcv_cf()
558 so->rx.state = ISOTP_IDLE; in isotp_rcv_cf()
560 if ((so->opt.flags & ISOTP_CHECK_PADDING) && in isotp_rcv_cf()
561 check_pad(so, cf, i + 1, so->opt.rxpad_content)) { in isotp_rcv_cf()
569 nskb = alloc_skb(so->rx.len, gfp_any()); in isotp_rcv_cf()
573 memcpy(skb_put(nskb, so->rx.len), so->rx.buf, in isotp_rcv_cf()
574 so->rx.len); in isotp_rcv_cf()
583 if (!so->rxfc.bs || ++so->rx.bs < so->rxfc.bs) { in isotp_rcv_cf()
585 hrtimer_start(&so->rxtimer, ktime_set(1, 0), in isotp_rcv_cf()
591 if (so->opt.flags & CAN_ISOTP_LISTEN_MODE) in isotp_rcv_cf()
594 /* we reached the specified blocksize so->rxfc.bs */ in isotp_rcv_cf()
602 struct isotp_sock *so = isotp_sk(sk); in isotp_rcv() local
604 int ae = (so->opt.flags & CAN_ISOTP_EXTEND_ADDR) ? 1 : 0; in isotp_rcv()
610 if (skb->len != so->ll.mtu) in isotp_rcv()
616 if (ae && cf->data[0] != so->opt.rx_ext_address) in isotp_rcv()
625 spin_lock(&so->rx_lock); in isotp_rcv()
627 if (so->opt.flags & CAN_ISOTP_HALF_DUPLEX) { in isotp_rcv()
629 if ((so->tx.state != ISOTP_IDLE && n_pci_type != N_PCI_FC) || in isotp_rcv()
630 (so->rx.state != ISOTP_IDLE && n_pci_type == N_PCI_FC)) in isotp_rcv()
637 isotp_rcv_fc(so, cf, ae); in isotp_rcv()
658 * If so take care of the increased SF PCI size in isotp_rcv()
682 spin_unlock(&so->rx_lock); in isotp_rcv()
685 static void isotp_fill_dataframe(struct canfd_frame *cf, struct isotp_sock *so, in isotp_fill_dataframe() argument
689 int space = so->tx.ll_dl - pcilen; in isotp_fill_dataframe()
690 int num = min_t(int, so->tx.len - so->tx.idx, space); in isotp_fill_dataframe()
693 cf->can_id = so->txid; in isotp_fill_dataframe()
697 if (so->opt.flags & CAN_ISOTP_TX_PADDING) { in isotp_fill_dataframe()
700 memset(cf->data, so->opt.txpad_content, cf->len); in isotp_fill_dataframe()
710 cf->data[pcilen + i] = so->tx.buf[so->tx.idx++]; in isotp_fill_dataframe()
713 cf->data[0] = so->opt.ext_address; in isotp_fill_dataframe()
716 static void isotp_create_fframe(struct canfd_frame *cf, struct isotp_sock *so, in isotp_create_fframe() argument
722 cf->can_id = so->txid; in isotp_create_fframe()
723 cf->len = so->tx.ll_dl; in isotp_create_fframe()
725 cf->data[0] = so->opt.ext_address; in isotp_create_fframe()
728 if (so->tx.len > 4095) { in isotp_create_fframe()
732 cf->data[ae + 2] = (u8)(so->tx.len >> 24) & 0xFFU; in isotp_create_fframe()
733 cf->data[ae + 3] = (u8)(so->tx.len >> 16) & 0xFFU; in isotp_create_fframe()
734 cf->data[ae + 4] = (u8)(so->tx.len >> 8) & 0xFFU; in isotp_create_fframe()
735 cf->data[ae + 5] = (u8)so->tx.len & 0xFFU; in isotp_create_fframe()
739 cf->data[ae] = (u8)(so->tx.len >> 8) | N_PCI_FF; in isotp_create_fframe()
740 cf->data[ae + 1] = (u8)so->tx.len & 0xFFU; in isotp_create_fframe()
745 for (i = ae + ff_pci_sz; i < so->tx.ll_dl; i++) in isotp_create_fframe()
746 cf->data[i] = so->tx.buf[so->tx.idx++]; in isotp_create_fframe()
748 so->tx.sn = 1; in isotp_create_fframe()
749 so->tx.state = ISOTP_WAIT_FIRST_FC; in isotp_create_fframe()
754 struct isotp_sock *so = container_of(hrtimer, struct isotp_sock, in isotp_tx_timer_handler() local
756 struct sock *sk = &so->sk; in isotp_tx_timer_handler()
762 int ae = (so->opt.flags & CAN_ISOTP_EXTEND_ADDR) ? 1 : 0; in isotp_tx_timer_handler()
764 switch (so->tx.state) { in isotp_tx_timer_handler()
776 so->tx.state = ISOTP_IDLE; in isotp_tx_timer_handler()
777 wake_up_interruptible(&so->wait); in isotp_tx_timer_handler()
783 dev = dev_get_by_index(sock_net(sk), so->ifindex); in isotp_tx_timer_handler()
788 skb = alloc_skb(so->ll.mtu + sizeof(struct can_skb_priv), in isotp_tx_timer_handler()
800 skb_put_zero(skb, so->ll.mtu); in isotp_tx_timer_handler()
803 isotp_fill_dataframe(cf, so, ae, 0); in isotp_tx_timer_handler()
806 cf->data[ae] = N_PCI_CF | so->tx.sn++; in isotp_tx_timer_handler()
807 so->tx.sn %= 16; in isotp_tx_timer_handler()
808 so->tx.bs++; in isotp_tx_timer_handler()
810 cf->flags = so->ll.tx_flags; in isotp_tx_timer_handler()
820 if (so->tx.idx >= so->tx.len) { in isotp_tx_timer_handler()
822 so->tx.state = ISOTP_IDLE; in isotp_tx_timer_handler()
824 wake_up_interruptible(&so->wait); in isotp_tx_timer_handler()
828 if (so->txfc.bs && so->tx.bs >= so->txfc.bs) { in isotp_tx_timer_handler()
830 so->tx.state = ISOTP_WAIT_FC; in isotp_tx_timer_handler()
832 hrtimer_set_expires(&so->txtimer, in isotp_tx_timer_handler()
840 if (!so->tx_gap) in isotp_tx_timer_handler()
845 hrtimer_set_expires(&so->txtimer, in isotp_tx_timer_handler()
846 ktime_add(ktime_get(), so->tx_gap)); in isotp_tx_timer_handler()
860 struct isotp_sock *so = isotp_sk(sk); in isotp_sendmsg() local
861 u32 old_state = so->tx.state; in isotp_sendmsg()
865 int ae = (so->opt.flags & CAN_ISOTP_EXTEND_ADDR) ? 1 : 0; in isotp_sendmsg()
866 int wait_tx_done = (so->opt.flags & CAN_ISOTP_WAIT_TX_DONE) ? 1 : 0; in isotp_sendmsg()
871 if (!so->bound) in isotp_sendmsg()
875 if (cmpxchg(&so->tx.state, ISOTP_IDLE, ISOTP_SENDING) != ISOTP_IDLE || in isotp_sendmsg()
876 wq_has_sleeper(&so->wait)) { in isotp_sendmsg()
883 err = wait_event_interruptible(so->wait, so->tx.state == ISOTP_IDLE); in isotp_sendmsg()
894 off = (so->tx.ll_dl > CAN_MAX_DLEN) ? 1 : 0; in isotp_sendmsg()
897 if ((so->opt.flags & CAN_ISOTP_SF_BROADCAST) && in isotp_sendmsg()
898 (size > so->tx.ll_dl - SF_PCI_SZ4 - ae - off)) { in isotp_sendmsg()
903 err = memcpy_from_msg(so->tx.buf, msg, size); in isotp_sendmsg()
907 dev = dev_get_by_index(sock_net(sk), so->ifindex); in isotp_sendmsg()
913 skb = sock_alloc_send_skb(sk, so->ll.mtu + sizeof(struct can_skb_priv), in isotp_sendmsg()
924 so->tx.len = size; in isotp_sendmsg()
925 so->tx.idx = 0; in isotp_sendmsg()
928 skb_put_zero(skb, so->ll.mtu); in isotp_sendmsg()
931 if (size <= so->tx.ll_dl - SF_PCI_SZ4 - ae - off) { in isotp_sendmsg()
944 isotp_fill_dataframe(cf, so, ae, off); in isotp_sendmsg()
955 so->tx.state = ISOTP_IDLE; in isotp_sendmsg()
956 wake_up_interruptible(&so->wait); in isotp_sendmsg()
963 isotp_create_fframe(cf, so, ae); in isotp_sendmsg()
967 hrtimer_start(&so->txtimer, ktime_set(hrtimer_sec, 0), in isotp_sendmsg()
972 cf->flags = so->ll.tx_flags; in isotp_sendmsg()
984 hrtimer_cancel(&so->txtimer); in isotp_sendmsg()
991 wait_event_interruptible(so->wait, so->tx.state == ISOTP_IDLE); in isotp_sendmsg()
1003 so->tx.state = old_state; in isotp_sendmsg()
1004 if (so->tx.state == ISOTP_IDLE) in isotp_sendmsg()
1005 wake_up_interruptible(&so->wait); in isotp_sendmsg()
1015 struct isotp_sock *so = isotp_sk(sk); in isotp_recvmsg() local
1022 if (!so->bound) in isotp_recvmsg()
1059 struct isotp_sock *so; in isotp_release() local
1065 so = isotp_sk(sk); in isotp_release()
1069 wait_event_interruptible(so->wait, so->tx.state == ISOTP_IDLE); in isotp_release()
1072 while (isotp_busy_notifier == so) { in isotp_release()
1077 list_del(&so->notifier); in isotp_release()
1083 if (so->bound && (!(so->opt.flags & CAN_ISOTP_SF_BROADCAST))) { in isotp_release()
1084 if (so->ifindex) { in isotp_release()
1087 dev = dev_get_by_index(net, so->ifindex); in isotp_release()
1089 can_rx_unregister(net, dev, so->rxid, in isotp_release()
1090 SINGLE_MASK(so->rxid), in isotp_release()
1098 hrtimer_cancel(&so->txtimer); in isotp_release()
1099 hrtimer_cancel(&so->rxtimer); in isotp_release()
1101 so->ifindex = 0; in isotp_release()
1102 so->bound = 0; in isotp_release()
1117 struct isotp_sock *so = isotp_sk(sk); in isotp_bind() local
1147 if (so->bound) { in isotp_bind()
1153 if (so->opt.flags & CAN_ISOTP_SF_BROADCAST) in isotp_bind()
1172 if (dev->mtu < so->ll.mtu) { in isotp_bind()
1189 so->ifindex = ifindex; in isotp_bind()
1190 so->rxid = rx_id; in isotp_bind()
1191 so->txid = tx_id; in isotp_bind()
1192 so->bound = 1; in isotp_bind()
1210 struct isotp_sock *so = isotp_sk(sk); in isotp_getname() local
1217 addr->can_ifindex = so->ifindex; in isotp_getname()
1218 addr->can_addr.tp.rx_id = so->rxid; in isotp_getname()
1219 addr->can_addr.tp.tx_id = so->txid; in isotp_getname()
1228 struct isotp_sock *so = isotp_sk(sk); in isotp_setsockopt_locked() local
1231 if (so->bound) in isotp_setsockopt_locked()
1239 if (copy_from_sockptr(&so->opt, optval, optlen)) in isotp_setsockopt_locked()
1243 if (!(so->opt.flags & CAN_ISOTP_RX_EXT_ADDR)) in isotp_setsockopt_locked()
1244 so->opt.rx_ext_address = so->opt.ext_address; in isotp_setsockopt_locked()
1247 if (so->opt.frame_txtime) { in isotp_setsockopt_locked()
1248 if (so->opt.frame_txtime == CAN_ISOTP_FRAME_TXTIME_ZERO) in isotp_setsockopt_locked()
1249 so->frame_txtime = 0; in isotp_setsockopt_locked()
1251 so->frame_txtime = so->opt.frame_txtime; in isotp_setsockopt_locked()
1259 if (copy_from_sockptr(&so->rxfc, optval, optlen)) in isotp_setsockopt_locked()
1267 if (copy_from_sockptr(&so->force_tx_stmin, optval, optlen)) in isotp_setsockopt_locked()
1275 if (copy_from_sockptr(&so->force_rx_stmin, optval, optlen)) in isotp_setsockopt_locked()
1297 memcpy(&so->ll, &ll, sizeof(ll)); in isotp_setsockopt_locked()
1300 so->tx.ll_dl = ll.tx_dl; in isotp_setsockopt_locked()
1333 struct isotp_sock *so = isotp_sk(sk); in isotp_getsockopt() local
1347 val = &so->opt; in isotp_getsockopt()
1352 val = &so->rxfc; in isotp_getsockopt()
1357 val = &so->force_tx_stmin; in isotp_getsockopt()
1362 val = &so->force_rx_stmin; in isotp_getsockopt()
1367 val = &so->ll; in isotp_getsockopt()
1381 static void isotp_notify(struct isotp_sock *so, unsigned long msg, in isotp_notify() argument
1384 struct sock *sk = &so->sk; in isotp_notify()
1389 if (so->ifindex != dev->ifindex) in isotp_notify()
1396 if (so->bound && (!(so->opt.flags & CAN_ISOTP_SF_BROADCAST))) in isotp_notify()
1397 can_rx_unregister(dev_net(dev), dev, so->rxid, in isotp_notify()
1398 SINGLE_MASK(so->rxid), in isotp_notify()
1401 so->ifindex = 0; in isotp_notify()
1402 so->bound = 0; in isotp_notify()
1443 struct isotp_sock *so = isotp_sk(sk); in isotp_init() local
1445 so->ifindex = 0; in isotp_init()
1446 so->bound = 0; in isotp_init()
1448 so->opt.flags = CAN_ISOTP_DEFAULT_FLAGS; in isotp_init()
1449 so->opt.ext_address = CAN_ISOTP_DEFAULT_EXT_ADDRESS; in isotp_init()
1450 so->opt.rx_ext_address = CAN_ISOTP_DEFAULT_EXT_ADDRESS; in isotp_init()
1451 so->opt.rxpad_content = CAN_ISOTP_DEFAULT_PAD_CONTENT; in isotp_init()
1452 so->opt.txpad_content = CAN_ISOTP_DEFAULT_PAD_CONTENT; in isotp_init()
1453 so->opt.frame_txtime = CAN_ISOTP_DEFAULT_FRAME_TXTIME; in isotp_init()
1454 so->frame_txtime = CAN_ISOTP_DEFAULT_FRAME_TXTIME; in isotp_init()
1455 so->rxfc.bs = CAN_ISOTP_DEFAULT_RECV_BS; in isotp_init()
1456 so->rxfc.stmin = CAN_ISOTP_DEFAULT_RECV_STMIN; in isotp_init()
1457 so->rxfc.wftmax = CAN_ISOTP_DEFAULT_RECV_WFTMAX; in isotp_init()
1458 so->ll.mtu = CAN_ISOTP_DEFAULT_LL_MTU; in isotp_init()
1459 so->ll.tx_dl = CAN_ISOTP_DEFAULT_LL_TX_DL; in isotp_init()
1460 so->ll.tx_flags = CAN_ISOTP_DEFAULT_LL_TX_FLAGS; in isotp_init()
1463 so->tx.ll_dl = so->ll.tx_dl; in isotp_init()
1465 so->rx.state = ISOTP_IDLE; in isotp_init()
1466 so->tx.state = ISOTP_IDLE; in isotp_init()
1468 hrtimer_init(&so->rxtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT); in isotp_init()
1469 so->rxtimer.function = isotp_rx_timer_handler; in isotp_init()
1470 hrtimer_init(&so->txtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT); in isotp_init()
1471 so->txtimer.function = isotp_tx_timer_handler; in isotp_init()
1473 init_waitqueue_head(&so->wait); in isotp_init()
1474 spin_lock_init(&so->rx_lock); in isotp_init()
1477 list_add_tail(&so->notifier, &isotp_notifier_list); in isotp_init()