Lines Matching refs:ethsw_data
66 fdb = dpaa2_switch_fdb_get_unused(port_priv->ethsw_data); in dpaa2_switch_port_set_fdb()
193 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_add_vlan()
215 err = dpsw_if_get_link_state(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_is_up()
216 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_is_up()
230 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_set_pvid()
286 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_add_vlan()
363 err = dpsw_if_set_stp(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_set_stp_state()
364 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_set_stp_state()
415 err = dpsw_fdb_add_unicast(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_fdb_add_uc()
416 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_fdb_add_uc()
436 err = dpsw_fdb_remove_unicast(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_fdb_del_uc()
437 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_fdb_del_uc()
459 err = dpsw_fdb_add_multicast(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_fdb_add_mc()
460 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_fdb_add_mc()
482 err = dpsw_fdb_remove_multicast(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_fdb_del_mc()
483 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_fdb_del_mc()
499 err = dpsw_if_get_counter(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_get_stats()
500 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_get_stats()
506 err = dpsw_if_get_counter(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_get_stats()
507 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_get_stats()
513 err = dpsw_if_get_counter(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_get_stats()
514 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_get_stats()
520 err = dpsw_if_get_counter(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_get_stats()
521 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_get_stats()
527 err = dpsw_if_get_counter(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_get_stats()
528 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_get_stats()
535 err = dpsw_if_get_counter(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_get_stats()
536 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_get_stats()
544 err = dpsw_if_get_counter(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_get_stats()
545 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_get_stats()
582 err = dpsw_if_set_max_frame_length(port_priv->ethsw_data->mc_io, in dpaa2_switch_port_change_mtu()
584 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_change_mtu()
618 err = dpsw_if_get_link_state(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_link_state_update()
619 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_link_state_update()
686 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_open()
700 err = dpsw_if_enable(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_open()
701 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_open()
722 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_stop()
736 err = dpsw_if_disable(port_priv->ethsw_data->mc_io, 0, in dpaa2_switch_port_stop()
737 port_priv->ethsw_data->dpsw_handle, in dpaa2_switch_port_stop()
755 ppid->id[0] = port_priv->ethsw_data->dev_id; in dpaa2_switch_port_parent_id()
838 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_fdb_iterate()
976 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_set_mac_addr()
1085 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_tx()
1193 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_acl_tbl_bind()
1220 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_acl_tbl_unbind()
1278 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_block_unbind()
1311 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_setup_tc_block_bind()
1361 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_setup_tc_block_unbind()
1458 mac->mc_io = port_priv->ethsw_data->mc_io; in dpaa2_switch_port_connect_mac()
1627 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_set_learning()
1676 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_flood()
1770 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_vlans_add()
1802 if (!port_priv->ethsw_data->vlans[vlan->vid]) { in dpaa2_switch_port_vlans_add()
1808 port_priv->ethsw_data->vlans[vlan->vid] |= ETHSW_VLAN_GLOBAL; in dpaa2_switch_port_vlans_add()
1878 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_del_vlan()
2008 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_bridge_join()
2076 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_bridge_leave()
2173 if (other_port_priv->ethsw_data != port_priv->ethsw_data) { in dpaa2_switch_prechangeupper_sanity_checks()
2315 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_event()
3154 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_init()
3302 port_priv->ethsw_data = ethsw; in dpaa2_switch_probe_port()