• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/target/linux/generic/files/drivers/net/phy/

Lines Matching refs:dev

89 	struct switch_dev dev;
212 #define to_ar8216(_dev) container_of(_dev, struct ar8216_priv, dev)
454 WARN_ON(port >= priv->dev.ports);
531 ar8216_mangle_tx(struct net_device *dev, struct sk_buff *skb)
533 struct ar8216_priv *priv = dev->phy_ptr;
560 ar8216_mangle_rx(struct net_device *dev, struct sk_buff *skb)
566 priv = dev->phy_ptr;
943 if (phy->dev.platform_data)
944 return phy->dev.platform_data;
1030 phy->dev.platform_data = pdata;
1168 pdata = priv->phy->dev.platform_data;
1273 pdata = priv->phy->dev.platform_data;
1321 pdata = priv->phy->dev.platform_data;
1556 ar8216_sw_set_vlan(struct switch_dev *dev, const struct switch_attr *attr,
1559 struct ar8216_priv *priv = to_ar8216(dev);
1565 ar8216_sw_get_vlan(struct switch_dev *dev, const struct switch_attr *attr,
1568 struct ar8216_priv *priv = to_ar8216(dev);
1574 ar8216_sw_set_max_frame_size(struct switch_dev *dev, const struct switch_attr *attr,
1577 struct ar8216_priv *priv = to_ar8216(dev);
1594 ar8216_sw_set_reg_val(struct switch_dev *dev, int reg, int val)
1596 struct ar8216_priv *priv = to_ar8216(dev);
1603 ar8216_sw_get_reg_val(struct switch_dev *dev, int reg, int *val)
1605 struct ar8216_priv *priv = to_ar8216(dev);
1612 ar8216_sw_get_max_frame_size(struct switch_dev *dev, const struct switch_attr *attr,
1617 struct ar8216_priv *priv = to_ar8216(dev);
1632 ar8216_sw_set_pvid(struct switch_dev *dev, int port, int vlan)
1634 struct ar8216_priv *priv = to_ar8216(dev);
1638 if (vlan >= dev->vlans)
1646 ar8216_sw_get_pvid(struct switch_dev *dev, int port, int *vlan)
1648 struct ar8216_priv *priv = to_ar8216(dev);
1654 ar8216_sw_set_vid(struct switch_dev *dev, const struct switch_attr *attr,
1657 struct ar8216_priv *priv = to_ar8216(dev);
1663 ar8216_sw_get_vid(struct switch_dev *dev, const struct switch_attr *attr,
1666 struct ar8216_priv *priv = to_ar8216(dev);
1672 ar8216_sw_get_port_link(struct switch_dev *dev, int port,
1675 struct ar8216_priv *priv = to_ar8216(dev);
1682 ar8216_sw_get_ports(struct switch_dev *dev, struct switch_val *val)
1684 struct ar8216_priv *priv = to_ar8216(dev);
1689 for (i = 0; i < dev->ports; i++) {
1706 ar8216_sw_set_ports(struct switch_dev *dev, struct switch_val *val)
1708 struct ar8216_priv *priv = to_ar8216(dev);
1737 ar8216_sw_hw_apply(struct switch_dev *dev)
1739 struct ar8216_priv *priv = to_ar8216(dev);
1757 for (i = 0; i < dev->ports; i++) {
1769 for (i = 0; i < dev->ports; i++) {
1779 for (i = 0; i < dev->ports; i++) {
1804 ar8216_sw_reset_switch(struct switch_dev *dev)
1806 struct ar8216_priv *priv = to_ar8216(dev);
1817 for (i = 0; i < dev->ports; i++)
1823 return ar8216_sw_hw_apply(dev);
1827 ar8216_sw_set_reset_mibs(struct switch_dev *dev,
1831 struct ar8216_priv *priv = to_ar8216(dev);
1840 len = priv->dev.ports * priv->chip->num_mibs *
1855 ar8216_sw_set_port_reset_mib(struct switch_dev *dev,
1859 struct ar8216_priv *priv = to_ar8216(dev);
1867 if (port >= dev->ports)
1885 ar8xxx_atu_dump(struct switch_dev *dev,
1889 struct ar8216_priv *priv = to_ar8216(dev);
1911 ar8xxx_igmp_snooping(struct switch_dev *dev,
1916 struct ar8216_priv *priv = to_ar8216(dev);
1919 printk(KERN_ERR "igmp_snooping not supported on %s\n", priv->dev.name);
1929 ar8216_sw_get_port_mib(struct switch_dev *dev,
1933 struct ar8216_priv *priv = to_ar8216(dev);
1945 if (port >= dev->ports)
2145 if (priv->mib_next_port >= priv->dev.ports)
2163 len = priv->dev.ports * priv->chip->num_mibs *
2200 struct net_device *dev = pdev->attached_dev;
2241 priv->dev.ports = (AR8216_NUM_PORTS - 1);
2264 swdev = &priv->dev;
2294 ret = register_switch(&priv->dev, pdev->attached_dev);
2307 ret = ar8216_sw_reset_switch(&priv->dev);
2311 dev->phy_ptr = priv;
2315 dev->priv_flags |= IFF_NO_IP_ALIGN;
2316 dev->eth_mangle_rx = ar8216_mangle_rx;
2317 dev->eth_mangle_tx = ar8216_mangle_tx;
2352 struct switch_dev *dev;
2359 dev = (struct switch_dev *)priv;
2360 for(i = 1; i < dev->ports; i++) {
2453 struct net_device *dev = pdev->attached_dev;
2458 dev->priv_flags &= ~IFF_NO_IP_ALIGN;
2459 dev->eth_mangle_rx = NULL;
2460 dev->eth_mangle_tx = NULL;
2463 unregister_switch(&priv->dev);