• Home
  • Raw
  • Download

Lines Matching refs:ops

59 	if (!ds->ops->port_fast_age)  in dsa_port_fast_age()
62 ds->ops->port_fast_age(ds, dp->index); in dsa_port_fast_age()
73 if (!ds->ops->port_vlan_fast_age) in dsa_port_vlan_fast_age()
76 err = ds->ops->port_vlan_fast_age(ds, dp->index, vid); in dsa_port_vlan_fast_age()
110 if (!ds->ops->port_bridge_flags || !ds->ops->port_pre_bridge_flags) in dsa_port_can_configure_learning()
113 err = ds->ops->port_pre_bridge_flags(ds, dp->index, flags, NULL); in dsa_port_can_configure_learning()
123 if (!ds->ops->port_hwtstamp_get || !ds->ops->port_hwtstamp_set) in dsa_port_supports_hwtstamp()
131 err = ds->ops->port_hwtstamp_get(ds, dp->index, &ifr); in dsa_port_supports_hwtstamp()
140 if (!ds->ops->port_stp_state_set) in dsa_port_set_state()
143 ds->ops->port_stp_state_set(ds, port, state); in dsa_port_set_state()
189 if (!ds->ops->port_mst_state_set) in dsa_port_set_mst_state()
197 err = ds->ops->port_mst_state_set(ds, dp->index, state); in dsa_port_set_mst_state()
223 if (ds->ops->port_enable) { in dsa_port_enable_rt()
224 err = ds->ops->port_enable(ds, port, phy); in dsa_port_enable_rt()
260 if (ds->ops->port_disable) in dsa_port_disable_rt()
261 ds->ops->port_disable(ds, port); in dsa_port_disable_rt()
479 return ds->ops->vlan_msti_set && in dsa_port_supports_mst()
480 ds->ops->port_mst_state_set && in dsa_port_supports_mst()
481 ds->ops->port_vlan_fast_age && in dsa_port_supports_mst()
803 if (!ds->ops->port_vlan_filtering) in dsa_port_vlan_filtering()
819 err = ds->ops->port_vlan_filtering(ds, dp->index, vlan_filtering, in dsa_port_vlan_filtering()
855 ds->ops->port_vlan_filtering(ds, dp->index, old_vlan_filtering, NULL); in dsa_port_vlan_filtering()
914 if (!ds->ops->port_pre_bridge_flags) in dsa_port_pre_bridge_flags()
917 return ds->ops->port_pre_bridge_flags(ds, dp->index, flags, extack); in dsa_port_pre_bridge_flags()
927 if (!ds->ops->port_bridge_flags) in dsa_port_bridge_flags()
930 err = ds->ops->port_bridge_flags(ds, dp->index, flags, extack); in dsa_port_bridge_flags()
955 if (ds->ops->port_set_host_flood) in dsa_port_set_host_flood()
956 ds->ops->port_set_host_flood(ds, dp->index, uc, mc); in dsa_port_set_host_flood()
964 if (!ds->ops->vlan_msti_set) in dsa_port_vlan_msti()
967 return ds->ops->vlan_msti_set(ds, *dp->bridge, msti); in dsa_port_vlan_msti()
1163 if (!ds->ops->port_fdb_dump) in dsa_port_fdb_dump()
1166 return ds->ops->port_fdb_dump(ds, port, cb, data); in dsa_port_fdb_dump()
1362 if (!ds->ops->port_mrp_add) in dsa_port_mrp_add()
1365 return ds->ops->port_mrp_add(ds, dp->index, mrp); in dsa_port_mrp_add()
1373 if (!ds->ops->port_mrp_del) in dsa_port_mrp_del()
1376 return ds->ops->port_mrp_del(ds, dp->index, mrp); in dsa_port_mrp_del()
1384 if (!ds->ops->port_mrp_add_ring_role) in dsa_port_mrp_add_ring_role()
1387 return ds->ops->port_mrp_add_ring_role(ds, dp->index, mrp); in dsa_port_mrp_add_ring_role()
1395 if (!ds->ops->port_mrp_del_ring_role) in dsa_port_mrp_del_ring_role()
1398 return ds->ops->port_mrp_del_ring_role(ds, dp->index, mrp); in dsa_port_mrp_del_ring_role()
1409 err = ds->ops->port_change_master(ds, port, master, extack); in dsa_port_assign_master()
1579 if (ds->ops->phylink_mac_select_pcs) in dsa_port_phylink_mac_select_pcs()
1580 pcs = ds->ops->phylink_mac_select_pcs(ds, dp->index, interface); in dsa_port_phylink_mac_select_pcs()
1593 if (ds->ops->phylink_mac_prepare) in dsa_port_phylink_mac_prepare()
1594 err = ds->ops->phylink_mac_prepare(ds, dp->index, mode, in dsa_port_phylink_mac_prepare()
1607 if (!ds->ops->phylink_mac_config) in dsa_port_phylink_mac_config()
1610 ds->ops->phylink_mac_config(ds, dp->index, mode, state); in dsa_port_phylink_mac_config()
1621 if (ds->ops->phylink_mac_finish) in dsa_port_phylink_mac_finish()
1622 err = ds->ops->phylink_mac_finish(ds, dp->index, mode, in dsa_port_phylink_mac_finish()
1639 if (!ds->ops->phylink_mac_link_down) { in dsa_port_phylink_mac_link_down()
1640 if (ds->ops->adjust_link && phydev) in dsa_port_phylink_mac_link_down()
1641 ds->ops->adjust_link(ds, dp->index, phydev); in dsa_port_phylink_mac_link_down()
1645 ds->ops->phylink_mac_link_down(ds, dp->index, mode, interface); in dsa_port_phylink_mac_link_down()
1658 if (!ds->ops->phylink_mac_link_up) { in dsa_port_phylink_mac_link_up()
1659 if (ds->ops->adjust_link && phydev) in dsa_port_phylink_mac_link_up()
1660 ds->ops->adjust_link(ds, dp->index, phydev); in dsa_port_phylink_mac_link_up()
1664 ds->ops->phylink_mac_link_up(ds, dp->index, mode, interface, phydev, in dsa_port_phylink_mac_link_up()
1689 if (ds->ops->phylink_get_caps) { in dsa_port_phylink_create()
1690 ds->ops->phylink_get_caps(ds, dp->index, &dp->pl_config); in dsa_port_phylink_create()
1749 if (ds->ops->adjust_link) in dsa_shared_port_setup_phy_of()
1750 ds->ops->adjust_link(ds, port, phydev); in dsa_shared_port_setup_phy_of()
1785 if (ds->ops->adjust_link) in dsa_shared_port_fixed_link_register_of()
1786 ds->ops->adjust_link(ds, port, phydev); in dsa_shared_port_fixed_link_register_of()
1985 if (!ds->ops->adjust_link) { in dsa_shared_port_link_register_of()
1991 if (ds->ops->phylink_mac_link_down) in dsa_shared_port_link_register_of()
1992 ds->ops->phylink_mac_link_down(ds, port, in dsa_shared_port_link_register_of()
2013 if (!ds->ops->adjust_link && dp->pl) { in dsa_shared_port_link_unregister_of()
2032 if (!ds->ops->port_hsr_join) in dsa_port_hsr_join()
2037 err = ds->ops->port_hsr_join(ds, dp->index, hsr); in dsa_port_hsr_join()
2051 if (ds->ops->port_hsr_leave) { in dsa_port_hsr_leave()
2052 err = ds->ops->port_hsr_leave(ds, dp->index, hsr); in dsa_port_hsr_leave()