• Home
  • Raw
  • Download

Lines Matching refs:ifindex

104 	int ifindex;  member
128 int ifindex; member
175 static char *bcm_proc_getifname(struct net *net, char *result, int ifindex) in bcm_proc_getifname() argument
179 if (!ifindex) in bcm_proc_getifname()
183 dev = dev_get_by_index_rcu(net, ifindex); in bcm_proc_getifname()
205 seq_printf(m, " / bound %s", bcm_proc_getifname(net, ifname, bo->ifindex)); in bcm_proc_show()
217 bcm_proc_getifname(net, ifname, op->ifindex)); in bcm_proc_show()
246 bcm_proc_getifname(net, ifname, op->ifindex)); in bcm_proc_show()
280 if (!op->ifindex) in bcm_can_tx()
283 dev = dev_get_by_index(sock_net(op->sk), op->ifindex); in bcm_can_tx()
294 can_skb_prv(skb)->ifindex = dev->ifindex; in bcm_can_tx()
661 op->rx_ifindex = skb->dev->ifindex; in bcm_rx_handler()
710 struct bcm_msg_head *mh, int ifindex) in bcm_find_op() argument
715 if ((op->can_id == mh->can_id) && (op->ifindex == ifindex) && in bcm_find_op()
761 int ifindex) in bcm_delete_rx_op() argument
766 if ((op->can_id == mh->can_id) && (op->ifindex == ifindex) && in bcm_delete_rx_op()
777 if (op->ifindex) { in bcm_delete_rx_op()
787 op->ifindex); in bcm_delete_rx_op()
812 int ifindex) in bcm_delete_tx_op() argument
817 if ((op->can_id == mh->can_id) && (op->ifindex == ifindex) && in bcm_delete_tx_op()
832 int ifindex) in bcm_read_op() argument
834 struct bcm_op *op = bcm_find_op(ops, msg_head, ifindex); in bcm_read_op()
855 int ifindex, struct sock *sk) in bcm_tx_setup() argument
864 if (!ifindex) in bcm_tx_setup()
876 op = bcm_find_op(&bo->tx_ops, msg_head, ifindex); in bcm_tx_setup()
964 op->ifindex = ifindex; in bcm_tx_setup()
1034 int ifindex, struct sock *sk) in bcm_rx_setup() argument
1062 op = bcm_find_op(&bo->rx_ops, msg_head, ifindex); in bcm_rx_setup()
1142 op->ifindex = ifindex; in bcm_rx_setup()
1145 op->rx_ifindex = ifindex; in bcm_rx_setup()
1211 if (ifindex) { in bcm_rx_setup()
1214 dev = dev_get_by_index(sock_net(sk), ifindex); in bcm_rx_setup()
1244 static int bcm_tx_send(struct msghdr *msg, int ifindex, struct sock *sk, in bcm_tx_send() argument
1252 if (!ifindex) in bcm_tx_send()
1267 dev = dev_get_by_index(sock_net(sk), ifindex); in bcm_tx_send()
1273 can_skb_prv(skb)->ifindex = dev->ifindex; in bcm_tx_send()
1293 int ifindex = bo->ifindex; /* default ifindex for this bcm_op */ in bcm_sendmsg() local
1316 if (!ifindex && msg->msg_name) { in bcm_sendmsg()
1327 ifindex = addr->can_ifindex; in bcm_sendmsg()
1329 if (ifindex) { in bcm_sendmsg()
1332 dev = dev_get_by_index(sock_net(sk), ifindex); in bcm_sendmsg()
1350 ret = bcm_tx_setup(&msg_head, msg, ifindex, sk); in bcm_sendmsg()
1354 ret = bcm_rx_setup(&msg_head, msg, ifindex, sk); in bcm_sendmsg()
1358 if (bcm_delete_tx_op(&bo->tx_ops, &msg_head, ifindex)) in bcm_sendmsg()
1365 if (bcm_delete_rx_op(&bo->rx_ops, &msg_head, ifindex)) in bcm_sendmsg()
1374 ret = bcm_read_op(&bo->tx_ops, &msg_head, ifindex); in bcm_sendmsg()
1380 ret = bcm_read_op(&bo->rx_ops, &msg_head, ifindex); in bcm_sendmsg()
1388 ret = bcm_tx_send(msg, ifindex, sk, cfsiz); in bcm_sendmsg()
1425 if (bo->bound && bo->ifindex == dev->ifindex) { in bcm_notify()
1427 bo->ifindex = 0; in bcm_notify()
1441 if (bo->bound && bo->ifindex == dev->ifindex) { in bcm_notify()
1480 bo->ifindex = 0; in bcm_init()
1538 if (op->ifindex) { in bcm_release()
1547 dev = dev_get_by_index(net, op->ifindex); in bcm_release()
1568 bo->ifindex = 0; in bcm_release()
1614 bo->ifindex = dev->ifindex; in bcm_connect()
1619 bo->ifindex = 0; in bcm_connect()