Lines Matching defs:dp
28 static int dsa_port_notify(const struct dsa_port *dp, unsigned long e, void *v) in dsa_port_notify()
33 static void dsa_port_notify_bridge_fdb_flush(const struct dsa_port *dp) in dsa_port_notify_bridge_fdb_flush()
51 static void dsa_port_fast_age(const struct dsa_port *dp) in dsa_port_fast_age()
63 static bool dsa_port_can_configure_learning(struct dsa_port *dp) in dsa_port_can_configure_learning()
78 bool dsa_port_supports_hwtstamp(struct dsa_port *dp, struct ifreq *ifr) in dsa_port_supports_hwtstamp()
94 int dsa_port_set_state(struct dsa_port *dp, u8 state, bool do_fast_age) in dsa_port_set_state()
127 static void dsa_port_set_state_now(struct dsa_port *dp, u8 state, in dsa_port_set_state_now()
140 int dsa_port_enable_rt(struct dsa_port *dp, struct phy_device *phy) in dsa_port_enable_rt()
161 int dsa_port_enable(struct dsa_port *dp, struct phy_device *phy) in dsa_port_enable()
172 void dsa_port_disable_rt(struct dsa_port *dp) in dsa_port_disable_rt()
187 void dsa_port_disable(struct dsa_port *dp) in dsa_port_disable()
194 static int dsa_port_inherit_brport_flags(struct dsa_port *dp, in dsa_port_inherit_brport_flags()
218 static void dsa_port_clear_brport_flags(struct dsa_port *dp) in dsa_port_clear_brport_flags()
239 static int dsa_port_switchdev_sync_attrs(struct dsa_port *dp, in dsa_port_switchdev_sync_attrs()
265 static void dsa_port_switchdev_unsync_attrs(struct dsa_port *dp) in dsa_port_switchdev_unsync_attrs()
292 static void dsa_port_bridge_tx_fwd_unoffload(struct dsa_port *dp, in dsa_port_bridge_tx_fwd_unoffload()
313 static bool dsa_port_bridge_tx_fwd_offload(struct dsa_port *dp, in dsa_port_bridge_tx_fwd_offload()
340 int dsa_port_bridge_join(struct dsa_port *dp, struct net_device *br, in dsa_port_bridge_join()
391 void dsa_port_pre_bridge_leave(struct dsa_port *dp, struct net_device *br) in dsa_port_pre_bridge_leave()
404 void dsa_port_bridge_leave(struct dsa_port *dp, struct net_device *br) in dsa_port_bridge_leave()
430 int dsa_port_lag_change(struct dsa_port *dp, in dsa_port_lag_change()
457 int dsa_port_lag_join(struct dsa_port *dp, struct net_device *lag, in dsa_port_lag_join()
495 void dsa_port_pre_lag_leave(struct dsa_port *dp, struct net_device *lag) in dsa_port_pre_lag_leave()
501 void dsa_port_lag_leave(struct dsa_port *dp, struct net_device *lag) in dsa_port_lag_leave()
532 static bool dsa_port_can_apply_vlan_filtering(struct dsa_port *dp, in dsa_port_can_apply_vlan_filtering()
599 int dsa_port_vlan_filtering(struct dsa_port *dp, bool vlan_filtering, in dsa_port_vlan_filtering()
676 bool dsa_port_skip_vlan_configuration(struct dsa_port *dp) in dsa_port_skip_vlan_configuration()
687 int dsa_port_ageing_time(struct dsa_port *dp, clock_t ageing_clock) in dsa_port_ageing_time()
705 int dsa_port_pre_bridge_flags(const struct dsa_port *dp, in dsa_port_pre_bridge_flags()
717 int dsa_port_bridge_flags(struct dsa_port *dp, in dsa_port_bridge_flags()
748 int dsa_port_mtu_change(struct dsa_port *dp, int new_mtu, in dsa_port_mtu_change()
761 int dsa_port_fdb_add(struct dsa_port *dp, const unsigned char *addr, in dsa_port_fdb_add()
774 int dsa_port_fdb_del(struct dsa_port *dp, const unsigned char *addr, in dsa_port_fdb_del()
788 int dsa_port_host_fdb_add(struct dsa_port *dp, const unsigned char *addr, in dsa_port_host_fdb_add()
807 int dsa_port_host_fdb_del(struct dsa_port *dp, const unsigned char *addr, in dsa_port_host_fdb_del()
826 int dsa_port_fdb_dump(struct dsa_port *dp, dsa_fdb_dump_cb_t *cb, void *data) in dsa_port_fdb_dump()
837 int dsa_port_mdb_add(const struct dsa_port *dp, in dsa_port_mdb_add()
849 int dsa_port_mdb_del(const struct dsa_port *dp, in dsa_port_mdb_del()
861 int dsa_port_host_mdb_add(const struct dsa_port *dp, in dsa_port_host_mdb_add()
879 int dsa_port_host_mdb_del(const struct dsa_port *dp, in dsa_port_host_mdb_del()
897 int dsa_port_vlan_add(struct dsa_port *dp, in dsa_port_vlan_add()
911 int dsa_port_vlan_del(struct dsa_port *dp, in dsa_port_vlan_del()
923 int dsa_port_mrp_add(const struct dsa_port *dp, in dsa_port_mrp_add()
935 int dsa_port_mrp_del(const struct dsa_port *dp, in dsa_port_mrp_del()
947 int dsa_port_mrp_add_ring_role(const struct dsa_port *dp, in dsa_port_mrp_add_ring_role()
959 int dsa_port_mrp_del_ring_role(const struct dsa_port *dp, in dsa_port_mrp_del_ring_role()
978 static struct phy_device *dsa_port_get_phy_device(struct dsa_port *dp) in dsa_port_get_phy_device()
1001 struct dsa_port *dp = container_of(config, struct dsa_port, pl_config); in dsa_port_phylink_validate() local
1013 struct dsa_port *dp = container_of(config, struct dsa_port, pl_config); in dsa_port_phylink_mac_pcs_get_state() local
1035 struct dsa_port *dp = container_of(config, struct dsa_port, pl_config); in dsa_port_phylink_mac_config() local
1046 struct dsa_port *dp = container_of(config, struct dsa_port, pl_config); in dsa_port_phylink_mac_an_restart() local
1059 struct dsa_port *dp = container_of(config, struct dsa_port, pl_config); in dsa_port_phylink_mac_link_down() local
1082 struct dsa_port *dp = container_of(config, struct dsa_port, pl_config); in dsa_port_phylink_mac_link_up() local
1104 static int dsa_port_setup_phy_of(struct dsa_port *dp, bool enable) in dsa_port_setup_phy_of()
1142 static int dsa_port_fixed_link_register_of(struct dsa_port *dp) in dsa_port_fixed_link_register_of()
1176 static int dsa_port_phylink_register(struct dsa_port *dp) in dsa_port_phylink_register()
1211 int dsa_port_link_register_of(struct dsa_port *dp) in dsa_port_link_register_of()
1239 void dsa_port_link_unregister_of(struct dsa_port *dp) in dsa_port_link_unregister_of()
1258 int dsa_port_get_phy_strings(struct dsa_port *dp, uint8_t *data) in dsa_port_get_phy_strings()
1277 int dsa_port_get_ethtool_phy_stats(struct dsa_port *dp, uint64_t *data) in dsa_port_get_ethtool_phy_stats()
1296 int dsa_port_get_phy_sset_count(struct dsa_port *dp) in dsa_port_get_phy_sset_count()
1315 int dsa_port_hsr_join(struct dsa_port *dp, struct net_device *hsr) in dsa_port_hsr_join()
1333 void dsa_port_hsr_leave(struct dsa_port *dp, struct net_device *hsr) in dsa_port_hsr_leave()
1351 int dsa_port_tag_8021q_vlan_add(struct dsa_port *dp, u16 vid, bool broadcast) in dsa_port_tag_8021q_vlan_add()
1366 void dsa_port_tag_8021q_vlan_del(struct dsa_port *dp, u16 vid, bool broadcast) in dsa_port_tag_8021q_vlan_del()