• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/core/

Lines Matching refs:to

258 		 * and set dev_addr pointer to this location.
271 * @addr: address to add
274 * Add a device address to the device or increase the reference count if
296 * @addr: address to delete
299 * Release reference to a device address and remove it from the device
300 * if the reference count drops to zero.
314 * dev->dev_addr points to that.
331 * @to_dev: device to which addresses will be added
335 * Add device addresses of the one device to another.
363 * Deletes addresses in to device by the list of addresses in from device.
389 * @addr: address to add
391 * Add a secondary unicast address to the device or increase
411 * @addr: address to delete
413 * Release reference to a secondary unicast address and remove it
414 * from the device if the reference count drops to zero.
431 * dev_uc_sync - Synchronize device's unicast list to another device
432 * @to: destination device
435 * Add newly added addresses to the destination device and release
439 * This function is intended to be called from the dev->set_rx_mode
442 int dev_uc_sync(struct net_device *to, struct net_device *from)
446 if (to->addr_len != from->addr_len)
449 netif_addr_lock_bh(to);
450 err = __hw_addr_sync(&to->uc, &from->uc, to->addr_len);
452 __dev_set_rx_mode(to);
453 netif_addr_unlock_bh(to);
460 * @to: destination device
463 * Remove all addresses that were added to the destination device by
464 * dev_uc_sync(). This function is intended to be called from the
467 void dev_uc_unsync(struct net_device *to, struct net_device *from)
469 if (to->addr_len != from->addr_len)
473 netif_addr_lock(to);
474 __hw_addr_unsync(&to->uc, &from->uc, to->addr_len);
475 __dev_set_rx_mode(to);
476 netif_addr_unlock(to);
527 * @addr: address to add
529 * Add a multicast address to the device or increase
541 * @addr: address to add
543 * Add a global multicast address to the device.
568 * @addr: address to delete
570 * Release reference to a multicast address and remove it
571 * from the device if the reference count drops to zero.
582 * @addr: address to delete
584 * Release reference to a multicast address and remove it
585 * from the device if the reference count drops to zero.
594 * dev_mc_sync - Synchronize device's unicast list to another device
595 * @to: destination device
598 * Add newly added addresses to the destination device and release
602 * This function is intended to be called from the dev->set_multicast_list
605 int dev_mc_sync(struct net_device *to, struct net_device *from)
609 if (to->addr_len != from->addr_len)
612 netif_addr_lock_bh(to);
613 err = __hw_addr_sync(&to->mc, &from->mc, to->addr_len);
615 __dev_set_rx_mode(to);
616 netif_addr_unlock_bh(to);
623 * @to: destination device
626 * Remove all addresses that were added to the destination device by
627 * dev_mc_sync(). This function is intended to be called from the
630 void dev_mc_unsync(struct net_device *to, struct net_device *from)
632 if (to->addr_len != from->addr_len)
636 netif_addr_lock(to);
637 __hw_addr_unsync(&to->mc, &from->mc, to->addr_len);
638 __dev_set_rx_mode(to);
639 netif_addr_unlock(to);