• Home
  • Raw
  • Download

Lines Matching refs:vp

77 	struct net_device *dev = port->vp->dev;  in vnet_send_attr()
280 struct net_device *dev = port->vp->dev; in vnet_rx_one()
535 struct vnet *vp; in vnet_ack() local
564 vp = port->vp; in vnet_ack()
565 dev = vp->dev; in vnet_ack()
585 port->vp->dev->name, in handle_mcast()
596 struct vnet *vp = (struct vnet *)param; in maybe_tx_wakeup() local
597 struct net_device *dev = vp->dev; in maybe_tx_wakeup()
604 list_for_each_entry(port, &vp->port_list, list) { in maybe_tx_wakeup()
700 tasklet_schedule(&port->vp->vnet_tx_wakeup); in vnet_event()
756 struct vnet_port *__tx_port_find(struct vnet *vp, struct sk_buff *skb) in __tx_port_find() argument
759 struct hlist_head *hp = &vp->port_hash[hash]; in __tx_port_find()
768 list_for_each_entry(port, &vp->port_list, list) { in __tx_port_find()
778 struct vnet_port *tx_port_find(struct vnet *vp, struct sk_buff *skb) in tx_port_find() argument
783 spin_lock_irqsave(&vp->lock, flags); in tx_port_find()
784 ret = __tx_port_find(vp, skb); in tx_port_find()
785 spin_unlock_irqrestore(&vp->lock, flags); in tx_port_find()
903 struct vnet *vp = netdev_priv(dev); in vnet_start_xmit() local
904 struct vnet_port *port = tx_port_find(vp, skb); in vnet_start_xmit()
1103 static struct vnet_mcast_entry *__vnet_mc_find(struct vnet *vp, u8 *addr) in __vnet_mc_find() argument
1107 for (m = vp->mcast_list; m; m = m->next) { in __vnet_mc_find()
1114 static void __update_mc_list(struct vnet *vp, struct net_device *dev) in __update_mc_list() argument
1121 m = __vnet_mc_find(vp, ha->addr); in __update_mc_list()
1134 m->next = vp->mcast_list; in __update_mc_list()
1135 vp->mcast_list = m; in __update_mc_list()
1140 static void __send_mc_list(struct vnet *vp, struct vnet_port *port) in __send_mc_list() argument
1155 for (m = vp->mcast_list; m; m = m->next) { in __send_mc_list()
1177 pp = &vp->mcast_list; in __send_mc_list()
1205 struct vnet *vp = netdev_priv(dev); in vnet_set_rx_mode() local
1209 spin_lock_irqsave(&vp->lock, flags); in vnet_set_rx_mode()
1210 if (!list_empty(&vp->port_list)) { in vnet_set_rx_mode()
1211 port = list_entry(vp->port_list.next, struct vnet_port, list); in vnet_set_rx_mode()
1214 __update_mc_list(vp, dev); in vnet_set_rx_mode()
1215 __send_mc_list(vp, port); in vnet_set_rx_mode()
1218 spin_unlock_irqrestore(&vp->lock, flags); in vnet_set_rx_mode()
1244 struct vnet *vp = netdev_priv(dev); in vnet_get_msglevel() local
1245 return vp->msg_enable; in vnet_get_msglevel()
1250 struct vnet *vp = netdev_priv(dev); in vnet_set_msglevel() local
1251 vp->msg_enable = value; in vnet_set_msglevel()
1362 struct vnet *vp; in vnet_new() local
1365 dev = alloc_etherdev(sizeof(*vp)); in vnet_new()
1374 vp = netdev_priv(dev); in vnet_new()
1376 spin_lock_init(&vp->lock); in vnet_new()
1377 tasklet_init(&vp->vnet_tx_wakeup, maybe_tx_wakeup, (unsigned long)vp); in vnet_new()
1378 vp->dev = dev; in vnet_new()
1380 INIT_LIST_HEAD(&vp->port_list); in vnet_new()
1382 INIT_HLIST_HEAD(&vp->port_hash[i]); in vnet_new()
1383 INIT_LIST_HEAD(&vp->list); in vnet_new()
1384 vp->local_mac = *local_mac; in vnet_new()
1398 list_add(&vp->list, &vnet_list); in vnet_new()
1400 return vp; in vnet_new()
1410 struct vnet *iter, *vp; in vnet_find_or_create() local
1413 vp = NULL; in vnet_find_or_create()
1416 vp = iter; in vnet_find_or_create()
1420 if (!vp) in vnet_find_or_create()
1421 vp = vnet_new(local_mac); in vnet_find_or_create()
1424 return vp; in vnet_find_or_create()
1429 struct vnet *vp; in vnet_cleanup() local
1434 vp = list_first_entry(&vnet_list, struct vnet, list); in vnet_cleanup()
1435 list_del(&vp->list); in vnet_cleanup()
1436 dev = vp->dev; in vnet_cleanup()
1437 tasklet_kill(&vp->vnet_tx_wakeup); in vnet_cleanup()
1439 BUG_ON(!list_empty(&vp->port_list)); in vnet_cleanup()
1497 struct vnet *vp; in vnet_port_probe() local
1505 vp = vnet_find_parent(hp, vdev->mp); in vnet_port_probe()
1506 if (IS_ERR(vp)) { in vnet_port_probe()
1508 err = PTR_ERR(vp); in vnet_port_probe()
1527 port->vp = vp; in vnet_port_probe()
1531 &vnet_vio_ops, vp->dev->name); in vnet_port_probe()
1551 spin_lock_irqsave(&vp->lock, flags); in vnet_port_probe()
1553 list_add(&port->list, &vp->port_list); in vnet_port_probe()
1555 list_add_tail(&port->list, &vp->port_list); in vnet_port_probe()
1556 hlist_add_head(&port->hash, &vp->port_hash[vnet_hashfn(port->raddr)]); in vnet_port_probe()
1557 spin_unlock_irqrestore(&vp->lock, flags); in vnet_port_probe()
1562 vp->dev->name, port->raddr, switch_port ? " switch-port" : ""); in vnet_port_probe()
1589 struct vnet *vp = port->vp; in vnet_port_remove() local
1595 spin_lock_irqsave(&vp->lock, flags); in vnet_port_remove()
1598 spin_unlock_irqrestore(&vp->lock, flags); in vnet_port_remove()