Lines Matching defs:ndev
89 static int cpsw_port_attr_set(struct net_device *ndev, const void *ctx,
93 struct cpsw_priv *priv = netdev_priv(ndev);
100 ret = cpsw_port_attr_br_flags_pre_set(ndev,
183 flags = priv->ndev->flags;
208 priv->ndev->name, vid, port_mask);
242 cpsw_ale_del_mcast(cpsw->ale, priv->ndev->broadcast,
245 priv->ndev->name, vid, port_mask);
258 priv->ndev->name, vlan->vid, vlan->flags);
281 priv->ndev->name, mdb->vid, mdb->addr, port_mask);
304 priv->ndev->name, mdb->vid, mdb->addr, del_mask);
309 static int cpsw_port_obj_add(struct net_device *ndev, const void *ctx,
315 struct cpsw_priv *priv = netdev_priv(ndev);
337 static int cpsw_port_obj_del(struct net_device *ndev, const void *ctx,
342 struct cpsw_priv *priv = netdev_priv(ndev);
364 static void cpsw_fdb_offload_notify(struct net_device *ndev,
373 ndev, &info.info, NULL);
401 cpsw_fdb_offload_notify(priv->ndev, fdb);
425 dev_put(priv->ndev);
432 struct net_device *ndev = switchdev_notifier_info_to_dev(ptr);
435 struct cpsw_priv *priv = netdev_priv(ndev);
439 err = switchdev_handle_port_attr_set(ndev, ptr,
445 if (!cpsw_port_dev_check(ndev))
466 dev_hold(ndev);