Lines Matching refs:bo

168 	struct bcm_sock *bo = bcm_sk(sk);  in bcm_proc_show()  local
173 seq_printf(m, " / bo %pK", bo); in bcm_proc_show()
174 seq_printf(m, " / dropped %lu", bo->dropped_usr_msgs); in bcm_proc_show()
175 seq_printf(m, " / bound %s", bcm_proc_getifname(ifname, bo->ifindex)); in bcm_proc_show()
178 list_for_each_entry(op, &bo->rx_ops, list) { in bcm_proc_show()
209 list_for_each_entry(op, &bo->tx_ops, list) { in bcm_proc_show()
345 struct bcm_sock *bo = bcm_sk(sk); in bcm_send_to_user() local
349 bo->dropped_usr_msgs++; in bcm_send_to_user()
836 struct bcm_sock *bo = bcm_sk(sk); in bcm_tx_setup() local
850 op = bcm_find_op(&bo->tx_ops, msg_head->can_id, ifindex); in bcm_tx_setup()
937 list_add(&op->list, &bo->tx_ops); in bcm_tx_setup()
993 struct bcm_sock *bo = bcm_sk(sk); in bcm_rx_setup() local
1015 op = bcm_find_op(&bo->rx_ops, msg_head->can_id, ifindex); in bcm_rx_setup()
1111 list_add(&op->list, &bo->rx_ops); in bcm_rx_setup()
1244 struct bcm_sock *bo = bcm_sk(sk); in bcm_sendmsg() local
1245 int ifindex = bo->ifindex; /* default ifindex for this bcm_op */ in bcm_sendmsg()
1249 if (!bo->bound) in bcm_sendmsg()
1306 if (bcm_delete_tx_op(&bo->tx_ops, msg_head.can_id, ifindex)) in bcm_sendmsg()
1313 if (bcm_delete_rx_op(&bo->rx_ops, msg_head.can_id, ifindex)) in bcm_sendmsg()
1322 ret = bcm_read_op(&bo->tx_ops, &msg_head, ifindex); in bcm_sendmsg()
1328 ret = bcm_read_op(&bo->rx_ops, &msg_head, ifindex); in bcm_sendmsg()
1356 struct bcm_sock *bo = container_of(nb, struct bcm_sock, notifier); in bcm_notifier() local
1357 struct sock *sk = &bo->sk; in bcm_notifier()
1373 list_for_each_entry(op, &bo->rx_ops, list) in bcm_notifier()
1378 if (bo->bound && bo->ifindex == dev->ifindex) { in bcm_notifier()
1379 bo->bound = 0; in bcm_notifier()
1380 bo->ifindex = 0; in bcm_notifier()
1394 if (bo->bound && bo->ifindex == dev->ifindex) { in bcm_notifier()
1409 struct bcm_sock *bo = bcm_sk(sk); in bcm_init() local
1411 bo->bound = 0; in bcm_init()
1412 bo->ifindex = 0; in bcm_init()
1413 bo->dropped_usr_msgs = 0; in bcm_init()
1414 bo->bcm_proc_read = NULL; in bcm_init()
1416 INIT_LIST_HEAD(&bo->tx_ops); in bcm_init()
1417 INIT_LIST_HEAD(&bo->rx_ops); in bcm_init()
1420 bo->notifier.notifier_call = bcm_notifier; in bcm_init()
1422 register_netdevice_notifier(&bo->notifier); in bcm_init()
1433 struct bcm_sock *bo; in bcm_release() local
1439 bo = bcm_sk(sk); in bcm_release()
1443 unregister_netdevice_notifier(&bo->notifier); in bcm_release()
1447 list_for_each_entry_safe(op, next, &bo->tx_ops, list) in bcm_release()
1450 list_for_each_entry_safe(op, next, &bo->rx_ops, list) { in bcm_release()
1479 if (proc_dir && bo->bcm_proc_read) in bcm_release()
1480 remove_proc_entry(bo->procname, proc_dir); in bcm_release()
1483 if (bo->bound) { in bcm_release()
1484 bo->bound = 0; in bcm_release()
1485 bo->ifindex = 0; in bcm_release()
1502 struct bcm_sock *bo = bcm_sk(sk); in bcm_connect() local
1507 if (bo->bound) in bcm_connect()
1523 bo->ifindex = dev->ifindex; in bcm_connect()
1528 bo->ifindex = 0; in bcm_connect()
1531 bo->bound = 1; in bcm_connect()
1535 sprintf(bo->procname, "%lu", sock_i_ino(sk)); in bcm_connect()
1536 bo->bcm_proc_read = proc_create_data(bo->procname, 0644, in bcm_connect()