Lines Matching refs:bo

163 	struct bcm_sock *bo = bcm_sk(sk);  in bcm_proc_show()  local
168 seq_printf(m, " / bo %pK", bo); in bcm_proc_show()
169 seq_printf(m, " / dropped %lu", bo->dropped_usr_msgs); in bcm_proc_show()
170 seq_printf(m, " / bound %s", bcm_proc_getifname(ifname, bo->ifindex)); in bcm_proc_show()
173 list_for_each_entry(op, &bo->rx_ops, list) { in bcm_proc_show()
204 list_for_each_entry(op, &bo->tx_ops, list) { in bcm_proc_show()
340 struct bcm_sock *bo = bcm_sk(sk); in bcm_send_to_user() local
344 bo->dropped_usr_msgs++; in bcm_send_to_user()
831 struct bcm_sock *bo = bcm_sk(sk); in bcm_tx_setup() local
845 op = bcm_find_op(&bo->tx_ops, msg_head->can_id, ifindex); in bcm_tx_setup()
932 list_add(&op->list, &bo->tx_ops); in bcm_tx_setup()
988 struct bcm_sock *bo = bcm_sk(sk); in bcm_rx_setup() local
1010 op = bcm_find_op(&bo->rx_ops, msg_head->can_id, ifindex); in bcm_rx_setup()
1106 list_add(&op->list, &bo->rx_ops); in bcm_rx_setup()
1239 struct bcm_sock *bo = bcm_sk(sk); in bcm_sendmsg() local
1240 int ifindex = bo->ifindex; /* default ifindex for this bcm_op */ in bcm_sendmsg()
1244 if (!bo->bound) in bcm_sendmsg()
1301 if (bcm_delete_tx_op(&bo->tx_ops, msg_head.can_id, ifindex)) in bcm_sendmsg()
1308 if (bcm_delete_rx_op(&bo->rx_ops, msg_head.can_id, ifindex)) in bcm_sendmsg()
1317 ret = bcm_read_op(&bo->tx_ops, &msg_head, ifindex); in bcm_sendmsg()
1323 ret = bcm_read_op(&bo->rx_ops, &msg_head, ifindex); in bcm_sendmsg()
1351 struct bcm_sock *bo = container_of(nb, struct bcm_sock, notifier); in bcm_notifier() local
1352 struct sock *sk = &bo->sk; in bcm_notifier()
1368 list_for_each_entry(op, &bo->rx_ops, list) in bcm_notifier()
1373 if (bo->bound && bo->ifindex == dev->ifindex) { in bcm_notifier()
1374 bo->bound = 0; in bcm_notifier()
1375 bo->ifindex = 0; in bcm_notifier()
1389 if (bo->bound && bo->ifindex == dev->ifindex) { in bcm_notifier()
1404 struct bcm_sock *bo = bcm_sk(sk); in bcm_init() local
1406 bo->bound = 0; in bcm_init()
1407 bo->ifindex = 0; in bcm_init()
1408 bo->dropped_usr_msgs = 0; in bcm_init()
1409 bo->bcm_proc_read = NULL; in bcm_init()
1411 INIT_LIST_HEAD(&bo->tx_ops); in bcm_init()
1412 INIT_LIST_HEAD(&bo->rx_ops); in bcm_init()
1415 bo->notifier.notifier_call = bcm_notifier; in bcm_init()
1417 register_netdevice_notifier(&bo->notifier); in bcm_init()
1428 struct bcm_sock *bo; in bcm_release() local
1434 bo = bcm_sk(sk); in bcm_release()
1438 unregister_netdevice_notifier(&bo->notifier); in bcm_release()
1442 list_for_each_entry_safe(op, next, &bo->tx_ops, list) in bcm_release()
1445 list_for_each_entry_safe(op, next, &bo->rx_ops, list) { in bcm_release()
1474 if (proc_dir && bo->bcm_proc_read) in bcm_release()
1475 remove_proc_entry(bo->procname, proc_dir); in bcm_release()
1478 if (bo->bound) { in bcm_release()
1479 bo->bound = 0; in bcm_release()
1480 bo->ifindex = 0; in bcm_release()
1497 struct bcm_sock *bo = bcm_sk(sk); in bcm_connect() local
1502 if (bo->bound) in bcm_connect()
1518 bo->ifindex = dev->ifindex; in bcm_connect()
1523 bo->ifindex = 0; in bcm_connect()
1526 bo->bound = 1; in bcm_connect()
1530 sprintf(bo->procname, "%lu", sock_i_ino(sk)); in bcm_connect()
1531 bo->bcm_proc_read = proc_create_data(bo->procname, 0644, in bcm_connect()