• Home
  • Raw
  • Download

Lines Matching refs:ifindex

99 	int ifindex;  member
126 int ifindex; member
152 static char *bcm_proc_getifname(char *result, int ifindex) in bcm_proc_getifname() argument
156 if (!ifindex) in bcm_proc_getifname()
160 dev = dev_get_by_index_rcu(&init_net, ifindex); in bcm_proc_getifname()
181 seq_printf(m, " / bound %s", bcm_proc_getifname(ifname, bo->ifindex)); in bcm_proc_show()
193 bcm_proc_getifname(ifname, op->ifindex)); in bcm_proc_show()
222 bcm_proc_getifname(ifname, op->ifindex)); in bcm_proc_show()
267 if (!op->ifindex) in bcm_can_tx()
270 dev = dev_get_by_index(&init_net, op->ifindex); in bcm_can_tx()
281 can_skb_prv(skb)->ifindex = dev->ifindex; in bcm_can_tx()
673 op->rx_ifindex = skb->dev->ifindex; in bcm_rx_handler()
722 struct bcm_msg_head *mh, int ifindex) in bcm_find_op() argument
727 if ((op->can_id == mh->can_id) && (op->ifindex == ifindex) && in bcm_find_op()
781 int ifindex) in bcm_delete_rx_op() argument
786 if ((op->can_id == mh->can_id) && (op->ifindex == ifindex) && in bcm_delete_rx_op()
794 if (op->ifindex) { in bcm_delete_rx_op()
804 op->ifindex); in bcm_delete_rx_op()
828 int ifindex) in bcm_delete_tx_op() argument
833 if ((op->can_id == mh->can_id) && (op->ifindex == ifindex) && in bcm_delete_tx_op()
848 int ifindex) in bcm_read_op() argument
850 struct bcm_op *op = bcm_find_op(ops, msg_head, ifindex); in bcm_read_op()
871 int ifindex, struct sock *sk) in bcm_tx_setup() argument
880 if (!ifindex) in bcm_tx_setup()
888 op = bcm_find_op(&bo->tx_ops, msg_head, ifindex); in bcm_tx_setup()
977 op->ifindex = ifindex; in bcm_tx_setup()
1043 int ifindex, struct sock *sk) in bcm_rx_setup() argument
1067 op = bcm_find_op(&bo->rx_ops, msg_head, ifindex); in bcm_rx_setup()
1145 op->ifindex = ifindex; in bcm_rx_setup()
1148 op->rx_ifindex = ifindex; in bcm_rx_setup()
1220 if (ifindex) { in bcm_rx_setup()
1223 dev = dev_get_by_index(&init_net, ifindex); in bcm_rx_setup()
1252 static int bcm_tx_send(struct msghdr *msg, int ifindex, struct sock *sk, in bcm_tx_send() argument
1260 if (!ifindex) in bcm_tx_send()
1275 dev = dev_get_by_index(&init_net, ifindex); in bcm_tx_send()
1281 can_skb_prv(skb)->ifindex = dev->ifindex; in bcm_tx_send()
1301 int ifindex = bo->ifindex; /* default ifindex for this bcm_op */ in bcm_sendmsg() local
1324 if (!ifindex && msg->msg_name) { in bcm_sendmsg()
1335 ifindex = addr->can_ifindex; in bcm_sendmsg()
1337 if (ifindex) { in bcm_sendmsg()
1340 dev = dev_get_by_index(&init_net, ifindex); in bcm_sendmsg()
1358 ret = bcm_tx_setup(&msg_head, msg, ifindex, sk); in bcm_sendmsg()
1362 ret = bcm_rx_setup(&msg_head, msg, ifindex, sk); in bcm_sendmsg()
1366 if (bcm_delete_tx_op(&bo->tx_ops, &msg_head, ifindex)) in bcm_sendmsg()
1373 if (bcm_delete_rx_op(&bo->rx_ops, &msg_head, ifindex)) in bcm_sendmsg()
1382 ret = bcm_read_op(&bo->tx_ops, &msg_head, ifindex); in bcm_sendmsg()
1388 ret = bcm_read_op(&bo->rx_ops, &msg_head, ifindex); in bcm_sendmsg()
1396 ret = bcm_tx_send(msg, ifindex, sk, cfsiz); in bcm_sendmsg()
1438 if (bo->bound && bo->ifindex == dev->ifindex) { in bcm_notifier()
1440 bo->ifindex = 0; in bcm_notifier()
1454 if (bo->bound && bo->ifindex == dev->ifindex) { in bcm_notifier()
1472 bo->ifindex = 0; in bcm_init()
1515 if (op->ifindex) { in bcm_release()
1524 dev = dev_get_by_index(&init_net, op->ifindex); in bcm_release()
1545 bo->ifindex = 0; in bcm_release()
1590 bo->ifindex = dev->ifindex; in bcm_connect()
1595 bo->ifindex = 0; in bcm_connect()