Lines Matching refs:to_dev

140 					  const struct net_device *to_dev,  in mlxsw_sp1_span_entry_cpu_parms()  argument
169 const struct net_device *to_dev, in mlxsw_sp_span_entry_phys_parms() argument
172 sparmsp->dest_port = netdev_priv(to_dev); in mlxsw_sp_span_entry_phys_parms()
412 mlxsw_sp_span_gretap4_route(const struct net_device *to_dev, in mlxsw_sp_span_gretap4_route() argument
415 struct ip_tunnel *tun = netdev_priv(to_dev); in mlxsw_sp_span_gretap4_route()
424 parms = mlxsw_sp_ipip_netdev_parms4(to_dev); in mlxsw_sp_span_gretap4_route()
426 0, 0, dev_net(to_dev), parms.link, tun->fwmark, 0, in mlxsw_sp_span_gretap4_route()
451 const struct net_device *to_dev, in mlxsw_sp_span_entry_gretap4_parms() argument
454 struct ip_tunnel_parm tparm = mlxsw_sp_ipip_netdev_parms4(to_dev); in mlxsw_sp_span_entry_gretap4_parms()
462 if (!(to_dev->flags & IFF_UP) || in mlxsw_sp_span_entry_gretap4_parms()
471 l3edev = mlxsw_sp_span_gretap4_route(to_dev, &saddr.addr4, &gw.addr4); in mlxsw_sp_span_entry_gretap4_parms()
521 mlxsw_sp_span_gretap6_route(const struct net_device *to_dev, in mlxsw_sp_span_gretap6_route() argument
525 struct ip6_tnl *t = netdev_priv(to_dev); in mlxsw_sp_span_gretap6_route()
555 const struct net_device *to_dev, in mlxsw_sp_span_entry_gretap6_parms() argument
558 struct __ip6_tnl_parm tparm = mlxsw_sp_ipip_netdev_parms6(to_dev); in mlxsw_sp_span_entry_gretap6_parms()
566 if (!(to_dev->flags & IFF_UP) || in mlxsw_sp_span_entry_gretap6_parms()
575 l3edev = mlxsw_sp_span_gretap6_route(to_dev, &saddr.addr6, &gw.addr6); in mlxsw_sp_span_entry_gretap6_parms()
632 const struct net_device *to_dev, in mlxsw_sp_span_entry_vlan_parms() argument
638 if (!(to_dev->flags & IFF_UP)) in mlxsw_sp_span_entry_vlan_parms()
641 real_dev = mlxsw_sp_span_entry_vlan(to_dev, &vid); in mlxsw_sp_span_entry_vlan_parms()
700 const struct net_device *to_dev, in mlxsw_sp2_span_entry_cpu_parms() argument
750 const struct net_device *to_dev, in mlxsw_sp_span_entry_nop_parms() argument
851 const struct net_device *to_dev, in mlxsw_sp_span_entry_create() argument
880 span_entry->to_dev = to_dev; in mlxsw_sp_span_entry_create()
897 const struct net_device *to_dev) in mlxsw_sp_span_entry_find_by_port() argument
904 if (refcount_read(&curr->ref_count) && curr->to_dev == to_dev) in mlxsw_sp_span_entry_find_by_port()
933 const struct net_device *to_dev, in mlxsw_sp_span_entry_find_by_parms() argument
941 if (refcount_read(&curr->ref_count) && curr->to_dev == to_dev && in mlxsw_sp_span_entry_find_by_parms()
952 const struct net_device *to_dev, in mlxsw_sp_span_entry_get() argument
958 span_entry = mlxsw_sp_span_entry_find_by_parms(mlxsw_sp, to_dev, in mlxsw_sp_span_entry_get()
966 return mlxsw_sp_span_entry_create(mlxsw_sp, to_dev, ops, sparms); in mlxsw_sp_span_entry_get()
1016 const struct net_device *to_dev) in mlxsw_sp_span_entry_ops() argument
1022 if (span->span_entry_ops_arr[i]->can_handle(to_dev)) in mlxsw_sp_span_entry_ops()
1048 err = curr->ops->parms_set(mlxsw_sp, curr->to_dev, &sparms); in mlxsw_sp_span_respin_work()
1070 const struct net_device *to_dev = parms->to_dev; in mlxsw_sp_span_agent_get() local
1078 ops = mlxsw_sp_span_entry_ops(mlxsw_sp, to_dev); in mlxsw_sp_span_agent_get()
1085 err = ops->parms_set(mlxsw_sp, to_dev, &sparms); in mlxsw_sp_span_agent_get()
1092 span_entry = mlxsw_sp_span_entry_get(mlxsw_sp, to_dev, ops, sparms); in mlxsw_sp_span_agent_get()